From dbf471bfbda6e6b62c991dc0ef613aef4221b5e2 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 1 Jul 2002 20:26:07 +0000 Subject: Add Borland C++ Builder project files. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2485 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- borlandc/README | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 borlandc/README (limited to 'borlandc/README') diff --git a/borlandc/README b/borlandc/README new file mode 100644 index 000000000..4e42f2527 --- /dev/null +++ b/borlandc/README @@ -0,0 +1,43 @@ +Compilation of FLTK 1.1rc2 in Borland C++ Builder 6.0 +(by Alexey Parshin alexeyp@m7.tts-sf.com) + +FLTK library compile: +--------------------- +0) Open the project group fltk.bpg. It contains all the other projects. +1) Create the directory ../obj (obj in fltk) +2) During the compilation of fltklib project I had two compile + errors in scandir_win32.c. Just add the required type conversions: + + Line 46: + findIn = (char *)malloc(len+5); + + Line 75: + struct dirent **tempDir = (struct dirent **) calloc(sizeof(struct dirent*), NDir+33); +3) For some reason BCB 6.0 doesn't like the word 'DIRECTORY' so I had to replace + it everywhere in source code and examples with '_DIRECTORY'. The case is + very important. For instance (file Fl_File_Icon.cxx): + + icon = new Fl_File_Icon("*", Fl_File_Icon::DIRECTORY); + + replaced with + + icon = new Fl_File_Icon("*", Fl_File_Icon::_DIRECTORY); + + +FLTK examples compile: +--------------------- +0) All the examples create an empty console window when start. I know how to + avoid this window but it requires the modification of the examples. So I leave + it on FLTK authors. +1) File connect.cxx doesn't support Windows - example is not generated. +2) The colbrowser example uses the color map file which is not presented on + Windows. If you modify this example so it uses the file stolen from Linux + you can test it. +3) The (cube, fullscreen, fractals) examples use GL which I don't have. For this + reason I was unable to test how it works with GL. + +Your own projects in BCB 6.0: +---------------------------- +1) Make sure you have 'Treat enums as integers' option checked (in project options). +2) To make it simple you can take fltk_app_template.bpr and replace bitmap.cxx in + this project with your files. -- cgit v1.2.3