quake3 icon indicating copy to clipboard operation
quake3 copied to clipboard

Compile on Arch X86_64 on Ubuntu 18.04

Open sebastianene07 opened this issue 5 years ago • 3 comments

I'm trying to build from master HEAD: 8d89a2a3c1707bf0f75b2ea26645b872e97c0b95 with this Makefile.local options:

COMPILE_PLATFORM=linux
COMPILE_ARCH=x86_64
COPYDIR=~/.q3/
CC=gcc

Running : make -f Makefile_ubuntu V=2 reaches a point where it produces the following error during linking:

LD build/release-linux-x86_64/ioq3ded.x86_64
build/release-linux-x86_64/ded/sys_main.o: In function `main':
sys_main.c:(.text.startup+0xe): undefined reference to `bcm_host_init'
collect2: error: ld returned 1 exit status

My impression is that bcm_host_init should be guarded here.

sebastianene07 avatar Apr 04 '19 15:04 sebastianene07

I have a working patch for Ubuntu 18.04 X86_64 should I make a PR ?

sebastianene07 avatar Apr 04 '19 15:04 sebastianene07

So you are trying to build raspberrypi/quake3 to run on an x86_64 Ubuntu host?

If you have a patch that fixes that without breaking the ability to build for raspberry pi then sure, submit a PR.

popcornmix avatar Apr 05 '19 15:04 popcornmix

Correct I am trying to build on X86_64 Ubuntu host. Currently the patch will break the raspberry pi compilation but I'll fix this in a new commit and then I'll post a PR. My branch is https://github.com/SebiEne/quake3/tree/sene/quake3_fix_x86_compilation_ubuntu

sebastianene07 avatar Apr 07 '19 09:04 sebastianene07