aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: wxwidgets problem  (Read 8642 times)

juanez

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
wxwidgets problem
« 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.


Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: wxwidgets problem
« Reply #1 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
Logged

juanez

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: wxwidgets problem
« Reply #2 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
---------------------------------------------------------------------------------------------------------------
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: wxwidgets problem
« Reply #3 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.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1549
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: wxwidgets problem
« Reply #4 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.
Logged
Homefucking is killing prostitution

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: wxwidgets problem
« Reply #5 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.
Logged

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1549
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: wxwidgets problem
« Reply #6 on: July 17, 2009, 05:19:55 PM »

Quote
Which GUI toolkit should wxWidgets use?                 GTK+ 2

Isn't this the graphics support?
Logged
Homefucking is killing prostitution

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: wxwidgets problem
« Reply #7 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.
Logged

juanez

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: wxwidgets problem
« Reply #8 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.

Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: wxwidgets problem
« Reply #9 on: July 21, 2009, 01:17:19 PM »

Logged

juanez

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: wxwidgets problem
« Reply #10 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
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: wxwidgets problem
« Reply #11 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 and then 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.
Logged

juanez

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: wxwidgets problem
« Reply #12 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.
Logged