Author Topic: Building on Debian  (Read 4776 times)

Offline darthdespotism

  • Almost regular
  • **
  • Posts: 163
    • Coder's Nemesis
Building on Debian
« on: November 28, 2007, 06:54:46 pm »
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?

Offline Auria

  • Almost regular
  • **
  • Posts: 152
Re: Building on Debian
« Reply #1 on: November 28, 2007, 08:23:54 pm »
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.)

Offline darthdespotism

  • Almost regular
  • **
  • Posts: 163
    • Coder's Nemesis
Re: Building on Debian
« Reply #2 on: November 28, 2007, 08:50:20 pm »
OK I really was missing autotools. Trying to build it now :)

Code
 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!)
« Last Edit: November 28, 2007, 08:53:10 pm by darthdespotism »

Offline Auria

  • Almost regular
  • **
  • Posts: 152
Re: Building on Debian
« Reply #3 on: November 29, 2007, 01:27:24 am »
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

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Building on Debian
« Reply #4 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...)
Be patient!
This bug will be fixed soon...

Offline darthdespotism

  • Almost regular
  • **
  • Posts: 163
    • Coder's Nemesis
Re: Building on Debian
« Reply #5 on: November 29, 2007, 05:41:46 pm »
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 :)
« Last Edit: November 29, 2007, 07:44:09 pm by darthdespotism »

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: Building on Debian
« Reply #6 on: November 30, 2007, 05:59:54 am »
I have a similar problem building on Ubuntu Feisty (VMWare'd)

after running ./configure i get:

Code
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?

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Building on Debian
« Reply #7 on: November 30, 2007, 06:37:14 am »
I have a similar problem building on Ubuntu Feisty (VMWare'd)

after running ./configure i get:

Code
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.

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 -
Code
./configure --with-contrib-plugins=all
Be a part of the solution, not a part of the problem.

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: Building on Debian
« Reply #8 on: November 30, 2007, 06:49:11 am »
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