Radiant fails to compile on Arch / Ubuntu #9

Closed
Majki opened this Issue Mar 19, 2012 · 15 comments

2 participants

@Majki

Okay - I have reported it on mailing list, but I think it would be good to have it on official issues list too.

Radiant can't compile now - log of unsuccessful compilation is here:

http://pastebin.com/qfZyU26T

All deps has been met, yet Radiant fails.

32 Bit, Arch Linux here.

@TTimo
Owner

This is because Arch uses a newer version of libpng. Patches welcome. We want to maintain compatibility with Linux distributions that are already working though (at least Debian/sid x86_64 which is what I'm using).

@Majki

Current version of Ubuntu, most popular Linux now can't compile Radiant. They will update for sure libpng more in the April, when 12.04 will hit the stores. It's not only Arch Linux problem. Which version of libpng is needed? I have a couple of them as extra packages:
http://aur.archlinux.org/packages.php?O=0&K=libpng&do_Search=Go

@TTimo
Owner
@Majki

I have installed libpng12:

[michal@localhost aur-gtkradiant-svn]$ pacman -Qs libpng
local/libpng 1.5.9-1
A collection of routines used to create PNG format graphics files
local/libpng12 1.2.48-1
A collection of routines used to create PNG format graphics files

Still the same.

@TTimo
Owner

Patches welcome. Eventually I'll find the time to spin up an ubuntu instance somewhere and fix it.

@TTimo
Owner

Did a brief compile attempt on Ubuntu 12.04, but it fails at the first link (radiant.bin) because of the order in which it puts the libraries on the link line. Not sure why I'm having that problem on this build system and you don't.

EDIT: Resolved - use binutils-gold linker. Wouldn't hurt to fix scons to pass the libs in the right order still.

@TTimo
Owner

Ended up compiling everything with no problem on Ubuntu 12.04:
apt-get install libjpeg62-dev

Majki, maybe Arch doesn't have that package, or you have other libjpeg62-dev packages installed that conflict?

@Majki

I still can't compile it

[michal@localhost ~]$ yaourt -Qs libjpeg
extra/libjpeg-turbo 1.2.0-1
libjpeg derivative with accelerated baseline JPEG compression and decompression
local/libjpeg6 6b-9
Library of JPEG support functions

Problem must be elsewhere.

As for binutils-gold, it's in the Arch Linux by default in bilutils package: http://www.archlinux.org/packages/core/i686/binutils/

as

usr/bin/ld
usr/bin/ld.bfd
usr/bin/ld.gold

@TTimo
Owner

Try removing libjpeg-turbo maybe. I saw that package on ubuntu and ignored it. It could be putting incompatible headers in the include path.

I don't see the usefulness/work ratio for this getting anywhere, so I don't plan to work on this specific problem further. I expect providing Linux binaries directly will solve this #12

@ghost

So, I commited two files and gtkradiant has compile ok. (arch)

@Majki

So now if I yaourt gtkradiant it will compile, yes?

@ghost

in AUR pkgbuild is outdated (uses SVN, instead git). I will fix it.
In my patch-1 i see only one file, but I have edit /tools/quake3/q3map2/image.c too. How can I add second file?

@ghost

I have add new pull. With right patches of both files. I have download my fork and it compiles ok. I will fix PKGBUILD later.

@TTimo
Owner

Thank you. I merged the change after checking that this still compiled on Debian/Sid. I would like someone to confirm that the Windows compilation hasn't broken before closing.

@TTimo
Owner

Windows is compiling fine still. Radiant locks up while loading q3dm17sample on a jpg file, but I confirmed this wasn't caused by this change.

@TTimo TTimo closed this Apr 9, 2012
@nyov nyov pushed a commit to xonotic/netradient that referenced this issue Jul 23, 2015
@mbasaglia mbasaglia Add help options to q3map2
Closes #9
13d728b
@nyov nyov pushed a commit to xonotic/netradient that referenced this issue Jul 23, 2015
@MarioSMB MarioSMB Merge branch 'Melanosuchus/q3map2_help' into 'master'
Add help options to q3map2

Closes #9

See merge request !5
c6378c2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment