project-navigation
Personal tools

Author Topic: linux-installer: 64bit binary uses 32bit libraries, why?  (Read 3980 times)

EyesKiller

  • Guest
linux-installer: 64bit binary uses 32bit libraries, why?
« on: April 04, 2007, 05:09:20 pm »
Hi, I installed ufoai with linux-installer ufoai-2.1-linux.run. I deselected option "32bit binary". If I check, which libraries ufoai does use, it doesn't use 64-bit libs. Why?

cu Floh

[floh@Turion ufoai]$ ldd ufo
        linux-gate.so.1 =>  (0xffffe000)
        libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x00821000)
        libjack-0.100.0.so.0 => /usr/lib/libjack-0.100.0.so.0 (0xf7fcb000)
        libGL.so.1 => /usr/lib/libGL.so.1 (0x00a2c000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00bff000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xf7fa8000)
        libSDL_ttf-2.0.so.0 => /usr/lib/libSDL_ttf-2.0.so.0 (0xf7fa2000)
        libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0xf7f08000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x009ca000)
        libvorbisfile.so.3 => /usr/lib/libvorbisfile.so.3 (0xf7f00000)
        libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0xf7ed6000)
        libogg.so.0 => /usr/lib/libogg.so.0 (0xf7ecf000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00b35000)
        libm.so.6 => /lib/libm.so.6 (0x009e9000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0x0071d000)
        libc.so.6 => /lib/libc.so.6 (0x0088b000)
        libdl.so.2 => /lib/libdl.so.2 (0x009e3000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0x0070b000)
        libdrm.so.2 => /usr/lib/libdrm.so.2 (0x00bac000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xf7e4e000)
        /lib/ld-linux.so.2 (0x0086e000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0x00b30000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00a24000)

Offline Zenerka

  • Sergeant
  • *****
  • Posts: 301
    • View Profile
linux-installer: 64bit binary uses 32bit libraries, why?
« Reply #1 on: April 04, 2007, 06:05:07 pm »
Because there is no support for that (yet), I believe. Maybe you can try to prepare a patch?

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
linux-installer: 64bit binary uses 32bit libraries, why?
« Reply #2 on: April 04, 2007, 06:13:02 pm »
no - we fully support 64 bit archs - but we just had noone who compiled it

EyesKiller

  • Guest
linux-installer: 64bit binary uses 32bit libraries, why?
« Reply #3 on: April 05, 2007, 11:06:48 am »
I would like to compile myself. But unfortunatelly it doesn't work.

I did following:
extract ufoai-2.1-source.tar.bz2
extract ufoai-2.1-mapsource.tar into ufoai-2.1-source
./configure
make

after some minutes it's finished (isn't that quick?). The last lines contains following:
Code: [Select]
CFLAGS
-----------------------
-g -O2 -D_GNU_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE -std=c89 -DHAVE_CONFIG_H -Wall -pipe -DHAVE_SHADERS -ggdb -O0 -DDEBUG -fno-inline

LDFLAGS
-----------------------


Gettext
-----------------------
Type 'make lang' to compile the gettext translation files.
Type 'make update-po' to update with newest strings

Maps
-----------------------
Type 'make maps' to compile the maps

Built for debug-linux-gnu-x86_64

[floh@Turion ufoai-2.1-source]$
So I did 'make lang', which gives me a lot of messages:
Code: [Select]
[floh@Turion ufoai-2.1-source]$ make lang
Making lang
cs.po
1382 translated messages, 25 untranslated messages.
da.po
54 translated messages, 221 fuzzy translations, 1131 untranslated messages.
de.po
1395 translated messages, 11 fuzzy translations.
en.po
1406 translated messages.
es.po
666 translated messages, 479 fuzzy translations, 261 untranslated messages.
es_ES.po
877 translated messages, 363 fuzzy translations, 166 untranslated messages.
est.po
812 translated messages, 369 fuzzy translations, 225 untranslated messages.
fr.po
1407 translated messages.
it.po
609 translated messages, 389 fuzzy translations, 408 untranslated messages.
pl.po
1275 translated messages, 131 untranslated messages.
pt_BR.po
418 translated messages, 463 fuzzy translations, 525 untranslated messages.
ru.po
791 translated messages, 420 fuzzy translations, 195 untranslated messages.
slo.po
487 translated messages, 442 fuzzy translations, 477 untranslated messages.
sv.po
1241 translated messages, 1 fuzzy translation, 164 untranslated messages.
[floh@Turion ufoai-2.1-source]$


