summaryrefslogtreecommitdiff
path: root/README.Unix.txt
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2010-10-30 18:21:40 +0000
committerMatthias Melcher <fltk@matthiasm.com>2010-10-30 18:21:40 +0000
commita04cc6b3cef56ab3e8414ab1c7d4152c49be97be (patch)
tree0c82f2169a8de1d3d825c7ff71853b6a13a50b04 /README.Unix.txt
parentff09e7237c0ccbab0855d2da87d392810dab69c5 (diff)
Added instructions on how to create a Linux 'Code::Blocks' project
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7775 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'README.Unix.txt')
-rw-r--r--README.Unix.txt35
1 files changed, 32 insertions, 3 deletions
diff --git a/README.Unix.txt b/README.Unix.txt
index 6bdb28354..b59db8355 100644
--- a/README.Unix.txt
+++ b/README.Unix.txt
@@ -26,7 +26,7 @@ README.Unix.txt - 2010-10-28 - Building FLTK on Unix
3.5 Testing FLTK
3.6 Installing FLTK
3.7 Creating new Projects
- 4 * CODE::BLOCKS
+ 4 CREATING A NEW PROJECT IN CODE::BLOCKS
5 DOCUMENT HISTORY
* TODO: we still need to write these chapters
@@ -259,12 +259,41 @@ recommend that you add it to the command search path.
- 4 CODE::BLOCKS
-=================
+ 4 CREATING A NEW PROJECT IN CODE::BLOCKS
+===========================================
+
+Code::Blocks is a free and popular C++ IDE in the Linux world. It also runs on
+OS X and MSWindows. Configured correctly, it can also cross-compile between
+thise platforms. This chapter focuses on creating a new FLTK project for Linux,
+assuming that FLTK 1.3 was previously built and installed in its default
+location from the command line.
+
+If not done yet, install Code::Blocks as described in the Prerequisites chapter
+above, or download it from their web site. This description is based on
+version 10.05:
+
+ http://www.codeblocks.org/
+
+Start Code::Blocks. Select File > New > Project. In the "New from template"
+dialog box, click on "FLTK project" and follow the instructions.
+
+The defualt project support basic fltk. If you would like to add support for
+images, OpenGL, GLUT, or Forms, add the corresponding flags --use-images,
+--use-gl, --use-glut, and --use-forms respectively.
+
+The flags are located in the "Project Buld Options" dialog. To change the
+compiler flags, select your project in the tree view, then select the
+"Compiler Settings" tab, then "Other Options" and add the flags to
+`fltk-config --cxxflags` in front of the second "`".
+
+The linker flags are located in the "Linker Settings" tab under "Other Linker
+Options". Add the flags to `fltk-config --ldstaticflags` in front of the
+second "`".
5 DOCUMENT HISTORY
=====================
+Oct 30 2010 - matt: added Code::Blocks chapter
Oct 28 2010 - matt: restructured entire document and verified instructions