[Kde-bindings] Building Qyoto on Windows

Dimitar Dobrev dpldobrev at yahoo.com
Sat Jun 2 17:52:33 UTC 2012


Hi, Jeff,

Here are the instructions:


1. Install QtSDK;
2. Install CMake;
3. Copy C:\QtSDK\mingw\bin\* to C:\QtSDK\mingw\libexec\gcc\mingw32\4.4.0\ (version may vary);
4. Check out smokegen: git clone git://anongit.kde.org/smokegen;
5. Check out smokeqt: git clone git://anongit.kde.org/smokeqt;
6. Check out assemblygen: http://gitorious.org/assemblygen/assemblygen/;
7. Go to assemblygen/assemblies/qyoto-qtcore/native/handlers.cpp, find the line "mapPointer(obj, o, o->classId, 0);" (in the marshall_basetype function) and comment it out - this works around a crash-causing bug that is not fixed yet;


for each in smokegen, smokeqt, assemblygen (in this order):
1. Run cmake-gui - select the dir with the checked out source and the desired dir for binaries; use MinGW and specify C:\QtSDK\mingw\bin\gcc.exe as the C compiler and C:\QtSDK\mingw\bin\g++.exe as the C++ compiler;
2. Fill in the CMAKE_BUILD_TYPE: "Release" or "Debug"; leaving it empty produced some strange half-debug version;

3. Configure - when it complains about QT_QMAKE_EXECUTABLE, set it to the location of qmake.exe (C:\QtSDK\Desktop\Qt\<version>\mingw\bin\qmake.exe, for example) by browsing through the GUI;
4. On the command line, cd to the dir through the command line and run "C:\QtSDK\mingw\bin\mingw32-make.exe install".

Notes about assemblygen:
1. If it cannot find the SMOKE libs, go to the libs/ subdir of your installation dir (specified in CMAKE_INSTALL_PREFIX) and copy all smoke*.dll files to your CMAKE binary dir for assemblygen;
2. If you have problems with assemblygen/tools/uics/ui4.h, open it, find the line "#define QDESIGNER_UILIB_EXPORTQDESIGNER_UILIB_IMPORT" at the start and change it to "#define QDESIGNER_UILIB_EXPORTQDESIGNER_UILIB_EXTERN".

Good luck. I'll be happy to help if you have other questions.



________________________________
 From: Jeff Alstadt <jeff.alstadt at centare.com>
To: "kde-bindings at kde.org" <kde-bindings at kde.org> 
Sent: Saturday, June 2, 2012 8:16 PM
Subject: [Kde-bindings] Building Qyoto on Windows
 

 
I am interested in building Qyoto on Windows using VS 2010. 
If so does anyone have any steps that could be followed.
 
I was able to get it to build on Linux successfully.
 
Any advice would be greatly appreciated.
 
Regards,
Jeff Alstadt
 
 
_______________________________________________
Kde-bindings mailing list
Kde-bindings at kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20120602/47bd611a/attachment.html>


More information about the Kde-bindings mailing list