aMule Forum

English => Compilation problems => Topic started by: Radek on June 30, 2005, 08:50:47 PM

Title: 20050630 - wx/colour.h needed for amuled?
Post by: Radek on June 30, 2005, 08:50:47 PM
Hi, All!

I just tried to compile amuled, amuleweb, and amulecmd from the latest CVS. The output tells me that wx/colour.h is needed. I checked the sources and it is indeed included in src/Color.h.

As I don't have any GUI on my server (Debian Sarge), I only have wxbase 2.6.0 installed. There isn't any wx/colour.h included with wxbase...

The CVS 20050614 compiled without problems. I also tried with wxbase 2.6.1 and had the same error. Other than trying the latest CVS I didn't make any changes to the system.

I think some conditional compilation is missing... Comments?

Code: [Select]
In Datei, eingefügt von WebServer.h:63,
                    von WebServer.cpp:44:
KnownFile.h:227:10: Warnung: #warning KAD TODO - Check usage
In Datei, eingef³gt von WebServer.cpp:68:
Color.h:35:55: wx/colour.h: Datei oder Verzeichnis nicht gefunden
In file included from WebServer.cpp:68:
Color.h:51: error: Syntaxfehler before `(' token
Color.h:54: error: `colour' was not declared in this scope
Color.h:54: error: `percentage' was not declared in this scope
Color.h:55: error: `colour' was not declared in this scope
Color.h:55: error: `percentage' was not declared in this scope
Color.h:57: error: Fehler beim Parsen before `return'
Color.h:96: error: Syntaxfehler before `(' token
Color.h:102: error: `wxColour' was not declared in this scope
Color.h:102: error: Fehler beim Parsen before `)' token
Color.h: In function `COLORREF CrFromWxColour(...)':
Color.h:104: error: `col' undeclared (first use this function)
Color.h:104: error: (Each undeclared identifier is reported only once for each function it appears in.)
make[3]: *** [amuleweb-WebServer.o] Fehler 1
make[2]: *** [all-recursive] Fehler 1
make[1]: *** [all-recursive] Fehler 1
make: *** [all] Fehler 2
Title: Re: 20050630 - wx/colour.h needed for amuled?
Post by: stefanero on July 01, 2005, 08:36:34 AM
well this should not be, I tell lfroen and GonoszTopi to have a look at it
Title: Re: 20050630 - wx/colour.h needed for amuled?
Post by: GonoszTopi on July 04, 2005, 07:40:50 PM
fixed.
Title: Re: 20050630 - wx/colour.h needed for amuled?
Post by: Radek on July 07, 2005, 11:32:18 AM
Not quite!

Tried with CVS 20050707. At first everything compiles OK, but then...
Code: [Select]
In Datei, eingefügt von Preferences.h:35,
                    von AICHSyncThread.cpp:40:
Color.h:35:55: wx/colour.h: Datei oder Verzeichnis nicht gefunden
In file included from Preferences.h:35,
                 from AICHSyncThread.cpp:40:
Color.h:51: error: Syntaxfehler before `(' token
Color.h:54: error: `colour' was not declared in this scope
Color.h:54: error: `percentage' was not declared in this scope
Color.h:55: error: `colour' was not declared in this scope
Color.h:55: error: `percentage' was not declared in this scope
Color.h:57: error: Fehler beim Parsen before `return'
Color.h:96: error: Syntaxfehler before `(' token
Color.h:102: error: `wxColour' was not declared in this scope
Color.h:102: error: Fehler beim Parsen before `)' token
Color.h: In function `COLORREF CrFromWxColour(...)':
Color.h:104: error: `col' undeclared (first use this function)
Color.h:104: error: (Each undeclared identifier is reported only once for each function it appears in.)
make[3]: *** [amuled-AICHSyncThread.o] Fehler 1
make[2]: *** [all-recursive] Fehler 1
make[1]: *** [all-recursive] Fehler 1
make: *** [all] Fehler 2
Title: Re: 20050630 - wx/colour.h needed for amuled?
Post by: GonoszTopi on July 07, 2005, 02:16:23 PM
Ok, this time hopefully I really fixed it 8)
Title: Re: 20050630 - wx/colour.h needed for amuled?
Post by: Radek on July 08, 2005, 09:52:18 AM
CVS 20050708 compiles OK now, thank's a lot!

But - when I run configure
Code: [Select]
./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemonI get a mysterious warning concerning gd-lib. It's the warning out of the last few lines of configure.in.

I'm not familiar with autoconf but I did take a look into things and it seems to me that the test for gd.h was successfull (checked config.log). The variable $GDLIB_LIBS on the other hand (the one leading to the above warning) is only set, if CAS is wanted?!

Last successfull compile was with CVS 20050614 (I don't try every snapshot). I didn't have this warning then!

When I look at amuleweb with Mozilla, I can see that the colours of the progress bar pictures are completely changed. Missing parts are now blue, the parts somewhere found are yellow to red... Has one to do with the other?

And of course the missing Gifs in the page header, but that was already mentioned by someone in "en_bugs".
Title: Re: 20050630 - wx/colour.h needed for amuled?
Post by: GonoszTopi on July 08, 2005, 09:56:39 AM
Whoaaa, I need to check this color thingie.

That gd warning is a mistake, going to be corrected for the next tarball.

Thanks for finding us bugs ;)
Title: Re: 20050630 - wx/colour.h needed for amuled?
Post by: Radek on July 08, 2005, 10:08:47 AM
Quote
Thanks for finding us bugs
Doing my best... Used to be called "Bit Biter" by some :D
Title: Re: 20050630 - wx/colour.h needed for amuled?
Post by: GonoszTopi on July 08, 2005, 11:06:36 AM
Ok, warning and colors are fixed.
Title: Re: 20050630 - wx/colour.h needed for amuled?
Post by: Radek on July 09, 2005, 10:35:18 AM
All's fine now...

Only the missing Gifs in the header area and a mangled "home"-image (http://server.address:4711/), but that's only a cosmetic problem, as far as I am concerned.

Thanks!