aMule Forum

English => Compilation problems => Topic started by: juanez on July 15, 2009, 04:30:56 PM

Title: wxwidgets problem
Post by: juanez on July 15, 2009, 04:30:56 PM
Hello, im new in this forum.

I tri to install amuled with webserver in debian lenny whitouth graphics.

when a tri to make .configure in amule, i received the next message error.


checking for wx-config... /usr/local/bin/wx-config
checking for wxWidgets version >= 2.8.0 (--unicode=yes)... no
configure: error:
    The requested wxWidgets build couldn't be found.

but i installed the wxwidgets

-------------------------------------------------------------------------
Configured wxWidgets 2.8.10 for `i686-pc-linux-gnu'

  Which GUI toolkit should wxWidgets use?                 GTK+ 2
  Should wxWidgets be compiled into single library?       no
  Should wxWidgets be compiled in debug mode?             no
  Should wxWidgets be linked as a shared library?         yes
  Should wxWidgets be compiled in Unicode mode?           no
  What level of wxWidgets compatibility should be enabled?
                                       wxWidgets 2.4      no
                                       wxWidgets 2.6      yes
  Which libraries should wxWidgets use?
                                       jpeg               sys
                                       png                sys
                                       regex              sys
                                       tiff               sys
                                       zlib               sys
                                       odbc               no
                                       expat              sys
                                       libmspack          no
                                       sdl                no


 The installation of wxWidgets is finished.  On certain
 platforms (e.g. Linux) you'll now have to run ldconfig
 if you installed a shared library and also modify the
 LD_LIBRARY_PATH (or equivalent) environment variable.

 wxWidgets comes with no guarantees and doesn't claim
 to be suitable for any purpose.

 Read the wxWidgets Licence on licencing conditions.
------------------------------------------------------------------

What is the problem?

Thanks.


Title: Re: wxwidgets problem
Post by: wuischke on July 15, 2009, 04:33:16 PM
Hi juanez,

Here's your problem:
Quote
Should wxWidgets be compiled in Unicode mode?           no
You can enable unicode be adding --enable-unicode to wxWidget's ./configure command.

P.S. http://www.amule.org/wiki/index.php/HowTo_Compile_aMuled
Title: Re: wxwidgets problem
Post by: juanez on July 16, 2009, 10:08:25 PM
OK, now the configre is ok but now have another problem, when i run "make"

-----------------------------------------------------------------------------------------------------
/usr/local/include/wx-2.8/wx/dc.h:989: error: invalid use of incomplete type âstruct wxDCâ
/usr/local/include/wx-2.8/wx/dc.h:33: error: forward declaration of âstruct wxDCâ
/usr/local/include/wx-2.8/wx/dc.h: In constructor âwxDCClipper::wxDCClipper(wxDC&, const wxRect&)â:
/usr/local/include/wx-2.8/wx/dc.h:991: error: invalid use of incomplete type âstruct wxDCâ
/usr/local/include/wx-2.8/wx/dc.h:33: error: forward declaration of âstruct wxDCâ
/usr/local/include/wx-2.8/wx/dc.h: In constructor âwxDCClipper::wxDCClipper(wxDC&, wxCoord, wxCoord, wxCoord, wxCoord)â:
/usr/local/include/wx-2.8/wx/dc.h:993: error: invalid use of incomplete type âstruct wxDCâ
/usr/local/include/wx-2.8/wx/dc.h:33: error: forward declaration of âstruct wxDCâ
/usr/local/include/wx-2.8/wx/dc.h: In destructor âwxDCClipper::~wxDCClipper()â:
/usr/local/include/wx-2.8/wx/dc.h:995: error: invalid use of incomplete type âstruct wxDCâ
/usr/local/include/wx-2.8/wx/dc.h:33: error: forward declaration of âstruct wxDCâ
In file included from BarShader.h:30,
                 from BarShader.cpp:28:
MuleColour.h: In constructor âCMuleColour::CMuleColour(const wxColour&)â:
MuleColour.h:42: error: invalid use of incomplete type âconst struct wxColourâ
/usr/local/include/wx-2.8/wx/colour.h:19: error: forward declaration of âconst struct wxColourâ
MuleColour.h:42: error: invalid use of incomplete type âconst struct wxColourâ
/usr/local/include/wx-2.8/wx/colour.h:19: error: forward declaration of âconst struct wxColourâ
MuleColour.h:42: error: invalid use of incomplete type âconst struct wxColourâ
/usr/local/include/wx-2.8/wx/colour.h:19: error: forward declaration of âconst struct wxColourâ
MuleColour.h: In constructor âCMuleColour::CMuleColour(wxSystemColour)â:
MuleColour.h:53: error: invalid use of incomplete type âstruct wxColourâ
/usr/local/include/wx-2.8/wx/colour.h:19: error: forward declaration of âstruct wxColourâ
MuleColour.h:54: error: invalid use of incomplete type âconst struct wxColourâ
/usr/local/include/wx-2.8/wx/colour.h:19: error: forward declaration of âconst struct wxColourâ
MuleColour.h:54: error: invalid use of incomplete type âconst struct wxColourâ
/usr/local/include/wx-2.8/wx/colour.h:19: error: forward declaration of âconst struct wxColourâ
MuleColour.h:54: error: invalid use of incomplete type âconst struct wxColourâ
/usr/local/include/wx-2.8/wx/colour.h:19: error: forward declaration of âconst struct wxColourâ
MuleColour.h: In member function âCMuleColour::operator wxColour() constâ:
MuleColour.h:94: error: return type âstruct wxColourâ is incomplete
MuleColour.h:95: error: invalid use of incomplete type âstruct wxColourâ
/usr/local/include/wx-2.8/wx/colour.h:19: error: forward declaration of âstruct wxColourâ
BarShader.cpp: In member function âvoid CBarShader::Draw(wxDC*, int, int, bool)â:
BarShader.cpp:212: error: variable âwxImage imageâ has initializer but incomplete type
BarShader.cpp:214: error: variable âwxBitmap bitmapâ has initializer but incomplete type
BarShader.cpp:215: error: invalid use of incomplete type âstruct wxDCâ
/usr/local/include/wx-2.8/wx/dc.h:33: error: forward declaration of âstruct wxDCâ
make[3]: *** [libmuleappgui_a-BarShader.o] Error 1
make[3]: se sale del directorio `/home/amule/src'
make[2]: *** [all-recursive] Error 1
make[2]: se sale del directorio `/home/amule/src'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/home/amule'
make: *** [all] Error 2
---------------------------------------------------------------------------------------------------------------
Title: Re: wxwidgets problem
Post by: Stu Redman on July 16, 2009, 10:21:28 PM
If you are compiling BarShader.cpp you are not compiling amuled. We can only help you if you describe in more detail what you want to do and what you are doing. How did you configure aMule, what wx version, etc.
Title: Re: wxwidgets problem
Post by: Vollstrecker on July 17, 2009, 01:10:44 PM
Wx version is 2.8.10, I think it's maybe a problem, that he compiled and installed the libs, but the headers are still the one that where shipped with lenny. Btw. I have working wx-packages uploaded to my repo.
Title: Re: wxwidgets problem
Post by: wuischke on July 17, 2009, 03:31:14 PM
No, the problem is just that (s)he compiled wx without graphics support, but tries to compile aMule/aMuleGUI which needs graphics.

--disable-monolithic should solve the problem.
Title: Re: wxwidgets problem
Post by: Vollstrecker on July 17, 2009, 05:19:55 PM
Quote
Which GUI toolkit should wxWidgets use?                 GTK+ 2

Isn't this the graphics support?
Title: Re: wxwidgets problem
Post by: wuischke on July 17, 2009, 05:39:42 PM
I assumed (one shouldn't, I know) he used the configure line from the wiki line I gave him. This would explain the error messages at least.
Title: Re: wxwidgets problem
Post by: juanez on July 21, 2009, 01:16:06 PM
Where is the wiki to compile amuled now?

I tri to compile in debian lenny, without graphics, i will controlle them with amulegui or amulewebserver.

Title: Re: wxwidgets problem
Post by: wuischke on July 21, 2009, 01:17:19 PM
It's http://wiki.amule.org/index.php/HowTo_Compile_aMuled
Title: Re: wxwidgets problem
Post by: juanez on July 22, 2009, 01:32:39 AM
I have errors.


/home/amule/src/libs/common/MuleDebug.cpp:336: undefined reference to `wxString::Find(wchar_t, bool) const'
/home/amule/src/libs/common/MuleDebug.cpp:337: undefined reference to `wxString::Find(wchar_t, bool) const'
/home/amule/src/libs/common/MuleDebug.cpp:354: undefined reference to `wxString::Find(wchar_t, bool) const'
/home/amule/src/libs/common/MuleDebug.cpp:370: undefined reference to `operator+(wxString const&, wchar_t const*)'
/home/amule/src/libs/common/MuleDebug.cpp:442: undefined reference to `operator+(wxString const&, wchar_t const*)'
/home/amule/src/libs/common/MuleDebug.cpp:442: undefined reference to `operator+(wxString const&, wchar_t const*)'
/home/amule/src/libs/common/MuleDebug.cpp:447: undefined reference to `wxString::AfterLast(wchar_t) const'
/home/amule/src/libs/common/MuleDebug.cpp:453: undefined reference to `operator+(wxString const&, wchar_t const*)'
../../libs/common/libmulecommon.a(MuleDebug.o): In function `wxString::operator<<(int)':
/usr/local/include/wx-2.8/wx/string.h:1061: undefined reference to `wxString::Format(wchar_t const*, ...)'
../../libs/common/libmulecommon.a(StringFunctions.o): In function `JoinPaths(wxString const&, wxString const&)':
/home/amule/src/libs/common/StringFunctions.cpp:136: undefined reference to `operator+(wxString const&, wchar_t)'
../../libs/common/libmulecommon.a(StringFunctions.o): In function `TruncateFilename(CPath const&, unsigned int, bool)':
/home/amule/src/libs/common/StringFunctions.cpp:84: undefined reference to `operator+(wchar_t const*, wxString const&)'
/home/amule/src/libs/common/StringFunctions.cpp:95: undefined reference to `operator+(wxString const&, wchar_t const*)'
../../libs/common/libmulecommon.a(StringFunctions.o): In function `wxString::Contains(wxString const&) const':
/usr/local/include/wx-2.8/wx/string.h:1272: undefined reference to `wxString::Find(wchar_t const*) const'
../../libs/common/libmulecommon.a(Path.o): In function `CPath::StartsWith(CPath const&) const':
/home/amule/src/libs/common/Path.cpp:568: undefined reference to `operator+(wxString const&, wchar_t)'
/home/amule/src/libs/common/Path.cpp:569: undefined reference to `operator+(wxString const&, wchar_t)'
../../libs/common/libmulecommon.a(Path.o): In function `CPath::GetFileSize() const':
/home/amule/src/libs/common/Path.cpp:442: undefined reference to `wxFile::wxFile(wchar_t const*, wxFile::OpenMode)'
../../libs/common/libmulecommon.a(Path.o): In function `DoAddPostfix(wxString const&, wxString const&)':
/home/amule/src/libs/common/Path.cpp:177: undefined reference to `operator+(wchar_t const*, wxString const&)'
/home/amule/src/libs/common/Path.cpp:182: undefined reference to `operator+(wxString const&, wchar_t)'
../../libs/common/libmulecommon.a(Path.o): In function `CPath::BackupFile(CPath const&, wxString const&)':
/home/amule/src/libs/common/Path.cpp:620: undefined reference to `wxFile::Open(wchar_t const*, wxFile::OpenMode, int)'
../../libs/common/libmulecommon.a(Path.o): In function `setFNConv()':
/home/amule/src/libs/common/Path.cpp:50: undefined reference to `wxConvBrokenFileNames::wxConvBrokenFileNames(wchar_t const*)'
../../libs/common/libmulecommon.a(Path.o): In function `wxStringBase':
/usr/local/include/wx-2.8/wx/string.h:370: undefined reference to `wxStringBase::InitWith(wchar_t const*, unsigned int, unsigned int)'
../../libs/common/libmulecommon.a(Path.o): In function `DoSplitPath(wxString const&, wxString*, wxString*)':
/home/amule/src/libs/common/Path.cpp:123: undefined reference to `operator+(wchar_t const*, wxString const&)'
collect2: ld returned 1 exit status
make[4]: *** [amuleweb] Error 1
make[4]: se sale del directorio `/home/amule/src/webserver/src'
make[3]: *** [all-recursive] Error 1
make[3]: se sale del directorio `/home/amule/src/webserver'
make[2]: *** [all-recursive] Error 1
make[2]: se sale del directorio `/home/amule/src'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/home/amule'
make: *** [all] Error 2
Title: Re: wxwidgets problem
Post by: wuischke on July 22, 2009, 09:55:43 AM
Hi Juanez,

Please tell us not only the error, but also exactly what commands you executed.

OK, could you please Check if wx is installed twice (http://wiki.amule.org/index.php/Check_if_wx_is_installed_twice) and then uninstall wxWidgets (http://wiki.amule.org/index.php/How_to_uninstall_wxWidgets)?

btw: The easiest way would be to use deb packages. Vollstrecker provides packages, see http://forum.amule.org/index.php?topic=16931.0 for more information.
Title: Re: wxwidgets problem
Post by: juanez on July 23, 2009, 01:05:42 AM
Ok i removed the wxwidgets and i reinstall from the volstracker sources and now works fine.

Thank you a lot.