Compiling Errors

General development discussion forum

Compiling Errors

Postby eXile » January 26th, 2015, 3:35 pm

Hello together.

First off I wanna thank you for your great work! Thats really awesome and I love what you guys are doing for us old swg fans.. Really really awesome!!

I try to build my own little server now with swganh, but I failed :(.

First I tried it with the guide here: http://swganh.com/anh_docs/book/installation_linux.html

After that, I saw that is is outdated and there is a new "version"? Which is this one https://github.com/swganh/mmoserver

Now, that I cloned the repo from "mmoserver" with git, I getting some troubles with compiling / building.

First I tried the guide:
Unix Builds

To build the server on Unix platforms run the bootstrap.sh script in the project root. This will download and build all the dependencies and sources. Once the script has completed you can issue further builds from within the "build" directory:

./bootstrap.sh
cd build
cmake -DCMAKE_INSTALL_PREFIX=/opt/local ..
make install


...but there is no "bootstrap.sh" at all?

Second I tried
The simplest way to compile this package is:
1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system.
Running `configure' might take a while. While running, it prints
some messages telling which features it is checking for.
2. Type `make' to compile the package.
3. Optionally, type `make check' to run any self-tests that come with
the package.
4. Type `make install' to install the programs and any data files and
documentation.
5. You can remove the program binaries and object files from the
source code directory by typing `make clean'. To also remove the
files that `configure' created (so you can compile the package for
a different kind of computer), type `make distclean'. There is
also a `make maintainer-clean' target, but that is intended mainly
for the package's developers. If you use it, you may have to get
all sorts of other programs in order to regenerate files that came
with the distribution.
6. Often, you can also type `make uninstall' to remove the installed
files again.

.. but there is neither a "configure" file / command?



At the end I tried to compile / build with "build_server.sh".. That looked good at the beginning. But at the end I always get stuck at this error:
CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1194 (message):
Unable to find the requested Boost libraries.

Boost version: 1.45.0

Boost include path: /home/swgeurope/mmoserver/deps/boost/include

Detected version of Boost is too old. Requested version was 1.55 (or
newer).

The following Boost libraries could not be found:

boost_date_time
boost_regex
boost_thread
boost_system
boost_program_options
boost_log
boost_python3

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):
CMakeLists.txt:135 (FIND_PACKAGE)


-- Found GLM
-- Found GTest: /home/swgeurope/mmoserver/deps/gtest/lib/libgtest.so
-- mysql_config was found /home/swgeurope/mmoserver/deps/mysql-connector-c/bin/mysql_config
-- MySQL Include dir: /home/swgeurope/mmoserver/deps/mysql-connector-c/include
-- MySQL Library :
-- MySQL Library dir: /home/swgeurope/mmoserver/deps/mysql-connector-c/lib
-- MySQL CXXFLAGS: -I/home/swgeurope/mmoserver/deps/mysql-connector-c/include
-- MySQL Link flags:
-- MySQL Version: 6.0.2
-- MySQL Include dir: /home/swgeurope/mmoserver/deps/mysql-connector-c/include
-- MySQL Library dir: /home/swgeurope/mmoserver/deps/mysql-connector-c/lib
-- MySQL CXXFLAGS: -I/home/swgeurope/mmoserver/deps/mysql-connector-c/include
-- MySQL Link flags:
-- MySQL dynamic load test library: /home/swgeurope/mmoserver/deps/mysql-connector-c/lib/libmysqlclient_r.so
-- Found MysqlConnectorCpp
-- Found NOISE
-- Found Intel TBB
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindPythonLibs.cmake:186 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:142 (find_package)


-- Configuring incomplete, errors occurred!
make: *** No targets specified and no makefile found. Stop.



Would be awesome if someone can help me with my issue.
Maybe Im just too dumb :-P.


Thanks so far guys!
eXile
 
Posts: 3
Joined: January 26th, 2015, 3:26 pm
SWG Official Server: Farstar

Re: Compiling Errors

Postby eXile » January 27th, 2015, 2:25 am

Ah by the way.. thats the error I become if I try to compile with windows...
Microsoft Visual Studio 2012 Express installed
CMake 2.8.11 installed

Das Sprungziel - BUILD_ENVIRONMENT_FOR_ wurde nicht gefunden.
Das System kann den angegebenen Pfad nicht finden.


In english, something like:
Cant find the target for BUILD_ENVIRONMENT_FOR_.
System cant find the target path.
eXile
 
Posts: 3
Joined: January 26th, 2015, 3:26 pm
SWG Official Server: Farstar

Re: Compiling Errors

Postby eXile » January 27th, 2015, 10:02 am

I was able to move a little bit forward.. maybe..

triton341:/home/swgeurope/mmoserver# ./build_server.sh
CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1131 (message):
Unable to find the requested Boost libraries.

Boost version: 1.45.0

Boost include path: /home/swgeurope/mmoserver/deps/boost/include

Detected version of Boost is too old. Requested version was 1.55 (or
newer).
Call Stack (most recent call first):
CMakeLists.txt:135 (FIND_PACKAGE)


-- Found GLM
-- mysql_config was found /home/swgeurope/mmoserver/deps/mysql-connector-c/bin/mysql_config
-- MySQL Include dir: /home/swgeurope/mmoserver/deps/mysql-connector-c/include
-- MySQL Library :
-- MySQL Library dir: /home/swgeurope/mmoserver/deps/mysql-connector-c/lib
-- MySQL CXXFLAGS: -I/home/swgeurope/mmoserver/deps/mysql-connector-c/include
-- MySQL Link flags:
-- MySQL Version: 6.0.2
-- MySQL Include dir: /home/swgeurope/mmoserver/deps/mysql-connector-c/include
-- MySQL Library dir: /home/swgeurope/mmoserver/deps/mysql-connector-c/lib
-- MySQL CXXFLAGS: -I/home/swgeurope/mmoserver/deps/mysql-connector-c/include
-- MySQL Link flags:
-- MySQL dynamic load test library: /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so
-- Found MysqlConnectorCpp
-- Found NOISE
-- Found Intel TBB
-- Found ZLIB
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Boost_PYTHON3_LIBRARY_DEBUG (ADVANCED)
linked by target "ZoneServer" in directory /home/swgeurope/mmoserver/src/ZoneServer
Boost_PYTHON3_LIBRARY_RELEASE (ADVANCED)
linked by target "ZoneServer" in directory /home/swgeurope/mmoserver/src/ZoneServer
Boost_THREAD_LIBRARY_DEBUG (ADVANCED)
linked by target "libanh_tests" in directory /home/swgeurope/mmoserver/src/anh
linked by target "Utils_tests" in directory /home/swgeurope/mmoserver/src/Utils
linked by target "Common_tests" in directory /home/swgeurope/mmoserver/src/Common
linked by target "ChatServer" in directory /home/swgeurope/mmoserver/src/ChatServer
linked by target "ConnectionServer" in directory /home/swgeurope/mmoserver/src/ConnectionServer
linked by target "LoginServer" in directory /home/swgeurope/mmoserver/src/LoginServer
linked by target "PingServer" in directory /home/swgeurope/mmoserver/src/PingServer
linked by target "ZoneServer" in directory /home/swgeurope/mmoserver/src/ZoneServer
Boost_THREAD_LIBRARY_RELEASE (ADVANCED)
linked by target "libanh_tests" in directory /home/swgeurope/mmoserver/src/anh
linked by target "Utils_tests" in directory /home/swgeurope/mmoserver/src/Utils
linked by target "Common_tests" in directory /home/swgeurope/mmoserver/src/Common
linked by target "ChatServer" in directory /home/swgeurope/mmoserver/src/ChatServer
linked by target "ConnectionServer" in directory /home/swgeurope/mmoserver/src/ConnectionServer
linked by target "LoginServer" in directory /home/swgeurope/mmoserver/src/LoginServer
linked by target "PingServer" in directory /home/swgeurope/mmoserver/src/PingServer
linked by target "ZoneServer" in directory /home/swgeurope/mmoserver/src/ZoneServer

-- Configuring incomplete, errors occurred!





Would be great if a dev could help me out with that issues. Searching and trying for days now :(.

Thanks so far..
eXile
 
Posts: 3
Joined: January 26th, 2015, 3:26 pm
SWG Official Server: Farstar

Re: Compiling Errors

Postby Obi-Two » January 27th, 2015, 1:24 pm

Hi eXile,
thank you for taking th etime to try our server, at moment all our Devs are busy with real life stuffs so sadly there isn;t much support,

I've been trying to complie the server myself and have hit a few bumbs along the way, have you tryed to install/build the latest Boost libs?

(I'm not an expert but hopefully we can work this out and get it building again)
Obi
Obi-Two

Quality Assurance
Star Wars Galaxies:A new hope
there is another...

Server by : Hostwind
Project : SWGANHServices
Obi-Two
SWG:ANH Staff
 
Posts: 260
Joined: January 3rd, 2009, 9:37 am
Location: Manchester, England
SWG Official Server: Ahazi


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest