FreeOrion

Forums for the FreeOrion project
It is currently Wed Jun 19, 2013 4:56 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: FreeOrion-0.3.15 configuration problem
PostPosted: Sat Sep 04, 2010 10:50 am 
Offline
Space Krill

Joined: Sat Sep 04, 2010 10:28 am
Posts: 2
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:
--- 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:
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:
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.


Top
 Profile  
 
 Post subject: Re: FreeOrion-0.3.15 configuration problem
PostPosted: Sat Sep 04, 2010 2:38 pm 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 8055
Location: Vancouver, BC
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Baidu [Spider] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group