Note that there are some explanatory texts on larger screens.

plurals
  1. POLinux runtime linker error
    text
    copied!<p>I'm working though the <a href="http://pocoproject.org/wiki/index.php/FirstStepsLinux" rel="nofollow noreferrer">First Steps</a> tutorial on the POCO Project site, and I've successfully built the library (Debian Linux, 2.6.26, gcc 4.3.2) under my home directory</p> <pre>~/Development/POCO</pre> <p>with the shared libraries located in </p> <pre>~/Development/POCO/lib/Linux/x86_64/lib</pre> <p><b>My problem is that any application I build that depends on these libraries can only be run from the shared library directory.</b></p> <pre> ~/Development/POCO/lib/Linux/x86_64$ ldd ~/Development/Cloud/DateTimeSample/bin/Linux/x86_64/DateTime linux-vdso.so.1 => (0x00007fffe69fe000) libPocoFoundation.so.6 (0x00007fa8de44f000) libpthread.so.0 => /lib/libpthread.so.0 (0x00007fa8de233000) libdl.so.2 => /lib/libdl.so.2 (0x00007fa8de02f000) librt.so.1 => /lib/librt.so.1 (0x00007fa8dde26000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fa8ddb1a000) libm.so.6 => /lib/libm.so.6 (0x00007fa8dd897000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fa8dd680000) libc.so.6 => /lib/libc.so.6 (0x00007fa8dd32d000) /lib64/ld-linux-x86-64.so.2 (0x00007fa8de7e0000) </pre> <p>And running DateTime from this directory would work as you would expect. However</p> <pre> ~/Development/Cloud/DateTimeSample/bin/Linux/x86_64$ ldd DateTime linux-vdso.so.1 => (0x00007fff24dfe000) libPocoFoundation.so.6 => not found libpthread.so.0 => /lib/libpthread.so.0 (0x00007ffc1c7dd000) libdl.so.2 => /lib/libdl.so.2 (0x00007ffc1c5d9000) librt.so.1 => /lib/librt.so.1 (0x00007ffc1c3d0000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007ffc1c0c4000) libm.so.6 => /lib/libm.so.6 (0x00007ffc1be41000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007ffc1bc2a000) libc.so.6 => /lib/libc.so.6 (0x00007ffc1b8d7000) /lib64/ld-linux-x86-64.so.2 (0x00007ffc1c9f9000) </pre> <p>so running the executable from any other directory results in</p> <pre> error while loading shared libraries: libPocoFoundation.so.6: cannot open shared object file: No such file or directory </pre> <p>Looking at the output from the make process, the directory is correctly specified</p> <pre> g++ [blah] -L/home/npalko/Development/POCO/lib/Linux/x86_64 -lPocoFoundation </pre> <p>I've tried setting <pre><code>LD_LIBRARY_PATH</code></pre> to <pre>/home/npalko/Development/POCO/lib/Linux/x86_64</pre>, but it has not changed anything. Any help would be greatly appreciated!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload