aMule Forum
English => Compilation problems => Topic started by: Nodsu 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:
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
-
Hi Nodsu,
Please, try it again with tomorrow cvs. I made another fix. More "conservative" this time.
-
Error message changed a bit. (wxMSW 2.8.3, mingw gcc 3.4.2 stable)
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 (http://bugs.amule.org/view.php?id=1075))
-
Any news?
-
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!