Roadmap for 0.4.9

Re: Roadmap for 0.4.9

Postby svenskmand » 25 Jun 2012, 09:41

Ubuntu 12.04 is done, I will make the windows build when I have time. I am writing on a paper right now.
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: Roadmap for 0.4.9

Postby svenskmand » 25 Jun 2012, 18:47

Oln: could you help me here. I have made a toolchain file for cross-compiling windows binaries on linux, this is the toolchain file I have:
{l Code}: {l Select All Code}
# this one is important
SET(CMAKE_SYSTEM_NAME Windows)
#this one not so much
SET(CMAKE_SYSTEM_VERSION 1)

# specify the cross compiler
SET(CMAKE_C_COMPILER   /usr/bin/i686-w64-mingw32-gcc)
SET(CMAKE_CXX_COMPILER /usr/bin/i686-w64-mingw32-g++)
SET(CMAKE_RC_COMPILER  /usr/bin/i686-w64-mingw32-g++)

SET(CEGUI_LIBRARY      /home/ckr/Desktop/CEGUI/lib)
SET(CEGUIOGRE_LIBRARY  /home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/lib)
SET(OPENAL_LIBRARY     /home/ckr/Desktop/SFML-1.6/lib)

# where is the target environment
SET(CMAKE_FIND_ROOT_PATH  /home/ckr/Desktop/OgreSDK_MinGW_v1-8-0 /home/ckr/Desktop/SFML-1.6 /home/ckr/Desktop/CEGUI)

# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH)

I have downloaded Ogre, Cegui and Sfml to my desktop. I then run cmake with the following commands
{l Code}: {l Select All Code}
cd opendungeons*
cmake -DCMAKE_TOOLCHAIN_FILE="/home/ckr/Desktop/Toolchain.cmake" .

I successfully generates make file, but when I run make I get the following error related to AngleScript :S
{l Code}: {l Select All Code}
ckr@ckr-laptop:~/Desktop/opendungeons-0.4.9$ make
[  0%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_atomic.cpp.obj
In file included from /usr/include/assert.h:37:0,
                 from /home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/angelscript/source/as_config.h:955,
                 from /home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/angelscript/source/as_atomic.h:45,
                 from /home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/angelscript/source/as_atomic.cpp:37:
/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_atomic.cpp.obj] Error 1
make[1]: *** [CMakeFiles/OpenDungeons.dir/all] Error 2
make: *** [all] Error 2

What is wrong?
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: Roadmap for 0.4.9

Postby oln » 25 Jun 2012, 19:58

