Answer the question
In order to leave comments, you need to log in
How to compile Seman (aot.ru toolkit) under Windows?
I want to warn you right away that programming is my hobby, so I may not understand elementary things from the compilation process. I would be grateful for any help, advice, tips. Write - do not be shy. Thank you!
Downloading the toolkit from SourceForge .
The \trunk\Source\ folder contains project folders. For example, in the \trunk\Source\TestSeman\ demo folder, there are 3 files:
TestSeman.vcproj
TestSeman.cpp
Makefile
When I try to compile in VS, I get:
LNK2019: reference to an unresolved external symbol...
If I understand correctly, this is happening because the required .libs are not specified in the projectfiles. This is what the Makefile should be responsible for . Because on Windows, the script cannot be run from it (am I right?), you must manually specify all the .lib files in the project.
In the folders where, in theory, there should be .lib and .dll files, they are not, but there are their projects. Moreover, in each Makefile folder indicating the libraries.
Questions:
In order to compile the example from TestSeman , do I need to compile all the libraries, given that to compile each of them, I may first need to compile other libraries?
Did I understand correctly?
If so, is there really no easier way (in terms of Makefiles under Windows and compiling everything at once)?
How is this done on UNIX systems?
How would you solve the problem of compiling TestSeman under Windows?
Thanks in advance for your replies and help!
Answer the question
In order to leave comments, you need to log in
I would install cygwin (it's kind of a mini Unix for Windows). Everything you need is there or put through the installer. I would collect there.
> How is this done on UNIX systems?
yum install bison flex pcre g++
sh build.sh
seman.svn.sourceforge.net/viewvc/seman/trunk/readme?revision=177&view=markup
Yohu, I compiled under VS 2010. True, as usual with microsoftware, a lot of link errors and shamanism.
Actions are as follows.
1) Convert translator.sln to a modern project.
1a) Put the root folder of the unpacked archive into the RML environment variable.
2) For the SimpleGrammarLib project, download and fasten flex and bison in the build settings.
3) Run the solution for compilation.
4) We correct syntactic flaws that have crawled out from library incompatibility: for pow(erg), we forcibly convert the argument to double: pow((double)arg), and increase the length of lines in RusGramTab.h.
5) Some dll-rb are not copied to bin after assembly, I did it manually and ran regdll.
6) Run compilation several times in release mode. Repeat steps 5 and 6 until we get the required dlls. If it doesn't help, read compilation errors.
7) After that, I had seman.dll and everything related to it. My goal has been achieved.
7a) If it doesn't help, write here, I'll throw off the converted files.
I am writing in Delphi XE. I read that AOT is good for free software. If possible, drop the compiled files to [email protected] It will be interesting to include them in your projects. Thank you.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question