'make update-po' seems to be fine.

Then I want to 'make maps', which fails because of missing files. :(
Code: [Select]
[floh@Turion ufoai-2.1-source]$ make maps
make[1]: Entering directory `/home/floh/neue_download/ufoai/ufoai-2.1-source/base/maps'
../../ufo2map -nice 19 -extra -bounce 0 frozenn/st_i05.map
---- ufo2map 1.0 ----
nice = 19
extrasamples = true
light bounces = 0
...map: '/home/floh/neue_download/ufoai/ufoai-2.1-source/base/maps/frozenn/st_i05.map'
...bsp: '/home/floh/neue_download/ufoai/ufoai-2.1-source/base/maps/frozenn/st_i05.bsp'
entering /home/floh/neue_download/ufoai/ufoai-2.1-source/base/maps/frozenn/st_i05.map
0...1...2...3...4...5...6...7...8...9... (0)
0...1...2...3...4...5...6...7...8...9... (0)
0...1...2...3...4...5...6...7...8...9... (3)
Writing /home/floh/neue_download/ufoai/ufoai-2.1-source/base/maps/frozenn/st_i05.bsp
    3 seconds elapsed
----- Radiosity ----

************ ERROR ************
Error opening /home/floh/neue_download/ufoai/ufoai-2.1-source/base/pics/colormap.pcx for reading: No such file or directory
make[1]: *** [frozenn/st_i05.bsp] Error 1
make[1]: Leaving directory `/home/floh/neue_download/ufoai/ufoai-2.1-source/base/maps'
make: *** [maps] Error 2
[floh@Turion ufoai-2.1-source]$


And the most important thing is, there is no rule for 'install':
Code: [Select]
[floh@Turion ufoai-2.1-source]$
[floh@Turion ufoai-2.1-source]$ make install
make: *** No rule to make target `install'.  Stop.
[floh@Turion ufoai-2.1-source]$


I'm willing to try to help you (developer) if you don't have a 64bit arch. I would like to know, what did I wrong.

cu Floh

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
linux-installer: 64bit binary uses 32bit libraries, why?
« Reply #4 on: April 05, 2007, 11:31:08 am »
the problem here is, that the map compile tool can't handle our pk3 files atm - pk3 files are zip files - you should extract the colomap.pcx from 0pics.pk3.. then ufo2map should work

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
linux-installer: 64bit binary uses 32bit libraries, why?
« Reply #5 on: April 05, 2007, 11:31:49 am »
ah btw... developers are always needed ;-) feel free to join our irc channel

EyesKiller

  • Guest
linux-installer: 64bit binary uses 32bit libraries, why?
« Reply #6 on: April 05, 2007, 11:42:55 am »
Quote from: "Mattn"
ah btw... developers are always needed ;-) feel free to join our irc channel
Um, I didn't mean to help you as developer but as 64bit-tester.
About colormap I'll try. :) But what about missing 'install' rule?

cu Floh
PS: Ah by the way... I have a bit experience in make rpm-packages. So I could make rpm for you. :)

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
linux-installer: 64bit binary uses 32bit libraries, why?
« Reply #7 on: April 05, 2007, 12:03:49 pm »
we have several people who build rpms already - opensuse (Dimstar) and fedora (?)

there is no install rule yet - it's up to the packagers to put it in the right places atm

we'll see what the future will bring

EyesKiller

  • Guest
linux-installer: 64bit binary uses 32bit libraries, why?
« Reply #8 on: April 05, 2007, 12:08:11 pm »
I'm using Fedora Core 6. If there is no FC6-packager for ufoai, then I could try that.
And where is the doc, which tells the user how to install after compile?

cu Floh

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools