Problem installing Orxonox on windows

Get help with installing, running and configuring Orxonox.

Moderator: PPS-Leaders

Husky
Human Space Navy Sergeant
Posts: 10
Joined: Mon Sep 23, 2013 2:02 pm

Problem installing Orxonox on windows

Post by Husky » Mon Sep 23, 2013 3:13 pm

I followed the instructions to compile and run Orxonox on Windows with MinWG (link), but upon executing cmake in MSYS I get the following error:

Code: Select all

-- *** Build type is Debug ***
CMake Error at c:/CMake/share/cmake-2.8/Modules/FindBoost.cmake:1106 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.46.1

  Boost include path: C:/MSYS/1.0/home/husky/dependencies/include/boost

  The following Boost libraries could not be found:

          boost_thread
          boost_filesystem
          boost_system
          boost_date_time

  No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of
  Boost.
Call Stack (most recent call first):
  cmake/LibraryConfig.cmake:164 (FIND_PACKAGE)
  CMakeLists.txt:152 (INCLUDE)


-- Configuring incomplete, errors occurred!
As instructed, the dependencies folder with the external libraries is placed in the same folder as trunk and data_extern, and as far as I can see the boost libraries are where they should be. (There's folders named 'thread', 'system', 'date_time' and 'filesystem' located at C:\MSYS\1.0\home\husky\dependencies\include\boost\boost)

Any kind of help is appreciated :D

Thx
Last edited by Husky on Wed Sep 25, 2013 1:45 pm, edited 1 time in total.

User avatar
x3n
Baron Vladimir Harkonnen
Posts: 810
Joined: Mon Oct 30, 2006 5:40 pm
Contact:

Re: Problem installing Orxonox on windows (Boost libraries)

Post by x3n » Mon Sep 23, 2013 7:06 pm

Hi Husky

Thanks for downloading Orxonox. I wrote the guide about how to install it on Windows with MinGW. It's been a while since I last updated it, so any feedback is appreciated (or even better if you update outdated parts of the guide yourself). ;)

When I look at your console output it seems like CMake can find the header files (dependencies/include) but not the libraries (dependencies/bin). However it looks like it only fails to find boost libraries (there are no other errors?). This could be due to the specific naming of the libraries.

Have a look at the boost libraries in dependencies/bin/mingw-x86, for example this:
libboost_date_time-mgw45-mt-1_46_1.dll

The name follows this pattern:
libboost_<library>-<plattform>-(<multithreaded?>-)<version>.dll

The expected plattform in this case is "mgw45" which means "MinGW with GCC v4.5.x".

But maybe the latest version of MinGW uses a newer version of GCC?

Try this in your MSYS console:

Code: Select all

$ gcc --version
You should get an output like this:

Code: Select all

gcc.exe (GCC) 4.5.0
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Please check if the version of GCC is 4.5.x or 4.6.x (or maybe something else?)
If it is different than 4.5.x, try changing the name of the boost libraries. E.g. if your version of GCC is 4.6.x, rename them to libboost_<name>-mgw46-mt-1_46_1.dll
Fabian 'x3n' Landau, Orxonox developer

Husky
Human Space Navy Sergeant
Posts: 10
Joined: Mon Sep 23, 2013 2:02 pm

Re: Problem installing Orxonox on windows (Boost libraries)

Post by Husky » Tue Sep 24, 2013 5:43 am

The 4 .dll files are indeed named ...-mgw45-..., but renaming them to ...-mgw46-... (I'm running GCC version 4.6.2) didn't change anything.
The same error still appears :(

User avatar
x3n
Baron Vladimir Harkonnen
Posts: 810
Joined: Mon Oct 30, 2006 5:40 pm
Contact:

Re: Problem installing Orxonox on windows (Boost libraries)

Post by x3n » Tue Sep 24, 2013 7:19 am

I guess that CMake somehow looks for libraries with a different name than they actually have, so it doesn't find them.
When I look at the CMake script which is used to find boost (according to your log output it's c:/CMake/share/cmake-2.8/Modules/FindBoost.cmake) I see some debug messages like this:

Code: Select all

  if(Boost_DEBUG)
    message(STATUS "...")
  endif()
so if we can activate Boost_DEBUG you may get some additional hints about what goes wrong. Try this:

Code: Select all

$ cm -DBoost_DEBUG=true
or maybe =1, =ON, =YES or whatever CMake expects.

I'm currently at work and can't test it, but maybe this will print some debug information to the console which shows you the library name which is expected by cmake. You could then rename the libraries to the expected name.
Fabian 'x3n' Landau, Orxonox developer

Husky
Human Space Navy Sergeant
Posts: 10
Joined: Mon Sep 23, 2013 2:02 pm

Re: Problem installing Orxonox on windows (Boost libraries)

Post by Husky » Tue Sep 24, 2013 7:42 am

Doesn't look like there's any other errors, only the same one as previously

Code: Select all

-- The C compiler identification is GNU 4.6.2
-- The CXX compiler identification is GNU 4.7.0
-- Check for working C compiler: c:/MinGW/bin/gcc.exe
-- Check for working C compiler: c:/MinGW/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: c:/MinGW/bin/g++.exe
-- Check for working CXX compiler: c:/MinGW/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- *** Build type is Debug ***
-- Using library package for the dependencies.
-- Found CEGUI: C:/MSYS/1.0/home/husky/dependencies/include/cegui/include (Required is at least version "0.6") 
-- Found Lua5.1: C:/MSYS/1.0/home/husky/dependencies/bin/mingw-x86/lua.dll  
-- Found Ogg: C:/MSYS/1.0/home/husky/dependencies/bin/mingw-x86/libogg-0.dll  
-- Found Vorbis: C:/MSYS/1.0/home/husky/dependencies/bin/mingw-x86/libvorbis-0.dll  
-- Found ALUT: C:/MSYS/1.0/home/husky/dependencies/bin/mingw-x86/libalut.dll  
-- Found ZLIB: C:/MSYS/1.0/home/husky/dependencies/bin/mingw-x86/libzlib.dll (found version "1.2.5") 
-- Found DbgHelp: C:/MSYS/1.0/home/husky/dependencies/lib/mingw-x86/dbghelp.lib                                      
-- Found DirectX: C:/MSYS/1.0/home/husky/dependencies/lib/mingw-x86/dinput8.lib                                      
-- Found OpenAL: C:/MSYS/1.0/home/husky/dependencies/bin/mingw-x86/OpenAL32.dll                                      
-- Found TCL: C:/MSYS/1.0/home/husky/dependencies/bin/mingw-x86/tcl85.dll  
CMake Error at c:/CMake/share/cmake-2.8/Modules/FindBoost.cmake:1106 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.46.1

  Boost include path: C:/MSYS/1.0/home/husky/dependencies/include/boost

  The following Boost libraries could not be found:

          boost_thread
          boost_filesystem
          boost_system
          boost_date_time

  No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of
  Boost.
Call Stack (most recent call first):
  cmake/LibraryConfig.cmake:164 (FIND_PACKAGE)
  CMakeLists.txt:152 (INCLUDE)


-- Found OGRE: C:/MSYS/1.0/home/husky/dependencies/bin/mingw-x86/OgreMain.dll (Required is at least version "1.6") 
-- Found POCO: C:/MSYS/1.0/home/husky/dependencies/bin/mingw-x86/libPocoFoundation.dll  
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for C++ include iso646.h
-- Looking for C++ include iso646.h - found
-- Configuring incomplete, errors occurred!
EDIT:
I also tried using the latest dependencies (version 7.0, as of 7.9.13), but the error still persists.

User avatar
x3n
Baron Vladimir Harkonnen
Posts: 810
Joined: Mon Oct 30, 2006 5:40 pm
Contact:

Re: Problem installing Orxonox on windows (Boost libraries)

Post by x3n » Wed Sep 25, 2013 8:42 am

The latest dependencies (7.0) don't yet work with the current trunk of Orxonox. You better use 6.0 at the moment.

It looks like Boost_DEBUG was not activated. Let's try a different approach to activate it:
Open cmake/PackageConfigMinGW.cmake and add the following line somewhere:

Code: Select all

SET(Boost_DEBUG ON)
Fabian 'x3n' Landau, Orxonox developer

Husky
Human Space Navy Sergeant
Posts: 10
Joined: Mon Sep 23, 2013 2:02 pm

Re: Problem installing Orxonox on windows (Boost libraries)

Post by Husky » Wed Sep 25, 2013 10:23 am

I think this wall of text is what we were looking for:
(To keep the thread a bit more tidy, here's a link instead of pagelong code) Code

Looks like it wants a -mgw47- version of the files. Renaming the files to said -mgw47- results in a successful configuration and generation of the build files.
Okay, one less problem. But after executing make, new ones appear:

Code

All I could figure out is that there must be some sort of problem when defining some... stuff... :|

User avatar
x3n
Baron Vladimir Harkonnen
Posts: 810
Joined: Mon Oct 30, 2006 5:40 pm
Contact:

Re: Problem installing Orxonox on windows

Post by x3n » Wed Sep 25, 2013 3:03 pm

Good job at getting CMake to work. :)
You can remove the line "SET(Boost_DEBUG ON)" again if you don't need it anymore.

The new error reminds me of this: http://forum.orxonox.net/viewtopic.php?f=17&t=1094

It's probably due to some changes in the latest version of GCC. For Linux, this was fixed in r9672. Maybe it needs a similar fix for MinGW. However we have to ensure that it continues to work with older versions.

I'll try to give it a look this evening.
Fabian 'x3n' Landau, Orxonox developer

User avatar
x3n
Baron Vladimir Harkonnen
Posts: 810
Joined: Mon Oct 30, 2006 5:40 pm
Contact:

Re: Problem installing Orxonox on windows

Post by x3n » Wed Sep 25, 2013 8:13 pm

meh. I updated MinGW on my computer to the latest version and now I have GCC 4.8.1 and lots of trouble. I'll make it compile, but it will take me a while because I have to ensure it works with all versions of MinGW and not just one.

I probably won't get it done before the weekend, but I'll keep you informed as soon as it works. :)
Fabian 'x3n' Landau, Orxonox developer

Husky
Human Space Navy Sergeant
Posts: 10
Joined: Mon Sep 23, 2013 2:02 pm

Re: Problem installing Orxonox on windows

Post by Husky » Wed Sep 25, 2013 8:39 pm

Sounds like lots of work :/
It's not really urgent that you fix this right now just for me. Tomorrow I'll install Ubuntu on my HD and try to get the game running there.

Thanks alot for the help

User avatar
x3n
Baron Vladimir Harkonnen
Posts: 810
Joined: Mon Oct 30, 2006 5:40 pm
Contact:

Re: Problem installing Orxonox on windows

Post by x3n » Wed Sep 25, 2013 8:40 pm

I have to fix it anyway ;)
Fabian 'x3n' Landau, Orxonox developer

User avatar
x3n
Baron Vladimir Harkonnen
Posts: 810
Joined: Mon Oct 30, 2006 5:40 pm
Contact:

Re: Problem installing Orxonox on windows

Post by x3n » Wed Oct 02, 2013 9:51 pm

Slow progress...

I managed to make it compile with GCC 4.5, 4.6, and 4.7.
Appart from changes in the code and the buildscripts I also had to recompile the external dependencies (Boost, Ogre, CEGUI, etc.) with each version of GCC because there seem to be some incompatibilities.

Now I'm trying to make it work with GCC 4.8 as well. There we've got a problem with precompiled header files.

I'm working on it... :coding:
Fabian 'x3n' Landau, Orxonox developer

Husky
Human Space Navy Sergeant
Posts: 10
Joined: Mon Sep 23, 2013 2:02 pm

Re: Problem installing Orxonox on windows

Post by Husky » Thu Oct 03, 2013 8:54 pm

Nice, thanks alot :D
I updated my trunk and data_extern folder, but compiling doesn't work yet. Probably because of those changes you mentioned in the dependencies. Will those updated dependencies be located at the same place where the old ones are (http://svn.orxonox.net/downloads/window ... endencies/) once you're done?

User avatar
x3n
Baron Vladimir Harkonnen
Posts: 810
Joined: Mon Oct 30, 2006 5:40 pm
Contact:

Re: Problem installing Orxonox on windows

Post by x3n » Thu Oct 03, 2013 9:57 pm

Yes correctly, I only updated the dependencies now.
You can download them here: http://www.orxonox.net/wiki/download - pick the package of version 7.0 for your version of GCC (there are packages for GCC 4.5, 4.6, 4.7, and 4.8... phew).
Also you have to update your trunk because I committed some changes.

Compiling should now also work with GCC 4.8. Support for PCH is broken though, see http://www.orxonox.net/ticket/412

Prior in this thread you wrote that you use GCC 4.6.2 but still you had to rename the boost libraries to *-mgw47-* which is weird because it should be mgw46. So maybe you still have to rename some libraries even if you pick the correct dependency package (it's actually better to rename copies of the libraries because you will still require the original ones if you execute orxonox).

If that still doesn't work, install MinGW again but this time check "Download latest repository catalogues" in the installation wizard (as recommended here: http://www.orxonox.net/wiki/WindowsMinGW/current)

If you experience any problems just keep asking :)
Fabian 'x3n' Landau, Orxonox developer

Husky
Human Space Navy Sergeant
Posts: 10
Joined: Mon Sep 23, 2013 2:02 pm

Re: Problem installing Orxonox on windows

Post by Husky » Fri Oct 04, 2013 2:15 pm

Updated everything to the latest version, and it works fine now, got the game running :D
(There was one problem: The OpenAL32.dll file was missing in the lastest dependencies you provided, but copying it from the older version worked)

:adoration:

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest