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 ()
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
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)
Am I doing something wrong?
How is this supposed to work?
Thanks in advance for any hints.