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.
Recipe to compile Mudlet on Windows
Re: Recipe to compile Mudlet on Windows
I'm game for trying this but what kind of compiler do I need to do this? is this for gcc?
-
- Posts: 18
- Joined: Sat Sep 10, 2011 7:37 am
Re: Recipe to compile Mudlet on Windows
Everything you need should be in the package, except for the mudlet sources.
Oh and to answer your question the necessary compiler is gcc. However, best use the gcc in the download I provided since that one came with the Qt SDK.
Try giving those instructions a try after downloading and unpacking. It should just work, or at least that was the intent.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.
Oh and to answer your question the necessary compiler is gcc. However, best use the gcc in the download I provided since that one came with the Qt SDK.
Re: Recipe to compile Mudlet on Windows
I'll give it a whirl and let you know
Re: Recipe to compile Mudlet on Windows
I apologize for being so pokey but I finally tried this and I got the following message:
The program can't start because MSVCR100.dll is missing from your computer. Try reinstalling the program to fix this problem.
I'm not sure what version was needed but i but I downloaded and installed all versions of the c++ redistributable from Microsoft Answers site
It didn't work for me. This was the output (using Win7 SP1 x64)
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\LocalAdmin>cd C:\Users\LocalAdmin\Documents\Dev\mudlet_package\mudlet_p
ackage
C:\Users\LocalAdmin\Documents\Dev\mudlet_package\mudlet_package>setvars.bat
C:\Users\LocalAdmin\Documents\Dev\mudlet_package\mudlet_package>cd mudlet.git/sr
c
C:\Users\LocalAdmin\Documents\Dev\mudlet_package\mudlet_package\mudlet.git\src>q
make
WARNING: c:\Users\LocalAdmin\Documents\Dev\mudlet_package\mudlet_package\mudlet.
git\src\src.pro:27: Unescaped backslashes are deprecated.
WARNING: c:\Users\LocalAdmin\Documents\Dev\mudlet_package\mudlet_package\mudlet.
git\src\src.pro:27: Unescaped backslashes are deprecated.
WARNING: c:\Users\LocalAdmin\Documents\Dev\mudlet_package\mudlet_package\mudlet.
git\src\src.pro:27: Unescaped backslashes are deprecated.
WARNING: fonts.path is not defined: install target not created
WARNING: luaglobal.path is not defined: install target not created
WARNING: documentation.path is not defined: install target not created
WARNING: target.path is not defined: install target not created
WARNING: fonts.path is not defined: install target not created
WARNING: luaglobal.path is not defined: install target not created
WARNING: documentation.path is not defined: install target not created
WARNING: target.path is not defined: install target not created
The program can't start because MSVCR100.dll is missing from your computer. Try reinstalling the program to fix this problem.
I'm not sure what version was needed but i but I downloaded and installed all versions of the c++ redistributable from Microsoft Answers site
It didn't work for me. This was the output (using Win7 SP1 x64)
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\LocalAdmin>cd C:\Users\LocalAdmin\Documents\Dev\mudlet_package\mudlet_p
ackage
C:\Users\LocalAdmin\Documents\Dev\mudlet_package\mudlet_package>setvars.bat
C:\Users\LocalAdmin\Documents\Dev\mudlet_package\mudlet_package>cd mudlet.git/sr
c
C:\Users\LocalAdmin\Documents\Dev\mudlet_package\mudlet_package\mudlet.git\src>q
make
WARNING: c:\Users\LocalAdmin\Documents\Dev\mudlet_package\mudlet_package\mudlet.
git\src\src.pro:27: Unescaped backslashes are deprecated.
WARNING: c:\Users\LocalAdmin\Documents\Dev\mudlet_package\mudlet_package\mudlet.
git\src\src.pro:27: Unescaped backslashes are deprecated.
WARNING: c:\Users\LocalAdmin\Documents\Dev\mudlet_package\mudlet_package\mudlet.
git\src\src.pro:27: Unescaped backslashes are deprecated.
WARNING: fonts.path is not defined: install target not created
WARNING: luaglobal.path is not defined: install target not created
WARNING: documentation.path is not defined: install target not created
WARNING: target.path is not defined: install target not created
WARNING: fonts.path is not defined: install target not created
WARNING: luaglobal.path is not defined: install target not created
WARNING: documentation.path is not defined: install target not created
WARNING: target.path is not defined: install target not created
Re: Recipe to compile Mudlet on Windows
Hmmm... can someone suggest what to research to try to get this work? I'd love to be able to compile for windows but i've never really used a not built-into-the-IDE compiler before so any help on what i'd need to know to get up to speed would be appreciated.
Re: Recipe to compile Mudlet on Windows
I gave this a whirl. Here are the steps I took/modifications needed:
1) download package linked above, extract
2) clone my github repository, copy the Mudlet folder into mudlet_packages, and rename to mudlet.git
3) in mudlet_package/includes/lloyd.../src do the following:
3a) make a copy of yajl, rename to api
3b) edit yajl_parse.h, add #include "yajl_lex.h" after #include "yajl_buf.h"
4) copy src.pro from /mudlet_package to /mudlet_package/mudlet.git/src
5) Make the following changes to src.pro (remember to add a \ to the line above where you insert these)
5a) add luaInterface.cpp and dlgVarsMainArea.cpp at the end of SOURCES
5b) add luaInterface.h and dlgVarsMainArea.h at the end of HEADERS
5c) add ui/vars_main_area.ui to the end of FORMS
6) go into command line, run setvars.bat in /mudlet_package
7) goto mudlet.git/src in command line, type qmake, then mingw32-make (note, the fonts.path, etc warnings don't matter)
8) copy the files in mudlet.git/src/release (the mudlet exe and a source file) to mudlet_libs
9) enjoy
1) download package linked above, extract
2) clone my github repository, copy the Mudlet folder into mudlet_packages, and rename to mudlet.git
3) in mudlet_package/includes/lloyd.../src do the following:
3a) make a copy of yajl, rename to api
3b) edit yajl_parse.h, add #include "yajl_lex.h" after #include "yajl_buf.h"
4) copy src.pro from /mudlet_package to /mudlet_package/mudlet.git/src
5) Make the following changes to src.pro (remember to add a \ to the line above where you insert these)
5a) add luaInterface.cpp and dlgVarsMainArea.cpp at the end of SOURCES
5b) add luaInterface.h and dlgVarsMainArea.h at the end of HEADERS
5c) add ui/vars_main_area.ui to the end of FORMS
6) go into command line, run setvars.bat in /mudlet_package
7) goto mudlet.git/src in command line, type qmake, then mingw32-make (note, the fonts.path, etc warnings don't matter)
8) copy the files in mudlet.git/src/release (the mudlet exe and a source file) to mudlet_libs
9) enjoy
Re: Recipe to compile Mudlet on Windows
I finally got around to trying it and it started compiling but eventually i ran into this:
any suggestions?
Re: Recipe to compile Mudlet on Windows
Try cleaning it and re-doing it... also, what Qt version?
Re: Recipe to compile Mudlet on Windows
I apologize in advance for the silly question but how do I clean it? I've never worked with command line compilers (at least directly).
It looks like the QT version is 4.7.3
It looks like the QT version is 4.7.3