[Kde-bindings] Issues Building Qyoto (assemblygen) on Mac OSX Lion & 64-bit mono

Vivek Gani vivekgani at gmail.com
Sat Sep 8 21:05:40 UTC 2012


Hey all, 

I'm currently having some issues which I think I'm close to fixing, but was wondering if anyone has already encountered it before:

The Issue:

I can successfully compile smokegen & smokeqt (using homebrew), but when i make assemblygen it seems setup to expect a .dll. 

[ 1%] Built target assemblygen
[ 2%] Building CXX object src/CMakeFiles/assemblygen-native.dir/assemblygen-native.cpp.o
Linking CXX shared library ../bin/libassemblygen-native.dylib
[ 2%] Built target assemblygen-native
[ 4%] Built target QyotoGenerator
[ 5%] Building CXX object src/plugins/qyoto/CMakeFiles/qyotogenerator-native.dir/qyotogenerator-native.cpp.o
/Users/xxxx/projects/qyotoTest/assemblygen/src/plugins/qyoto/qyotogenerator-native.cpp:33:16: warning: 
initialization of pointer of type 'const QMetaObject *' to null from a constant
boolean expression [-Wbool-conversions]
return false;
^~~~~
/Users/xxxx/projects/qyotoTest/assemblygen/src/plugins/qyoto/qyotogenerator-native.cpp:37:16: warning: 
initialization of pointer of type 'const QMetaObject *' to null from a constant
boolean expression [-Wbool-conversions]
return false;
^~~~~
2 warnings generated.
Linking CXX shared library ../../../bin/libqyotogenerator-native.dylib
[ 5%] Built target qyotogenerator-native
[ 7%] Generating ../../bin/qyoto-qtcore.dll
Unhandled Exception: System.DllNotFoundException: assemblygen-native
at (wrapper managed-to-native) MainClass:InitSmoke (string)
at MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: assemblygen-native
at (wrapper managed-to-native) MainClass:InitSmoke (string)
at MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0 
make[2]: *** [bin/qyoto-qtcore.dll] Error 1
make[1]: *** [assemblies/qyoto-qtcore/CMakeFiles/qyoto-qtcore.dir/all] Error 2
make: *** [all] Error 2






after staring at http://www.mono-project.com/Interop_with_Native_Libraries , I realize I need something along the lines of

<configuration> <dllmap dll="assemblygen-native" target="libassemblygen-native.dylib" /> </configuration>

in a cmakelist file. Any tips on how to write this in? 


my setup so far:

install qt 8.4.2
$ brew install qt

compile mono using homebrew (using the adamv/alt keg). 
$ brew install mono

compile smokegen for 64-bit:
$ cmake -D "CMAKE_OSX_ARCHITECTURES:STRING=amd64" .
$ make install

compile smokeqt:
$ cmake -DSmoke_DIR="$PWD/../smokegen/cmake" .
$ make install

Try to compile qyoto for 64-bit
$ cmake -D "CMAKE_OSX_ARCHITECTURES:STRING=x86_64" .
$ make install


NOTE: it seems like others have had this issue before too - check out 

--
Vivek Gani



More information about the Kde-bindings mailing list