Hello all,
I’m very excited to test out the newest release of Orthanc.
I’ve successfully compiled Orthanc 1.2.0 on Fedora Server 25.
I tried to compile Orthanc 1.3.0 but came accross the following issue while compiling it:
`
In file included from /home/user/OrthancBuild-1.3.0/dcmtk-3.6.2/oflog/libsrc/syncprims.cc:27:0:
/home/user/OrthancBuild-1.3.0/dcmtk-3.6.2/oflog/include/dcmtk/oflog/thread/syncpub.h: In constructor ‘dcmtk::log4cplus::Mutex::Mutex(dcmtk::log4cplus::Mutex::Type)’:
/home/user/OrthancBuild-1.3.0/dcmtk-3.6.2/oflog/include/dcmtk/oflog/thread/syncpub.h:66:59: error: invalid conversion from ‘int’ to ‘dcmtk::log4cplus::MutexImplBase*’ [-fpermissive]
: mtx (DCMTK_LOG4CPLUS_THREADED (new impl::Mutex (t)) + 0)
^~~
/home/user/OrthancBuild-1.3.0/dcmtk-3.6.2/oflog/include/dcmtk/oflog/thread/syncpub.h: In constructor ‘dcmtk::log4cplus::Semaphore::Semaphore(unsigned int, unsigned int)’:
/home/user/OrthancBuild-1.3.0/dcmtk-3.6.2/oflog/include/dcmtk/oflog/thread/syncpub.h:109:74: error: invalid conversion from ‘int’ to ‘dcmtk::log4cplus::SemaphoreImplBase*’ [-fpermissive]
: sem (DCMTK_LOG4CPLUS_THREADED (new impl::Semaphore (max, initial)) + 0)
^~~
/home/user/OrthancBuild-1.3.0/dcmtk-3.6.2/oflog/include/dcmtk/oflog/thread/syncpub.h: In constructor ‘dcmtk::log4cplus::FairMutex::FairMutex()’:
/home/user/OrthancBuild-1.3.0/dcmtk-3.6.2/oflog/include/dcmtk/oflog/thread/syncpub.h:151:59: error: invalid conversion from ‘int’ to ‘dcmtk::log4cplus::FairMutexImplBase*’ [-fpermissive]
: mtx (DCMTK_LOG4CPLUS_THREADED (new impl::FairMutex) + 0)
^~~
/home/user/OrthancBuild-1.3.0/dcmtk-3.6.2/oflog/include/dcmtk/oflog/thread/syncpub.h: In constructor ‘dcmtk::log4cplus::ManualResetEvent::ManualResetEvent(bool)’:
/home/user/OrthancBuild-1.3.0/dcmtk-3.6.2/oflog/include/dcmtk/oflog/thread/syncpub.h:193:71: error: invalid conversion from ‘int’ to ‘dcmtk::log4cplus::ManualResetEventImplBase*’ [-fpermissive]
: ev (DCMTK_LOG4CPLUS_THREADED (new impl::ManualResetEvent (sig)) + 0)
^~~
/home/user/OrthancBuild-1.3.0/dcmtk-3.6.2/oflog/include/dcmtk/oflog/thread/syncpub.h: In constructor ‘dcmtk::log4cplus::SharedMutex::SharedMutex()’:
/home/user/OrthancBuild-1.3.0/dcmtk-3.6.2/oflog/include/dcmtk/oflog/thread/syncpub.h:255:60: error: invalid conversion from ‘int’ to ‘dcmtk::log4cplus::SharedMutexImplBase*’ [-fpermissive]
: sm (DCMTK_LOG4CPLUS_THREADED (new impl::SharedMutex) + 0)
^~~
CMakeFiles/ServerLibrary.dir/build.make:9950: recipe for target ‘CMakeFiles/ServerLibrary.dir/dcmtk-3.6.2/oflog/libsrc/syncprims.cc.o’ failed
make[2]: *** [CMakeFiles/ServerLibrary.dir/dcmtk-3.6.2/oflog/libsrc/syncprims.cc.o] Error 1
CMakeFiles/Makefile2:105: recipe for target ‘CMakeFiles/ServerLibrary.dir/all’ failed
make[1]: *** [CMakeFiles/ServerLibrary.dir/all] Error 2
Makefile:129: recipe for target ‘all’ failed
make: *** [all] Error 2
`
Again, Orthanc 1.2.0 compiled without any issue.
I tried with the following cmake that worked with Orthanc 1.2.0:
`
cmake -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Release ~/Orthanc-1.3.0
`
And then with this one:
`
cmake -DALLOW_DOWNLOADS=ON -DUSE_SYSTEM_JSONCPP=OFF -DUSE_SYSTEM_MONGOOSE=OFF -DUSE_SYSTEM_PUGIXML=OFF -DUSE_SYSTEM_SQLITE=OFF -DUSE_SYSTEM_BOOST=OFF -DUSE_SYSTEM_DCMTK=OFF -DUSE_SYSTEM_GOOGLE_TEST=OFF -DUSE_SYSTEM_LIBJPEG=OFF ~/Orthanc-1.3.0
`
It seems to be coming from DCMTK directly. All of the Fedora Server packages are up to date. Should we direct this error to the DCMTK team?
Thanks in advance for your help and insights!
Best,
Sylvain