-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.TXT
107 lines (84 loc) · 2.82 KB
/
README.TXT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
Compile Pascal Qt Interface from source:
========================================
* Download and unpack the sources
* cd into the resulting unpacked directory
* This directory contains amongs other things a Qt Project File Qt4Pas.pro
* run qmake -query to inspect your Qt installation
* qmake (creates Makefile based upon Qt4Pas.pro)
* make (compiles)
* make install (obtain super user rights with sudo or su)
* make clean (cleans directory, do this when switching Qt versions)
Linux Note:
-----------
To use a different Qt then the system wide Qt,
use /PathToOtherQt/bin/qmake and learn about LD_LIBRARY_PATH
(export LD_LIBRARY_PATH=/PathToOtherQt/lib)
Maemo Linux Note:
-----------------
Scratchbox:
===========
* Install the scratchbox based Maemo5 SDK:
http://wiki.maemo.org/Documentation/Maemo_5_Final_SDK_Installation
* as root start scratchbox: /scratchbox/sbin/sbox_ctl start
* as normal user loging: /scratchbox/login
* select vi sb-menu the arm setup
* install the Qt4 devel package
fakeroot apt-get update
fakeroot apt-get install libqt4-dev
* download (e.g. using wget) and unpack the sources
* cd into the sources directory
* qmake (creates Makefile)
* make (compiles)
* strip LibraryFileName (reduce filesize)
* fakeroot make install (install in scratchbox)
N900 Device
===========
Optifying is highly recommended.
Copy the library to /opt/lib/ on the device
make links in /usr/lib to /opt/lib/LibraryName (.so.OneDigit and .so)
Mac OsX Note:
-------------
qmake may create a xcode project
instead of a g++ Makefile
use xcodebuild to compile
to create a g++ Makefile:
QMAKESPEC=macx-g++ qmake
The qmake project is configured to create a
framework instead of a plain library
Windows Note:
-------------
Verify the QTDIR,QMAKESPEC environment variables.
e.g. QMAKESPEC=win32-g++ and that make -v
and gcc -v produce the expected result.
Installation
============
When compiling from source,
you can use make install.
When using the binary packages,
see below.
If preferred, first strip
the libraries before installation.
Linux Binary Installation
-------------------------
The libraries should be copied
to the distribution specific
system library directory
e.g. /usr/lib.
Ensure the symlinks are correct.
The .so.OneDigit link is used when running a program.(google soname)
The .so link is used when linking during development
Maemo Note
----------
For Maemo, optifying is highly recommended.
Copy the library to /opt/lib/
make links in /usr/lib to /opt/lib/LibraryName (.so.OneDigit and .so)
Windows Binary Installation
---------------------------
The dll can be copied to e.g.
the Qt bin directory, as this
directory is already in the
PATH environment variable.
Mac OsX Binary Installation
---------------------------
The provided package installs
to /Library/Frameworks