LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-11-2016, 03:10 PM   #16
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by norobro View Post
@zeshanuk - from the command line use the following:
Code:
$ g++ -o window gtkwindow.cpp $(pkg-config --libs --cflags gtk-3.0)
That's shell command substitution.

I can't help you with eclipse. Never used it.
ok, after running your cmd i get:

Code:
zeshan@Debian:~/workspace/chat client$ g++ -o window gtkwindow.cpp $(pkg-config --libs --cflags gtk-3.0)
Package gtk-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk-3.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk-3.0' found
gtkwindow.cpp:7:21: fatal error: gtk/gtk.h: No such file or directory
 #include <gtk/gtk.h>
                     ^
compilation terminated.
zeshan@Debian:~/workspace/chat client$
 
Old 01-11-2016, 03:24 PM   #17
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
when I was following that instructions on that page I posted

g++: error: pkg-config

Code:
Click on Add... button and enter this repository: Name="Marketplace" and Location="http://download.eclipse.org/mpc/indigo/".


Select the "Marketplace client" and install it. Restart the eclipse IDE when needed.

Now you have Marketplace available, so lets use it. We need a tool called Pkg-config to configure all the GTK+ v3 libraries in our project.

Open again the Help menu and select the new "Eclipse Marketplace..." option. In the search bar, type the text "pkg-config" and you should get a screen like this:
 

This is the pkg-config tool for Eclipse. Press the button "Install" and restart the IDE when needed.
The pkg-config errored out saying it could not resolve what ever it was trying to do to get it installed on my install of Debian in VirtualBox ... that part is missing in order to do gtk3 in eclipse

best bet google hunt for debian pkg-config for eclipse gtk3
hi i have downloaded marketplace client but stuck on pkg-config now as you......any more ideas?

Last edited by zeshanuk; 01-11-2016 at 03:29 PM.
 
Old 01-11-2016, 03:37 PM   #18
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Sorry I just copied/pasted your command line. If you look back at post #7 where you did pkg-config --list-all you will see that it should be gtk+-3.0:
Code:
$ g++ -o window gtkwindow.cpp $(pkg-config --libs --cflags gtk+-3.0)
 
1 members found this post helpful.
Old 01-11-2016, 03:43 PM   #19
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by norobro View Post
Sorry I just copied/pasted your command line. If you look back at post #7 where you did pkg-config --list-all you will see that it should be gtk+-3.0:
Code:
$ g++ -o window gtkwindow.cpp $(pkg-config --libs --cflags gtk+-3.0)
it works! thanks for your help..wondering if i should bother with eclipse. what do you use for debugging?
 
Old 01-11-2016, 03:53 PM   #20
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
It depends. Most of the time I just run gdb from the command line. As far as an IDE: as a long time Qt user I really like QtCreator. I have also used and like Code::Blocks. Both are available in the Debian repositories.
 
Old 01-11-2016, 04:35 PM   #21
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by norobro View Post
It depends. Most of the time I just run gdb from the command line. As far as an IDE: as a long time Qt user I really like QtCreator. I have also used and like Code::Blocks. Both are available in the Debian repositories.
cool, thanks for the info.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Projects plugin debuts in new Eclipse Orion 2.0 LXer Syndicated Linux News 0 03-04-2013 01:40 PM
I can't compile Qt projects with Eclipse barbuceanu Linux - Software 0 05-08-2008 03:30 AM
LXer: Eclipse adds embedded device projects LXer Syndicated Linux News 0 04-15-2008 07:20 PM
LXer: Microsoft to Support Two Eclipse Projects LXer Syndicated Linux News 0 03-19-2008 06:00 PM
LXer: Eclipse Foundation Releases 10 Open Source Projects LXer Syndicated Linux News 0 06-30-2006 10:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration