Recipe to compile Mudlet on Windows
Posted: Wed Dec 14, 2011 8:41 am
I just made a package to compile mudlet on windows available for a limited time download:
ge.tt/7ZiY3fG/v/0?c
The package includes
1. qt 4.7.3 (release dll's only) with mingw
2. a batch script to set variables
3. the headers (only) for all required packages
4. a preconfigured src.pro (this needs to go the mudlet src directory)
5. the install directory (containing precompiled dll's used for linking and runtime) of mudlet 2.0 test 4
Total size unpacked size is 356 MB and compressed with 7zip it's 53 MB. It's a bit of a hack, certainly not the best way, but it's quick and easy. All you'll need to do is provide the sources.
readme.txt says:
Directory structure should look like this:
mudlet_package
|-- includes
|-- mudlet.git
|-- mudlet_libs
|-- QtSDK
where mudlet.git is the directory containing the mudlet sources. Once, mudlet is compiled, copy mudlet.exe to the mudlet_libs directory. Lauch mudlet from within the mudlet_libs directory.
Before running qmake in the src directory of the mudlet sources, go to the mudlet_package directory and run setvars.bat. Then cd to mudlet.git\src and run qmake followed by mingw32-make.
This was tested on Windows XP 32-bit and "Works for me"(tm).
Finally, I just wanted to make a note about what was required to make this package available. To work around "limitations" with the Qt library (I'll be nice and not vent), some patched versions of qmake and friends were required. A kind soul already tackled this problem for visual studio binaries and made them available:
http://qt-windows-binaries.googlecode.c ... wsBinaries
I downloaded the binaries from above and copied out the exe's from the bin directory into my mingw install of the Qt SDK. This will allow the Qt SDK to be used with relative paths - you should be able to move the QtSDK directory anywhere and it will still work. No separate installation of Qt is required (which is how it should be).
I also removed all of the debug dll's from this package simply because they are quite large. If you need to build with the debug versions of the library you probably know what you're doing and don't need this package. I also removed Qt Creator because I imagine the majority of people using this package just want to compile and play with the latest git.
Not all of the dll's contain readily available version numbers so the header versions may not match the dll's linked to. I didn't encounter any problems though. Feedback is welcome.
If you download this, and you're able to compile mudlet, please post back here as I would like to know that it works. If you download this and it doesn't work, please post back here also and I'll try to help you out.
ge.tt/7ZiY3fG/v/0?c
The package includes
1. qt 4.7.3 (release dll's only) with mingw
2. a batch script to set variables
3. the headers (only) for all required packages
4. a preconfigured src.pro (this needs to go the mudlet src directory)
5. the install directory (containing precompiled dll's used for linking and runtime) of mudlet 2.0 test 4
Total size unpacked size is 356 MB and compressed with 7zip it's 53 MB. It's a bit of a hack, certainly not the best way, but it's quick and easy. All you'll need to do is provide the sources.
readme.txt says:
Directory structure should look like this:
mudlet_package
|-- includes
|-- mudlet.git
|-- mudlet_libs
|-- QtSDK
where mudlet.git is the directory containing the mudlet sources. Once, mudlet is compiled, copy mudlet.exe to the mudlet_libs directory. Lauch mudlet from within the mudlet_libs directory.
Before running qmake in the src directory of the mudlet sources, go to the mudlet_package directory and run setvars.bat. Then cd to mudlet.git\src and run qmake followed by mingw32-make.
This was tested on Windows XP 32-bit and "Works for me"(tm).
Finally, I just wanted to make a note about what was required to make this package available. To work around "limitations" with the Qt library (I'll be nice and not vent), some patched versions of qmake and friends were required. A kind soul already tackled this problem for visual studio binaries and made them available:
http://qt-windows-binaries.googlecode.c ... wsBinaries
I downloaded the binaries from above and copied out the exe's from the bin directory into my mingw install of the Qt SDK. This will allow the Qt SDK to be used with relative paths - you should be able to move the QtSDK directory anywhere and it will still work. No separate installation of Qt is required (which is how it should be).
I also removed all of the debug dll's from this package simply because they are quite large. If you need to build with the debug versions of the library you probably know what you're doing and don't need this package. I also removed Qt Creator because I imagine the majority of people using this package just want to compile and play with the latest git.
Not all of the dll's contain readily available version numbers so the header versions may not match the dll's linked to. I didn't encounter any problems though. Feedback is welcome.
If you download this, and you're able to compile mudlet, please post back here as I would like to know that it works. If you download this and it doesn't work, please post back here also and I'll try to help you out.