LinuxQuestions.org
Visit Jeremy's Blog.
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-10-2016, 05:57 PM   #1
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Rep: Reputation: Disabled
installing gtk3.0 for use with eclipse c++ projects


i have used apt-get to install some stuff to get gtk3.0, not working yet. can anyone guide me through the process please?
 
Old 01-10-2016, 06:08 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
if you are not going to inform us as to What distro you are using
and WHAT you installed ...

There is not much we can do

install the missing ???-dev.deb files
 
Old 01-11-2016, 03:38 AM   #3
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
im using debian jessie and i installed gtk+-3.0 using apt-get.
 
Old 01-11-2016, 05:35 AM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Code:
add to search box

eclipse c++ and gtk3

click google search button

pick results

results 1

results 2

how to set up gtk in eclipse c++ debian

results 3


results 4
they may help you along

Last edited by BW-userx; 01-11-2016 at 05:38 AM.
 
Old 01-11-2016, 07:44 AM   #5
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
hi i have checked i have nothing in the opt directory i dont think those instructions will help
 
Old 01-11-2016, 08:26 AM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by zeshanuk View Post
hi i have checked i have nothing in the opt directory i dont think those instructions will help
command line

Code:
find "path to look in" -name gtk3

#or 

whereis gtk3

#or any variation of gtk
let me install Debain on VB and see what I can do to get it running. it'll be a few I got a download the ISO and install debain and whatever else is needed.

Last edited by BW-userx; 01-11-2016 at 08:32 AM.
 
Old 01-11-2016, 10:39 AM   #7
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
command line

Code:
find "path to look in" -name gtk3

#or 

whereis gtk3

#or any variation of gtk
let me install Debain on VB and see what I can do to get it running. it'll be a few I got a download the ISO and install debain and whatever else is needed.

Thanks for your help on this. I have searched for :

Code:
pkg-config --list-all | grep gtk
gtk-sharp-3.0                  Gtk - Gtk
gtk+-3.0                       GTK+ - GTK+ Graphical UI Library
gtk+-broadway-3.0              GTK+ - GTK+ Graphical UI Library
gtk+-unix-print-3.0            GTK+ - GTK+ Unix print support
gtk+-wayland-3.0               GTK+ - GTK+ Graphical UI Library
gtk+-x11-3.0                   GTK+ - GTK+ Graphical UI Library
then

Code:
root@Debian:/home/zeshan/workspace/chat client# whereis gtk+-3.0
gtk+-3:
root@Debian:/home/zeshan/workspace/chat client#
not sure why this happens???

then i try:

Code:
root@Debian:/home/zeshan/workspace/chat client# find / -name gtk+-3.0
root@Debian:/home/zeshan/workspace/chat client#
not sure why it doesnt find it. anyway there is something in /usr/share/gtk-3.0/blah

thanks in advance.
 
Old 01-11-2016, 11:13 AM   #8
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by zeshanuk View Post
Thanks for your help on this. I have searched for :

Code:
pkg-config --list-all | grep gtk
gtk-sharp-3.0                  Gtk - Gtk
gtk+-3.0                       GTK+ - GTK+ Graphical UI Library
gtk+-broadway-3.0              GTK+ - GTK+ Graphical UI Library
gtk+-unix-print-3.0            GTK+ - GTK+ Unix print support
gtk+-wayland-3.0               GTK+ - GTK+ Graphical UI Library
gtk+-x11-3.0                   GTK+ - GTK+ Graphical UI Library
then

Code:
root@Debian:/home/zeshan/workspace/chat client# whereis gtk+-3.0
gtk+-3:
root@Debian:/home/zeshan/workspace/chat client#
not sure why this happens???

then i try:

Code:
root@Debian:/home/zeshan/workspace/chat client# find / -name gtk+-3.0
root@Debian:/home/zeshan/workspace/chat client#
not sure why it doesnt find it. anyway there is something in /usr/share/gtk-3.0/blah

