Why can't you use the pre-built VirtualGL DEB? Or, if you absolutely must build VGL from source, try using the official libjpeg-turbo DEB from SourceForge? There's a good reason why the build instructions suggest using the "official" libjpeg-turbo binaries to build VGL-- because the static libjpeg-turbo libs that ship with Ubuntu and other distros typically are not built with PIC and thus can't be used to link librrfaker.so. We've already had that discussion on this list once this week.
If that is not the same issue you're having, then you're going to have to do some leg work to figure out why it's giving an error-- examine the CMake error logs, etc. If this is the same lack of PIC issue, then I'm open to suggestions for how to make the error more obvious or to add language to BUILDING.txt to highlight the pitfall (even though it seems that no one ever reads BUILDING.txt.) I'm not going to be able to spend significant time diagnosing it, however, since it's not an official build procedure. If Ubuntu isn't building libturbojpeg.a using PIC, then either use the shared library they provide or use the static library I provide as part of the libjpeg-turbo project. Also, in the future, please post build issues to VirtualGL-devel, not here. On Jun 15, 2013, at 10:02 PM, Vadim Peretokin <vpereto...@gmail.com> wrote: > Hi, > > I'm having an issue building VirtualGL sources (2.3.2) on Ubuntu 12.04. The > turbojpeg library isn't where the sources expect, so I update the variable to > locate it - but it still fails with a non-obvious error: > > vadi@gooseberry:~/Programs/VirtualGL-2.3.2$ cmake . > -DTJPEG_LIBRARY=/usr/lib/x86_64-linux-gnu/libturbojpeg.a > -- CMAKE_BUILD_TYPE = Release > -- VERSION = 2.3.2, BUILD = 20130616 > -- CMAKE_INSTALL_PREFIX = /opt/VirtualGL > -- VGL_BINDIR = /opt/VirtualGL/bin > -- VGL_DOCDIR = /opt/VirtualGL/doc > -- 64-bit build (x86_64) > -- Linking with static libstdc++: > /usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.a > -- X Video not available > -- TJPEG_INCLUDE_DIR = /usr/include > CMake Error at cmakescripts/FindTurboJPEG.cmake:52 (message): > Could not link with TurboJPEG library > /usr/lib/x86_64-linux-gnu/libturbojpeg.a. If it is installed in a > different place, then set TJPEG_LIBRARY accordingly. > Call Stack (most recent call first): > CMakeLists.txt:242 (include) > > > -- Configuring incomplete, errors occurred! > vadi@gooseberry:~/Programs/VirtualGL-2.3.2$ file > /usr/lib/x86_64-linux-gnu/libturbojpeg.a > /usr/lib/x86_64-linux-gnu/libturbojpeg.a: current ar archive > vadi@gooseberry:~/Programs/VirtualGL-2.3.2$ > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > VirtualGL-Users mailing list > VirtualGL-Users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/virtualgl-users ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ VirtualGL-Users mailing list VirtualGL-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/virtualgl-users