Error Starting on Mac

33 views
Skip to first unread message

Cameron Taggart

unread,
Dec 16, 2009, 6:38:14 PM12/16/09
to qt4d...@googlegroups.com
The QtHelloWorld.exe I made runs on Windows 7 using .NET or Mono
2.4.3. In order to try running it on my Mac, I switched out the
native libraries and used those from qtjambi-mac-lgpl-4.5.2_01.tar.gz.
Here is the output:

export DYLD_LIBRARY_PATH=`pwd`
mono QtHelloWorld.exe

Unhandled Exception: System.TypeInitializationException: An exception
was thrown by the type initializer for
com.trolltech.qt.core.QCoreApplication --->
System.TypeInitializationException: An exception was thrown by the
type initializer for com.trolltech.qt.core.QObject --->
System.TypeInitializationException: An exception was thrown by the
type initializer for com.trolltech.qt.QtJambiObject --->
System.TypeInitializationException: An exception was thrown by the
type initializer for com.trolltech.qt.QtJambi_LibraryInitializer --->
java.lang.RuntimeException: Loading library failed, progress so far:
No 'qtjambi-deployment.xml' found in classpath, loading libraries via
'java.library.path'
Loading library: 'libQtCore.4.dylib'...
- using 'java.library.path'

--- End of inner exception stack trace ---
at com.trolltech.qt.QtJambiObject..cctor () [0x00000]
--- End of inner exception stack trace ---
at com.trolltech.qt.core.QObject..cctor () [0x00000]
--- End of inner exception stack trace ---
at com.trolltech.qt.core.QCoreApplication..cctor () [0x00000]
--- End of inner exception stack trace ---
at QtHellWorld.main () [0x00000]
at <StartupCode$QtHelloWorld>.$QtHellWorld$Main.main@ () [0x00000]


Any ideas?

cheers,
Cameron

Frank Bergmann

unread,
Dec 16, 2009, 6:44:52 PM12/16/09
to qt4d...@googlegroups.com
You should make sure that all the libraries needed are there

- including ikvm native (which you might want to copy from the mono framework)
- including other depend files of the qt framework ...

try otool -L <library> to see a breakdown of where things are supposed to be

best
Frank

> --
>
> You received this message because you are subscribed to the Google Groups "qt4dotnet" group.
> To post to this group, send email to qt4d...@googlegroups.com.
> To unsubscribe from this group, send email to qt4dotnet+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/qt4dotnet?hl=en.
>
>

Cameron Taggart

unread,
Dec 16, 2009, 8:28:53 PM12/16/09
to qt4dotnet
That was it! As soon as I copied libikvm-native.dylib from my current
Mono to the same directory, it worked.

thanks!
Cameron

Reply all
Reply to author
Forward
0 new messages