Closed Bug 288481 Opened 20 years ago Closed 20 years ago

error compiling trunk with gtk2

Categories

(Core :: Widget: Gtk, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: damien.thebault, Assigned: blizzard)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.7.6) Gecko/20050324
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.7.6) Gecko/20050324

When using the gtk2 toolkit, compilation stops while building nsWindow.cpp
(imgIContainer.h not found)

Reproducible: Always

Steps to Reproduce:
Using mozilla-source.tar.bz2 from
http://ftp.mozilla.org/pub/mozilla.org/mozilla/nightly/latest-trunk/
(Version 23-Mar-2005)
configured with --enable-default-toolkit=gtk2
Actual Results:  
compilation error at widget/src/gtk2/nsWindow.cpp

Expected Results:  
compilation succeed

I just managed to get it working by editing the file
(widget/src/gtk2/nsWindow.cpp) :
-------------------------------------------
@@ -86,7 +86,7 @@

 /* SetCursor(imgIContainer*) */
 #include <gdk/gdk.h>
-#include "imgIContainer.h"
+#include "imglib2/imgIContainer.h"
 #include "gfxIImageFrame.h"
 #include "nsIImage.h"
 #include "nsIGdkPixbufImage.h"
-------------------------------------------

because dist/include is in the gcc includes, but not dist/include/imglib2.
that patch is the wrong fix. does widget/src/gtk2/Makefile.in not contain
imglib2 in the REQUIRES line? that should take care of the right include
directories.
Assignee: general → blizzard
Component: Installer → Widget: Gtk
Product: Mozilla Application Suite → Core
QA Contact: bugzilla → ian
Summary: error compiling mozilla 1.8 with gtk2 → error compiling trunk with gtk2
Version: unspecified → Trunk
Ok, it's my fault...

I didn't clean since the previous build.
I just rebuild all and it went fine.

Sorry about this...

(I set it to fixed...)

Damien
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
nothing changed in the mozilla source code -> not fixed
Status: RESOLVED → UNCONFIRMED
Resolution: FIXED → ---
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.