Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building from sources #430

Open
Joey79100 opened this issue Apr 4, 2017 · 10 comments
Open

Building from sources #430

Joey79100 opened this issue Apr 4, 2017 · 10 comments

Comments

@Joey79100
Copy link

Joey79100 commented Apr 4, 2017

I tried compiling the last version using the CodeBlocks project, but there were missing dependencies (#include directives, it was whining because the files couldn't be found). So I added these files, which seemed to work:

  • \extern\freetype2\include\zlib.h
  • \extern\freetype2\include\zconf.h
  • \extern\freetype2\include\SDL2\ (the whole SDL2 folder content)
  • \src\config-opentomb.h

But then there were still other files, the next one was al.h and as I didn't know where to put it I just gave up.
It's probably just me who's a noob at compiling, I've never managed to do it in the past (I mean, with OpenTomb).

I tried using CMake too, but it's even newer than CodeBlocks to me, and I have no idea where to start. I tried using the MinGW compiler, Visual Studio 2017 compiler too, but no way.

Oh, I'm on Windows by the way, I haven't tried yet on Linux (though I bet it's much simpler with CMake, according to the readme file).

May I get any help? Thanks!

@vvs-
Copy link
Contributor

vvs- commented Apr 4, 2017

That's because all these support libraries are alien to Windows. They are standard to Linux and are supported out of the box by CMake. But there is no working common framework for building or finding it on Windows, because every development environment there is unique and incompatible with each other. There was some effort to make cross-platform builds easier in the old master. But its' complexity and fragility were some of the main reasons why the old branch was finally abandoned.

I'm not a Windows developer, but as others suggested in the past you'd need to compile all of the required libraries and either edit Code::Blocks project accordingly or use CMake graphical tool to build Code::Blocks project from scratch. Hope this helps.

@RICCIARDI-Adrien
Copy link
Contributor

Hi,
Would it be possible to build a Windows version of the game on the Travis CI build machine (using mingw-w64) right after the Linux version is built ? A script could add the required DLLs and create a zip file, so Windows users could always have latest binary.

@vvs-
Copy link
Contributor

vvs- commented Apr 4, 2017

There already is such a build box on https://semaphoreci.com/vobject/opentomb. Unfortunately, it isn't maintained for a while. If someone wants to set-up a build machine, then it doesn't need a special approval by admins here.

@RICCIARDI-Adrien
Copy link
Contributor

Ok, I'll try to cross-compile the game for Windows on a Semaphore CI build machine. Thanks for the URL !

@RICCIARDI-Adrien
Copy link
Contributor

Hi, I set up a build machine here : https://semaphoreci.com/ricciardi-adrien/opentomb
It's dirty for now but it seems to produce working executable (I built one using SSH and I could run it).
I was not able to change the repo URL to point on the real OpenTomb repo, but it is not a real problem because I can clone the right sources from the build scripts. Do you know a place where I could deploy the generated binaries ?

@vvs-
Copy link
Contributor

vvs- commented Apr 8, 2017

There are many deployment platforms exist. Look here for example: https://github.com/integrations/feature/deployment

@RICCIARDI-Adrien
Copy link
Contributor

Thank you for your quick reply. In the meanwhile I tested your Semaphore CI machine build script on a Semaphore SSH machine, and it is working fine (the only thing I did not test is obviously the Sourceforge deployment). Your generated binary works great on an old Windows XP PC. Why did the OpenTomb team stopped the builds ?

@vvs-
Copy link
Contributor

vvs- commented Apr 10, 2017

Why do you think that it was a community initiative? Actually, it was a private project, just like yours. Seems that the owner lost interest and there was not many people using both Windows and Linux to have the incentive and possibility to revive it.

@RICCIARDI-Adrien
Copy link
Contributor

I thought that because the build system was working, it was not supposed to be a reproach (sorry if you took it for). I asked because I was thinking that the Sourceforge deployment had problem. Ok, I will continue my own build machine, if I get a useful result I will tell you.

@gajicm93
Copy link

gajicm93 commented May 1, 2017

I have easily built it for Windows (64bit build) using MSYS2 and CodeBlocks. If anybody needs help, please ask.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants