Выкачал сам quakejs, затем вкинул в папку ioq3 файлы отсюда https://github.com/inolen/ioq3/tree/4f7d7bf...aa760abac817b2a
Затем выкачал https://github.com/kripken/emscripten по этой же ссылке, поместил в папку /root/quakejs/emscripten
Теперь делаю следующее:
Код: Выделить всё
root@debian:~/quakejs/ioq3# make PLATFORM=js EMSCRIPTEN=/root/quakejs/emscriptenи получаю
Код: Выделить всё
root@debian:~/quakejs/ioq3# make PLATFORM=js EMSCRIPTEN=/root/quakejs/emscripten
make[1]: вход в каталог «/root/quakejs/ioq3»
Building in build/release-js-js:
PLATFORM: js
ARCH: js
VERSION: 1.36
COMPILE_PLATFORM: linux
COMPILE_ARCH: x86
CC: /root/quakejs/emscripten/emcc
CFLAGS:
-DNO_GZIP -Icode/zlib -DUSE_INTERNAL_JPEG -Icode/jpeg-8c -DSTANDALONE -DPRODUCT_VERSION="1.36" -Wformat=2 -Wno-format-zero-length -Wformat-security
-Wno-format-nonliteral -Wstrict-aliasing=2 -Wmissing-format-attribute -Wdisabled-optimization -Werror-implicit-function-declaration -MMD -DNDEBUG -O2
CLIENT_CFLAGS:
-DUSE_OPENAL -DUSE_CODEC_OPUS -DOPUS_BUILD -DHAVE_LRINTF -DFLOATING_POINT -DUSE_ALLOCA -Icode/opus-1.0.2/include -Icode/opus-1.0.2/celt
-Icode/opus-1.0.2/silk -Icode/opus-1.0.2/silk/float -Icode/opusfile-0.2/include -Icode/libogg-1.3.0/include
SERVER_CFLAGS:
LDFLAGS:
CLIENT_LDFLAGS:
--js-library code/sys/sys_common.js --js-library code/sys/sys_browser.js --js-library code/qcommon/vm_js.js -s INVOKE_RUN=0 -s
EXPORTED_FUNCTIONS=['_main', '_malloc', '_free', '_atof', '_Com_Printf', '_Com_Error', '_Com_ProxyCallback', '_Com_GetCDN', '_Com_GetManifest',
'_Z_Malloc', '_Z_Free', '_S_Malloc', '_Cvar_Set', '_Cvar_VariableString', '_VM_GetCurrent', '_VM_SetCurrent', '_VM_Syscall'] -s OUTLINING_LIMIT=20000
-s LEGACY_GL_EMULATION=1 -s RESERVED_FUNCTION_POINTERS=1 -s TOTAL_MEMORY=234881024 -s EXPORT_NAME="ioq3" -DNDEBUG -O2
SERVER_LDFLAGS:
--js-library code/sys/sys_common.js --js-library code/sys/sys_node.js --js-library code/qcommon/vm_js.js -s INVOKE_RUN=1 -s EXPORTED_FUNCTIONS=['_main',
'_malloc', '_free', '_atof', '_Com_Printf', '_Com_Error', '_Com_ProxyCallback', '_Com_GetCDN', '_Com_GetManifest', '_Z_Malloc', '_Z_Free',
'_S_Malloc', '_Cvar_Set', '_Cvar_VariableString', '_CON_SetIsTTY', '_VM_GetCurrent', '_VM_SetCurrent', '_VM_Syscall'] -s OUTLINING_LIMIT=20000
-s LEGACY_GL_EMULATION=1 -s RESERVED_FUNCTION_POINTERS=1 -s TOTAL_MEMORY=234881024 -s EXPORT_NAME="ioq3ded" -DNDEBUG -O2
LIBS:
CLIENT_LIBS:
Output:
ioq3ded.js
ioquake3.js
baseq3/cgame.js
baseq3/qagame.js
baseq3/ui.js
missionpack/cgame.js
missionpack/qagame.js
missionpack/ui.js
baseq3/vm/cgame.qvm
baseq3/vm/qagame.qvm
baseq3/vm/ui.qvm
missionpack/vm/cgame.qvm
missionpack/vm/qagame.qvm
missionpack/vm/ui.qvm
make[2]: вход в каталог «/root/quakejs/ioq3»
DED_CC code/server/sv_bot.c
[color="#FFFF00"]WARNING:root:LLVM version appears incorrect (seeing "3.5", expected "3.7")[/color]
[color="#FF0000"]CRITICAL:root:fastcomp in use, but LLVM has not been built with the JavaScript backend as a target, llc reports:
[/color]===========================================================================
LLVM (http://llvm.org/):
LLVM version 3.5.0
Optimized build.
Built Feb 27 2015 (18:47:04).
Default target: i386-pc-linux-gnu
Host CPU: atom
Registered Targets:
aarch64 - AArch64 (little endian)
aarch64_be - AArch64 (big endian)
arm - ARM
arm64 - AArch64 (little endian)
arm64_be - AArch64 (big endian)
armeb - ARM (big endian)
cpp - C++ backend
hexagon - Hexagon
mips - Mips
mips64 - Mips64 [experimental]
mips64el - Mips64el [experimental]
mipsel - Mipsel
msp430 - MSP430 [experimental]
nvptx - NVIDIA PTX 32-bit
nvptx64 - NVIDIA PTX 64-bit
ppc32 - PowerPC 32
ppc64 - PowerPC 64
ppc64le - PowerPC 64 LE
r600 - AMD GPUs HD2XXX-HD6XXX
sparc - Sparc
sparcv9 - Sparc V9
systemz - SystemZ
thumb - Thumb
thumbeb - Thumb (big endian)
x86 - 32-bit X86: Pentium-Pro and above
x86-64 - 64-bit X86: EM64T and AMD64
xcore - XCore
===========================================================================
[color="#FF0000"]CRITICAL:root:you can fall back to the older (pre-fastcomp) compiler core, although that is not recommended, see http://kripken.github.io/emscripten-site/docs/building_from_source/LLVM-Backend.html[/color]
INFO:root:(Emscripten: Running sanity checks)
[color="#FF0000"]CRITICAL:root:failing sanity checks due to previous fastcomp failure[/color]
Makefile:2647: ошибка выполнения рецепта для цели «build/release-js-js/ded/sv_bot.o»
make[2]: *** [build/release-js-js/ded/sv_bot.o] Ошибка 1
make[2]: выход из каталога «/root/quakejs/ioq3»
Makefile:1289: ошибка выполнения рецепта для цели «targets»
make[1]: *** [targets] Ошибка 2
make[1]: выход из каталога «/root/quakejs/ioq3»
Makefile:1263: ошибка выполнения рецепта для цели «release»
make: *** [release] Ошибка 2
root@debian:~/quakejs/ioq3#Даже не представляю в чем причина... и что собственно делать? Прошу Вашей помощи, господа.
Цветами выделил то, как выделяется из консоли.