summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2010-02-22 22:05:05 +0200
committerGraeme Geldenhuys <graemeg@gmail.com>2010-02-22 22:05:05 +0200
commit36ac744a7854343080866e4f0313eeb2f62829e0 (patch)
tree0130456f86fd785117c36f90d64044d90bd935bd
parent900bf3322caf3c1dcaa3329749b3862686fdae32 (diff)
downloadfpGUI-36ac744a7854343080866e4f0313eeb2f62829e0.tar.xz
update readme and install text files
* Also relocated the src/readme.txt file to the docs directory.
-rw-r--r--docs/INSTALL.txt (renamed from src/readme.txt)47
-rw-r--r--docs/README.txt (renamed from docs/readme.txt)27
-rw-r--r--examples/readme.txt19
3 files changed, 54 insertions, 39 deletions
diff --git a/src/readme.txt b/docs/INSTALL.txt
index 6c97dc41..a0e7d670 100644
--- a/src/readme.txt
+++ b/docs/INSTALL.txt
@@ -1,29 +1,39 @@
+ fpGUI Toolkit
+
+ INSTALLATION NOTES
+
+
+
Building fpGUI from the Command Line
====================================
This is still a work in progress until I can find a suitable solution. I'm
not 100% satisfied with this, but it's a quick and dirty way to get things
to compile. I'll assume you have the 'fpc' executable setup in your PATH so it
-can be run from any location on your computer. I'll also assume you global
+can be run from any location on your computer. I'll also assume your global
fpc.cfg file has been setup correctly so the FPC compiler can find the RTL and
FCL units.
-Under Linux run: build.sh
+Under Linux run:
+ cd <fpgui>/src
+ build.sh
-Under Windows run: build.bat
+Under Windows run:
+ cd <fpgui>\src
+ build.bat
-The extrafpc.cfg file located in this directory is combined with your global
-fpc.cfg file. The local extrafpc.cfg file sets up all the required search and
-include paths to compile CoreLib and GUI directories.
+The extrafpc.cfg file located in the src directory is combined with your global
+fpc.cfg file. The local extrafpc.cfg file sets up all the required search and
+include paths to compile the CoreLib and GUI directories.
-All compiled units (*.o and *.ppu) are saved in the ../lib directory. This
+All compiled units (*.o and *.ppu) are saved in the <fpgui>/lib directory. This
makes the search paths for you applications a little easier to setup.
- Building fpGUI using Lazarus
- ============================
+ Building fpGUI using Lazarus
+ ============================
I use a Lazarus feature call Packages that compiles the required
units and keeps track of the compiled units and paths when creating
@@ -61,7 +71,7 @@ find all the fpGUI compiled units and source for you.
Building fpGUI from the Free Pascal Text IDE
============================================
-
+
First you would need to setup the 'fp' IDE to find the related files.
As far as I understand the text mode IDE has it's own built-in compiler
so doesn't read the standard fpc.cfg file.
@@ -72,7 +82,7 @@ so doesn't read the standard fpc.cfg file.
* Now enter the following directories replacing the relevant parts with
your actual paths. The example below is valid on my system only.
I was using FPC 2.2.0 under Linux and the X11 corelib backend.
-
+
/opt/fpc_2.2.0/lib/fpc/2.2.0/units/i386-linux/*
/opt/fpc_2.2.0/lib/fpc/2.2.0/units/i386-linux/rtl
/home/graemeg/programming/fpGUI/src/corelib
@@ -82,30 +92,30 @@ so doesn't read the standard fpc.cfg file.
* Now select the 'Include files' tab and enter the following paths.
Again change the paths to point to your actual directories and
X11 or GDI corelib backend.
-
+
/home/graemeg/programming/fpGUI/src/corelib
/home/graemeg/programming/fpGUI/src/corelib/x11
-
+
* Now changes to 'Miscellaneous' tab, PPU output directory. Type in
the edit box: units
-
+
NOTE:
This will place all the compiled *.ppu and *.o files into a 'units'
directory inside you current directory. So make sure you create it
before you try to compile for the first time. FPC doesn't create
directories for you!
-
+
* Now you are ready to open your projects main program unit (F3) and
compiling it by pressing (F9).
-
-
+
+
Compiling any of the examples from the Command Line
===================================================
You need to compile fpGUI first as mentioned above!
Every project in the ../examples directory has it's own extrafpc.cfg file.
You only need to specify that config file and the project unit to compile
-it.
+it.
fpc @extrafpc.cfg <project unit>
@@ -122,3 +132,4 @@ Regards,
+
diff --git a/docs/readme.txt b/docs/README.txt
index 27bbfa6f..e08a5212 100644
--- a/docs/readme.txt
+++ b/docs/README.txt
@@ -3,15 +3,15 @@ fpGUI information
=================
This version of fpGUI is based on a implementation where every
widget has a window handle. In other words every widget is actually
- an embedded window in the Form (yet another window).
-
- Revision 127 was the last revision which still had the old design - one
- handle per Form.
- It has been tagged in SubVersion as /tags/single_handle_fpgui
-
- From revision 227, the new design (multi-handle implementation) has
- become the new default implementation of fpGUI. It was a complete
- rewrite of the code.
+ an embedded window inside a top-level window (aka Form).
+
+ If you wanted to look at the old design of fpGUI - the one based on
+ a single handle per Form - then create a local branch based on the
+ tag 'single_handle_fpgui', or the slightly newer branch called
+ 'v0.4_fixes'.
+
+ Release v0.5 and later is the new design (multi-handle implementation).
+ It was a complete rewrite of the code.
@@ -32,7 +32,8 @@ To install FPC under Debian/Ubuntu
How to compile fpGUI
====================
- Please see the readme.txt file in the "src" directory.
+ Please see the INSTALL.txt file for detailed instructions.
+
System requirements under Linux
@@ -46,7 +47,7 @@ required packages too.
------
- Graeme Geldenhuys
+Regards,
+ - Graeme Geldenhuys -
-
+ ============================================ \ No newline at end of file
diff --git a/examples/readme.txt b/examples/readme.txt
index 80aaeee6..05331e24 100644
--- a/examples/readme.txt
+++ b/examples/readme.txt
@@ -1,22 +1,25 @@
+ Compiling the fpGUI Demos
+
+
Compiling any of the examples from the Command Line
===================================================
-You need to compile the fpGUI toolkit first as mentioned in
-the ../src/readme.txt file.
+You need to compile the fpGUI toolkit first as mentioned in the
+README.txt file located in the <fpgui>/docs/ directory.
I'll assume the fpc executable path has been setup so you can execute 'fpc'
-from any directory. Every project in the 'examples' directory has it's
-own extrafpc.cfg file. You only need to specify that config file and the
-project's main unit to compile it.
+from any directory. Every project in the 'examples' directory has its
+own extrafpc.cfg file. You only need to specify that config file and the
+project's main unit to compile it.
The format is as follows:
fpc @extrafpc.cfg <project main unit>
Example:
- fpc @extrafpc.cfg docedit.lpr
- or
- fpc @extrafpc.cfg helloworld.pas
+ fpc @extrafpc.cfg docedit.lpr
+ or
+ fpc @extrafpc.cfg helloworld.pas
=======================================================