Skip to content
This repository

Radiant fails to compile on Arch / Ubuntu #9

Closed
Majki opened this Issue · 15 comments

3 participants

Majki Timothee "TTimo" Besset alex8664
Majki
Majki commented

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.

Timothee "TTimo" Besset
Owner
TTimo commented

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
Majki commented

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

Timothee "TTimo" Besset
Owner
TTimo commented
Majki
Majki commented

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.

Timothee "TTimo" Besset
Owner
TTimo commented

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

Timothee "TTimo" Besset
Owner
TTimo commented

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.

Timothee "TTimo" Besset
Owner
TTimo commented

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
Majki commented

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

Timothee "TTimo" Besset
Owner
TTimo commented

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

alex8664

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

Majki
Majki commented

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

alex8664

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?

alex8664

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.

Timothee "TTimo" Besset
Owner
TTimo commented

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.

Timothee "TTimo" Besset
Owner
TTimo commented

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.

Timothee "TTimo" Besset TTimo closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.