Open jlpoolen opened 9 years ago
This is happening to me also.
In tiffconf.h:
In tiff.h: typedef TIFF_UINT64_T uint64;
tiffconf.h is implementation specific. My guess is that the build script doesn't incorporate this file for whatever reason.
When building with build.sh I am seeing:
This is the default on a 64 bit architecture, but on a 32 bit architecture, long is 32 bits. Somewhere in the process, the code is being interpreted as 32 bit even though it is compiled for a 64 bit architecture.
I'm changing the ./configure line to include the args CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=m32
This will keep things in 32 bit mode across the board and hopefully generate correct configuration.
Confirmed the above solution works
I tried to compile my own version after setting up emscripten on my Gentoo Linux (64) machine. There were warnings issued during the compile documented in another ticket filed shortly before this one. Otherwise, the file built without incident except that the last step of using clojure failed as I do not have closure installed. My understanding is clojure simply compresses and obfuscates the JavaScript, there is no material change. Basically I modified the this project's file
basic.html
to reference my JavaScript (not compressed).When I try to load a sample page I receive in my Firefox browser with Firebug Tools activated:
tiff_open.c around line 99 has:
The system I compiled on is a 64 bit system: