[Lemon-user] Visual Studio 2008
Alpár Jüttner
alpar at cs.elte.hu
Wed Nov 9 13:45:56 CET 2011
Hi,
First of all I suggest using the LEMON version 1.2.3 released today, as
it fixes a CMAKE related problem (an auxiliary file was missing from the
previous release). Alternatively, you can use the latest development
version from the HG repository.
> I would like to use lemon graph to write some code for my optimizition course.
> I also would like to work with Visual Studio 2008.
>
> I read your installation description and I am confussed about some of
> the steps. I downloaded lemon 1.2.2.zip and unzipped it, so now I have
> a folder named "lemon-1.2.2".
> [...]
> "We suggest to create a subfolder called build in the root of the
> source code repository."
>
> What do you mean by "root of the source code repository"? I don't know,
> where to create this folder?
The LEMON source code layout looks like this:
lemon-1.2.3/ <-- This is the root folder
+-- lemon/ <-- All the lemon sources are here
+-- test/ <-- Self tests
+-- doc/ <-- Documentation
+-- html <-- HTML documentation
+-- demo/ <-- Some demo codes
+-- contrib/ <-- Placeholder for your own code
NEWS <-- The changelog file
LICENSE <-- Copyright notice
...
Here 'lemon-1.2.3' is the root folder. The 'build' can be placed
anywhere, but it is convenient to make it a subfolder of
'lemon-1.2.3' (i.e. to the same level as 'lemon', 'demo' etc.)
>
> "Then start the CMake GUI and browse the source code and the build folders.
> What is the source code?
source code folder = root folder = lemon-1.2.3
> In my "lemon-1.2.2" folder are many cpp and
> header files?
In fact, the source codes shouldn't directly be in lemon-1.2.3, but
instead in its subfolders, such as 'lemon' or 'demo'
> Do I have to choose a specific subfolder in
> "lemon-1.2.2"?
No, you have to choose the the root folder itself (lemon-1.2.3)
> What are the build folders? Do you mean the build folder
> I have to create? But I have to create one single subfolder build,
> don't I?
You are right, there is one single build folder. The plural form refers
to the source one and the build one together. I agree it is misleading,
but I believe this is the grammatically correct form. Let me know if I
am mistaken.
> Maybe there is an easier way, since I do only simple things like
> writing a prim or a djikstra code.
Note that there are several ways of using LEMON from your own project.
See this page for some more details:
https://lemon.cs.elte.hu/trac/lemon/wiki/HowToCompile
In many cases, the second option is the easiest: You place your code
into the contrib/ folder and edit contrib/CMakeLists.txt. Then your code
will be automatically compiled linked when you build LEMON.
Regards,
Alpar
> I appreciate any help I can get.
> Thank you very much,
>
> Valentina Gerber
> _______________________________________________
> Lemon-user mailing list
> Lemon-user at lemon.cs.elte.hu
> http://lemon.cs.elte.hu/mailman/listinfo/lemon-user
>
More information about the Lemon-user
mailing list