Code::Blocks Forums

User forums => Help => Topic started by: vesselin_peev on August 03, 2006, 04:16:13 pm

Title: The latest SVN (2809) does not build on GNU/Linux
Post by: vesselin_peev 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
Title: Re: The latest SVN (2809) does not build on GNU/Linux
Post by: Der Meister 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.
Title: Re: The latest SVN (2809) does not build on GNU/Linux
Post by: vesselin_peev 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.
Title: Re: The latest SVN (2809) does not build on GNU/Linux
Post by: Der Meister 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.
Title: Re: The latest SVN (2809) does not build on GNU/Linux
Post by: mandrav on August 03, 2006, 05:30:18 pm
Sorry for this. I 'll fix this in a while...
Title: Re: The latest SVN (2809) does not build on GNU/Linux
Post by: vesselin_peev on August 03, 2006, 05:32:19 pm
Mandrav, thank you.
Title: Re: The latest SVN (2809) does not build on GNU/Linux
Post by: mandrav on August 03, 2006, 06:12:48 pm
Revision 2810 should build just fine.
Title: Re: The latest SVN (2809) does not build on GNU/Linux
Post by: vesselin_peev 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".
Title: Re: The latest SVN (2809) does not build on GNU/Linux
Post by: mandrav 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
Title: Re: The latest SVN (2809) does not build on GNU/Linux
Post by: TheTuxKeeper 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. :)