Jump to content
Eternal Lands Official Forums
Sign in to follow this  
Roja

Compiling OGL2 client for Windows

Recommended Posts

Can someone at least post some hints like, how do you find out what libraries are needed to be installed? Is there something somewhere that tells you that? I have the current client compiling on my system so have been just trying to figure out how to get this new one to compile, so most likely a lot is the same...?

Share this post


Link to post
Share on other sites

Unfortunately the DevCPP environment is too old for the GL2 client.

I assembled a MinGW build environment that can build the new GL2 client and of course also the 'normal' client. It already contains all libraries needed for EL but it has no gui, so you need to use it from the command prompt.

The package can be downloaded here.

It should install to 'C:\MinGW' and i suggest not to change that.

'C:\MinGW\bin' needs to be added to the PATH environment variable.

 

Building the GL2 client is done in 2 steps:

1) in the folder with the client sources type 'cmake .' or 'cmake-gui' to create the Makefile and configure the various build-options

2) in the same folder type 'make' to build the client

Share this post


Link to post
Share on other sites

Thank you for the info! :)

 

I got as far as needing to make the make file. I open the cmake gui and it tells me tons of libraries and directories are not found. I installed it all as you said..do I need to manually tell each one where to go in that gui?

Share this post


Link to post
Share on other sites

In the cmake gui there are 2 buttons: 'Configure' and 'Generate'.

In the beginning there are lots of red lines; pressing 'Configure' should start the search-process and eliminate most of those lines. If there are a few red lines left, press 'Configure' again and all red lines SHOULD be gone.

Then press 'Generate' to generate the makefiles.

Share this post


Link to post
Share on other sites

Ok yes I tried that but I still get that it's missing a lot, like this:

"Could NOT find ZLIB (missing: ZLIB_INCLUDE_DIR)

Could NOT find ZLIB (missing: ZLIB_INCLUDE_DIR)

Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)

Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) "

 

I set the source code dir. to where I have it on my computer, and the "where to build the binaries" as "C:/MinGW/bin" Do those need to be different?

Share this post


Link to post
Share on other sites

Ok yes I tried that but I still get that it's missing a lot, like this:

"Could NOT find ZLIB (missing: ZLIB_INCLUDE_DIR)

Could NOT find ZLIB (missing: ZLIB_INCLUDE_DIR)

Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)

Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) "

 

I set the source code dir. to where I have it on my computer, and the "where to build the binaries" as "C:/MinGW/bin" Do those need to be different?

 

C:/MinGW/bin is where the compiler and make is. I've used the EL source directory as output directory.

I also had to manually set the makefile generator or cmake would pickup the installed visual studio compiler which does not have a working zlib or libpng.

 

cmake -G "MinGW Makefiles" d:/Eternal-Land-2.0

Edited by ago

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×