Compile latest core under Linux?

Here you can post threads specific to the current release of the core (099)

Moderator: POL Developer

Post Reply
OWHorus
Grandmaster Poster
Posts: 105
Joined: Sat Feb 04, 2006 1:24 pm
Location: Vienna, Austria

Compile latest core under Linux?

Post by OWHorus »

Hello,

just tried to compile the latest core. Under Win 7 it compiles fine, using Visual Studio 12. Instructions are clear, 4 versions are built (static, dynamic, x86 and x64). POL works fine under Windows. Yet there seems to a problem with uoconvert: On a UO ML installation it simply ignores the width= and height= parameters, it always uses 6xxx * 4096, even with the smaller maps. But using an older uoconvert is possible.

On Linux things are different :(

I installed Ubuntu 14 LTS in a VM, installed the necessary packages, installed cmake, last version from website (since Ubuntus package is ancient), and built boost. Then I used buildcore in pol-core folder.

The build process started, all things were found, but the current core does not compile! It stops with:

.../pol-core/clib/clib_MD5.cpp:116:104: fatal error: MD5.h: No such file or directory
#include "MD5.h" //TODO: rework the following code - does not work with up-to-date header files anymore
^
compilation terminated.
make[2]: *** [pol-core/clib/CMakeFiles/clib.dir/clib_MD5.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [pol-core/clib/CMakeFiles/clib.dir/all] Error 2
make: *** [all] Error 2

Is there an easy way to fix this?

Horus
boberski
Grandmaster Poster
Posts: 275
Joined: Tue Oct 15, 2013 12:00 pm

Re: Compile latest core under Linux?

Post by boberski »

Try to install:

Code: Select all

sudo apt-get install libpcap-dev libssl-dev
boberski
Grandmaster Poster
Posts: 275
Joined: Tue Oct 15, 2013 12:00 pm

Re: Compile latest core under Linux?

Post by boberski »

Also maybe you find usefull... :)
Attachments
pol-LINUX-099-2015-12-16-CentOS.tar.gz
(2.48 MiB) Downloaded 200 times
OWHorus
Grandmaster Poster
Posts: 105
Joined: Sat Feb 04, 2006 1:24 pm
Location: Vienna, Austria

Re: Compile latest core under Linux?

Post by OWHorus »

Hello aderal,

thanks for the tips. I did find out myself (I have no experience with Cmake) that obviously openssl/md5.h was missing and installed it.

How do you clean CMakes caches? Because it did not find the newly installed include. It seems to remember that it was not there - but I edited the CMakeCache.txt manually and added HAVE_OPENSSL=1 - now it compiles.

I need to build my own platform to compile for Linux (our server runs under Debian) and for Windows (I develop scipts on Windows). Thanks for the link to a precompiled core anyway. I will test it, and it can be a reference. But for the long run I want to be able to compile myself.

:)

Horus
boberski
Grandmaster Poster
Posts: 275
Joined: Tue Oct 15, 2013 12:00 pm

Re: Compile latest core under Linux?

Post by boberski »

OWHorus wrote:How do you clean CMakes caches?
Simply delete content of pol-core/bin-build/ except:
.gitignore
build_linux.sh
build_linux32.sh
build_linux_release.sh
Post Reply