Debugger refuses to run.

CodeLite installation/troubleshooting forum
Midi
CodeLite Curious
Posts: 3
Joined: Tue May 06, 2014 3:20 am
Genuine User: Yes
IDE Question: C++
Contact:

Debugger refuses to run.

Post 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?
User avatar
Jarod42
CodeLite Expert
Posts: 240
Joined: Wed Sep 30, 2009 5:54 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: Debugger refuses to run.

Post 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.
Midi
CodeLite Curious
Posts: 3
Joined: Tue May 06, 2014 3:20 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Debugger refuses to run.

Post by Midi »

Does 'pkg-config' already exist somewhere or do I need to make it? And where would/should it be?
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Debugger refuses to run.

Post 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
Make sure you have read the HOW TO POST thread
Midi
CodeLite Curious
Posts: 3
Joined: Tue May 06, 2014 3:20 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Debugger refuses to run.

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Debugger refuses to run.

Post 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
Make sure you have read the HOW TO POST thread
Post Reply