Skip to content

Commit 01714df

Browse files
committed
Add a description how to cross compile windows binaries
cleanup the BUILDING file
1 parent 8afd9f1 commit 01714df

File tree

1 file changed

+60
-28
lines changed

1 file changed

+60
-28
lines changed

BUILDING

Lines changed: 60 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,60 @@
1-
BUILD INSTRUCTIONS AND REQUIREMENTS
2-
3-
SQLite Database Browser requires Trolltech's Qt, version 4.6.
4-
For more information on QT please consult
5-
http://www.qtsoftware.com. The GPL version of Qt is available in almost
6-
all Linux distributions as a default package.
7-
8-
The only requirements for building this code are the presence of Qt and sqlite3.
9-
Qt can be included as a static or shared library, depending on the current Qt
10-
configuration on the building machine.
11-
12-
Provided you have Qt installed and configured, simply run
13-
14-
qmake
15-
16-
followed by
17-
18-
make
19-
20-
in the main directory. This will generate the sqlitebrowser (or
21-
sqlitebrowser.exe, or sqlitebrowser.app) application in the src subdirectory.
22-
23-
The same process works for building the code
24-
in any platform supported by Qt (including other Unix systems with
25-
X11.)
26-
27-
Please check the LICENSING.txt file for additional information.
28-
1+
BUILD INSTRUCTIONS AND REQUIREMENTS
2+
3+
SQLite Database Browser requires Trolltech's Qt, version 4.6.
4+
For more information on QT please consult
5+
http://www.qtsoftware.com. The GPL version of Qt is available in almost
6+
all Linux distributions as a default package.
7+
8+
The only requirements for building this code are the presence of Qt and sqlite3.
9+
Qt can be included as a static or shared library, depending on the current Qt
10+
configuration on the building machine.
11+
12+
Provided you have Qt installed and configured, simply run
13+
14+
qmake
15+
16+
followed by
17+
18+
make
19+
20+
in the main directory. This will generate the sqlitebrowser (or
21+
sqlitebrowser.exe, or sqlitebrowser.app) application in the src subdirectory.
22+
23+
The same process works for building the code
24+
in any platform supported by Qt (including other Unix systems with
25+
X11.)
26+
27+
Cross compile windows
28+
=====================
29+
30+
These are instructions to cross compile within a Linux system a Windows binary and installer
31+
32+
Requirements:
33+
34+
* mxe cross compile environment --> http://mxe.cc
35+
* cmake
36+
* sqlitebrowser sources
37+
38+
Get the following mxe packages:
39+
40+
make gcc sqlite qt nsis
41+
42+
After successful compilation go into your mxedir/usr/bin and add 2 symlinks:
43+
44+
ln -s i686-pc-mingw32-windres windres
45+
ln -s i686-pc-mingw32-makensis makensis
46+
47+
Now cd into your sqlitebrowser source directory and create a build directory for
48+
the windows binary and create the correct makefiles:
49+
50+
mkdir build-win
51+
cd build-win
52+
cmake /path to mxe/usr/i686-pc-mingw32/share/cmake/mxe-conf.cmake ..
53+
make
54+
55+
If additionaly want an NSIS install:
56+
57+
make package
58+
59+
done.
60+

0 commit comments

Comments
 (0)