Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation error on mac 10.8.5 #3

Closed
arnaudgelas opened this issue May 8, 2014 · 5 comments
Closed

compilation error on mac 10.8.5 #3

arnaudgelas opened this issue May 8, 2014 · 5 comments

Comments

@arnaudgelas
Copy link
Member

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;
~~~~~~~~~~~~~ ^
/Users/arnaud/GITROOT/dcmjs/build/DCMTK/ofstd/include/dcmtk/ofstd/ofstream.h:119:23: error:
no type named 'ostrstream' in namespace 'std'
typedef STD_NAMESPACE ostrstream OFOStringStream;
~~~~~~~~~~~~~ ^
/Users/arnaud/GITROOT/dcmjs/build/DCMTK/ofstd/include/dcmtk/ofstd/ofstream.h:120:23: error:
no type named 'istrstream' in namespace 'std'
typedef STD_NAMESPACE istrstream OFIStringStream;
~~~~~~~~~~~~~ ^
4 errors generated.
ERROR root: compiler frontend failed to generate LLVM bitcode, halting

@jcfr
Copy link
Member

jcfr commented May 8, 2014

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 ?

@arnaudgelas
Copy link
Member Author

  • Right, I have installed the latest SDK on mac.
  • In 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 */
  • In the DCMTK-build folder (and subfolders), there isn't any file named Try*.cmake

@pieper
Copy link
Member

pieper commented May 8, 2014

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.

@jcfr
Copy link
Member

jcfr commented May 8, 2014

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

@arnaudgelas
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants