nullkey/glc — Issue #18: Ubuntu 11.10 dependency/compilation issues
Author: earthmeLon
Created: 2011-10-19 18:41:46+00:00
State: open

Having trouble getting this to install on 11.10 x64

>> [melon@Odin] ~/src$ ./glc-build.shinfo : Welcome to glc install script!
>> Enter path where glc will be installed.
>> (leave blank to install to root directory)
>> >
>> Enter compiler optimizations.
>> (-O2 -msse -mmmx -fomit-frame-pointer)
>> >
>> Use git (y/n)
>> (git contains latest unstable development version)
>> > y
>> Already up-to-date.
>> Already up-to-date.
>> Already up-to-date.
>> Already up-to-date.
>> info : Building elfhacks...
>> CMake Warning:
>> Manually-specified variables were not used by the project:
>>
>> CMAKE_C_FLAGS_RELEASE_RELEASE
>>
>>
>> info : Building packetstream...
>> info : Building glc...
>> CMake Warning (dev) at src/CMakeLists.txt:28 (ADD_EXECUTABLE):
>> Policy CMP0003 should be set before this line. Add code such as
>>
>> if(COMMAND cmake_policy)
>> cmake_policy(SET CMP0003 NEW)
>> endif(COMMAND cmake_policy)
>>
>> as early as possible but after the most recent call to
>> cmake_minimum_required or cmake_policy(VERSION). This warning appears
>> because target "play" links to some libraries for which the linker must
>> search:
>>
>> GL, asound, X11, m, png
>>
>> and other libraries with known full path:
>>
>> /home/melon/src/packetstream/build/src/libpacketstream.so
>>
>> CMake is adding directories in the second list to the linker search path in
>> case they are needed to find libraries from the first list (for backwards
>> compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to enable
>> or disable this behavior explicitly. Run "cmake --help-policy CMP0003" for
>> more information.
>> This warning is for project developers. Use -Wno-dev to suppress it.
>>
>> CMake Warning (dev) at src/glc/CMakeLists.txt:84 (ADD_LIBRARY):
>> Policy CMP0003 should be set before this line. Add code such as
>>
>> if(COMMAND cmake_policy)
>> cmake_policy(SET CMP0003 NEW)
>> endif(COMMAND cmake_policy)
>>
>> as early as possible but after the most recent call to
>> cmake_minimum_required or cmake_policy(VERSION). This warning appears
>> because target "glc-capture" links to some libraries for which the linker
>> must search:
>>
>> GL, dl, asound, X11, Xxf86vm, m
>>
>> and other libraries with known full path:
>>
>> /home/melon/src/packetstream/build32/src/libpacketstream.so
>>
>> CMake is adding directories in the second list to the linker search path in
>> case they are needed to find libraries from the first list (for backwards
>> compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to enable
>> or disable this behavior explicitly. Run "cmake --help-policy CMP0003" for
>> more information.
>> Call Stack (most recent call first):
>> src/glc/CMakeLists.txt:121 (ADD_GLC_LIBRARY)
>> This warning is for project developers. Use -Wno-dev to suppress it.
>>
>> /usr/bin/ld: cannot find -lGL
>> /usr/bin/ld: cannot find -lasound
>> /usr/bin/ld: cannot find -lX11
>> /usr/bin/ld: cannot find -lXxf86vm
>> collect2: ld returned 1 exit status
>> make[2]: *** [src/glc/libglc-capture.so.0.5.8] Error 1
>> make[1]: *** [src/glc/CMakeFiles/glc-capture.dir/all] Error 2
>> make: *** [all] Error 2
>> error : Can't compile 32-bit glc

I have made symbolic links, like the wiki suggests.
I know I have libasound-dev (libasound2-dev) and xf86vm installed. Just a bit confused:

$ sudo apt-get install libXxf86vm-dev libasound2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libasound2-dev is already the newest version.
libxxf86vm-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

gcc-multilib is already the newest version.
build-essential is already the newest version.
cmake is already the newest version.
libasound2-dev is already the newest version.
libgl1-mesa-dev is already the newest version.
libpng12-dev is already the newest version.
libx11-dev is already the newest version.
libxxf86vm-dev is already the newest version.