Thanks Alberto You are correct, after exported the LD_LIBRARY_PATH it worked. But the cmake output is still a bit confusing with the pthread(s) stuff not found.
Thanks for the quick reply On Wed, Sep 12, 2012 at 1:09 PM, Alberto Luaces <[email protected]> wrote: > I think Theuns overlooked the cmake-time warning: > > The build system is configured to install libraries to /usr/local/lib64 > Your applications may not be able to find your installed libraries unless > you: > set your LD_LIBRARY_PATH (user specific) or > update your ld.so configuration (system wide) > > You have an ld.so.conf.d directory on your system, so if you wish to > ensure that > applications find the installed osg libraries, system wide, you could > install an > OpenSceneGraph specific ld.so configuration with: > sudo make install_ld_conf > > Regards, > > Alberto > > Robert Osfield writes: > > > Hi Theuns, > > > > I am using Kubuntu 12.04 64bit for all dev work and when I run cmake I > > get the same pthread related warnings as you but everything builds and > > links OK. I haven't recently tried to install the OSG, instead I set > > PATH and LD_LIBRARY_PATH to the OpenSceneGraph build directory - I do > > this as I'm working on the OSG dev all the time so don't want to have > > to keep installing this. > > > > Previously when testing installs I haven't had problems with > > libOpenThreads though, and little has changed on the cmake build front > > that would suggest we might have a regression. Once I've completed my > > present work item I'll clean my system and try to recreate the linking > > side. > > > > Robert. > > > > On 12 September 2012 11:45, Theuns Heydenrych > > <[email protected]> wrote: > >> I need some help with dependencies issues, please. > >> > >> I am using the latest code from the svn repo. > >> I am building on Ubuntu 12.04 64bit, the code does compile, and after > >> executing sudo make install and then executing osgbillboard i get the > >> following error: > >> "osgbillboard: error while loading shared libraries: libosg.so.93: > cannot > >> open shared object file: No such file or directory" > >> The libosg.so.93 is present in the /usr/local/lib64/ directory. > >> When running ldd on /usr/local/lib64/libosg.so.93 i get the following > result > >> > >> linux-vdso.so.1 => (0x00007fffbe4c7000) > >> libOpenThreads.so.12 => not found > >> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 > >> (0x00007fe40b908000) > >> librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fe40b6ff000) > >> libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fe40b4fb000) > >> libGL.so.1 => /usr/lib/nvidia-current-updates/libGL.so.1 > >> (0x00007fe40b1e3000) > >> libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 > >> (0x00007fe40aee2000) > >> libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fe40abe8000) > >> libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 > (0x00007fe40a9d2000) > >> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe40a614000) > >> /lib64/ld-linux-x86-64.so.2 (0x00007fe40c066000) > >> libnvidia-tls.so.295.49 => > >> /usr/lib/nvidia-current-updates/tls/libnvidia-tls.so.295.49 > >> (0x00007fe40a411000) > >> libnvidia-glcore.so.295.49 => > >> /usr/lib/nvidia-current-updates/libnvidia-glcore.so.295.49 > >> (0x00007fe4080d7000) > >> libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 > (0x00007fe407da2000) > >> libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 > (0x00007fe407b91000) > >> libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 > (0x00007fe407972000) > >> libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 > (0x00007fe40776f000) > >> libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 > >> (0x00007fe407569000) > >> > >> libOpenThreads.so.12 is not found, but it is present in > /usr/local/lib64/ > >> > >> When executing cmake ../OpenSceneGraph -DCMAKE_BUILD_TYPE=Release i get > the > >> following output. > >> > >> -- The C compiler identification is GNU > >> -- The CXX compiler identification is GNU > >> -- Check for working C compiler: /usr/bin/gcc > >> -- Check for working C compiler: /usr/bin/gcc -- works > >> -- Detecting C compiler ABI info > >> -- Detecting C compiler ABI info - done > >> -- Check for working CXX compiler: /usr/bin/c++ > >> -- Check for working CXX compiler: /usr/bin/c++ -- works > >> -- Detecting CXX compiler ABI info > >> -- Detecting CXX compiler ABI info - done > >> -- Looking for include files CMAKE_HAVE_PTHREAD_H > >> -- Looking for include files CMAKE_HAVE_PTHREAD_H - found > >> -- Looking for pthread_create in pthreads > >> -- Looking for pthread_create in pthreads - not found > >> -- Looking for pthread_create in pthread > >> -- Looking for pthread_create in pthread - found > >> -- Found Threads: TRUE > >> -- Looking for XOpenDisplay in > >> /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so > >> -- Looking for XOpenDisplay in > >> > /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - > >> found > >> -- Looking for gethostbyname > >> -- Looking for gethostbyname - found > >> -- Looking for connect > >> -- Looking for connect - found > >> -- Looking for remove > >> -- Looking for remove - found > >> -- Looking for shmat > >> -- Looking for shmat - found > >> -- Looking for IceConnectionNumber in ICE > >> -- Looking for IceConnectionNumber in ICE - found > >> -- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so > >> -- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so > >> -- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so > >> -- checking for module 'gta' > >> -- package 'gta' not found > >> -- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so > >> -- Found OpenAL: /usr/lib/x86_64-linux-gnu/libopenal.so > >> -- checking for module 'cairo' > >> -- found cairo, version 1.10.2 > >> -- checking for module 'poppler-glib' > >> -- found poppler-glib, version 0.18.4 > >> -- Performing Test POPPLER_HAS_CAIRO > >> -- Performing Test POPPLER_HAS_CAIRO - Success > >> -- checking for module 'librsvg-2.0' > >> -- found librsvg-2.0, version 2.36.1 > >> -- checking for module 'gtk+-2.0' > >> -- found gtk+-2.0, version 2.24.10 > >> -- checking for module 'gtkglext-x11-1.0' > >> -- found gtkglext-x11-1.0, version 1.2.0 > >> -- Looking for Q_WS_X11 > >> -- Looking for Q_WS_X11 - found > >> -- Looking for Q_WS_WIN > >> -- Looking for Q_WS_WIN - not found. > >> -- Looking for Q_WS_QWS > >> -- Looking for Q_WS_QWS - not found. > >> -- Looking for Q_WS_MAC > >> -- Looking for Q_WS_MAC - not found. > >> -- Found Qt4: /usr/bin/qmake (found version "4.8.1") > >> -- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so > >> -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version > "1.2.3.4") > >> -- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so > >> -- Found TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so > >> -- Performing Test _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS > >> -- Performing Test _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS - Success > >> -- Performing Test _OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS > >> -- Performing Test _OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS - Failed > >> -- Performing Test _OPENTHREADS_ATOMIC_USE_SUN > >> -- Performing Test _OPENTHREADS_ATOMIC_USE_SUN - Failed > >> -- Performing Test _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED > >> -- Performing Test _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED - Failed > >> -- Performing Test _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC > >> -- Performing Test _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC - Failed > >> -- Looking for pthread_yield > >> -- Looking for pthread_yield - not found > >> -- Looking for sched_yield > >> -- Looking for sched_yield - found > >> -- Looking for pthread_setconcurrency > >> -- Looking for pthread_setconcurrency - not found > >> -- Looking for pthread_getconcurrency > >> -- Looking for pthread_getconcurrency - not found > >> -- Looking for pthread_setaffinity_np > >> -- Looking for pthread_setaffinity_np - not found > >> -- Performing Test HAVE_THREE_PARAM_SCHED_SETAFFINITY > >> -- Performing Test HAVE_THREE_PARAM_SCHED_SETAFFINITY - Success > >> -- checking for module 'xrandr' > >> -- found xrandr, version 1.3.2 > >> -- Looking for gethostbyname in nsl > >> -- Looking for gethostbyname in nsl - found > >> -- Looking for socket in socket > >> -- Looking for socket in socket - not found > >> > >> My concern is that things regarding pthread(s) is not found. > >> > >> Thank you in advance > >> > >> _______________________________________________ > >> osg-users mailing list > >> [email protected] > >> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >> > > -- > Alberto > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

