aerys / minko

3D framework for web, desktop and mobile devices.
http://minko.io
Other
905 stars 210 forks source link

html5 build, latest emscripten #167

Closed unicomp21 closed 10 years ago

unicomp21 commented 10 years ago

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.21.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 . . .

miniduck commented 10 years ago

add

include "unistd.h"

to plugin\assimp\lib\assimp\contrib\zlib\gzguts.h

warrenseine commented 10 years ago

This issue will be fixed in the next beta. Thanks for reporting.

makc commented 7 years ago

@miniduck holy crap, that was helpful. why didn't you guys submit this back to assimp?