Hi, I want to add library dicom
My teacher gave me a tutorial:
1) Download boost
2) Extract to e.g. \osm\boost_1_42_0 (i use d:\osm\...)
Qt Console (in \osm\boost_1_42_0):
3) bootstrap.bat
4) bjam --toolset=gcc
5) wait
6) download dicomlib, socket i utility from http://code.google.com/p/dicomlib
7) Extract. Make tree:
\osm\dicomlib
\osm\socket
\osm\utility
8) (in \osm\dicomlib):
g++ -c *.cpp -I.. -I../boost_1_42_0
g++ -shared *.o ./boost_1_42_0/bin.v2/threads/../../...threads.a -o dicom.dll
During compilation may be errors. You probably have to change
in FileMetaInformation.cpp comment TiffHeader.h
and add:
#include <algorithm>
#include <string.h>
you wil see...
9) link to dicomlib.dll
In *.pro add
INCLUDEPATH += d:\osm
LIBS += -Ld:\osm\dicomlib -ldicom
in source
#include <dicomlib/dicomlib.hpp>
everythink was good to 8 point.
i also done 9 point
but when i buil program:
mingw32-make: Leaving directory `E:/uzytki/polibuda/Sem 8/OSM/testsqllite'
mingw32-make: Entering directory `E:/uzytki/polibuda/Sem 8/OSM/testsqllite'
D:/Qt/2010.02.1/mingw/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `E:/uzytki/polibuda/Sem 8/OSM/testsqllite'
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,console -mthreads -Wl -o debug/testsqllite.exe debug/main.o -L'd:/Qt/2010.02.1/qt/lib' -Ld:\osm\dicomlib -ldicom -lQtSqld4 -lQtCored4
mingw32-make[1]: Leaving directory `E:/uzytki/polibuda/Sem 8/OSM/testsqllite'
mingw32-make: Leaving directory `E:/uzytki/polibuda/Sem 8/OSM/testsqllite'
d:/qt/2010.02.1/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -ldicom
collect2: ld returned 1 exit status
mingw32-make[1]: *** [debug/testsqllite.exe] Error 1
mingw32-make: *** [debug] Error 2
My teacher send also same .dll file but i dont know what to do with this
Bookmarks