Hi there,

we compile our external project on Snow Leopard and Lion.

Currently, on my MacBook Pro laptop, 10.6.8, with g++ --version=4.2.1, I have 
MITK clone d7eaf12e (20th Jan) and I can run ExtApp by double clicking on the 
app icon in the finder window.

In general, I would recommend:

1. the standard g++ compiler, simply because I haven't tried any other on a Mac.
2. I compile my own qt.  The reason being that when running "make package", 
which bundles Qt Assistant, if you use the Qt libraries installed in the 
standard place, you don't get the libQtlucene.dylib which is installed under 
/usr/lib, and hence deemed to be a system library, and hence you won't have a 
completely standalone .dmg file.   My current favourite Qt options when 
compiling are:


./configure -prefix=/somewhere/to/install/qt-4.7.4 -release -shared 
-no-multimedia -no-audio-backend -no-phonon -no-phonon-backend -nomake examples 
-nomake demos

but I am not 100% consistent in this.  We haven't moved up to Qt 4.8.0 yet.

3. On my main Linux machine, I have completely separate Qt builds in Release 
and Debug modes and hence completely separate development, release 
environments. On Mac, I haven't done this, and use just a Release build of Qt.
4. Bearing in mind that I have an external app that uses MITK as a dependency, 
I have occasionally seen the error message below, and in that case, a clean 
build of my app (not MITK) seems to resolve things, but I don't know why.

Hope that helps. Feel free to keep asking.

Matt


On 30 Jan 2012, at 22:16, Miklos Espak wrote:

Hi David,

please keep the conversation on the list.

If you downloaded Qt from the official site then it must contain both  the 
debug and the release version of the libraries. If you eventually compiled it 
for yourself, you had to supply it as a parameter which version you want.

I suggest you to check the CMakeCache.txt in the MITK-superbuild folder. Check 
the values of the Qt related variables, e.g. QT_QTCORE_LIBRARY_RELEASE, or 
QT_QMAKE_EXECUTABLE, to see which Qt version did you use for building MITK.

Check also the value of the CMAKE_BUILD_TYPE variable.

It seems that you have a Release version Qt and you built MITK in Debug mode 
(that is the default). If this is the case, start the build in a new folder but 
change the CMAKE_BUILD_TYPE variable to Release at the superbuild level, before 
building the application.

Miklos

On Mon, Jan 30, 2012 at 10:46 PM, David Marshall 
<[email protected]<mailto:[email protected]>> wrote:
Miklos,

After trying to run ExtApp from the terminal (rather than double-clicking on 
the executable) I get better feedback on what might be going wrong:

Following a long series of messages such as this...

"The plugin 
'/Users/davidmarshall/MITK-superbuild/MITK-build/bin/plugins/liborg_mitk_gui_qt_imagenavigator.dylib'
 uses incompatible Qt library. (Cannot mix debug and release libraries.)"

I get a message like this...

"FATAL: The org.blueberry.osgi plug-in is not started. Check that your 
application loads the correct provisioning file and that it contains an entry 
for the org.blueberry.osgi plug-in."

I'm going to try to figure out if I have an incorrect version of Qt somehow.

David

On 31/01/2012, at 8:39 AM, Miklos Espak wrote:

It works here.
What error do you get?

Miklos

On Mon, Jan 30, 2012 at 10:30 PM, David Marshall 
<[email protected]<mailto:[email protected]>> wrote:
I have been struggling to build MITK and run ExtApp on Mac, with no 
modification. My next step would be the ubiquitous "Hello World" type of 
minimal modification of ExtApp... but I haven't been able to get that far.

Can someone confirm that they are able to build MITK and run ExtApp on their 
Mac... using the superbuild process (ie cmake)?

Or... are the Mac developers out there using a different process?

David
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
mitk-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/mitk-users



------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to