Page 1 of 1

Debugger refuses to run.

Posted: Tue May 06, 2014 3:18 pm
by Midi
I tried running a simple Hello World, and I got this popup message:
Debugger exited with the following error string:
"No executable specified, use 'target exec'."
This is my build log:
C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 4 -e -f Makefile"
"----------Building project:[ GTK_Lesson01 - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'C:/Users/Midi/Documents/C++/CodeLite/GTK_Lesson01'
g++: error: `pkg-config: No such file or directory
g++: error: gtkmm-2.4`: No such file or directory
g++: error: unrecognized command line option '--cflags'
mingw32-make.exe[1]: *** [Debug/main.o.d] Error 1
mingw32-make.exe: *** [All] Error 2
GTK_Lesson01.mk:96: recipe for target 'Debug/main.o.d' failed
mingw32-make.exe[1]: Leaving directory 'C:/Users/Midi/Documents/C++/CodeLite/GTK_Lesson01'
Makefile:4: recipe for target 'All' failed
0 errors, 0 warnings
What should I do?

Re: Debugger refuses to run.

Posted: Tue May 06, 2014 5:40 pm
by Jarod42
The build log seems clear:

You fail to compile (so no executable).

`pkg-config` is not in your PATH.

Check your build options and your environment.

Re: Debugger refuses to run.

Posted: Wed May 07, 2014 1:29 am
by Midi
Does 'pkg-config' already exist somewhere or do I need to make it? And where would/should it be?

Re: Debugger refuses to run.

Posted: Wed May 07, 2014 8:23 am
by eranif
Midi wrote:Does 'pkg-config' already exist somewhere or do I need to make it? And where would/should it be?
pkg-config is something that is used under Linux and from the build log you are using Windows.
I suggest that you try and follow a tutorial for how to use GTK on Windows

Eran

Re: Debugger refuses to run.

Posted: Wed May 07, 2014 4:00 pm
by Midi
CodeLite came with GTK templates, so I'd assumed it came with the libraries already installed and configured.

Anyway, I have tried using GTK before. I can't find any tutorials for Windows, and when I tried using GTK when I was working with VC++, the header file was trying to include another file that was in a higher directory, so I switched them, but then that broke something else, such and so forth, so I have no freaking clue how to get started with GTK. I was using the all-inclusive package from the GTK website, so I'd assume that was already configured too, and that all I'd have to do was include the main header.

Seems my biggest mistake was assuming things would come ready to use.

Re: Debugger refuses to run.

Posted: Wed May 07, 2014 4:04 pm
by eranif
Midi wrote:CodeLite came with GTK templates, so I'd assumed it came with the libraries already installed and configured.
You still need to install them by yourself (the libraries)
Midi wrote:Seems my biggest mistake was assuming things would come ready to use.
I don't think _any_ IDE will install GTK libraries ready to use.

Did you try this tutorial ( I myself did not, but this was one the first matches that google came up with):
http://www.gtk.org/download/win32_tutorial.php

Eran