Building Heekscad under Linux Mint 13 X64

I got this error:

[ 99%] Building CXX object src/CMakeFiles/heekscad.dir/WrappedCurves.cpp.o
make[2]: *** No rule to make target `/usr/lib/i386-linux-gnu/libXmu.so', needed by `bin/heekscad-0.18.0'. Stop.
make[2]: *** Waiting for unfinished jobs....
[100%] Building CXX object src/CMakeFiles/heekscad.dir/wxImageLoader.cpp.o
/home/markus/heekscad_svn/heekscad-svn/src/TreeCanvas.cpp: In member function ‘void CTreeCanvas::OnLabelLeftDown(HeeksObj*, wxMouseEvent&)’:
/home/markus/heekscad_svn/heekscad-svn/src/TreeCanvas.cpp:523:8: warning: variable ‘recent_first’ set but not used [-Wunused-but-set-variable]
/home/markus/heekscad_svn/heekscad-svn/src/ViewPoint.cpp: In member function ‘int CViewPoint::ChooseBestPlane(int) const’:
/home/markus/heekscad_svn/heekscad-svn/src/ViewPoint.cpp:408:9: warning: variable ‘third_best_dp’ set but not used [-Wunused-but-set-variable]
make[1]: *** [src/CMakeFiles/heekscad.dir/all] Error 2
make: *** [all] Error 2

So I did try to fix this like this:
sudo apt-get install ia32-libs
sudo ln /usr/lib/i386-linux-gnu/libXext.so.6 /usr/lib/i386-linux-gnu/libXext.so
sudo ln /usr/lib/i386-linux-gnu/libX11.so.6 /usr/lib/i386-linux-gnu/libX11.so
sudo ln /usr/lib/i386-linux-gnu/libICE.so.6 /usr/lib/i386-linux-gnu/libICE.so
sudo ln /usr/lib/i386-linux-gnu/libSM.so.6 /usr/lib/i386-linux-gnu/libSM.so
sudo ln /usr/lib/i386-linux-gnu/libXmu.so.6 /usr/lib/i386-linux-gnu/libXmu.so

Now it is (SVN) building

~/heekscad_svn/heekscad-svn/heekscnc-svn $ make
Linking CXX shared library ../bin/libheekscnc.so
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libXmu.so when searching for -lXmu
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libSM.so when searching for -lSM
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libICE.so when searching for -lICE
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libXext.so when searching for -lXext
[100%] Built target heekscnc
~/heekscad_svn/heekscad-svn/heekscnc-svn $
~/heekscad_svn/heekscad-svn/heekscnc-svn $ cd ..
~/heekscad_svn/heekscad-svn $ make -j 12
[ 3%] Built target tinyxml
[ 3%] Built target translations
[ 17%] Built target heeksintf
Linking CXX executable ../bin/heekscad
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libSM.so when searching for -lSM
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libICE.so when searching for -lICE
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libXext.so when searching for -lXext
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libXmu.so when searching for -lXmu
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libSM.so when searching for -lSM
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libICE.so when searching for -lICE
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libXext.so when searching for -lXext
[100%] Built target heekscad

After doing
make package
and installing the package:
sudo dpkg -i heekscad_beta-0.18.0_amd64.deb

I can type
heekscad and it looks like it works… well I just found out not all is working…

so I started playing with compiler switches like and was using the git version (but I copied libarea stuff from svn):
-m64
-arch x86_64

and a lot of this
make clean
cmake .
make -j12

and at one point it i was complaining about i386 stuff, so I copied the files over:

sudo cp /usr/lib/x86_64-linux-gnu/libXext.so /usr/lib/i386-linux-gnu/libXext.so
sudo cp /usr/lib/x86_64-linux-gnu/libX11.so /usr/lib/i386-linux-gnu/libX11.so
sudo cp /usr/lib/x86_64-linux-gnu/libICE.so /usr/lib/i386-linux-gnu/libICE.so
sudo cp /usr/lib/x86_64-linux-gnu/libSM.so /usr/lib/i386-linux-gnu/libSM.so
sudo cp /usr/lib/x86_64-linux-gnu/libXmu.so /usr/lib/i386-linux-gnu/libXmu.so

I’m not sure if this is a bug in linux mint, cmake or heekscad?

However it’s working now and producing g-code 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *