FreeOrion-0.3.15 configuration problem

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
wiz
Space Krill
Posts: 2
Joined: Sat Sep 04, 2010 10:28 am

FreeOrion-0.3.15 configuration problem

#1 Post by wiz »

Hi!

I've downloaded the tarball mentioned on the download page and tried compiling it on NetBSD.
I changed CMakeLists.txt so it handled NetBSD the same as Linux:

Code: Select all

--- CMakeLists.txt.orig 2010-06-03 05:05:42.000000000 +0000
+++ CMakeLists.txt
@@ -45,6 +45,9 @@ elseif (APPLE)
 elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux")
     add_definitions(-DFREEORION_LINUX -DENABLE_BINRELOC -Wall -Wno-parentheses)
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated")
+elseif (CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
+    add_definitions(-DFREEORION_LINUX -DENABLE_BINRELOC -Wall -Wno-parentheses)
+    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated")
 else ()
     message(FATAL_ERROR "Unknown platform type! Your setup is not a supported p
latform for FreeOrion.")
 endif ()
cmake doesn't configure for me though, it fails with:

Code: Select all

CMake Error at CMakeLists.txt:15 (include):
  include could not find load file:

    Config


CMake Error at CMakeLists.txt:16 (include):
  include could not find load file:

    Util
and later

Code: Select all

CMake Error at CMakeLists.txt:258 (feature_interactions):
  Unknown CMake command "feature_interactions".
Call Stack (most recent call first):
  CMakeLists.txt:315 (executable_variant)
  server/CMakeLists.txt:115 (executable_all_variants)
I don't see files called Util or Config, nor do I see where the macros that cmake complains about are defined.

Am I doing something wrong?
How is this supposed to work?

Thanks in advance for any hints.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13603
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: FreeOrion-0.3.15 configuration problem

#2 Post by Geoff the Medio »

What version of CMake are you using?

Did you also get GiGi, all the required dependencies and build / install them before trying to configure / build FreeOrion?

include(Config) and include(Util) include those modules, which should be located in one of the directories in CMAKE_MODULE_PATH. Just above those lines, the GG/cmake directory is added, and indeed, that directory contains Config.cmake and Util.cmake that are needed. The CMakeLists appears to be assuming GG is located in the CMAKE_HOME_DIRECTORY. If that's not where you have it, you might need to modify that line of CMakeLists.txt.

Post Reply