thanks in advance.
this is what I am working on now with eclipse getting it set up for c++ gtk3

I ran this
Code:
 find / -name gtk*
and got this out put after installing everything that webpage said to.
Code:
 .... /usr/lib/python3/dist-packages/orca/scripts/toolkits/gtk
/usr/lib/x86_64-linux-gnu/pkgconfig/gtk+-broadway-3.0.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/gtk+-wayland-3.0.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/gtk+-3.0.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/gtk+-unix-print-3.0.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/gtk+-x11-3.0.pc
....
so Maybe you do not have the proper stuff installed ...

go here and see if this will help you..
 
Old 01-11-2016, 11:51 AM   #9
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
ok i did:

Code:
apt-get install libgtk-3-dev gdb eclipse-cdt build-essential cmake git pkg-config
then:

root@Debian:/home/zeshan/workspace/chat client# find / -name gtk*
/home/zeshan/workspace/chat client/gtkwindow.cpp
root@Debian:/home/zeshan/workspace/chat client#

it seems to not find anything........
 
Old 01-11-2016, 12:20 PM   #10
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by zeshanuk View Post
ok i did:

Code:
apt-get install libgtk-3-dev gdb eclipse-cdt build-essential cmake git pkg-config
then:

root@Debian:/home/zeshan/workspace/chat client# find / -name gtk*
/home/zeshan/workspace/chat client/gtkwindow.cpp
root@Debian:/home/zeshan/workspace/chat client#

it seems to not find anything........
what are you doing in ROOT for one, and I have no idea if you installed all of them apts then you should be getting something --

ROOT is just to admin you should be in a user account using sudo or su to install apts within your user account...

if you do not want to type passwords then mod your sudoers file
Code:
nano /etc/sudoers

..

userName or (persent-sign)groupName ALL=(ALL:ALL) NOPASSWD: ALL

Last edited by BW-userx; 01-11-2016 at 12:47 PM.
 
Old 01-11-2016, 01:09 PM   #11
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
what are you doing in ROOT for one, and I have no idea if you installed all of them apts then you should be getting something --

ROOT is just to admin you should be in a user account using sudo or su to install apts within your user account...

if you do not want to type passwords then mod your sudoers file
Code:
nano /etc/sudoers

..

userName or (persent-sign)groupName ALL=(ALL:ALL) NOPASSWD: ALL
thanks for the sudoers tip, there is data in /usr/share/gtk*

is there no way you can still help, maybe we can start over somehow...?
 
Old 01-11-2016, 01:20 PM   #12
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
reboot has done something good,

now after find / -name gtk*

