Development > Newbie Coding

Compile and debug with Eclipse in Windows

<< < (2/2)

Cel123:
tried to get the prerequisites to work with Eclipse for hours with no luck, so moved onto mingw-enabled command-line as a way to get more information where compilation goes wrong:

when i do:
cd I:\ufoai\ufoai
make

then the first lines that start to appear are:
curl-config: Command not found

Now i thought i have installed the libcurl library, but i may have done something wrong:
A) downloaded the source here http://curl.haxx.se/download.html
B) copied [LIBCURLHOME]\include to [MINGWHOME]\include
C) produced libcurldll.a and libcurl.a and copied them to [MINGWHOME]\lib (instructions from http://lenkite.blogspot.co.uk/2007/11/quickstart-libcurl-and-mingw-plain-http.html)

But i still get those lines:
curl-config: Command not found

1) Am i meant to run .\configure before i run make ? I dont even know what  .\configure does and i dont know whether i should pass any arguments to it, but in any case Windows command line does not recognize this command? (While make does work)

2) is curl-config not meant to be a variable with a value other than "curl-config" ? basically, is make meant to take care of all teh compilation automagically, or am i meant to edit some configuration file first or pass in some arguments etc?

i hope i have enough energy to not give up on this :)

thanks!

Mattn:
not only headers, static libs and dlls are needed, also some pkg-config files (*.pc) and in the case of libcurl, curl-config is needed, too. curl-config should have been created by the compilation of libcurl. you have to copy this into your mingw /usr/bin directory.

the easiest would be to use the codeblocks package that is linked in the wiki.

Cel123:
thanks! the link you referred to solved it - http://ufoai.org/wiki/index.php/Code::Blocks
i.e. i was able to compile very easily with the pre-packaged codeblocks (although compiling the maps took more than 3 hours :) )

in terms of debugging, even though i changed the target within codeblocks to windows_debug, im not sure i am able to debug properly e.g. if i open Debug-> Debugging Windows -> Running Threads then it is empty? or is this me not knowing how to use codeblocks?

 ta.

Cel123:
here's the debugging output which seems to be ok:

Building to ensure sources are up-to-date
Build succeeded
Selecting target:
windows_debug
Adding source dir: I:\ufoai\ufoai\build\projects\
Adding source dir: I:\ufoai\ufoai\
Changing directory to: ../../
Adding file: ..\..\ufo.exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.0
Child process PID: 10640
Program exited normally.
Debugger finished with status 0

Navigation

[0] Message Index

[*] Previous page

Go to full version