TEXT   163
Installing on Windows
Guest on 7th February 2023 02:24:48 AM

  1. Installing on Windows NT
  3. Toolkit files:
  4. After downloading the toolkit, uncompress it.  Even though it's a .tar.gz, winzip can do this if you simply double-click on the file.  Choose a directory to extract the files into.  The extraction process will create the lemur directory and all folder structures for you.
  6. Using Visual C++:
  8. Building the libraries:
  9. There are 4 .mak files in the lemur directory that are NMAKE files.  These can be built using the command line or using Visual C++ (version 6.0).  The 4 files are lemur_utility.mak, lemur_index.mak, lemur_langmod.mak, and lemur_retrieval.mak.  Each one builds a .lib with the same name in the same directory.
  11. In Visual C++, open the .mak file for the library that you want to build.  It will complain about not having a project file and make one for you.  Say yes, and save it (anywhere).  It will create a project where the only file is the makefile.  When you build, it might claim to build a .exe, but it will still build the .lib, and regardless of where you saved the project, it should build the .lib in the lemur directory.  For more information, look in VC++ help, indexed under "makefile: porting NMAKE projects to the development environment."
  12. If you want to create real projects for these libraries, you can create new static library projects and add in the source files into the project.  Each library containts all the source files from the directory with the corresponding names.  For example, lemur_utility builds all files from lemur\utility and lemur_index builds all files from lemur\index.
  14. OR
  16. On the command line in the lemur directory (you will need to have nmake installed and in your path):
  17.         nmake /f "lemur_utility.mak"  
  19. to build the Release version of the lemur_utility.lib or type
  21.         nmake /f "lemur_utility.mak" CFG="lemur_utility - Win32 Debug"
  23. for the Debug version.
  25. Building an application:
  26. To build an existing application or to write your own, compile the main source file and link in the library files.  In Visual C++, create a new project (empty win32 console application) and add the source file for the application.  Link in the library files by listing them in the "object/library modules" field under the "link" tab of project settings.  Make sure you have the lemur path in the "additional library path" field, also under the "link" tab in the "input" category.

Raw Paste

Login or Register to edit or fork this paste. It's free.