BibleTime2 development under Windows
From BibleTime
Here are instructions to build BibleTime 2 under Windows. I use W2K so your mileage may vary.
Contents |
Qt and MinGW
Download the Qt library and tools from Trolltech. The installer adds the tools under Start menu. It also let's you download and install MinGW compiler and tools. Here are the supported platforms - cygwin and Borland are not there, so you have to use MinGW unless you have bought VisualStudio.
SVN
There are many options for svn in Windows:
- You can download and install command line subversion client for Windows.
- You can install cygwin with the setup program and choose svn to be installed.
- TortoiseSVN is a great tool. Download and install it - it's my recommendation.
- Eclipse has SVN integration (subclipse plug-in), maybe some other tools have it also.
TortoiseSVN
I've got folder d:\BibleTime, use whatever you want to. Go there with Windows file explorer. Click the right mouse button to get the context menu. Open "SVN Checkout...". URL of repository is https://bibletime.svn.sourceforge.net/svnroot/bibletime/trunk/bibletime2. Click OK and you will have the BibleTime 2 code under d:\BibleTime. Easy, huh? The files under version control are marked with special icons. With RMB menu you can update and commit files (these actions are first level menu items) or do something more complicated (under TortoiseSVN submenu).
CMake
CMake is also found in cygwin, but I don't know how well it works with our code. Native port is recommended. Download and install it, then start the GUI (CMakeSetup.exe) from Start menu. Eclipse can use CMake but you have to read some documentation and tweak things. Eclipse has also CMake Editor plug-in.
CMake GUI
It's easy: give the source and build directories. Click "Configure". Choose MinGW Makefiles. Check the red-colored values and click Configure again, repeat until all values are grey and you can click OK.
I had to change QT_QMAKE_EXECUTABLE (path to qmake.exe) manually, hopefully they respect my bug report and fix that.
After you have done with CMake you should have some stuff in your build directory.
MinGW make
Start Windows command line (unfortunately cygwin doesn't seem to work). Go to your build directory and run mingw32-make.exe (it should be in your MinGW bin directory) there. For me it failed to link the binary with QtCore4 library, it tried to use QtCore - I have submitted a bug report to CMake bug database. But at least it creates the object files!
