summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--development/macosx/README_MACOSX81
-rw-r--r--development/macosx/config_macosx1
2 files changed, 60 insertions, 22 deletions
diff --git a/development/macosx/README_MACOSX b/development/macosx/README_MACOSX
index e58aa8a..864f486 100644
--- a/development/macosx/README_MACOSX
+++ b/development/macosx/README_MACOSX
@@ -1,86 +1,123 @@
1Information about porting Opie to MacOS-X (eilers) 1Information about porting Opie to MacOS-X (eilers)
2================================================== 2==================================================
3 3
4Credits: 4Credits:
5-------- 5--------
6 6
7Special thanks to Andreas Junghans (webmaster@lucid-cake.net) for its patches for qt-X11 (2.3.2), 7Special thanks to Andreas Junghans (webmaster@lucid-cake.net) for its patches for qt-X11 (2.3.2),
8QT/E (2.3.5) and qtopia (1.6.1). 8QT/E (2.3.5) and qtopia (1.6.1).
9Without them, I wouldn't be able to provide the port for OPIE to MacOS-X that fast.. 9Without them, I wouldn't be able to provide the port for OPIE to MacOS-X that fast..
10 10
11Status: 11Status:
12------- 12-------
13The basic system works quite well. But a lot of applications and plugins, 13The basic system works quite well. But a lot of applications and plugins,
14which are platform specific, need some work to be compileable. 14which are platform specific, need some work to be compileable.
15 15
16What is ready: 16What is ready:
17 17
18libqpe 18libqpe
19libopie1 19libopie1
20libopie2/opiedb
20pim-applications (addressbook, todolist, datebook, today) 21pim-applications (addressbook, todolist, datebook, today)
21A lot of applications and plugins which are not platform specific. 22A lot of applications and plugins which are not platform specific.
22 23
23What will follow soon: 24What will follow soon:
24 25
25libopie2 26libopie2
26 27
27Remember: A lot of configuration-settings are not tested (as for instance
28the quicklauncher) and might fail to compile.
29If you want to avoid misconfigurations, you may want to start with
30the config-file in this directory. Just copy "config_macosx" to $OPIEDIR/.config
31to get a working configuration to start with.
32
33(The missing apps/plugins will be ported on demand.)
34 28
35How to compile Opie for MacOS-X: 29How to compile Opie for MacOS-X:
36------------------------------- 30-------------------------------
37 31
38Before compiling for MacOS-X, you need the following: 32Before compiling for MacOS-X, you need the following:
39 33
401. X11-Server (Provided by Apple) 34 1. X11-Server+X11SDK (Provided by Apple)
412. QT-2.3.2 for X11 35 2. QT-2.3.2 for X11 (Provided by Trolltech)
423. QT/E-2.3.7 36 3. QT/E-2.3.7 (Provided by Trolltech)
434. Patches for QT-2.3.2 for MacOSX 37 4. Patches for QT-2.3.2 for MacOSX (take the one in this directory !)
445. Patches for QT/E-2.3.7 for MacOSX 38 5. Patches for QT/E-2.3.7 for MacOSX (take the one, provided in $OPIEDIR/qt)
45 39
46Please follow the instructions by http://www.lucid-cake.net/osx_qpe/index_de.html
47how to create a buildsystem for your Mac.
48What is different to the previous desciption:
49You don't need Qtopia !
50It is recommended to use QT/E in version 2.3.7 instead of 2.3.5 as described.
51The Patch for QT/E for Opie, including all other opie-patches is available in the 40The Patch for QT/E for Opie, including all other opie-patches is available in the
52qt-directory ($OPIEDIR/qt) and is called "qte237-all-macosx.patch". 41qt-directory ($OPIEDIR/qt) and is called "qte237-all-macosx.patch".
42The Patch for QT-2.3.2 is provided in this directory..
53 43
54If your buildsystem is working correctly, you should be able to build 44If your buildsystem is working correctly, you should be able to build
55opie. You have to enter "make menuconfig" and set 45opie.
56"Build Parameters"->"Target Machine"->"Mac OS X (DARWIN)" 46
57activate the platform specific changes. 47HOWTO COMPILE:
48-------------
49
50Compile QT-2.3.2:
51
52Got to into the basic directory of qt-2.3.2 and enter
53export QTDIR=`pwd`
54export DYLD_LIBRARY_PATH=$QTDIR/lib
55./configure -no-xft -platform darwin-g++
56make
57After compiling successful (I hope) you need qvfb:
58cd tools/qvfb
59make
60
61Compile QT/E-2.3.7:
62
63Got to into the basic directory of qt-2.3.2 and enter
64export QTDIR=`pwd`
65export QPEDIR=$QTDIR
66export DYLD_LIBRARY_PATH=$QTDIR/lib
67./configure -platform darwin-generic-g++ -qconfig qpe -qvfb -depths 4,8,16,32
68make
69
70Compile OPIE:
71Set your environment
72(You may use the script "set_vars.sh" to set your variables successfully !
73BUT: You have to customize this script for YOUR needs !!)
74Go into the basic directory of Opie
75make menuconfig"
76set "Build Parameters"->"Target Machine"->"Mac OS X (DARWIN)" to activate the platform specific changes.
77save and exit the menuconfig app
78make
58 79
59You will see that a lot of applications and plugins/applets will not compile 80You will see that a lot of applications and plugins/applets will not compile
60successfully, due to the fact that they are not ported to this platform. 81successfully, due to the fact that they are not ported to this platform.
61You may disable them to be able to compile the rest. 82You may disable them to be able to compile the rest.
62 83
84Remember: A lot of configuration-settings are not tested and might fail to compile.
85If you want to avoid misconfigurations, you may want to start with
86the config-file in this directory. Just copy "config_macosx" to $OPIEDIR/.config
87to get a working configuration to start with.
88
89(The missing apps/plugins will be ported on demand.)
90
91
92SPECIAL INFORMATION FOR USERS OF PANTHER
93----------------------------------------
94I had a lot of problems compiling qt-2.3.2 and QT/E-2.3.7 on Panther. The
95new release of the X-Server causes a lot of trouble..
96
97To compile QT-2.3.2 successfully, you have to disable support of freetype fonts and you have
98to use the patch in this directory, otherwise your wont't be able to compile !
99Use the param "-no-xft" for the configure script to disable this function !
63 100
64Information for Developers: 101Information for Developers:
65--------------------------- 102---------------------------
66 103
671. Platform specific code should be surrounded by 1041. Platform specific code should be surrounded by
68#ifdef Q_OS_MACX 105#ifdef Q_OS_MACX
69MACOS-X CODE 106MACOS-X CODE
70#else 107#else
71OTHER-CODE 108OTHER-CODE
72#endif 109#endif
73 110
742. The Plugin-Handling by MacOS-X is different than it is by Linux. 1112. The Plugin-Handling by MacOS-X is different than it is by Linux.
75On linux-systems, shared libraries are not different to dynamic loaded libraries 112On linux-systems, shared libraries are not different to dynamic loaded libraries
76(aka plugins). They just are different whether they are loaded automatically 113(aka plugins). They just are different whether they are loaded automatically
77at startup or manually by any application. 114at startup or manually by any application.
78On MacOS-X, the plugins are loaded by a special mechanism and must be in a special 115On MacOS-X, the plugins are loaded by a special mechanism and must be in a special
79binary format. Therefore you have to add the term "plugin" to the CONFIG-clause, as 116binary format. Therefore you have to add the term "plugin" to the CONFIG-clause, as
80for instance: 117for instance:
81 118
82TEMPLATE=lib 119TEMPLATE=lib
83CONFIG += qt plugin release 120CONFIG += qt plugin release
84 121
85If you don't add "plugin" you will get a shared library which is not loadable 122If you don't add "plugin" you will get a shared library which is not loadable
86(Error-Code: NSObjectFileImageInappropriateFile (2))! 123(Error-Code: NSObjectFileImageInappropriateFile (2))!
diff --git a/development/macosx/config_macosx b/development/macosx/config_macosx
index eb0792f..656a468 100644
--- a/development/macosx/config_macosx
+++ b/development/macosx/config_macosx
@@ -6,48 +6,49 @@
6# Build Parameters 6# Build Parameters
7# 7#
8# CONFIG_TARGET_X86 is not set 8# CONFIG_TARGET_X86 is not set
9CONFIG_TARGET_MACOSX=y 9CONFIG_TARGET_MACOSX=y
10# CONFIG_TARGET_SHARP is not set 10# CONFIG_TARGET_SHARP is not set
11# CONFIG_TARGET_IPAQ is not set 11# CONFIG_TARGET_IPAQ is not set
12# CONFIG_TARGET_RAMSES is not set 12# CONFIG_TARGET_RAMSES is not set
13# CONFIG_TARGET_SIMPAD is not set 13# CONFIG_TARGET_SIMPAD is not set
14# CONFIG_TARGET_YOPY is not set 14# CONFIG_TARGET_YOPY is not set
15# CONFIG_OPTIMIZE is not set 15# CONFIG_OPTIMIZE is not set
16CONFIG_DEBUG=y 16CONFIG_DEBUG=y
17CONFIG_QUICK_LAUNCH=y 17CONFIG_QUICK_LAUNCH=y
18# CONFIG_OPIE_NO_OVERRIDE_QT is not set 18# CONFIG_OPIE_NO_OVERRIDE_QT is not set
19CONFIG_SPECFILE="qws/macx-generic-g++" 19CONFIG_SPECFILE="qws/macx-generic-g++"
20CONFIG_EXPERIMENTAL=y 20CONFIG_EXPERIMENTAL=y
21 21
22# 22#
23# Base 23# Base
24# 24#
25CONFIG_LIBQPE=y 25CONFIG_LIBQPE=y
26# CONFIG_X11 is not set 26# CONFIG_X11 is not set
27CONFIG_LIBOPIE=y 27CONFIG_LIBOPIE=y
28# CONFIG_OPIE-LOGIN is not set 28# CONFIG_OPIE-LOGIN is not set
29# CONFIG_OPIEALARM is not set 29# CONFIG_OPIEALARM is not set
30CONFIG_QUICKLAUNCHER=y
30CONFIG_LAUNCHER=y 31CONFIG_LAUNCHER=y
31CONFIG_PRELOAD=y 32CONFIG_PRELOAD=y
32CONFIG_LAUNCHER_CORE=y 33CONFIG_LAUNCHER_CORE=y
33CONFIG_QWS=y 34CONFIG_QWS=y
34 35
35# 36#
36# 37#
37# 38#
38 39
39# 40#
40# Applets 41# Applets
41# 42#
42CONFIG_BATTERYAPPLET=y 43CONFIG_BATTERYAPPLET=y
43# CONFIG_CARDMON is not set 44# CONFIG_CARDMON is not set
44CONFIG_CLIPBOARDAPPLET=y 45CONFIG_CLIPBOARDAPPLET=y
45CONFIG_CLOCKAPPLET=y 46CONFIG_CLOCKAPPLET=y
46CONFIG_HOMEAPPLET=y 47CONFIG_HOMEAPPLET=y
47# CONFIG_IRDAAPPLET is not set 48# CONFIG_IRDAAPPLET is not set
48# CONFIG_LOGOUTAPPLET is not set 49# CONFIG_LOGOUTAPPLET is not set
49# CONFIG_OBEXAPPLET is not set 50# CONFIG_OBEXAPPLET is not set
50# CONFIG_OBEX is not set 51# CONFIG_OBEX is not set
51# CONFIG_RESTARTAPPLET is not set 52# CONFIG_RESTARTAPPLET is not set
52# CONFIG_ROTATEAPPLET is not set 53# CONFIG_ROTATEAPPLET is not set
53# CONFIG_SCREENSHOTAPPLET is not set 54# CONFIG_SCREENSHOTAPPLET is not set