Closed arnaudgelas closed 10 years ago
On Linux 13.04, I used emscripten master with the emscripten customized version of clang. On Mac, I am assuming you installed the SDK ?
What is the value of HAVE_SSTREAM
and HAVE_STRSTREAM
in /path/to/dcmjs-build//DCMTK-build/config/include/dcmtk/config/osconfig.h
?
In my case, both are defined. I would expect the same on your side.
In the the DCMTK-build
folder, is there a TryRunResults.cmake
file ?
osconfig.h
536 /* Define to 1 if you have the <sstream> header file. */
537 /* #undef HAVE_SSTREAM */
538
539 /* Define to 1 if you have the <sstream.h> header file. */
540 /* #undef HAVE_SSTREAM_H */
[…]
612 /* Define to 1 if you have the `strstr' function. */
613 /* #undef HAVE_STRSTR */
614
615 /* Define to 1 if you have the <strstream> header file. */
616 /* #undef HAVE_STRSTREAM */
617
618 /* Define to 1 if you have the <strstream.h> header file. */
619 /* #undef HAVE_STRSTREAM_H */
620
621 /* Define to 1 if you have the <strstrea.h> header file. */
622 /* #undef HAVE_STRSTREA_H */
DCMTK-build
folder (and subfolders), there isn't any file named Try*.cmake
As a datapoint I could not replicate this on mac ox 10.9 with emscripten emsdk_portable 1.16.0 and cmake 2.8.12.1. Everything built cleanly.
@arnaudgelas Could you try re-configuring the DCMTK project in DCMTK-build
passing -DHAVE_STRSTREAM:BOOL=1
and -DHAVE_SSTREAM:BOOL=1
?
If this work, will update External_DCMTK.cmake
accordingly .. if not, considering it works on the latest macosx with the latest emscripten, I will mark it as won't fix.
@jcfr I have just reinstalled emscripten and pulled latest changes, it looks much better!! I still have some issues though, some related to #1 #4 and #6 I'll thus close this issue.
Any idea what's wrong?
/Users/arnaud/GITROOT/dcmjs/build/DCMTK/ofstd/include/dcmtk/ofstd/ofstream.h:43:2: error: DCMTK needs stringstream or strstream type
error DCMTK needs stringstream or strstream type
^ /Users/arnaud/GITROOT/dcmjs/build/DCMTK/ofstd/include/dcmtk/ofstd/ofstream.h:118:23: error: no type named 'strstream' in namespace 'std' typedef STD_NAMESPACE strstream OFStringStream;