Urban Terror Forums: Running server on FreeBSD arm64 - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Running server on FreeBSD arm64 Rate Topic: -----

Is it possible to build for the arm64 architecture?

#1 User is offline   sevimeth Icon

  • Account: sevimeth
  • Main tag: [JTC]
  • Country:
  • Joined: 13-September 14
  • Posts: 3

Posted 13 December 2018 - 09:18 AM

Hi,

I would like to set up a server on a Raspberry Pi 3 running FreeBSD 13.0. I have already managed to set up a server on OpenBSD 6.4 on an amd64 machine, but I cannot get ioquake3 to compile on the Pi.

Here is what I have tried:

1. Compile from source on the Raspberry Pi


gmake[1]: Entering directory '/usr/home/urtadmin/src/ioq3-for-UrbanTerror-4'

Building Quake3-UrT in build/release-freebsd-arm64:
  PLATFORM: freebsd
  ARCH: arm64
  COMPILE_PLATFORM: freebsd
  COMPILE_ARCH: arm64
  CC: cc

  CFLAGS:
    -Wall
    -fno-strict-aliasing
    -Wimplicit
    -Wstrict-prototypes
    -DHOMEPATH="/.ioUrbanTerror"
    -DDEFAULT_LIBDIR="/usr/local/lib/iourbanterror"
    -DUSE_ICON
    -DMAP_ANONYMOUS=MAP_ANON
    -DUSE_CURL
    -DUSE_AUTH=1
    -DUSE_DEMO_FORMAT_42=1
    -DUSE_LOCAL_HEADERS=1
    -MMD

  Output:
    build/release-freebsd-arm64/Quake3-UrT-Ded.arm64
    build/release-freebsd-arm64/Quake3-UrT.arm64

gmake[2]: Entering directory '/usr/home/urtadmin/src/ioq3-for-UrbanTerror-4'
DED_CC code/server/sv_bot.c
In file included from code/server/sv_bot.c:24:
In file included from code/server/server.h:24:
In file included from code/server/../qcommon/q_shared.h:120:
code/server/../qcommon/q_platform.h:272:2: error: "Architecture not supported"
#error "Architecture not supported"
 ^
1 error generated.
gmake[2]: *** [Makefile:1765: build/release-freebsd-arm64/ded/sv_bot.o] Error 1
gmake[2]: Leaving directory '/usr/home/urtadmin/src/ioq3-for-UrbanTerror-4'
gmake[1]: *** [Makefile:1000: targets] Error 2
gmake[1]: Leaving directory '/usr/home/urtadmin/src/ioq3-for-UrbanTerror-4'
gmake: *** [Makefile:977: release] Error 2



2. Compile from source on the OpenBSD box (amd64), trying to cross-compile for arm64


gmake[1]: Entering directory '/home/bertalanp99/src/ioq3-for-UrbanTerror-4'

Building Quake3-UrT in build/release-freebsd-arm64:
  PLATFORM: freebsd
  ARCH: arm64
  COMPILE_PLATFORM: openbsd
  COMPILE_ARCH: amd64
  CC: cc

  CFLAGS:
    -Wall
    -fno-strict-aliasing
    -Wimplicit
    -Wstrict-prototypes
    -DHOMEPATH="/.ioUrbanTerror"
    -DDEFAULT_LIBDIR="/usr/local/lib/iourbanterror"
    -DUSE_ICON
    -DMAP_ANONYMOUS=MAP_ANON
    -I/usr/local/include/SDL
    -D_GNU_SOURCE=1
    -D_REENTRANT
    -I/usr/X11R6/include
    -DXTHREADS
    -DUSE_CURL
    -DUSE_AUTH=1
    -DUSE_DEMO_FORMAT_42=1
    -DUSE_LOCAL_HEADERS=1
    -MMD

  Output:
    build/release-freebsd-arm64/Quake3-UrT-Ded.arm64
    build/release-freebsd-arm64/Quake3-UrT.arm64

gmake[2]: Entering directory '/home/bertalanp99/src/ioq3-for-UrbanTerror-4'
LD build/release-freebsd-arm64/Quake3-UrT-Ded.arm64
build/release-freebsd-arm64/ded/sv_ccmds.o: In function `SV_ConSay_f':
sv_ccmds.c:(.text+0x1b57): warning: strcat() is almost always misused, please use strlcat()
sv_ccmds.c:(.text+0x1ae3): warning: strcpy() is almost always misused, please use strlcpy()
build/release-freebsd-arm64/ded/sv_client.o: In function `SV_GetChallenge':
sv_client.c:(.text+0x124): warning: rand() may return deterministic values, is that what you want?
build/release-freebsd-arm64/ded/sv_snapshot.o: In function `SV_CheckClientUserinfoTimer':
sv_snapshot.c:(.text+0x1106): warning: sprintf() is often misused, please use snprintf()
build/release-freebsd-arm64/ded/sv_bot.o: In function `BotImport_Print':
sv_bot.c:(.text+0x613): warning: vsprintf() is often misused, please use vsnprintf()
build/release-freebsd-arm64/ded/vm.o: In function `VM_Create':
vm.c:(.text+0x16b2): undefined reference to `VM_Compile'
build/release-freebsd-arm64/ded/vm.o: In function `VM_Call':
vm.c:(.text+0x1de5): undefined reference to `VM_CallCompiled'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [Makefile:1442: build/release-freebsd-arm64/Quake3-UrT-Ded.arm64] Error 1
gmake[2]: Leaving directory '/home/bertalanp99/src/ioq3-for-UrbanTerror-4'
gmake[1]: *** [Makefile:1000: targets] Error 2
gmake[1]: Leaving directory '/home/bertalanp99/src/ioq3-for-UrbanTerror-4'
gmake: *** [Makefile:977: release] Error 2



3. I tried building this as well, no dice

Thanks for any help in advance :D

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Advertisement


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942