OpenTitus icon indicating copy to clipboard operation
OpenTitus copied to clipboard

libopl_linux won't link in x86

Open neuromancer opened this issue 11 years ago • 2 comments
trafficstars

In the current repository, the precompiled versions of libopl are x86-64 and won't link in a i386 binary. In the OpenTitus compiling, you can see the errors:

cc -g -I./include -I./opl -o opentitus opentitus.o src/audio.o src/common.o src/draw.o src/enemies.o src/engine.o src/elevators.o src/fonts.o src/gates.o src/keyboard.o src/level.o src/menu.o src/objects.o src/original.o src/player.o src/reset.o src/scroll.o src/settings.o src/sprites.o src/sqz.o src/tile_animation.o src/viewimage.o opl/libopl_linux.a `sdl-config --cflags --libs` -lm -lSDL_mixer
/usr/bin/ld: i386:x86-64 architecture of input file `opl/libopl_linux.a(opl.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `opl/libopl_linux.a(opl_linux.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `opl/libopl_linux.a(opl_sdl.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `opl/libopl_linux.a(opl_timer.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `opl/libopl_linux.a(dbopl.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `opl/libopl_linux.a(opl_queue.o)' is incompatible with i386 output

neuromancer avatar Feb 05 '14 12:02 neuromancer

Ran into the same problem today, while packaging OpenTitus for Arch Linux. I provide prebuilt versions by myself as a workaround here. If somebody is interested, here are the package files.

carstene1ns avatar Feb 28 '14 22:02 carstene1ns

Ran into the same problem today, while packaging OpenTitus for Arch Linux. I provide prebuilt versions by myself as a workaround here. If somebody is interested, here are the package files.

Is there any fork of this repo which is easier to build for Windows and Linux?

xcom169 avatar Jun 03 '19 07:06 xcom169