News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Building on Debian

Started by darthdespotism, November 28, 2007, 06:54:46 PM

Previous topic - Next topic

darthdespotism

Hi

I know there is an unoffical Repos for Debian but I prefer building Codeblocks on my own (don't know what this is good for, but ...) and the build is currently failing at ./bootstrap:

You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.
./bootstrap: line 64: aclocal: command not found

however there is no aclocal.m4 and when I copy the above mentioned file in codeblocksfolder the second error remains.

Any thoughts / packages?

Auria

Messages about copying .m4 files happen all the time and i alway ignored them with no problem (on OS X at least but anyway autotools is the same on all platforms). try installing autotools (autoconf, automake, etc.)

darthdespotism

#2
OK I really was missing autotools. Trying to build it now :)

debian/rules build
gdb_tipwindow.cpp:40:25: error: gtk/gtk.h: No such file or directory
gdb_tipwindow.cpp: In constructor 'GDBTipWindow::GDBTipWindow(wxWindow*, const wxString&, const wxString&, const wxString&, const wxString&, wxCoord, GDBTipWindow**, wxRect*)':
gdb_tipwindow.cpp:190: error: 'GTK_WIDGET_HAS_GRAB' was not declared in this scope
gdb_tipwindow.cpp:191: error: 'gtk_grab_add' was not declared in this scope
gdb_tipwindow.cpp: In destructor 'virtual GDBTipWindow::~GDBTipWindow()':
gdb_tipwindow.cpp:207: error: 'GTK_WIDGET_HAS_GRAB' was not declared in this scope
gdb_tipwindow.cpp:208: error: 'gtk_grab_remove' was not declared in this scope
gdb_tipwindow.cpp: In member function 'void GDBTipWindow::Close()':
gdb_tipwindow.cpp:261: error: 'GTK_WIDGET_HAS_GRAB' was not declared in this scope
gdb_tipwindow.cpp:262: error: 'gtk_grab_remove' was not declared in this scope
make[5]: *** [gdb_tipwindow.lo] Fehler 1
make[4]: *** [all-recursive] Fehler 1
make[3]: *** [all-recursive] Fehler 1
make[2]: *** [all-recursive] Fehler 1
make[1]: *** [all-recursive] Fehler 1
make: *** [build-stamp] Fehler 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2


wxgtk + gtk2 ist installiert (-dev Pakete!)

Auria

Check that the header exists and where it is... if it's actually there, help the program find it by symlinking or passing additional search flags to configure perhaps

mandrav

You need the gtk-devel package.
(Sigh, one of these days we should add a dependency check for this in configure.in...)
Be patient!
This bug will be fixed soon...

darthdespotism

#5
Quote from: mandrav on November 29, 2007, 09:18:51 AM
You need the gtk-devel package.
(Sigh, one of these days we should add a dependency check for this in configure.in...)

Do you mean libgtk2-dev ? this is already installed

after symlinking /usr/include/gtk-2.0/gtk to /usr/local/include/gtk it finally worked :)

dmoore

I have a similar problem building on Ubuntu Feisty (VMWare'd)

after running ./configure i get:


checking for GTK2... configure: error: Package requirements (gtk+-2.0 >= 2.0.0) were not met:

No package 'gtk+-2.0' found


is it even possible that gtk 2.0 isn't installed on a vanilla ubuntu? does anyone know what I'm missing?

to pre-empt the next set of problems, to build C::B with the full set of plugins what make incantations do I need to specify?
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

Biplab

Quote from: dmoore on November 30, 2007, 05:59:54 AM
I have a similar problem building on Ubuntu Feisty (VMWare'd)

after running ./configure i get:


checking for GTK2... configure: error: Package requirements (gtk+-2.0 >= 2.0.0) were not met:

No package 'gtk+-2.0' found


is it even possible that gtk 2.0 isn't installed on a vanilla ubuntu? does anyone know what I'm missing?

I'm not sure. But it may come only with the runtime packages. You should install libgtk+-2.0-devel package (the name may be bit different) to compile C::B.

Quote from: dmoore on November 30, 2007, 05:59:54 AM
to pre-empt the next set of problems, to build C::B with the full set of plugins what make incantations do I need to specify?

Configure C::B as -
./configure --with-contrib-plugins=all
Be a part of the solution, not a part of the problem.

dmoore

thanks biplab (for reference the name was libgtk2.0-dev)

I also grabbed automake, autoconf, libtools, and the usual wx libs -- I really have no idea how many of these were essential... The wiki is very out of date on compiling from source on linux
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]