Quote:
/usr/include/gtk-3.0/gtk/gtkwidget.h
/usr/include/gtk-3.0/gtk/gtkappchooserdialog.h
/usr/include/gtk-3.0/gtk/gtkprintoperation.h
/usr/include/gtk-3.0/gtk/gtkcellrenderer.h
/usr/include/gtk-3.0/gtk/gtkcalendar.h
/usr/include/gtk-3.0/gtk/gtkseparator.h
/usr/include/gtk-3.0/gtk/gtkcssprovider.h
/usr/include/gtk-3.0/gtk/gtkgesture.h
/usr/include/gtk-3.0/gtk/gtkframe.h
/usr/include/gtk-3.0/gtk/gtkcellareabox.h
/usr/include/gtk-3.0/gtk/gtkseparatormenuitem.h
/usr/include/gtk-3.0/gtk/gtktexttagtable.h
/usr/include/gtk-3.0/gtk/gtkbuildable.h
/usr/include/gtk-3.0/gtk/gtkbutton.h
/usr/include/gtk-3.0/gtk/gtkwindow.h
/usr/include/gtk-3.0/gtk/gtkgesturesingle.h
/usr/include/gtk-3.0/gtk/gtkstylecontext.h
/usr/include/gtk-3.0/gtk/gtkgesturelongpress.h
/usr/include/gtk-3.0/gtk/gtkcolorchooser.h
/usr/include/gtk-3.0/gtk/gtkbox.h
/usr/include/gtk-3.0/gtk/gtktreeview.h
/usr/include/gtk-3.0/gtk/gtkeventcontroller.h
/usr/include/gtk-3.0/gtk/gtkcelleditable.h
/usr/include/gtk-3.0/gtk/gtklayout.h
/usr/include/gtk-3.0/gtk/gtkrecentchooserwidget.h
/usr/include/gtk-3.0/gtk/gtkfilechooser.h
/usr/include/gtk-3.0/gtk/gtklistbox.h
/usr/include/gtk-3.0/gtk/gtkimcontext.h
/usr/include/gtk-3.0/gtk/gtkplug.h
/usr/include/gtk-3.0/gtk/gtkcellrendererspin.h
/usr/include/gtk-3.0/gtk/gtkbin.h
/usr/include/gtk-3.0/gtk/gtkmenutoolbutton.h
/usr/include/gtk-3.0/gtk/gtkicontheme.h
/usr/include/gtk-3.0/gtk/gtkcellrendereraccel.h
/usr/include/gtk-3.0/gtk/gtktextbuffer.h
/usr/include/gtk-3.0/gtk/gtktoolbutton.h
/usr/include/gtk-3.0/gtk/gtkappchooser.h
/usr/include/gtk-3.0/gtk/gtkfontbutton.h
/usr/include/gtk-3.0/gtk/gtkcellrenderertext.h
/usr/include/gtk-3.0/gtk/gtkentrycompletion.h
/usr/include/gtk-3.0/gtk/gtkenums.h
/usr/include/gtk-3.0/gtk/gtkfontchooser.h
/usr/include/gtk-3.0/gtk/gtkbuilder.h
/usr/include/gtk-3.0/gtk/gtkdialog.h
/usr/include/gtk-3.0/gtk/gtkdnd.h
/usr/include/gtk-3.0/gtk/gtkmodules.h
/usr/include/gtk-3.0/gtk/gtkdrawingarea.h
/usr/include/gtk-3.0/gtk/gtkselection.h
/usr/include/gtk-3.0/gtk/gtkaboutdialog.h
/usr/include/gtk-3.0/gtk/gtktoggletoolbutton.h
/usr/include/gtk-3.0/gtk/gtkscrolledwindow.h
/usr/include/gtk-3.0/gtk/gtktreeselection.h
/usr/include/wx-3.0/wx/gtk
/home/zeshan/workspace/chat client/Debug/gtkwindow.d
/home/zeshan/workspace/chat client/gtkwindow.cpp
/home/zeshan/.config/gtk-3.0
/home/zeshan/.config/gtk-2.0
/home/zeshan/.config/gtk-2.0/gtkfilechooser.ini
/etc/gimp/2.0/gtkrc
/etc/gtk-3.0
/etc/sound/events/gtk-events-2.soundlist
/etc/gtk-2.0
 
Old 01-11-2016, 01:43 PM   #13
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
I get these errors when trying to compile at cli:

Quote:
zeshan@Debian:~/workspace/chat client$ g++ -o window gtkwindow.cpp pkg-config --libs --cflags gtk-3.0
g++: error: pkg-config: No such file or directory
g++: error: gtk-3.0: No such file or directory
g++: error: unrecognized command line option --libs
g++: error: unrecognized command line option --cflags
zeshan@Debian:~/workspace/chat client$
do you think you could help further????

Last edited by zeshanuk; 01-11-2016 at 01:54 PM. Reason: showed errors
 
Old 01-11-2016, 02:05 PM   #14
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by zeshanuk View Post
I get these errors when trying to compile at cli:



do you think you could help further????
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
 
Old 01-11-2016, 02:52 PM   #15
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
@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.
 
1 members found this post helpful.
  


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 01:55 AM.

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