seikichi / tiff.js

tiff.js is a port of LibTIFF by compiling the LibTIFF C code with Emscripten.
Other
383 stars 97 forks source link

Build Attempt: 'tiffio.h' file not found #2

Open jlpoolen opened 9 years ago

jlpoolen commented 9 years ago

I installed the emscripten according to http://kripken.github.io/emscripten-site/docs/building_from_source/building_emscripten_from_source_on_linux.html

I installed this project at /home/jlpoole/work/tiff.

In directory /home/jlpoole/work/tiff/tiff.js/trunk, I ran:

./build.sh

got:

  ...

Libtiff is now configured for x86_64-unknown-linux-gnu

Installation directory:             /usr/local
Documentation directory:            ${prefix}/share/doc/tiff-4.0.3
C compiler:                         /usr/local/src/emscriptenSDK/emscripten/emcc  -Wall -W
C++ compiler:                       /usr/local/src/emscriptenSDK/emscripten/em++ -g -O2
Enable runtime linker paths:        no
Enable linker symbol versioning:    no
Support Microsoft Document Imaging: yes
Use win32 IO:                       no

Support for internal codecs: CCITT Group 3 & 4 algorithms: yes Macintosh PackBits algorithm: yes LZW algorithm: yes ThunderScan 4-bit RLE algorithm: yes NeXT 2-bit RLE algorithm: yes LogLuv high dynamic range encoding: yes

Support for external codecs: ZLIB support: no Pixar log-format algorithm: no JPEG support: no Old JPEG support: no JPEG 8/12 bit dual mode: no ISO JBIG support: no LZMA2 support: no

C++ support:                        yes

OpenGL support:                     yes

Making all in port ...

export.c:1:10: fatal error: 'tiffio.h' file not found

include "tiffio.h"

    ^

1 error generated. ERROR root: compiler frontend failed to generate LLVM bitcode, halting

Yet, tiffio.h is present:

jlpoole@themis ~/work/tiff/tiff.js/trunk $ find . -name "tiffio.h" ./tiff-4.0.3/libtiff/tiffio.h jlpoole@themis ~/work/tiff/tiff.js/trunk $

jlpoolen commented 9 years ago

Complete transcript at http://pastebin.com/dvDySsjA

jlpoolen commented 9 years ago

I found if I modified the file in trunk, export.c as follows:

 //#include "tiffio.h"
 #include "tiff-4.0.3/libtiff/tiffio.h"

the process proceeded. (I ran into another problem which probably is my environment.)

I do not know if the inclusion of the path is appropriate, but it allowed me to move to the next step.

RaghavRamesh commented 9 years ago

Including the entire path worked for me, thanks!