Closed unicomp21 closed 10 years ago
"C:\Program Files\Emscripten\emscripten\1.16.0\emcc.bat" -DEMSCRIPTEN -Wno-war
n-absolute-paths -DNDEBUG -DASSIMP_BUILD_NO_EXPORT -DASSIMP_BUILD_BOOST_WORKAROU
ND -DASSIMP_BUILD_NO_X_IMPORTER -DASSIMP_BUILD_NO_3DS_IMPORTER -DASSIMP_BUILD_NO
_MD3_IMPORTER -DASSIMP_BUILD_NO_MD2_IMPORTER -DASSIMP_BUILD_NO_MDL_IMPORTER -DAS
SIMP_BUILD_NO_ASE_IMPORTER -DASSIMP_BUILD_NO_HMP_IMPORTER -DASSIMP_BUILD_NO_SMD_
IMPORTER -DASSIMP_BUILD_NO_MDC_IMPORTER -DASSIMP_BUILD_NO_MD5_IMPORTER -DASSIMP_
BUILD_NO_LWO_IMPORTER -DASSIMP_BUILD_NO_DXF_IMPORTER -DASSIMP_BUILD_NO_NFF_IMPOR
TER -DASSIMP_BUILD_NO_RAW_IMPORTER -DASSIMP_BUILD_NO_OFF_IMPORTER -DASSIMP_BUILD
_NO_AC_IMPORTER -DASSIMP_BUILD_NO_BVH_IMPORTER -DASSIMP_BUILD_NO_IRRMESH_IMPORTE
R -DASSIMP_BUILD_NO_IRR_IMPORTER -DASSIMP_BUILD_NO_Q3D_IMPORTER -DASSIMP_BUILD_N
O_B3D_IMPORTER -DASSIMP_BUILD_NO_TERRAGEN_IMPORTER -DASSIMP_BUILD_NO_CSM_IMPORTE
R -DASSIMP_BUILD_NO_3D_IMPORTER -DASSIMP_BUILD_NO_LWS_IMPORTER -DASSIMP_BUILD_NO
_OGRE_IMPORTER -DASSIMP_BUILD_NO_MS3D_IMPORTER -DASSIMP_BUILD_NO_COB_IMPORTER -D
ASSIMP_BUILD_NO_Q3BSP_IMPORTER -DASSIMP_BUILD_NO_NDO_IMPORTER -DASSIMP_BUILD_NO_
IFC_IMPORTER -DASSIMP_BUILD_NO_XGL_IMPORTER -D"AI_LMW_MAX_WEIGHTS=4" -D"AI_SLM_D
EFAULT_MAX_VERTICES=128000" -D"AI_SLM_DEFAULT_MAX_TRIANGLES=21845" -I../../frame
work/include -I"C:/Program\ Files/Emscripten/emscripten/1.16.0/system/include" -
Iinclude -Isrc -Ilib/assimp/code -Ilib/assimp/code/BoostWorkaround -Ilib/assimp/
include -Ilib/assimp/contrib/clipper -Ilib/assimp/contrib/ConvertUTF -Ilib/assim
p/contrib/irrXML -Ilib/assimp/contrib/poly2tri -Ilib/assimp/contrib/unzip -Ilib/
assimp/contrib/zlib -O2 -Wno-attributes -Wimplicit-function-declaration -Wparen
theses-equality -o "obj/html5/release/gzlib.o" -MF obj/html5/release/gzlib.d -c
"lib/assimp/contrib/zlib/gzlib.c"
clang.exe: warning: argument unused during compilation: '-MF obj/html5/release/g
zlib.d'
lib/assimp/contrib/zlib/gzlib.c:256:24: error: implicit declaration of function
'lseek' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
state->start = LSEEK(state->fd, 0, SEEK_CUR);
^
lib/assimp/contrib/zlib/gzlib.c:14:17: note: expanded from macro 'LSEEK'
# define LSEEK lseek
^
lib/assimp/contrib/zlib/gzlib.c:256:24: note: did you mean 'fseek'?
state->start = LSEEK(state->fd, 0, SEEK_CUR);
^~~~~
fseek
lib/assimp/contrib/zlib/gzlib.c:14:17: note: expanded from macro 'LSEEK'
# define LSEEK lseek
^
C:\Program Files\Emscripten\emscripten\1.16.0\system\include\libc\stdio.h:71:5:
note:
'fseek' declared here
int fseek(FILE *, long, int);
^
1 error generated.
ERROR root: compiler frontend failed to generate LLVM bitcode, halting
mingw32-make[1]: *** [obj/html5/release/gzlib.o] Error 1
mingw32-make: *** [minko-plugin-assimp] Error 2
Press any key to continue . . .
Hi,
Thanks for reporting this issue. I can see that you're using Emscripten 1.16.0, which is quite recent and I haven't had time to test it myself. Is the issue happening with 1.13.0?
I've already seen this issue somewhere (the LSEEK macro thing) and remember it was related to 64-bit builds. And since that's a major change in 1.16.0, it may be related. We'll have to look at it while we fix it because it's still broken in the Lua plugin anyway.
PS: I'd appreciate if you could add a little more detail when reporting an issue, and try to use formatting as much as possible so it's easy for me and others to read.
Hi,
could you please test the latest version available on the dev branch and report?
Regards,