Author Topic: The latest SVN (2809) does not build on GNU/Linux  (Read 6971 times)

vesselin_peev

  • Guest
The latest SVN (2809) does not build on GNU/Linux
« on: August 03, 2006, 04:16:13 pm »
It built fine up to this SVN revision. gcc 3.4.4 used.

Quote
gdb_tipwindow.cpp:40:25: gtk/gtk.h: No such file or directory
gdb_tipwindow.cpp: In constructor `GDBTipWindow::GDBTipWindow(wxWindow*, const wxString&, const wxString&, const wxString&, wxCoord, GDBTipWindow**, wxRect*)':
gdb_tipwindow.cpp:186: error: `GTK_WIDGET_HAS_GRAB' undeclared (first use this function)
gdb_tipwindow.cpp:186: error: (Each undeclared identifier is reported only oncefor each function it appears in.)
gdb_tipwindow.cpp:187: error: `gtk_grab_add' undeclared (first use this function)
gdb_tipwindow.cpp: In destructor `virtual GDBTipWindow::~GDBTipWindow()':
gdb_tipwindow.cpp:203: error: `GTK_WIDGET_HAS_GRAB' undeclared (first use this function)
gdb_tipwindow.cpp:204: error: `gtk_grab_remove' undeclared (first use this function)
gdb_tipwindow.cpp: In member function `void GDBTipWindow::Close()':
gdb_tipwindow.cpp:257: error: `GTK_WIDGET_HAS_GRAB' undeclared (first use this function)
gdb_tipwindow.cpp:258: error: `gtk_grab_remove' undeclared (first use this function)
make[4]: *** [gdb_tipwindow.lo] Error 1

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: The latest SVN (2809) does not build on GNU/Linux
« Reply #1 on: August 03, 2006, 04:58:52 pm »
I can confirm this with gcc 3.4.6 on gentoo. It seems as if the include-directory for gtk is missing thus gcc cannot find gtk/gtk.h.
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

vesselin_peev

  • Guest
Re: The latest SVN (2809) does not build on GNU/Linux
« Reply #2 on: August 03, 2006, 05:17:19 pm »
Yes, the first error is obviously the cause for all the rest. Perhaps some include paths have been removed from the build scripts? I have gtk.h in /usr/include/gtk-2.0/gtk/gtk.h.

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: The latest SVN (2809) does not build on GNU/Linux
« Reply #3 on: August 03, 2006, 05:27:04 pm »
No, they have not been removed. They never were there as Code::Blocks normally does not use GTK directly, it just uses wxGTK.
Unfortunately I'm not that familiar with autotools to correctly add this include-directory to the makefiles or to the configure script.
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: The latest SVN (2809) does not build on GNU/Linux
« Reply #4 on: August 03, 2006, 05:30:18 pm »
Sorry for this. I 'll fix this in a while...
Be patient!
This bug will be fixed soon...

vesselin_peev

  • Guest
Re: The latest SVN (2809) does not build on GNU/Linux
« Reply #5 on: August 03, 2006, 05:32:19 pm »
Mandrav, thank you.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: The latest SVN (2809) does not build on GNU/Linux
« Reply #6 on: August 03, 2006, 06:12:48 pm »
Revision 2810 should build just fine.
Be patient!
This bug will be fixed soon...

vesselin_peev

  • Guest
Re: The latest SVN (2809) does not build on GNU/Linux
« Reply #7 on: August 03, 2006, 06:40:24 pm »
After a distclean, building 2810 fails with "src/plugins/debuggergdb/Makefile.am:16: linker flags such as `--libs' belong in`libdebuggergdb_la_LDFLAGS
make[3]: *** [Makefile.in] Error 1".

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: The latest SVN (2809) does not build on GNU/Linux
« Reply #8 on: August 03, 2006, 06:50:34 pm »
Darn, I couldn't test it before.
Moved it where it suggested and commited again. Let's hope it works now  :o
Be patient!
This bug will be fixed soon...

Offline TheTuxKeeper

  • Regular
  • ***
  • Posts: 293
  • daniel2000
Re: The latest SVN (2809) does not build on GNU/Linux
« Reply #9 on: August 03, 2006, 07:56:14 pm »
Darn, I couldn't test it before.
Moved it where it suggested and commited again. Let's hope it works now  :o
Debuggergdb in rev2811 compiles fine for me. :)
Nightly builds for openSUSE