aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Problems compiling SVN amulegui under Windows  (Read 2824 times)

Nodsu

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 62
Problems compiling SVN amulegui under Windows
« on: March 29, 2007, 04:13:25 PM »

Using wxMSW 2.8.0

1. The file_generator.pl script makes use of the Swtch.pm module, which is not available for MSYS. The script should be rewritten using simple if/else instead of switch statements.

2. If one gets around the Perl issue, build fails with following:
Code: [Select]
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/local/lib/wx/include/msw-unicode-release-static-2.8 -I/usr/local/include/wx-2.8 -D__WXMSW__ -mthreads -I./libs -DNOMINMAX -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -O2  -DUSE_WX_EXTENSIONS -MT libmuleappgui_a-BarShader.o -MD -MP -MF ".deps/libmuleappgui_a-BarShader.Tpo" -c -o libmuleappgui_a-BarShader.o `test -f 'BarShader.cpp' || echo './'`BarShader.cpp; \
then mv -f ".deps/libmuleappgui_a-BarShader.Tpo" ".deps/libmuleappgui_a-BarShader.Po"; else rm -f ".deps/libmuleappgui_a-BarShader.Tpo"; exit 1; fi
In file included from C:/msys/1.0/local/include/wx-2.8/wx/msw/gdiimage.h:20,
                 from C:/msys/1.0/local/include/wx-2.8/wx/msw/cursor.h:15,
                 from C:/msys/1.0/local/include/wx-2.8/wx/cursor.h:20,
                 from C:/msys/1.0/local/include/wx-2.8/wx/dc.h:22,
                 from BarShader.cpp:26:
C:/msys/1.0/local/include/wx-2.8/wx/gdicmn.h: In member function `bool wxRect::Inside(int, int) const':
C:/msys/1.0/local/include/wx-2.8/wx/gdicmn.h:486: warning: declaration of 'y' shadows a member of 'this'
C:/msys/1.0/local/include/wx-2.8/wx/gdicmn.h:486: warning: declaration of 'x' shadows a member of 'this'
In file included from BarShader.cpp:27:
Color.h: At global scope:
Color.h:76: error: `COLORREF' does not name a type
In file included from BarShader.cpp:27:
Color.h:96: error: `WxColourFromCr' declared as an `inline' variable
Color.h:96: error: `COLORREF' was not declared in this scope
Color.h:97: error: expected `,' or `;' before '{' token
Color.h:102: error: `COLORREF' does not name a type
BarShader.cpp: In member function `void CBarShader::FillRect(wxDC*, const wxRect&, uint32, bool)':
BarShader.cpp:255: error: no match for call to `(wxColour) (uint32&)'
make[3]: *** [libmuleappgui_a-BarShader.o] Error 1
make[3]: Leaving directory `/src/amule-cvs/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/src/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/src/amule-cvs'
make: *** [all] Error 2
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Problems compiling SVN amulegui under Windows
« Reply #1 on: March 30, 2007, 04:41:07 AM »

Hi Nodsu,

Please, try it again with tomorrow cvs. I made another fix. More "conservative" this time.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Problems compiling SVN amulegui under Windows
« Reply #2 on: March 30, 2007, 08:21:17 AM »

Error message changed a bit. (wxMSW 2.8.3, mingw gcc 3.4.2 stable)

Quote
if g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include -I/usr/local/lib/wx/include/msw-unicode-release-static-2.8 -I/usr/local/include/wx-2.8 -D__WXMSW__ -mthreads -I./libs -DNOMINMAX -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -O2  -DUSE_WX_EXTENSIONS -MT libmuleappgui_a-BarShader.o -MD -MP -MF ".deps/libmuleappgui_a-BarShader.Tpo" -c -o libmuleappgui_a-BarShader.o `test -f 'BarShader.cpp' || echo './'`BarShader.cpp; \
then mv -f ".deps/libmuleappgui_a-BarShader.Tpo" ".deps/libmuleappgui_a-BarShader.Po"; else rm -f ".deps/libmuleappgui_a-BarShader.Tpo"; exit 1; fi
In file included from BarShader.cpp:27:
Color.h: In function `COLORREF DarkenColour(COLORREF, int)':
Color.h:78: error: `GetRValue' undeclared (first use this function)
Color.h:78: error: (Each undeclared identifier is reported only once for each function it appears in.)
Color.h:78: error: `GetGValue' undeclared (first use this function)
Color.h:78: error: `GetBValue' undeclared (first use this function)
Color.h:78: error: `RGB' undeclared (first use this function)
In file included from BarShader.cpp:27:
Color.h: In function `wxColour WxColourFromCr(COLORREF)':
Color.h:98: error: `GetRValue' undeclared (first use this function)
Color.h:98: error: `GetGValue' undeclared (first use this function)
Color.h:98: error: `GetBValue' undeclared (first use this function)
Color.h: In function `COLORREF CrFromWxColour(wxColour)':
Color.h:104: error: `RGB' undeclared (first use this function)
make[3]: *** [libmuleappgui_a-BarShader.o] Error 1

BTW: Where should I place such reports: In the forum or in the bugtracker?

(Bugtracker entry)
« Last Edit: March 30, 2007, 08:24:19 AM by wuischke »
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Problems compiling SVN amulegui under Windows
« Reply #3 on: April 13, 2007, 07:59:09 PM »

Any news?
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Problems compiling SVN amulegui under Windows
« Reply #4 on: April 14, 2007, 03:24:32 PM »

Yes!

Lets choose one thread, either this one or this other one:
http://forum.amule.org/index.php?topic=11861.msg66649

If I have someone to compile it for me, I think we can make it work.

Cheers!
Logged