Hi Feri,
please always reply to or add the mitk-users list, so that others can
benefit from the discussion.
Your are using a very old version of MITK, and as Matthias wrote the
build system and application framework changed significantly. Please
consider updating to MITK 0.14 since we cannot provide support for all
MITK releases in the past.
However, my suggestion is in line with the one from Matthias. Change
your CMakeLists.txt file to look like this:
# =================
FIND_PATH(MY_EXTERNAL_LIB_INCLUDE_DIR some_base_include_file.h DOC "Path
to the include directory of my_lib")
FIND_LIBRARY(MY_EXTERNAL_LIB my_external_lib.lib HINTS
"${MY_EXTERNAL_LIB_INCLUDE_DIR}/../lib" DOC "The path to your my_lib.lib
or my_lib.so file")
INCLUDE_DIRECTORIES(${MY_EXTERNAL_LIB_INCLUDE_DIR})
CREATE_QFUNCTIONALITY(MyFunctionality)
TARGET_LINK_LIBRARIES(${FUNCTIONALITY_NAME} ${MY_EXTERNAL_LIB})
# ==================
Please read the CMake documentation first in case of CMake errors.
Best,
Sascha
On 02/06/2010 11:58 PM, Ferenc Kovács wrote:
Dear Sascha,
I use MITK 0.10 version with ITK3.8.0,VTK5.2.1,QT3.
I haven an external lib with a header file containing information
about lib
and it's usage.
I made my QFunctionality with Mitk Template generator.
After specialization I copied it into QFunctionality folder of MITK and
reconfigured and tried to make it.
My files.cmake looks something like this:
SET (MOC_H_FILES QmitkMyGui.h)
SET (H_FILES QmitkMyGui.h)
SET (CPP_FILES QmitkMyGui.cpp)
MY CMakeLists.txt looks something like this:
INCLUDE_DIRECTORIES( . ) # all files and lib in the same QFUNCT directory
LINK_DIRECTORIES( . )
TARGET_LINK_LIBRARY( currentLib )
CREATEFUNCTIONALITY(MyFunctionality)
Sorry if not all commands are correct and I cannot remember the error
messages I got during the make, because my sources are on a different
computer now. But I hope I could clearly describe my case.
And thanks for helping me again.
Regards,
Feri
2010/2/6 Zelzer Sascha <[email protected]
<mailto:[email protected]>>
Hi Feri,
please tell us a more about your set-up, such that we can help you
better:
- Which version of MITK are you using (current SVN, 0.14, etc.)
- Did you use the BundleGenerator to create a bundle with a GUI
contribution (view)?
- Do you want to use the external lib only inside your Bundle (aka
Functionality) or should it be accessible from other libs too?
Best,
Sascha
*Von:* Ferenc Kovács [mailto:[email protected]
<mailto:[email protected]>]
*Gesendet:* Samstag, 6. Februar 2010 17:29
*An:* [email protected]
<mailto:[email protected]>
*Betreff:* [mitk-users] external lib
Dear All,
I would like to use an external lib (.so,.a) (BlackBox) containing
an image processing algoritm in MTIK. (it is NOT a QFunctionality lib)
I have written a small test program which can use this library and
I have also written a QFunctionality (Gui) which can handle user
interactions and input,output images (and working with other
source files).
But I don't really know how to connect this external library into
MITK.
What to write into files.cmake and CMakeLists.txt?
Can u help me?
Thanks,
Feri
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users