[SOLVED] Problems compiling source on Ubuntu 14.04 64-bit

Status
Not open for further replies.
Hello everyone. I recently installed Ubuntu 14.04 64-bit on my notebook I got on the holidays, and I attempted to build the public source code from the GitHub repository, but I encountered a couple errors on the progress.

Is it just me, or is the source currently broken for Linux platforms?

The log of the process are on this pastebin:
http://pastebin.com/hJe52e04

And just letting you know. I've installed all the packages required for the process listed on both the wiki page, and on the readme file on the source.

Any response is appreciated.
 
Last edited:
Try and Try again

I had push out a few patches, it should make it work for you now
 
That almost works.

I had push out a few patches, it should make it work for you now

Well that fixed the problem, but new errors arises. It's in the pastebin below.

http://pastebin.com/yTZtSWPe

---------- Post added at 11:23 AM ---------- Previous post was at 09:41 AM ----------

Okay, I just tried compiling with NOPNG flag enabled, and that got passed the error mentioned above. But while it's linking lsdl2srb2, lots of undefined reference errors relating to PNG shows up, and stops the process again.

http://pastebin.com/dQQhHrnK
 
Last edited:
God damn it....
OS: Ubuntu
Version: 14.04
Arch: amd64
this is correct?
do me a favor and add '-k' to the make command, should skip over errors, making try to compile everything it can then do it again so only show the failed units
 
Okay so first off, yes, those specs are correct. And second, I don't know whats going on, but I added the "-k" flag on the make command, everything compiled correctly, and then I removed the flag and tried it, I don't know why, but everything worked normally, no errors at all. Strange.

Anyways, I tried executing "lsdl2srb2" from the build directory, and it couldn't find the main WADs for the game. Does they even come with the source at all? If not, where can I get them without having to install packages?

http://pastebin.com/ezfc9sjR
 
Download the 2.1.14 installer from the main site and extract its contents like it's a 7z. The "installer" is just a normal archive in an executable wrapper.
 
yea, so, SRB2 have issues compiling with a newer version of zlib, so I going to try compiling with Ubuntu myself:
Code:
debootstrap --variant=buildd --arch amd64 utopic /chroot/utopic-amd64 http://archive.ubuntu.com/ubuntu/

yea, for chroots!
 
_largefile64_source

ok, for some reason, zlib is using off64_t, which need _LARGEFILE64_SOURCE to be on so it can make use the 64 bit open/write/read/close API.... and the libz.pc/libpng.pc does not tell the Makefile to define it! fuuuu you


Code:
CFLAGS=-D_LARGEFILE64_SOURCE make -C src LINUX64=1

and digging down, I see why, SDL drops _GNU_SOURCE, which was using in turn to turn on LFS support
 
Last edited:
That did the trick. Also, I noticed that you pushed the fix on the repo, so I pushed it, and build it with normal flags, no errors at all, making my problem solved. Thank you. Feel free to close the thread if you like.
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top