Fixing external projects

From mitk.org
Revision as of 19:13, 30 May 2011 by SaschaZelzer (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

If you generated a MITK project using the BundleGenerator, your projects build system probably needs a couple of tweaks to work with the new CTK-based BlueBerry.

  • Your custom executable needs a different set of include directories. The new variables to use are:
INCLUDE_DIRECTORIES(
  ${org_blueberry_osgi_INCLUDE_DIRS}
  ${Poco_INCLUDE_DIRS}
  ${mbilog_INCLUDE_DIRS}
)
  • Your executables .cpp file usually contains a statement like
#include <org.blueberry.osgi/src/application/berryStarter.h>
which must be changed to<
>
#include <berryStarter.h>
  • The TARGET_LINK_LIBRARIES command for your executable should now look like
TARGET_LINK_LIBRARIES(<executable-target> org_blueberry_osgi)