Reputation: 21
I downloaded a library for processing DicOM FILES .
The tree of library is :
|--include
|-----dicom.h
|-----dicomcfg.h
|--lib
|--------dicomsdl.lib
But I do not know how to use and built-in Qt Creator .
If anyone can help me I will be very grateful.
Upvotes: 0
Views: 1246
Reputation: 588
I'll assume you use qmake as your build system. To link your "external" library you need following changes in your .pro file:
#path to includes directory of your library, qmake will try to find includes there
INCLUDEPATH += /path/to/library/include
#path to pre-compiled library directory
LIBS += -L/path/to/precomp/library
#link your pre-compiled library, -l<library name> w/o .so, .a, .lib, lib- prefix
LIBS += -ldicomsdl
Maybe you'll need to build the library from source with your compiler. There could be some troubles if compilers don't match.
Upvotes: 1