error while loading shared libraries

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.-Math. Marcel Makowski Institut für Geometrie und Praktische Mathematik RWTH-Aachen Templergraben 55 D-52056 Aachen, Germany email: makowski@igpm.rwth-aachen.de Phone: +49-241-80-97066 Fax: +49-241-80-92317 URL: http://www.igpm.rwth-aachen.de

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

Hi Jan, thanks for your quick response. Before I started , I did call
make install
And the libraries were installed: masel@masel-x200:/usr/local/lib/OpenMesh$ ls libOpenMeshCore.a libOpenMeshCore.so.2.0 libOpenMeshTools.so libOpenMeshCore.so libOpenMeshTools.a libOpenMeshTools.so.2.0 I tried ldd cube, this is the output: masel@masel-x200:~/workspace/OpenMesh-2.0.1/src/OpenMesh/Examples/Tutorial01$ ldd cube linux-vdso.so.1 => (0x00007fff0ffd5000) libOpenMeshCore.so.2.0 => not found libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f7bbda63000) libm.so.6 => /lib/libm.so.6 (0x00007f7bbd7df000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f7bbd5c8000) libc.so.6 => /lib/libc.so.6 (0x00007f7bbd245000) /lib64/ld-linux-x86-64.so.2 (0x00007f7bbdd9a000) I tried copying libOpenMeshCore.so.2.0 into the Tutorial01 folder, but this doesn't help. I really don't know what the problem is. Best regards, Marcel 2011/6/16 Jan Möbius <moebius@cs.rwth-aachen.de>:
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)
make install after building OpenMesh, it is installed to /usr/lib and therefore in your
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 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 _______________________________________________ Openflipper mailing list Openflipper@lists.rwth-aachen.de http://mailman.rwth-aachen.de/mailman/listinfo/openflipper
-- Dipl.-Math. Marcel Makowski Institut für Geometrie und Praktische Mathematik RWTH-Aachen Templergraben 55 D-52056 Aachen, Germany email: makowski@igpm.rwth-aachen.de Phone: +49-241-80-97066 Fax: +49-241-80-92317 URL: http://www.igpm.rwth-aachen.de

On 16.06.2011 15:30, Marcel Makowski wrote:
Hi Jan,
thanks for your quick response.
Before I started , I did call
make install
And the libraries were installed:
masel@masel-x200:/usr/local/lib/OpenMesh$ ls libOpenMeshCore.a libOpenMeshCore.so.2.0 libOpenMeshTools.so libOpenMeshCore.so libOpenMeshTools.a libOpenMeshTools.so.2.0
I tried ldd cube, this is the output:
masel@masel-x200:~/workspace/OpenMesh-2.0.1/src/OpenMesh/Examples/Tutorial01$ ldd cube linux-vdso.so.1 => (0x00007fff0ffd5000) libOpenMeshCore.so.2.0 => not found libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f7bbda63000) libm.so.6 => /lib/libm.so.6 (0x00007f7bbd7df000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f7bbd5c8000) libc.so.6 => /lib/libc.so.6 (0x00007f7bbd245000) /lib64/ld-linux-x86-64.so.2 (0x00007f7bbdd9a000)
I tried copying libOpenMeshCore.so.2.0 into the Tutorial01 folder, but this doesn't help.
Did you copy the lib libOpenMeshCore.so as well as the symlink? Is /usr/local/lib/OpenMesh in you path variable? Regards, Jan
I really don't know what the problem is.
Best regards, Marcel
2011/6/16 Jan Möbius<moebius@cs.rwth-aachen.de>:
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)
make install after building OpenMesh, it is installed to /usr/lib and therefore in your
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 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 _______________________________________________ Openflipper mailing list Openflipper@lists.rwth-aachen.de http://mailman.rwth-aachen.de/mailman/listinfo/openflipper
-- 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
participants (2)
-
Jan Möbius
-
Marcel Makowski