Results 1 to 4 of 4

Thread: Problems compiling qdcws (Dicom Widget)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2009
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question Problems compiling qdcws (Dicom Widget)

    Hello everyone.
    I'm having very problems for compiling Qt plugins to see DICOM images.
    I have choose qdcws http://sourceforge.net/projects/qdcws/. Anybody has any experience in this?

    here the error:


    Qt Code:
    1. mingw32-make: Entering directory `C:/Repositorio/qdcws-1.0.1/BinWin32'
    2. cd qdicomdiriconwidget/ && C:/QtSDK/mingw/bin/mingw32-make -f Makefile
    3. mingw32-make[1]: Entering directory `c:/Repositorio/qdcws-1.0.1/BinWin32/qdicomdiriconwidget'
    4. cd src/ && c:/QtSDK/mingw/bin/mingw32-make -f Makefile
    5. mingw32-make[2]: Entering directory `c:/Repositorio/qdcws-1.0.1/BinWin32/qdicomdiriconwidget/src'
    6. c:/QtSDK/mingw/bin/mingw32-make -f Makefile.Release
    7. mingw32-make[3]: Entering directory `c:/Repositorio/qdcws-1.0.1/BinWin32/qdicomdiriconwidget/src'
    8. g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -mthreads -Wl -shared -Wl,--out-implib,../lib/libqdicomdiriconwidget.a -o ../lib/qdicomdiriconwidget.dll ../obj/dicomdiriconmodel.o ../obj/qdicomdiriconwidget.o ../obj/qiconimage.o ../obj/qdicomdiriconwidgetplugin.o ../obj/moc_dicomdiriconmodel.o ../obj/moc_qdicomdiriconwidget.o ../obj/moc_qdicomdiriconwidgetplugin.o -L'c:/msys/1.0/local/lib' -L'c:/QtSDK/Desktop/Qt/4.7.3/mingw/lib' -LC:\msys\1.0\local\lib -llog4cpp -ldcmdata -lofstd -ldcmimage -ldcmjpeg -ldcmimgle -lzlib_o -ladvapi32 -lws2_32 -lnetapi32 -lQtScript4 -lQtXml4 -lQtGui4 -lQtCore4 -lQtDesigner4
    9. Creating library file: ../lib/libqdicomdiriconwidget.a
    10. c:/msys/1.0/local/lib/libdcmdata.a(dcdicdir.o):dcdicdir.cc:(.text+0x207): undefined reference to `log4cplus::Logger::isEnabledFor(int) const'
    11. c:/msys/1.0/local/lib/libdcmdata.a(dcdicdir.o):dcdicdir.cc:(.text+0x2be): undefined reference to `log4cplus::Logger::forcedLog(int, OFString const&, char const*, int, char const*) const'
    12. c:/msys/1.0/local/lib/libdcmdata.a(dcdicdir.o):dcdicdir.cc:(.text+0x31b): undefined reference to `log4cplus::Logger::isEnabledFor(int) const'
    13. c:/msys/1.0/local/lib/libdcmdata.a(dcdicdir.o):dcdicdir.cc:(.text+0x42f): undefined reference to `log4cplus::Logger::forcedLog(int, OFString const&, char const*, int, char const*) const'
    14. c:/msys/1.0/local/lib/libdcmdata.a(dcdicdir.o):dcdicdir.cc:(.text+0x490): undefined reference to `log4cplus::Logger::isEnabledFor(int) const'
    15. c:/msys/1.0/local/lib/libdcmdata.a(dcdicdir.o):dcdicdir.cc:(.text+0x566): undefined reference to `log4cplus::Logger::forcedLog(int, OFString const&, char const*, int, char const*) const'
    16. c:/msys/1.0/local/lib/libdcmdata.a(dcdicdir.o):dcdicdir.cc:(.text+0x672): undefined reference to `log4cplus::Logger::isEnabledFor(int) const'
    17. c:/msys/1.0/local/lib/libdcmdata.a(dcdicdir.o):dcdicdir.cc:(.text+0x768): undefined reference to `log4cplus::Logger::forcedLog(int, OFString const&, char const*, int, char const*) const'
    18. c:/msys/1.0/local/lib/libdcmdata.a(dcdicdir.o):dcdicdir.cc:(.text+0x881): undefined reference to `log4cplus::Logger::isEnabledFor(int) const'
    19. c:/msys/1.0/local/lib/libdcmdata.a(dcdicdir.o):dcdicdir.cc:(.text+0x976): undefined reference to `log4cplus::Logger::forcedLog(int, OFString const&, char const*, int, char const*) const'
    20. c:/msys/1.0/local/lib/libdcmdata.a(dcdicdir.o):dcdicdir.cc:(.text+0x150c): undefined reference to `log4cplus::Logger::isEnabledFor(int) const'
    21. c:/msys/1.0/local/lib/libdcmdata.a(dcdicdir.o):dcdicdir.cc:(.text+0x15c9): undefined reference to `log4cplus::Logger::forcedLog(int, OFString const&, char const*, int, char const*) const'
    To copy to clipboard, switch view to plain text mode 

    I´m linking with log4cpp as you can see. I think that the problem is not on qdcws library, may be on DCMTK component.
    Anyone knows another library that works with Qt?

    Thank in advance.
    Gaston

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Problems compiling qdcws (Dicom Widget)

    Could it be that log4cpp != log4cplus. It's clearly looking for the latter.

  3. #3
    Join Date
    Oct 2011
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Problems compiling qdcws (Dicom Widget)

    I am currently use qdcws in my project, too, and I encountered another problem(under Linux, Ubuntu 11.10, with a gcc/g++ of version 4.6.1)

    make[3]: Entering directory `/home/zxzxy/Downloads/qdcws-1.0.1/qdicomdiriconwidget/src'
    g++ -c -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DQT_WEBKIT -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtScript -I/usr/include/qt4 -I/home/zxzxy/dicom//include -I../tmp -o ../obj/dicomdiriconmodel.o dicomdiriconmodel.cpp
    In file included from dicomdiriconmodel.cpp:21:0:
    dicomdiriconmodel.h:40:53: warning: ‘typedef’ was ignored in this declaration [enabled by default]
    dicomdiriconmodel.cpp: In member function ‘void CDicomDirIconModel::loadFile(const QString&)’:
    dicomdiriconmodel.cpp:168:32: error: ‘DCM_PatientsName’ was not declared in this scope
    make[3]: *** [../obj/dicomdiriconmodel.o] Error 1


    I know it's an old project, but I hope someone could help me to resolve it. I also wish to find the one who uses the QDCWS. My Email is zhuxiaoyongsdu@163.com

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Problems compiling qdcws (Dicom Widget)

    It looks like you do not have the pre-requisites outlined in the INSTALL file:
    PRE-REQUISITES
    ==============
    The widget set is depending on the Dicom Toolkit (DCMTK) and can be downloaded from
    ftp://dcmtk.php.enicom.offis.de/pub/...k-3.5.4.tar.gz
    For more information visit the home site www.dcmtk.org Details how to install this
    library is included in the distribution.
    There's a more recent version here: http://www.dcmtk.org/dcmtk.php.en

Similar Threads

  1. Cross Compiling Problems
    By memoody in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 5th November 2010, 09:33
  2. problems with compiling in qt4.6
    By nataly in forum Qt Programming
    Replies: 0
    Last Post: 14th December 2009, 12:09
  3. Problems compiling QT4.3 on Solaris 10
    By Ash_80 in forum Installation and Deployment
    Replies: 0
    Last Post: 26th May 2009, 15:42
  4. problem in Display sequence of DICOM images
    By vincat in forum Qt Programming
    Replies: 0
    Last Post: 26th May 2009, 06:42
  5. Compiling problems with mingw32
    By Wali in forum Installation and Deployment
    Replies: 5
    Last Post: 7th September 2007, 10:09

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.