Trying to build qengine on FreeBSD:
$ mkdir build
$ cd build/
$ cmake -DBUILD_SDL=OFF -DBUILD_DOCS=OFF ..
This fails, as the following include has to be added to src/platform/unix/memory.c first:
@@ -36,6 +36,7 @@
#if defined(__FreeBSD__) || defined(__OpenBSD__)
#include <machine/param.h>
+#include <sys/types.h>
#define MAP_ANONYMOUS MAP_ANON
#endif
Then, linking fails:
[ 31%] Building C object CMakeFiles/client.dir/src/game/player/weapon.c.o
[ 32%] Linking C executable client
ld: error: undefined symbol: input_update
>>> referenced by system.c
>>> CMakeFiles/client.dir/src/platform/unix/system.c.o:(Sys_SendKeyEvents)
[…]
Perhaps, input.h is not found for whatever reason?
Trying to build qengine on FreeBSD:
$ mkdir build $ cd build/ $ cmake -DBUILD_SDL=OFF -DBUILD_DOCS=OFF ..This fails, as the following include has to be added to
src/platform/unix/memory.cfirst:Then, linking fails:
Perhaps,
input.his not found for whatever reason?