]> granicus.if.org Git - nethack/commitdiff
Information about compiling for Qtopia.
authorwarwick <warwick>
Tue, 20 Aug 2002 07:31:48 +0000 (07:31 +0000)
committerwarwick <warwick>
Tue, 20 Aug 2002 07:31:48 +0000 (07:31 +0000)
win/Qt/Install.Qt

index 194a6bcbb6e2f649a00070280ed8d1d92b8ecfb1..7b6ef148db74c37a767f2df5faf0be5a0a86a094 100644 (file)
@@ -53,10 +53,40 @@ To use this code:
 
 If you are using KDE, you may want to also try the KDE version. It just
 uses the KDE menubar and follows other KDE conventions - there is no
-extra functionality. To do so, first ensure that you have KDE 2.x
-libraries on your system (in 1999 KDE 1.x was the norm); then, add
-$(KDECXXFLAGS) to the CXXFLAGS definition, $(KDELFLAGS) to the LFLAGS
-definition and $(WINKDELIB) to WINLIB.  Some additional files here -
-knh-mini.xpm, knh.xpm, and knethack.lnk are useful if you want to
-install "knethack" in the KDE games directory.  
+extra functionality. To do so:
+
+   1. Ensure that you have KDE 2.x libraries on your system
+        (in 1999 KDE 1.x was the norm)
+
+   2. ../../src/Makefile
+
+      Add $(KDECXXFLAGS) to the CXXFLAGS definition, $(KDELFLAGS) to
+      the LFLAGS definition and $(WINKDELIB) to WINLIB.
+
+   3. Some additional files here - knh-mini.xpm, knh.xpm, and
+      knethack.lnk are useful if you want to install "knethack" in
+      the KDE games directory.  
+
+
+If you are using Qtopia, you can compile NetHack for that environment
+with the following additional steps:
+
+   1. First be sure that you can build a simple Qtopia application,
+      such as the examples that ship with Qtopia. Do not attempt
+      something as challenging to compile as NetHack before you can
+      already build a Qtopia application for your target device.
+
+   2. If you are cross-compiling (eg. targetting an ARM-based handheld),
+      be sure to follow the steps for cross-compiling in the Makefile.src
+      and Makefile.utl files.
+
+   3. To CXXFLAGS in Makefile.src, add:
+      -DQWS -I$(QPEDIR)/include -fno-rtti -fno-exceptions
+
+   4. Rather than -lqt in WINQTLIB, have:
+      -L$(QPEDIR)/lib -lqpe -lqte
+
+   5. After building, use the "mkipks" program that ships with Qtopia
+      to package the result into an ipk file.
+