On 05/15/2012 05:43 AM, Qichang Liang wrote:
Hi,

I have just downloaded the git repository of free-cad, and have
switched to the jriegel/assembly branch.

I just wonder whether I should use cmake, or autogen.sh - ./configure
- make to build freecad?

I am running lubuntu 12.04 amd64.  I tried to build with cmake.
However in the middle, it fails with:

mal@lubunut-amd64:~/git/free-cad-build$ make
[  0%] Built target coin
[  1%] Built target soqt
[  1%] Built target Driver
[  3%] Built target SMDS
[  4%] Built target DriverDAT
[  4%] Built target DriverSTL
[  4%] Built target DriverUNV
[  4%] Built target SMESHDS
make[2]: *** No rule to make target
`/usr/lib/i386-linux-gnu/libXmu.so', needed by `lib/libSMESH.so'.
Stop.
make[1]: *** [src/3rdParty/salomesmesh/CMakeFiles/SMESH.dir/all] Error 2
make: *** [all] Error 2
mal@lubunut-amd64:~/git/free-cad-build

I am on amd64, why the system asks for i386 architecture?


Thanks!

Qichang

If what yorik posted doesn't help, look here.
https://sourceforge.net/apps/phpbb/free-cad/viewtopic.php?f=4&t=2521&sid=fe71378de4e85ad49e9ce7c7869e41c7

There is a mistake in the amd64 libXmu packaging for precise. The link above describes editing the make files, but I was able to get through it with just adding a symbolic link(If I remember correctly). Run the following command and compare to my output and that should prove what I am remembering. I think I added the symbolic link libXmu.so to point to libXmu.so.6.2.0.

$locate libXmu
/usr/lib/x86_64-linux-gnu/libXmu.a
/usr/lib/x86_64-linux-gnu/libXmu.so
/usr/lib/x86_64-linux-gnu/libXmu.so.6
/usr/lib/x86_64-linux-gnu/libXmu.so.6.2.0
/usr/lib/x86_64-linux-gnu/libXmuu.so.1
/usr/lib/x86_64-linux-gnu/libXmuu.so.1.0.0