User forums > General (but related to Code::Blocks)
Configure fails - gtk2 not found (Ubuntu 12.04 with gtk3)
ihor:
On Ubuntu 12.04 64bit with gtk3 and gtk3-dev installed configure fails on gtk2 with error:
configure: error: Package requirements (gtk+-2.0 >= 2.0.0) were not met:
No package 'gtk+-2.0' found
Please advice.
stahta01:
configure for what fails?
Version of the what is also needed!
Tim S.
ihor:
--- Quote from: stahta01 on December 11, 2012, 05:40:51 pm ---configure for what fails?
Version of the what is also needed!
Tim S.
--- End quote ---
CodeBlocks, svn rev.8647
Jenna:
--- Quote from: ihor on December 11, 2012, 08:21:23 pm ---
--- Quote from: stahta01 on December 11, 2012, 05:40:51 pm ---configure for what fails?
Version of the what is also needed!
Tim S.
--- End quote ---
CodeBlocks, svn rev.8647
--- End quote ---
And where is the problem ?
Just install the gtk2 dev packages and it's dependencies and it will work.
philcal:
No it wont - Not for me!
eg >>>>codeblocks: symbol lookup error: codeblocks: undefined symbol:_ZN13cbAuiNotebook7AddPageEP8wxWindowRK8wxStringbRK8wxBitmap
I successfully compiled, make'd and installed Codeblocks using the gtk2 but got the above run time error on [xubuntu 12.10 which uses gtk3]. Note I installed gtk2 side by side with the 'original' xubuntu system, something I was hesitant in doing. This followed many hours of unsuccessfully trying to compile Codeblocks with gtk3, playing around with configure.in/makefiles GTK2>3_CFLAGS etc. I almost got it compiled but got msg such as error: ‘GdkWindow’ has a previous declaration as ‘typedef struct _GdkDrawable GdkWindow’ Then I knew I was in trouble.
Obviously this is a gtk2-gtk3 compatibility issue so perhaps I should not even raise it here. Further somebody has already resolved it given the existence of the ubuntu 12.10 codeblocks deb package. However If somebody could give me a hint I would be grateful and may also be useful for users of the popular ubuntu os.
Why am I trying to compile when I already have it installed? Simply the package I used to install did not have the extended plugins for which I understand need to be compiled in. On the face of it this appears to be not a very flexible arrangement. Much better to have a compiled API in which a non compiled plugin can access -or am I missing something??
Using the deb package version I have noticed that the path selection dialog box for selecting include/tool locations is broken for me. A directory can be searched OK but the selection is not returned in the dialog properly, only part of a path "/home/x" in my case. I suspect its a system interface issue and not a codeblocks one but given my troubles above may be related. My work around was simply pasting in the paths either in the dialog or directly editing the cbp file.
Tim I see you are still around . Thanks for your help a year ago.
Navigation
[0] Message Index
[#] Next page
Go to full version