aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: 20050630 - wx/colour.h needed for amuled?  (Read 4776 times)

Radek

  • Full Member
  • ***
  • Karma: 5
  • Offline Offline
  • Posts: 149
20050630 - wx/colour.h needed for amuled?
« 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
Logged
There are 10 kinds of people - those who are able to understand binary numbers and those who aren't...

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: 20050630 - wx/colour.h needed for amuled?
« Reply #1 on: July 01, 2005, 08:36:34 AM »

well this should not be, I tell lfroen and GonoszTopi to have a look at it
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: 20050630 - wx/colour.h needed for amuled?
« Reply #2 on: July 04, 2005, 07:40:50 PM »

fixed.
Logged
concordia cum veritate

Radek

  • Full Member
  • ***
  • Karma: 5
  • Offline Offline
  • Posts: 149
Re: 20050630 - wx/colour.h needed for amuled?
« Reply #3 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
Logged
There are 10 kinds of people - those who are able to understand binary numbers and those who aren't...

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: 20050630 - wx/colour.h needed for amuled?
« Reply #4 on: July 07, 2005, 02:16:23 PM »

Ok, this time hopefully I really fixed it 8)
Logged
concordia cum veritate

Radek

  • Full Member
  • ***
  • Karma: 5
  • Offline Offline
  • Posts: 149
Re: 20050630 - wx/colour.h needed for amuled?
« Reply #5 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".
Logged
There are 10 kinds of people - those who are able to understand binary numbers and those who aren't...

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: 20050630 - wx/colour.h needed for amuled?
« Reply #6 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 ;)
Logged
concordia cum veritate

Radek

  • Full Member
  • ***
  • Karma: 5
  • Offline Offline
  • Posts: 149
Re: 20050630 - wx/colour.h needed for amuled?
« Reply #7 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
Logged
There are 10 kinds of people - those who are able to understand binary numbers and those who aren't...

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: 20050630 - wx/colour.h needed for amuled?
« Reply #8 on: July 08, 2005, 11:06:36 AM »

Ok, warning and colors are fixed.
Logged
concordia cum veritate

Radek

  • Full Member
  • ***
  • Karma: 5
  • Offline Offline
  • Posts: 149
Re: 20050630 - wx/colour.h needed for amuled?
« Reply #9 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!
Logged
There are 10 kinds of people - those who are able to understand binary numbers and those who aren't...