Page 1 of 1

Linux: unitsync/CMakeLists.txt additional GLEW library

Posted: 29 Sep 2008, 13:17
by osymandias
For compling from source on Linux x86_64 (not sure if this applies on other systems) using CMake, it appears that the util library must be specified in unitsync/CMakeLists.txt to build a working libunitsync.so (otherwise get an undefined symbol: forkpty error):

Code: Select all

--- src/spring/tools/unitsync/CMakeLists.txt    2008-09-27 17:43:38.000000000 +0100
+++ src/spring/tools/unitsync/CMakeLists1.txt   2008-09-27 17:43:27.000000000 +0100
@@ -12,7 +12,7 @@

        FIND_PACKAGE(GLEW REQUIRED)

-       set (unitsync_libs ${GLEW_LIBRARIES} IL openal GL GLU)
+       set (unitsync_libs ${GLEW_LIBRARIES} IL openal GL GLU util)

        FIND_PACKAGE(PythonLibs)
        if (PYTHONLIBS_FOUND)

Re: Linux: unitsync/CMakeLists.txt additional GLEW library

Posted: 29 Sep 2008, 13:45
by Auswaschbar
osymandias wrote:For compling from source on Linux x86_64 (not sure if this applies on other systems) using CMake, it appears that the util library must be specified in unitsync/CMakeLists.txt to build a working libunitsync.so (otherwise get an undefined symbol: forkpty error):

Code: Select all

--- src/spring/tools/unitsync/CMakeLists.txt    2008-09-27 17:43:38.000000000 +0100
+++ src/spring/tools/unitsync/CMakeLists1.txt   2008-09-27 17:43:27.000000000 +0100
@@ -12,7 +12,7 @@

        FIND_PACKAGE(GLEW REQUIRED)

-       set (unitsync_libs ${GLEW_LIBRARIES} IL openal GL GLU)
+       set (unitsync_libs ${GLEW_LIBRARIES} IL openal GL GLU util)

        FIND_PACKAGE(PythonLibs)
        if (PYTHONLIBS_FOUND)
Fixed.

Re: Linux: unitsync/CMakeLists.txt additional GLEW library

Posted: 29 Sep 2008, 13:51
by osymandias
Thanks! Now there's rapid response... :-)