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

Build error for dcmj2pnm #32

Open
tarinitorpe opened this issue Jun 17, 2019 · 2 comments
Open

Build error for dcmj2pnm #32

tarinitorpe opened this issue Jun 17, 2019 · 2 comments

Comments

@tarinitorpe
Copy link

I have a problem: when I build it and the dcmj2pnm app is in the build, the build is faild with this error:
In file included from /work/dcmjs-build/DCMTK/dcmjpeg/apps/dcmj2pnm.cc:27:
/work/dcmjs-build/DCMTK/dcmjpeg/apps/../../dcmimage/apps/dcm2pnm.cc:121:10: fatal error: 'dcmtk/config/dcm2pnm_app.h' file not found
#include "dcmtk/config/dcm2pnm_app.h"
If I am right the problem is in the dcmtk source code, my question is that is there any option to change the version of the used dcmtk source? (If I am right You forked the dcmtk git repo and You use your own version of it. ) Can You give me a little description how can I use an other version of the dcmtk? (On my machine I currently using the native c++ 3.6.2 and it is working well.)
thx

@pieper
Copy link
Member

pieper commented Jun 17, 2019

Did you enable dcm2pnm in your build also? I'd guess the jpeg version won't build without it:

https://github.com/jcfr/DCMTK/blob/patched/dcmjpeg/apps/dcmj2pnm.cc#L38

If you are still having problems, could you include your exact configuration steps (also try to use the docker build so everything is reproducible).

@tarinitorpe
Copy link
Author

Thx the quick reply! I tried to enable that, it is still failed but the error message is different:

error: Linking globals named '_Z12dcm2pnm_mainiPPc': symbol multiply defined!
ERROR:root:Failed to run llvm optimizations:
ninja: build stopped: subcommand failed.
FAILED: dcmjs-prefix/src/dcmjs-stamp/dcmjs-build
cd /work/dcmjs-build/dcmjs-build && /usr/bin/cmake --build . && /usr/bin/cmake -E touch /work/dcmjs-build/dcmjs-prefix/src/dcmjs-stamp/dcmjs-build
ninja: build stopped: subcommand failed.

I am using this steps for the building:
1.:
dockcross-browser-asmjs cmake -Bdcmjs-build -H. -GNinja -DBUILD_cda2dcm_APP=OFF -DBUILD_dcm2json_APP=OFF -DBUILD_dcm2pdf_APP=OFF -DBUILD_dcm2pnm_APP=ON -DBUILD_dcm2xml_APP=OFF -DBUILD_dcmcjpeg_APP=OFF -DBUILD_dcmcjpls_APP=OFF -DBUILD_dcmconv_APP=OFF -DBUILD_dcmcrle_APP=OFF -DBUILD_dcmdjpeg_APP=OFF -DBUILD_dcmdjpls_APP=OFF -DBUILD_dcmdrle_APP=OFF -DBUILD_dcmdspfn_APP=OFF -DBUILD_dcmdump_APP=ON -DBUILD_dcmftest_APP=ON -DBUILD_dcmgpdir_APP=OFF -DBUILD_dcmicmp_APP=OFF -DBUILD_dcmj2pnm_APP=ON -DBUILD_dcml2pnm_APP=OFF -DBUILD_dcmmkcrv_APP=OFF -DBUILD_dcmmkdir_APP=OFF -DBUILD_dcmmklut_APP=OFF -DBUILD_dcmodify_APP=ON -DBUILD_dcmp2pgm_APP=OFF -DBUILD_dcmprscp_APP=OFF -DBUILD_dcmprscu_APP=OFF -DBUILD_dcmpschk_APP=OFF -DBUILD_dcmpsmk_APP=OFF -DBUILD_dcmpsprt_APP=OFF -DBUILD_dcmpsrcv_APP=OFF -DBUILD_dcmpssnd_APP=OFF -DBUILD_dcmqridx_APP=OFF -DBUILD_dcmqrscp_APP=OFF -DBUILD_dcmqrti_APP=OFF -DBUILD_dcmquant_APP=OFF -DBUILD_dcmrecv_APP=OFF -DBUILD_dcmscale_APP=OFF -DBUILD_dcmsend_APP=OFF -DBUILD_dcmsign_APP=OFF -DBUILD_dcod2lum_APP=OFF -DBUILD_dconvlum_APP=OFF -DBUILD_drtdump_APP=OFF -DBUILD_dsr2html_APP=OFF -DBUILD_dsr2xml_APP=OFF -DBUILD_dsrdump_APP=OFF -DBUILD_dump2dcm_APP=OFF -DBUILD_echoscu_APP=OFF -DBUILD_findscu_APP=OFF -DBUILD_getscu_APP=OFF -DBUILD_img2dcm_APP=OFF -DBUILD_mdfconen_APP=OFF -DBUILD_mdfdsman_APP=OFF -DBUILD_movescu_APP=OFF -DBUILD_pdf2dcm_APP=OFF -DBUILD_stl2dcm_APP=OFF -DBUILD_storescp_APP=OFF -DBUILD_storescu_APP=OFF -DBUILD_termscu_APP=OFF -DBUILD_wlcefs_APP=OFF -DBUILD_wlmscpfs_APP=OFF -DBUILD_xml2dcm_APP=OFF -DBUILD_xml2dsr_APP=OFF

2.:
dockcross-browser-asmjs ninja -Cdcmjs-build

And I using the latest stable version of the dcmjs-master. (I download it in zip on 05.27. If I am right the current version is faild on the CI so I did not update for that.)
thx

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

2 participants