[Kde-bindings] Qyoto on Mac OS X: build instructions

Dimitar Dobrev dpldobrev at yahoo.com
Wed Nov 30 18:21:07 UTC 2011


The attached patch helps to easier build Qyoto on the mac. Instructions follow:


1. Install XCode to get GCC and the other tools;
2. Install the Qt libraries (not the SDK - it contains only 64-bit Qt with which Qyoto fails because Mono is 32-bit only);
3. Check out smokegen, smokeqt and assemblygen;
4. Download CMake - the building procedure for each component is generate with CMake and use sudo make install;

4. Build smokegen ();
5. Build smokeqt:
    - set CMAKE_OSX_ARCHITECTURES (or something like this) to "i386" (that's again because of the 32-bit Mono);
    - when making you'll encounter 3 errors in x_13.cpp about fromDRNRegion, toDRNRegion, something like this; these are not supported on 32-bit and hence the problem; to work around this open x_13.cpp and delete the methods x_51, x_52 and x_53 and their usages and then make again (it will pass but because x_13.cpp is generated you'll have to repeat this step should you decide to rebuild).
6. Apply the attached patch (if not applied already) to assemblygen;
7. Open assemblygen/src/plugins/qyoto/QyotoTranslator.cs and add the following entries:
        { "QCoreXmlStreamReader", delegate { throw new NotSupportedException(); } },
        { "QDeclarativeListProperty", delegate { throw new NotSupportedException(); } },

    to typeCodeMap; QCoreXmlStreamReader fails because of some Qt Mac #define QXmlStreamReader QCoreXmlStreamReade, don't know how to fix yet;
8. Open assemblygen/assemblies/qyoto-qtsql/CMakeLists.txt, find -r:qyoto-qtcore.dll and add -r:qyoto-qtgui.dll (this applies universally, will send a patch some time);
9. Build assemblygen and Qyoto.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20111130/d6c12c6e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Qyoto_Mac.patch
Type: application/octet-stream
Size: 797 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20111130/d6c12c6e/attachment.obj>


More information about the Kde-bindings mailing list