
Hi, if your program links correctly but doesn't start, something is amiss with your library paths. Try to check the following things: Check if your program finds the lib directly. For example for the duaalizer the output of ldd is:
ldd Dualizer
linux-vdso.so.1 => (0x00007fffae27c000) libOpenMeshCored.so.2.0 => /data1/home1/moebius/projects/OpenFlipper-Free/OpenMesh/build/Build/bin/./../lib/OpenMesh/libOpenMeshCored.so.2.0 (0x00007f441435c000) libOpenMeshToolsd.so.2.0 => /data1/home1/moebius/projects/OpenFlipper-Free/OpenMesh/build/Build/bin/./../lib/OpenMesh/libOpenMeshToolsd.so.2.0 (0x00007f4414137000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f4413e00000) libm.so.6 => /lib/libm.so.6 (0x00007f4413b7e000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f4413967000) libc.so.6 => /lib/libc.so.6 (0x00007f44135e4000) /lib64/ld-linux-x86-64.so.2 (0x00007f441463d000) If OpenMesh is flagged as not found here, copy the library to your current folder and try again. This time it should be found. Usually if you call
make install after building OpenMesh, it is installed to /usr/lib and therefore in your library path.
Best, Jan Möbius On 15.06.2011 17:05, Marcel Makowski wrote:
Hallo,
ich habe folgendes Problem: Ich möchte die libOpenMeshCore.so.2.0 Bibliothek linken. Beim Kompilieren gibt es auch keinen Fehler, aber dann beim Ausführen schon, s.u.:
masel@masel-x200:~/workspace/OpenMesh-2.0.1/src/OpenMesh/Examples/Tutorial01$ g++ -L/usr/local/lib/OpenMesh cube.cc -o cube -lOpenMeshCore masel@masel-x200:~/workspace/OpenMesh-2.0.1/src/OpenMesh/Examples/Tutorial01$ ./cube ./cube: error while loading shared libraries: libOpenMeshCore.so.2.0: cannot open shared object file: No such file or directory
Liegt es vielleicht irgendwie an dem symbolischen Link ?!
Es wäre super, wenn jemand dazu eine Idee hätte.
Gruß, Marcel
-- Dipl.Inform. Jan Möbius Department of Computer Science VIII Aachen University of Technology (RWTH) Ahornstrasse 55, 52074 Aachen, Germany Phone ++49 (0)241 80-21817 Fax ++49 (0)241 80-22899 mailto:moebius@cs.rwth-aachen.de http://www.rwth-graphics.de