Building the dependencies has worked fine. I get both the static and dynamic libraries.
When building Cegui itself I can build it error free when building dynamic libraries. But when building static libraries I run into problems.
I am using MinGW 4.8.1 in Windows XP (Win32).
When creating a makefile with cmake I first amended the CmakeLists.txt file so that the following line reads this.
This is on line 128. I amended the option to TRUE.
Code: Select all
option( CEGUI_BUILD_STATIC_CONFIGURATION "Specifies whether the static configs will be built. (NB: Shared configs are always built)" [b]TRUE[/b])
The majority of the build goes well. I get to 82% built (where both static and dynamic libraries are built) and the following error occurs. Seems to have something to do with lua.
I'm not sure how to go about fixing this. Any clues? Thanks
Code: Select all
[ 82%] Building C object cegui/src/ScriptModules/Lua/support/tolua++bin/CMakeFiles/toluappcegui-0.8_Static.dir/tolua.c.obj
Linking C executable ..\..\..\..\..\..\bin\toluappcegui-0.8_Static.exe
CMakeFiles\toluappcegui-0.8_Static.dir/objects.a(toluabind.c.obj):toluabind.c:(.text+0xf): undefined reference to `_imp__tolua_open'
CMakeFiles\toluappcegui-0.8_Static.dir/objects.a(toluabind.c.obj):toluabind.c:(.text+0x28): undefined reference to `_imp__tolua_module'
CMakeFiles\toluappcegui-0.8_Static.dir/objects.a(toluabind.c.obj):toluabind.c:(.text+0x39): undefined reference to `_imp__tolua_beginmodule'
CMakeFiles\toluappcegui-0.8_Static.dir/objects.a(toluabind.c.obj):toluabind.c:(.text+0x47): undefined reference to `_imp__tolua_dobuffer'
CMakeFiles\toluappcegui-0.8_Static.dir/objects.a(toluabind.c.obj):toluabind.c:(.text+0x4aa): undefined reference to `_imp__tolua_endmodule'
collect2.exe: error: ld returned 1 exit status
cegui\src\ScriptModules\Lua\support\tolua++bin\CMakeFiles\toluappcegui-0.8_Static.dir\build.make:117: recipe for target 'bin/toluappcegui-0.8_Static.exe' failed
mingw32-make[2]: *** [bin/toluappcegui-0.8_Static.exe] Error 1
CMakeFiles\Makefile2:717: recipe for target 'cegui/src/ScriptModules/Lua/support/tolua++bin/CMakeFiles/toluappcegui-0.8_Static.dir/all' failed
mingw32-make[1]: *** [cegui/src/ScriptModules/Lua/support/tolua++bin/CMakeFiles/toluappcegui-0.8_Static.dir/all] Error 2
Makefile:125: recipe for target 'all' failed
mingw32-make: *** [all] Error 2