From what I can find (didn't find anything about mingw, only cross-compiling 32-bit on 64-bit), you might need to install the package libc6-dev-i386. (And possibly gcc-multilib).
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: Roadmap for 0.4.9

Postby svenskmand » 25 Jun 2012, 21:28

Hmmm did not help :S When I run cmake I get the following Warnings, I am not sure if they are relevant to the problem though:
{l Code}: {l Select All Code}
ckr@ckr-laptop:~/Desktop$ ./CrossCompile.sh
-- CMake build type is not set, defaulting to 'Release'
-- Looking for OIS...
-- Found OIS: optimized;/usr/lib/libOIS.a;debug;/usr/lib/libOIS.a
-- Looking for OGRE...
-- Found Ogre Cthugha (1.7.4)
-- Found OGRE: optimized;/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/bin/release/OgreMain.dll;debug;/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/bin/debug/OgreMain_d.dll
-- Looking for OGRE_Paging...
-- Found OGRE_Paging: optimized;/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/bin/release/OgrePaging.dll;debug;/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/bin/debug/OgrePaging_d.dll
-- Looking for OGRE_Terrain...
-- Found OGRE_Terrain: optimized;/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/bin/release/OgreTerrain.dll;debug;/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/bin/debug/OgreTerrain_d.dll
-- Looking for OGRE_Property...
-- Found OGRE_Property: optimized;/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/bin/release/OgreProperty.dll;debug;/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/bin/debug/OgreProperty_d.dll
-- Looking for OGRE_RTShaderSystem...
-- Found OGRE_RTShaderSystem: optimized;/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/bin/release/OgreRTShaderSystem.dll;debug;/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/bin/debug/OgreRTShaderSystem_d.dll
-- looking for headers
-- /home/ckr/Desktop/CEGUI/lib/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/lib
-- Configuring done
WARNING: Target "OpenDungeons" requests linking to directory "/home/ckr/Desktop/SFML-1.6/lib".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "OpenDungeons" requests linking to directory "/home/ckr/Desktop/CEGUI/lib".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "OpenDungeons" requests linking to directory "/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/lib".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "OpenDungeons" requests linking to directory "/home/ckr/Desktop/SFML-1.6/lib".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "OpenDungeons" requests linking to directory "/home/ckr/Desktop/CEGUI/lib".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "OpenDungeons" requests linking to directory "/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/lib".  Targets may link only to libraries.  CMake is dropping the item.
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_TOOLCHAIN_FILE


-- Build files have been written to: /home/ckr/Desktop/opendungeons-0.4.9
ckr@ckr-laptop:~/Desktop$ clear

ckr@ckr-laptop:~/Desktop$ ./CrossCompile.sh
-- CMake build type is not set, defaulting to 'Release'
-- Looking for OIS...
-- Found OIS: optimized;/usr/lib/libOIS.a;debug;/usr/lib/libOIS.a
-- Looking for OGRE...
-- Found Ogre Cthugha (1.7.4)
-- Found OGRE: optimized;/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/bin/release/OgreMain.dll;debug;/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/bin/debug/OgreMain_d.dll
-- Looking for OGRE_Paging...
-- Found OGRE_Paging: optimized;/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/bin/release/OgrePaging.dll;debug;/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/bin/debug/OgrePaging_d.dll
-- Looking for OGRE_Terrain...
-- Found OGRE_Terrain: optimized;/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/bin/release/OgreTerrain.dll;debug;/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/bin/debug/OgreTerrain_d.dll
-- Looking for OGRE_Property...
-- Found OGRE_Property: optimized;/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/bin/release/OgreProperty.dll;debug;/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/bin/debug/OgreProperty_d.dll
-- Looking for OGRE_RTShaderSystem...
-- Found OGRE_RTShaderSystem: optimized;/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/bin/release/OgreRTShaderSystem.dll;debug;/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/bin/debug/OgreRTShaderSystem_d.dll
-- looking for headers
-- /home/ckr/Desktop/CEGUI/lib/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/lib
-- Configuring done
WARNING: Target "OpenDungeons" requests linking to directory "/home/ckr/Desktop/SFML-1.6/lib".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "OpenDungeons" requests linking to directory "/home/ckr/Desktop/CEGUI/lib".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "OpenDungeons" requests linking to directory "/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/lib".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "OpenDungeons" requests linking to directory "/home/ckr/Desktop/SFML-1.6/lib".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "OpenDungeons" requests linking to directory "/home/ckr/Desktop/CEGUI/lib".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "OpenDungeons" requests linking to directory "/home/ckr/Desktop/OgreSDK_MinGW_v1-8-0/lib".  Targets may link only to libraries.  CMake is dropping the item.
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_TOOLCHAIN_FILE


-- Build files have been written to: /home/ckr/Desktop/opendungeons-0.4.9

Ahhh wait, now it seems I get a new error
{l Code}: {l Select All Code}
ckr@ckr-laptop:~/Desktop/opendungeons-0.4.9$ make
[  0%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_atomic.cpp.obj
In file included from /usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/windows.h:101:0,
                 from /home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/angelscript/source/as_criticalsection.h:90,
                 from /home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/angelscript/source/as_memory.h:76,
                 from /home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/angelscript/source/as_config.h:991,
                 from /home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/angelscript/source/as_atomic.h:45,
                 from /home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/angelscript/source/as_atomic.cpp:37:
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/stralign.h: In function ‘WCHAR* ua_wcscpy(PUWSTR, PCUWSTR)’:
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/stralign.h:30:102: error: ‘wcscpy’ was not declared in this scope
make[2]: *** [CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_atomic.cpp.obj] Error 1
make[1]: *** [CMakeFiles/OpenDungeons.dir/all] Error 2
make: *** [all] Error 2
ckr@ckr-laptop:~/Desktop/opendungeons-0.4.9$
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: Roadmap for 0.4.9

Postby oln » 25 Jun 2012, 22:05

Only thing I found was this: http://us.generation-nt.com/answer/bug-666098-usr-bin-i686-w64-mingw32-g-plus-plus-includes-time-h-system-help-206934262.html?page=2. Seems it might be a bug in cmake, I don't know. Seems like there is something wrong with the linking paths as well, have you set the cmake paths manually? If so, check that they are pointing right.

Also, you need Ogre 1.7.x, 1.8 won't work yet since there is a name change, which hasn't been fixed in the code yet.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: Roadmap for 0.4.9

Postby svenskmand » 25 Jun 2012, 23:44

I set the paths manually yes, they are set in the toolchain file. I will try and download Ogre 1.7.x instead then. But the error is from AngleScript and not Ogre :S
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: Roadmap for 0.4.9

Postby svenskmand » 26 Jun 2012, 00:01

I changed to Ogre 1.7.2 and change the variables CMAKE_FIND_ROOT_PATH_MODE_LIBRARY and CMAKE_FIND_ROOT_PATH_MODE_INCLUDE to ONLY and it now compiles up to 43 % :D

EDIT: the variable change did not do the trick, it was the change to Ogre 1.7.2 that made it this far.

I now get this error:
{l Code}: {l Select All Code}
ckr@ckr-laptop:~/Desktop/opendungeons-0.4.9$ make
Scanning dependencies of target OpenDungeons
[  0%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_atomic.cpp.obj
[  1%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_builder.cpp.obj
[  2%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_bytecode.cpp.obj
[  3%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_callfunc.cpp.obj
[  4%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_callfunc_arm.cpp.obj
[  5%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_callfunc_mips.cpp.obj
[  5%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_callfunc_ppc.cpp.obj
[  6%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_callfunc_ppc_64.cpp.obj
[  7%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_callfunc_sh4.cpp.obj
[  8%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_callfunc_x64_gcc.cpp.obj
[  9%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_callfunc_x64_msvc.cpp.obj
[ 10%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_callfunc_x64_mingw.cpp.obj
[ 10%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_callfunc_x86.cpp.obj
[ 11%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_callfunc_xenon.cpp.obj
[ 12%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_compiler.cpp.obj
[ 13%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_configgroup.cpp.obj
[ 14%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_context.cpp.obj
[ 15%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_datatype.cpp.obj
[ 15%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_gc.cpp.obj
[ 16%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_generic.cpp.obj
[ 17%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_globalproperty.cpp.obj
[ 18%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_memory.cpp.obj
[ 19%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_module.cpp.obj
[ 20%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_objecttype.cpp.obj
[ 21%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_outputbuffer.cpp.obj
[ 21%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_parser.cpp.obj
[ 22%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_restore.cpp.obj
[ 23%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_scriptcode.cpp.obj
[ 24%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_scriptengine.cpp.obj
[ 25%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_scriptfunction.cpp.obj
[ 26%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_scriptnode.cpp.obj
[ 26%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_scriptobject.cpp.obj
[ 27%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_string.cpp.obj
[ 28%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_string_util.cpp.obj
[ 29%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_thread.cpp.obj
[ 30%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_tokenizer.cpp.obj
[ 31%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_typeinfo.cpp.obj
[ 31%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/angelscript/source/as_variablescope.cpp.obj
[ 32%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/add_on/scriptarray/scriptarray.cpp.obj
[ 33%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/add_on/scriptbuilder/scriptbuilder.cpp.obj
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scriptbuilder/scriptbuilder.cpp: In member function ‘int CScriptBuilder::ExcludeCode(int)’:
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scriptbuilder/scriptbuilder.cpp:585:17: warning: variable ‘t’ set but not used [-Wunused-but-set-variable]
[ 34%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/add_on/scripthelper/scripthelper.cpp.obj
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scripthelper/scripthelper.cpp: In function ‘int WriteConfigToFile(asIScriptEngine*, const char*)’:
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scripthelper/scripthelper.cpp:194:40: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 3 has type ‘asDWORD {aka long unsigned int}’ [-Wformat]
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scripthelper/scripthelper.cpp:222:40: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 3 has type ‘asDWORD {aka long unsigned int}’ [-Wformat]
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scripthelper/scripthelper.cpp:261:40: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 3 has type ‘asDWORD {aka long unsigned int}’ [-Wformat]
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scripthelper/scripthelper.cpp:280:40: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 3 has type ‘asDWORD {aka long unsigned int}’ [-Wformat]
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scripthelper/scripthelper.cpp:308:42: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 3 has type ‘asDWORD {aka long unsigned int}’ [-Wformat]
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scripthelper/scripthelper.cpp:323:42: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 3 has type ‘asDWORD {aka long unsigned int}’ [-Wformat]
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scripthelper/scripthelper.cpp:340:42: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 3 has type ‘asDWORD {aka long unsigned int}’ [-Wformat]
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scripthelper/scripthelper.cpp:351:42: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 3 has type ‘asDWORD {aka long unsigned int}’ [-Wformat]
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scripthelper/scripthelper.cpp:375:40: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 3 has type ‘asDWORD {aka long unsigned int}’ [-Wformat]
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scripthelper/scripthelper.cpp:395:40: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 3 has type ‘asDWORD {aka long unsigned int}’ [-Wformat]
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scripthelper/scripthelper.cpp: In function ‘void PrintException(asIScriptContext*, bool)’:
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scripthelper/scripthelper.cpp:430:19: warning: unused variable ‘engine’ [-Wunused-variable]
[ 35%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/angelscript/add_on/scriptstdstring/scriptstdstring.cpp.obj
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scriptstdstring/scriptstdstring.cpp: In function ‘std::string formatInt(asINT64, const string&, asUINT)’:
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scriptstdstring/scriptstdstring.cpp:239:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scriptstdstring/scriptstdstring.cpp:240:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scriptstdstring/scriptstdstring.cpp:241:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scriptstdstring/scriptstdstring.cpp:242:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scriptstdstring/scriptstdstring.cpp:243:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scriptstdstring/scriptstdstring.cpp:244:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scriptstdstring/scriptstdstring.cpp: In function ‘std::string formatFloat(double, const string&, asUINT, asUINT)’:
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scriptstdstring/scriptstdstring.cpp:282:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scriptstdstring/scriptstdstring.cpp:283:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scriptstdstring/scriptstdstring.cpp:284:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scriptstdstring/scriptstdstring.cpp:285:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scriptstdstring/scriptstdstring.cpp:286:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scriptstdstring/scriptstdstring.cpp:287:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scriptstdstring/scriptstdstring.cpp: In function ‘asINT64 parseInt(const string&, asUINT, asUINT*)’:
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scriptstdstring/scriptstdstring.cpp:331:9: warning: value computed is not used [-Wunused-value]
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/angelscript/add_on/scriptstdstring/scriptstdstring.cpp:334:9: warning: value computed is not used [-Wunused-value]
[ 36%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/tinygettext/dictionary_manager.cpp.obj
In file included from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/detail/thread_heap_alloc.hpp:15:0,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/tss.hpp:10,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/Threading/OgreThreadHeadersBoost.h:29,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/Threading/OgreThreadHeaders.h:30,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/OgreStdHeaders.h:110,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/OgrePrerequisites.h:315,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/Ogre.h:31,
                 from /home/ckr/Desktop/opendungeons-0.4.9/source/ResourceManager.h:13,
                 from /home/ckr/Desktop/opendungeons-0.4.9/dependencies/tinygettext/dictionary_manager.cpp:19:
/home/ckr/Desktop/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/win32/thread_heap_alloc.hpp:59:40: warning: inline function ‘void* boost::detail::allocate_raw_heap_memory(unsigned int)’ declared as  dllimport: attribute ignored [-Wattributes]
/home/ckr/Desktop/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/win32/thread_heap_alloc.hpp:69:39: warning: inline function ‘void boost::detail::free_raw_heap_memory(void*)’ declared as  dllimport: attribute ignored [-Wattributes]
[ 36%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/tinygettext/dictionary.cpp.obj
[ 37%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/tinygettext/language.cpp.obj
[ 38%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/tinygettext/plural_forms.cpp.obj
[ 39%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/tinygettext/po_parser.cpp.obj
In file included from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/detail/thread_heap_alloc.hpp:15:0,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/tss.hpp:10,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/Threading/OgreThreadHeadersBoost.h:29,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/Threading/OgreThreadHeaders.h:30,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/OgreStdHeaders.h:110,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/OgrePrerequisites.h:315,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/OgreSingleton.h:41,
                 from /home/ckr/Desktop/opendungeons-0.4.9/source/LogManager.h:25,
                 from /home/ckr/Desktop/opendungeons-0.4.9/dependencies/tinygettext/po_parser.cpp:21:
/home/ckr/Desktop/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/win32/thread_heap_alloc.hpp:59:40: warning: inline function ‘void* boost::detail::allocate_raw_heap_memory(unsigned int)’ declared as  dllimport: attribute ignored [-Wattributes]
/home/ckr/Desktop/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/win32/thread_heap_alloc.hpp:69:39: warning: inline function ‘void boost::detail::free_raw_heap_memory(void*)’ declared as  dllimport: attribute ignored [-Wattributes]
[ 40%] Building CXX object CMakeFiles/OpenDungeons.dir/dependencies/tinygettext/tinygettext.cpp.obj
[ 41%] Building CXX object CMakeFiles/OpenDungeons.dir/source/AbstractApplicationMode.cpp.obj
[ 42%] Building CXX object CMakeFiles/OpenDungeons.dir/source/AIFactory.cpp.obj
In file included from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/detail/thread_heap_alloc.hpp:15:0,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/tss.hpp:10,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/Threading/OgreThreadHeadersBoost.h:29,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/Threading/OgreThreadHeaders.h:30,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/OgreStdHeaders.h:110,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/OgrePrerequisites.h:315,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/OgreSharedPtr.h:31,
                 from /home/ckr/Desktop/opendungeons-0.4.9/source/BaseAI.h:23,
                 from /home/ckr/Desktop/opendungeons-0.4.9/source/AIFactory.h:8,
                 from /home/ckr/Desktop/opendungeons-0.4.9/source/AIFactory.cpp:1:
/home/ckr/Desktop/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/win32/thread_heap_alloc.hpp:59:40: warning: inline function ‘void* boost::detail::allocate_raw_heap_memory(unsigned int)’ declared as  dllimport: attribute ignored [-Wattributes]
/home/ckr/Desktop/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/win32/thread_heap_alloc.hpp:69:39: warning: inline function ‘void boost::detail::free_raw_heap_memory(void*)’ declared as  dllimport: attribute ignored [-Wattributes]
[ 42%] Building CXX object CMakeFiles/OpenDungeons.dir/source/AIManager.cpp.obj
In file included from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/detail/thread_heap_alloc.hpp:15:0,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/tss.hpp:10,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/Threading/OgreThreadHeadersBoost.h:29,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/Threading/OgreThreadHeaders.h:30,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/OgreStdHeaders.h:110,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/OgrePrerequisites.h:315,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/OgreSharedPtr.h:31,
                 from /home/ckr/Desktop/opendungeons-0.4.9/source/BaseAI.h:23,
                 from /home/ckr/Desktop/opendungeons-0.4.9/source/AIFactory.h:8,
                 from /home/ckr/Desktop/opendungeons-0.4.9/source/NullAI.h:23,
                 from /home/ckr/Desktop/opendungeons-0.4.9/source/AIManager.cpp:20:
/home/ckr/Desktop/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/win32/thread_heap_alloc.hpp:59:40: warning: inline function ‘void* boost::detail::allocate_raw_heap_memory(unsigned int)’ declared as  dllimport: attribute ignored [-Wattributes]
/home/ckr/Desktop/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/win32/thread_heap_alloc.hpp:69:39: warning: inline function ‘void boost::detail::free_raw_heap_memory(void*)’ declared as  dllimport: attribute ignored [-Wattributes]
[ 43%] Building CXX object CMakeFiles/OpenDungeons.dir/source/AIWrapper.cpp.obj
In file included from /home/ckr/Desktop/opendungeons-0.4.9/source/GameEntity.h:15:0,
                 from /home/ckr/Desktop/opendungeons-0.4.9/source/Building.h:11,
                 from /home/ckr/Desktop/opendungeons-0.4.9/source/Room.h:9,
                 from /home/ckr/Desktop/opendungeons-0.4.9/source/AIWrapper.h:25,
                 from /home/ckr/Desktop/opendungeons-0.4.9/source/AIWrapper.cpp:20:
/home/ckr/Desktop/opendungeons-0.4.9/dependencies/pthreads/include/semaphore.h:149:8: error: ‘mode_t’ has not been declared
In file included from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/detail/thread_heap_alloc.hpp:15:0,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/tss.hpp:10,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/Threading/OgreThreadHeadersBoost.h:29,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/Threading/OgreThreadHeaders.h:30,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/OgreStdHeaders.h:110,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/OgrePrerequisites.h:315,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/Ogre.h:31,
                 from /home/ckr/Desktop/opendungeons-0.4.9/source/GameEntity.h:16,
                 from /home/ckr/Desktop/opendungeons-0.4.9/source/Building.h:11,
                 from /home/ckr/Desktop/opendungeons-0.4.9/source/Room.h:9,
                 from /home/ckr/Desktop/opendungeons-0.4.9/source/AIWrapper.h:25,
                 from /home/ckr/Desktop/opendungeons-0.4.9/source/AIWrapper.cpp:20:
/home/ckr/Desktop/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/win32/thread_heap_alloc.hpp:59:40: warning: inline function ‘void* boost::detail::allocate_raw_heap_memory(unsigned int)’ declared as  dllimport: attribute ignored [-Wattributes]
/home/ckr/Desktop/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/win32/thread_heap_alloc.hpp:69:39: warning: inline function ‘void boost::detail::free_raw_heap_memory(void*)’ declared as  dllimport: attribute ignored [-Wattributes]
make[2]: *** [CMakeFiles/OpenDungeons.dir/source/AIWrapper.cpp.obj] Error 1
make[1]: *** [CMakeFiles/OpenDungeons.dir/all] Error 2
make: *** [all] Error 2
ckr@ckr-laptop:~/Desktop/opendungeons-0.4.9$
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: Roadmap for 0.4.9

Postby oln » 26 Jun 2012, 06:38

We've had that one earlier, attempted to fix it, try latest git.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: Roadmap for 0.4.9

Postby svenskmand » 26 Jun 2012, 10:22

Ok did that now I am at 44 % and got this error:
{l Code}: {l Select All Code}
[ 43%] Building CXX object CMakeFiles/OpenDungeons.dir/source/AIWrapper.cpp.obj
In file included from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/detail/thread_heap_alloc.hpp:15:0,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/tss.hpp:10,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/Threading/OgreThreadHeadersBoost.h:29,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/Threading/OgreThreadHeaders.h:30,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/OgreStdHeaders.h:110,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/OgrePrerequisites.h:315,
                 from /home/ckr/Desktop/OgreSDK_mingw_v1-7-2/include/OGRE/Ogre.h:31,
                 from /home/ckr/Desktop/opendungeons-0.4.9/source/GameEntity.h:22,
                 from /home/ckr/Desktop/opendungeons-0.4.9/source/Building.h:11,
                 from /home/ckr/Desktop/opendungeons-0.4.9/source/Room.h:9,
                 from /home/ckr/Desktop/opendungeons-0.4.9/source/AIWrapper.h:25,
                 from /home/ckr/Desktop/opendungeons-0.4.9/source/AIWrapper.cpp:20:
/home/ckr/Desktop/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/win32/thread_heap_alloc.hpp:59:40: warning: inline function ‘void* boost::detail::allocate_raw_heap_memory(unsigned int)’ declared as  dllimport: attribute ignored [-Wattributes]
/home/ckr/Desktop/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/win32/thread_heap_alloc.hpp:69:39: warning: inline function ‘void boost::detail::free_raw_heap_memory(void*)’ declared as  dllimport: attribute ignored [-Wattributes]
[ 44%] Building CXX object CMakeFiles/OpenDungeons.dir/source/ASWrapper.cpp.obj
In file included from /home/ckr/Desktop/opendungeons-0.4.9/source/Console.h:18:0,
                 from /home/ckr/Desktop/opendungeons-0.4.9/source/ASWrapper.cpp:28:
/home/ckr/Desktop/opendungeons-0.4.9/source/Gui.h:15:19: fatal error: CEGUI.h: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/OpenDungeons.dir/source/ASWrapper.cpp.obj] Error 1
make[1]: *** [CMakeFiles/OpenDungeons.dir/all] Error 2
make: *** [all] Error 2
ckr@ckr-laptop:~/Desktop/opendungeons-0.4.9$


Edit: I cannot find the file Cegui.h anywhere in the CEGUI I downloaded, it is the one called "CEGUI 0.7.7 Binary Dependency Downloads for MinGW (Experimental / Unsupported)" I need right?
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: Roadmap for 0.4.9

Postby paul424 » 27 Jun 2012, 18:10

Could you tag current branch tiles2 as 0.4.9.1 and do the builds as well ?
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Re: Roadmap for 0.4.9

Postby oln » 27 Jun 2012, 19:20

svenskmand {l Wrote}:Ok did that now I am at 44 % and got this error:
Edit: I cannot find the file Cegui.h anywhere in the CEGUI I downloaded, it is the one called "CEGUI 0.7.7 Binary Dependency Downloads for MinGW (Experimental / Unsupported)" I need right?

That's the libraries needed for building CEGUI. I couldn't find any prebuild CEGUI binaries on the site, so you might have to build it yourself.

Could you tag current branch tiles2 as 0.4.9.1 and do the builds as well ?

Not untill we have merged the branches.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: Roadmap for 0.4.9

Postby StefanP.MUC » 13 Jul 2012, 21:16

Just compiled the game again after a long time with latest git and svn. :D The music is great, and music switching also works. Minimap could look better but nice to see it work at all.

As you might have noticed I was rather inactive the last time, this is because I have a lot of real ife things to do... But I will take care of some easy tasks like code cleanup/fixing (Cppcheck warnings and so on) and testing.

And Tomasz, thanks for your great work, but it would even be nicer if you'd care a bit more about our coding guidelines (can be found in our wiki). ;) I just cleaned up some of your code. There were a lot of unused variables, indentation and spacing mess, postfix in/decrements (we use prefix), and some really strange things (an unused "int foobar = 35 + 42" at some random place, what? :D)

Oh, and by the way, Ogre 1.8 is finally out. Should be switch to it for the next release?
StefanP.MUC
 

Re: Roadmap for 0.4.9

Postby oln » 13 Jul 2012, 22:55

Ah, nice to hear that you are back.

1.8 will be default in new distro releases, so we should try to support it. It doesn' t need a huge code change, mostly just changing the name of the singleton variable in the singleton class. There was a guy that made a [url="https://github.com/Asmageddon/opendungeons/commit/0dba32092fc668931d52f439025a5fd43f269804"]patch, though he used the master branch, so it's a bit problematic to merge directly. Though it should be quite simple to add the changes to the dev branch.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: Roadmap for 0.4.9

Postby paul424 » 13 Jul 2012, 23:12

Haven't you ever used some dummy construct like "int foobar = 35 + 42" ? This is to have some certain line to put debugger's breakline ;)
What regards code intending I posted a problem , and asked for some one script or command of which we could apply before git commiting.
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Re: Roadmap for 0.4.9

Postby svenskmand » 14 Jul 2012, 08:05

StefanP.MUC {l Wrote}:Just compiled the game again after a long time with latest git and svn. :D The music is great, and music switching also works. Minimap could look better but nice to see it work at all.

On Windows or Linux? If you did it on Windows, then which libraries did you download and use? Links please :) I am trying to set up a cross-compile script so I can avoid Windows entirely when building packages and installers, but I am having troubles with dependencies :S
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: Roadmap for 0.4.9

Postby StefanP.MUC » 14 Jul 2012, 12:08

StefanP.MUC
 

Re: Roadmap for 0.4.9

Postby paul424 » 14 Jul 2012, 19:05

StefanP.MUC, could you make branch development compilable again :D ?
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Re: Roadmap for 0.4.9

Postby svenskmand » 14 Jul 2012, 19:45

Any Cmake experts that can help me deduce what this error is caused by and how to solve it? I am cross-compiling windows binaries in Ubuntu, or at least trying too :S
{l Code}: {l Select All Code}
-- checking for module 'OIS'
--   found OIS, version 1.3.0
-- Could not locate OIS
CMake Error at cmake/modules/FindPkgMacros.cmake:117 (message):
  Required library OIS not found! Install the library (including dev
  packages) and try again.  If the library is already installed, set the
  missing variables manually in cmake.
Call Stack (most recent call first):
  cmake/modules/FindOIS.cmake:91 (findpkg_finish)
  CMakeLists.txt:187 (find_package)


-- Configuring incomplete, errors occurred!

It says it found OIS, but then it says that it could not locate OIS, which is it and how do I fix it? :S

I use this toolchain file
{l Code}: {l Select All Code}
# this one is important
SET(CMAKE_SYSTEM_NAME Windows)
#this one not so much
SET(CMAKE_SYSTEM_VERSION 1)

# specify the cross compiler
SET(CMAKE_C_COMPILER   /usr/bin/i686-w64-mingw32-gcc)
SET(CMAKE_CXX_COMPILER /usr/bin/i686-w64-mingw32-g++)
SET(CMAKE_RC_COMPILER  /usr/bin/i686-w64-mingw32-g++)

SET(BOOST_ROOT         $CROSS_DIR/OgreSDK_mingw_v1-7-2/boost)
SET(CEGUIOGRE_LIBRARY  $CROSS_DIR/OgreSDK_mingw_v1-7-2/lib)
SET(CEGUI_LIBRARY      $CROSS_DIR/CEGUI/lib)
SET(CEGUI_INCLUDE_DIR  $CROSS_DIR/CEGUI/include)
SET(OPENAL_LIBRARY     $CROSS_DIR/SFML-1.6/lib)

# where is the target environment
SET(CMAKE_FIND_ROOT_PATH  $CROSS_DIR/OgreSDK_mingw_v1-7-2 $CROSS_DIR/SFML-1.6 $CROSS_DIR/CEGUI)

# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: Roadmap for 0.4.9

Postby svenskmand » 14 Jul 2012, 20:07

No matter I found the problem. I used variables in Cmake wrongly :S
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: Roadmap for 0.4.9

Postby svenskmand » 14 Jul 2012, 20:14

Ok I got a new error now, related to compilation :S
{l Code}: {l Select All Code}
[ 44%] Building CXX object CMakeFiles/OpenDungeons.dir/source/ASWrapper.cpp.obj
In file included from /home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/detail/thread_heap_alloc.hpp:15:0,
                 from /home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/tss.hpp:10,
                 from /home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/OgreSDK_mingw_v1-7-2/include/OGRE/Threading/OgreThreadHeadersBoost.h:29,
                 from /home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/OgreSDK_mingw_v1-7-2/include/OGRE/Threading/OgreThreadHeaders.h:30,
                 from /home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/OgreSDK_mingw_v1-7-2/include/OGRE/OgreStdHeaders.h:110,
                 from /home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/OgreSDK_mingw_v1-7-2/include/OGRE/OgrePrerequisites.h:315,
                 from /home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/OgreSDK_mingw_v1-7-2/include/OGRE/Ogre.h:31,
                 from /home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/opendungeons-0.4.9/source/CameraManager.h:11,
                 from /home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/opendungeons-0.4.9/source/ASWrapper.cpp:27:
/home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/win32/thread_heap_alloc.hpp:59:40: warning: inline function ‘void* boost::detail::allocate_raw_heap_memory(unsigned int)’ declared as  dllimport: attribute ignored [-Wattributes]
/home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/OgreSDK_mingw_v1-7-2/boost_1_44/boost/thread/win32/thread_heap_alloc.hpp:69:39: warning: inline function ‘void boost::detail::free_raw_heap_memory(void*)’ declared as  dllimport: attribute ignored [-Wattributes]
In file included from /home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/opendungeons-0.4.9/source/ODFrameListener.h:16:0,
                 from /home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/opendungeons-0.4.9/source/ASWrapper.cpp:35:
/home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/opendungeons-0.4.9/dependencies/pthreads/include/pthread.h:307:8: error: redefinition of ‘struct timespec’
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/sys/timeb.h:85:8: error: previous definition of ‘struct timespec’
make[2]: *** [CMakeFiles/OpenDungeons.dir/source/ASWrapper.cpp.obj] Error 1
make[1]: *** [CMakeFiles/OpenDungeons.dir/all] Error 2
make: *** [all] Error 2

Anybody got a good idea? :)

It seems that Cmake is looking for timeb.h both in the system files for the i686-w64-mingw32 compiler and in opendungeons-0.4.9/dependencies/pthreads/include/pthread.h, which makes it think that the stuff is already defined. I guess I should do something to cmake to fix this :S Any cmake experts that have a good guess at what to do? :)

I use this toolchain file:
{l Code}: {l Select All Code}
# this one is important
SET(CMAKE_SYSTEM_NAME Windows)
#this one not so much
SET(CMAKE_SYSTEM_VERSION 1)

# specify the cross compiler
SET(CMAKE_C_COMPILER   /usr/bin/i686-w64-mingw32-gcc)
SET(CMAKE_CXX_COMPILER /usr/bin/i686-w64-mingw32-g++)
SET(CMAKE_RC_COMPILER  /usr/bin/i686-w64-mingw32-g++)

SET(BOOST_ROOT         ${CROSS_DIR}/OgreSDK_mingw_v1-7-2/boost)
SET(CEGUIOGRE_LIBRARY  ${CROSS_DIR}/OgreSDK_mingw_v1-7-2/lib)
SET(CEGUI_LIBRARY      ${CROSS_DIR}/CEGUI/lib)
SET(CEGUI_INCLUDE_DIR  ${CROSS_DIR}/CEGUI/cegui/include)
SET(OPENAL_LIBRARY     ${CROSS_DIR}/SFML-1.6/lib)

# where is the target environment
SET(CMAKE_FIND_ROOT_PATH  ${CROSS_DIR}/OgreSDK_mingw_v1-7-2 ${CROSS_DIR}/SFML-1.6 ${CROSS_DIR}/CEGUI)

# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

and this script to run cmake:
{l Code}: {l Select All Code}
# Install the following first
# sudo apt-get install mingw-w64
# and the compiler for your target system e.g. by
# sudo apt-get install g++-mingw-w64-i686
export CROSS_DIR="`pwd`"
cd opendungeons*
cmake -DCROSS_DIR="$CROSS_DIR" -DCMAKE_TOOLCHAIN_FILE="$CROSS_DIR/Toolchain.cmake" .


By the way when I run cmake I get some warnings that I suspect might be a problem :S
{l Code}: {l Select All Code}
ckr@ckr-laptop:~/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir$ ./CrossCompile.sh
-- CMake build type is not set, defaulting to 'Release'
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/i686-w64-mingw32-gcc
-- Check for working C compiler: /usr/bin/i686-w64-mingw32-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/i686-w64-mingw32-g++
-- Check for working CXX compiler: /usr/bin/i686-w64-mingw32-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for OIS...
-- OIS_PREFIX_PATH changed.
-- checking for module 'OIS'
--   found OIS, version 1.3.0
-- Found OIS: optimized;/home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/OgreSDK_mingw_v1-7-2/lib/release/libOIS.dll.a;debug;/home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/OgreSDK_mingw_v1-7-2/lib/debug/libOIS_d.dll.a
-- Looking for OGRE...
-- OGRE_PREFIX_WATCH changed.
-- checking for module 'OGRE'
--   found OGRE, version 1.7.4
-- Found Ogre Cthugha (1.7.2)
-- Found OGRE: optimized;/home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/OgreSDK_mingw_v1-7-2/lib/release/libOgreMain.dll.a;debug;/home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/OgreSDK_mingw_v1-7-2/lib/debug/libOgreMain_d.dll.a
-- Looking for OGRE_Paging...
-- Found OGRE_Paging: optimized;/home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/OgreSDK_mingw_v1-7-2/lib/release/libOgrePaging.dll.a;debug;/home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/OgreSDK_mingw_v1-7-2/lib/debug/libOgrePaging_d.dll.a
-- Looking for OGRE_Terrain...
-- Found OGRE_Terrain: optimized;/home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/OgreSDK_mingw_v1-7-2/lib/release/libOgreTerrain.dll.a;debug;/home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/OgreSDK_mingw_v1-7-2/lib/debug/libOgreTerrain_d.dll.a
-- Looking for OGRE_Property...
-- Found OGRE_Property: optimized;/home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/OgreSDK_mingw_v1-7-2/lib/release/libOgreProperty.dll.a;debug;/home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/OgreSDK_mingw_v1-7-2/lib/debug/libOgreProperty_d.dll.a
-- Looking for OGRE_RTShaderSystem...
-- Found OGRE_RTShaderSystem: optimized;/home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/OgreSDK_mingw_v1-7-2/lib/release/libOgreRTShaderSystem.dll.a;debug;/home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/OgreSDK_mingw_v1-7-2/lib/debug/libOgreRTShaderSystem_d.dll.a
-- looking for headers
-- Found CEGUI: /home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/CEGUI/lib
-- /home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/CEGUI/lib/home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/OgreSDK_mingw_v1-7-2/lib/release
-- Found SFML: /home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/SFML-1.6/lib/libsfml-main.a;/home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/SFML-1.6/lib/libsfml-audio.a;/home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/SFML-1.6/lib/libsfml-system.a
-- Boost version: 1.44.0
-- Found the following Boost libraries:
--   thread
-- Found OpenAL: /home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/SFML-1.6/lib
-- Configuring done
WARNING: Target "OpenDungeons" requests linking to directory "/home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/SFML-1.6/lib".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "OpenDungeons" requests linking to directory "/home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/CEGUI/lib".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "OpenDungeons" requests linking to directory "/home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/OgreSDK_mingw_v1-7-2/lib/release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "OpenDungeons" requests linking to directory "/home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/SFML-1.6/lib".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "OpenDungeons" requests linking to directory "/home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/CEGUI/lib".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "OpenDungeons" requests linking to directory "/home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/OgreSDK_mingw_v1-7-2/lib/release".  Targets may link only to libraries.  CMake is dropping the item.
-- Generating done
-- Build files have been written to: /home/ckr/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir/opendungeons-0.4.9
ckr@ckr-laptop:~/Documents/OD SVN/mediaSource/ODLinuxBuildScripts/build_dir$
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: Roadmap for 0.4.9

Postby paul424 » 14 Jul 2012, 22:53

hasufell paul424: he could tried to remove the bundled headers, but I cannot test all that cause I lack that toolchain
hasufell and am too lazy to set it up now
paul424 hasufell: bundled ?
hasufell dependencies/pthreads/include/pthread.h
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Re: Roadmap for 0.4.9

Postby oln » 14 Jul 2012, 23:10

Sounds like some header crashes yeah, maybe it would be easier to build on windows for now.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: Roadmap for 0.4.9

Postby svenskmand » 15 Jul 2012, 00:55

I will try that next :) I now sent a mail to the cmake-mailing list to get some help :)
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: Roadmap for 0.4.9

Postby StefanP.MUC » 15 Jul 2012, 09:26

paul424 {l Wrote}:StefanP.MUC, could you make branch development compilable again :D ?

I'd like to. But your file "ModeContext.cpp" (and the corresponding .h file) which you added to CMakeLists isn't existing in the repo. ;)
StefanP.MUC
 

Re: Roadmap for 0.4.9

Postby StefanP.MUC » 15 Jul 2012, 12:23

OK, AS is fixed now. There was a small API change in the new version, which was easy to fix by renaming a function.
StefanP.MUC
 

Who is online

Users browsing this forum: No registered users and 1 guest

cron