|
|
BuildingYou may find easier to build OWL Next libraries using the OWLMaker program, which provides graphical user interface for choosing the libraries, providing the required .obj/.lib files and setting various options. If so, download, install and run the program and use the wizard. If you don't want or can't use OWLMaker, then follow the steps below. Step 1: Extract the build support filesExtract "obj32b.zip" or "obj32v.zip" in "c:\owl". Put the contents in the applicable directory, e.g. "\owlwfi" for a non-debug version. Step 2: Select librariesFirst, you need to decide what libraries you want. There are many possibilities, even with the unmodified Borland OWL. To see which ones you've installed, run this command: dir \bc5\owl*.lib /s /p I have nine Borland OWL libraries installed, and there are probably others on the CD. You may not actually be using all the libraries you've installed. To see which you need for a particular project, first set "Options | Environment | Project View | Show run-time nodes" in the IDE, then load your project and look at each target node for lib files whose names begin with "owl". For instance, in one project, I have some nodes that use "owlwfi.lib", and some others that use "owldwfi.lib". So I need to build both of those. To interpret those .lib names, break them down this way: OWL [D] W [F|L|T] [I] [U]
Step 3: Modify the appropriate batch fileIn "c:\owl\source\owlcore" there's a make file named "makefile" and batch files "gnuowl.bat", "bcowl.bat", and "mscowl.bat" that drive the make file. Choose the appropriate batch file for the compiler you plan to use, and take a look at its contents. You see many different examples to build various libraries. Remove the rem comment token from the ones you want, and insert rem before the ones you don't want, or make up your own. Note: It may be better to edit a copy of the batch file, as the supplied batch files may be modified by a patch, and the patch program will fail if the file is modified. ExampleFor example, here's what I did to build OWLWFI.LIB and its accompanying DLL:
I added "-K" to keep the temporary files created by make (useful for tracking down problems), and I redirected make's output to a file because I found it too taxing to try to read it as it scrolls by on the screen. The options I passed to the make file just say that I want to make the source in "c:\owl" into a 32-bit DLL. Make file optionsHere are the most important makefile options:
Step 4: Build selected librariesImportant: Make sure the file OWLROOT.INC contains correct path to the root of OWL Next Run the batch file you just modified to build the selected libraries for OWL Next. Further help and informationIf you encounter any problems, please post them to the OWL Next mailing list (go to Subscribe/Unsubscribe/Preferences). |
|||||||||||||
|
Last updated: April 2005 |