Linux: unitsync/CMakeLists.txt additional GLEW library

Linux: unitsync/CMakeLists.txt additional GLEW library

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
osymandias
Posts: 10
Joined: 29 Sep 2008, 13:12

Linux: unitsync/CMakeLists.txt additional GLEW library

Post 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)
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

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

Post 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.
osymandias
Posts: 10
Joined: 29 Sep 2008, 13:12

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

Post by osymandias »

Thanks! Now there's rapid response... :-)
Post Reply

Return to “Help & Bugs”