Heeks/libarea — Issue #3: undefined symbol while using libarea as python module
Author: neomilium
Created: 2012-02-23 22:42:22+00:00
State: open

Under Ubuntu 11.10 64bits, I'm not able to use "area" module in python resulting HeeksCNC usage fail when I ask GCode generation.

I used the heekscad-install.sh found at http://code.google.com/p/heekscad/wiki/UbuntuInstallation

Configuration and compilation runs fine but importing "area" module fails:
```
python -c "import area"
Traceback (most recent call last):
File "", line 1, in
ImportError: /usr/local/lib/python2.7/dist-packages/area.so: undefined symbol: _ZNK5boost6python7objects21py_function_impl_base9max_arityEv
```

This bug produces exactly same effect than HeeksCNC's issue #18 (https://github.com/Heeks/heekscnc/issues/18) but I double check, I already have the CMake build for libarea.

Finally I found the problem : the heekscad-install.sh script does not use the CMake way to build libarea.

```
--- heekscad-install.sh.orig	2012-02-23 23:39:13.000000000 +0100
+++ heekscad-install.sh	2012-02-23 23:34:07.000000000 +0100
@@ -38,24 +38,29 @@
# Install libarea
# area.so is required for pocket operations.
cd ${BUILDPATH}/heekscad/heekscnc/libarea/
-make clean
+if [ -d build ]; then
+ cd build
+else
+ mkdir build
+ cd build
+fi
+cmake ..
make
sudo make install
```