aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Compiling 2.0.0rc5 under Solaris 9  (Read 1526 times)

Solarisnerd

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Compiling 2.0.0rc5 under Solaris 9
« on: September 22, 2004, 11:57:56 AM »

Hi, I am trying to compile aMule 2.0.0rc5 under Solaris 9 on an Ultra 5 using gcc and gmake, wxGTK, wxBase and Crypto++ all compiled without much of a problem, but when trying to gmake aMule, I get the following messages
Quote
wxcas.cpp:47:2: #error You must set wxUSE_PRINTING_ARCHITECTURE to 1 in setup.h to compile wxCas.
In file included from /usr/include/wx/gdicmn.h:29,
                 from /usr/include/wx/image.h:20,
                 from wxcas.cpp:50:
/usr/include/wx/font.h:82: error: expected class-name before '{' token
/usr/include/wx/font.h: In member function `bool wxFontBase:: Ok() const':
/usr/include/wx/font.h:104: error: `m_refData' undeclared (first use this function)
/usr/include/wx/font.h:104: error: (Each undeclared identifier is reported only once for each function it appears in.)
/usr/include/wx/font.h: In member function `wxFontRefData* wxFontBase::GetFontData() const':
/usr/include/wx/font.h:156: error: `m_refData' undeclared (first use this function)
In file included from wxcas.h:49,
                 from wxcas.cpp:53:
wxcasframe.h: At global scope:
wxcasframe.h:63: error: invalid use of undefined type `struct wxFrame'
/usr/include/wx/log.h:28: error: forward declaration of `struct wxFrame'
wxcasframe.h:65: error: ISO C++ forbids declaration of `wxToolBar' with no type
wxcasframe.h:65: error: expected `;' before '*' token
wxcasframe.h:66: error: field `m_toolBarBitmaps' has incomplete type
wxcasframe.h:68: error: ISO C++ forbids declaration of `wxBoxSizer' with no type
wxcasframe.h:68: error: expected `;' before '*' token
wxcasframe.h:69: error: ISO C++ forbids declaration of `wxBoxSizer' with no type
wxcasframe.h:69: error: expected `;' before '*' token
wxcasframe.h:70: error: ISO C++ forbids declaration of `wxBoxSizer' with no type
wxcasframe.h:70: error: expected `;' before '*' token
wxcasframe.h:72: error: ISO C++ forbids declaration of `wxPanel' with no type
wxcasframe.h:72: error: expected `;' before '*' token
wxcasframe.h:74: error: ISO C++ forbids declaration of `wxStaticLine' with no type
wxcasframe.h:74: error: expected `;' before '*' token
wxcasframe.h:76: error: ISO C++ forbids declaration of `wxStaticBox' with no type
wxcasframe.h:76: error: expected `;' before '*' token
wxcasframe.h:77: error: ISO C++ forbids declaration of `wxStaticBoxSizer' with no type
wxcasframe.h:77: error: expected `;' before '*' token
wxcasframe.h:79: error: ISO C++ forbids declaration of `wxStaticText' with no type
wxcasframe.h:79: error: expected `;' before '*' token
wxcasframe.h:80: error: ISO C++ forbids declaration of `wxStaticText' with no type
wxcasframe.h:80: error: expected `;' before '*' token
wxcasframe.h:81: error: ISO C++ forbids declaration of `wxStaticText' with no type
wxcasframe.h:81: error: expected `;' before '*' token
wxcasframe.h:82: error: ISO C++ forbids declaration of `wxStaticText' with no type
wxcasframe.h:82: error: expected `;' before '*' token
wxcasframe.h:83: error: ISO C++ forbids declaration of `wxStaticText' with no type
wxcasframe.h:83: error: expected `;' before '*' token
wxcasframe.h:84: error: ISO C++ forbids declaration of `wxStaticText' with no type
wxcasframe.h:84: error: expected `;' before '*' token
wxcasframe.h:85: error: ISO C++ forbids declaration of `wxStaticText' with no type
wxcasframe.h:85: error: expected `;' before '*' token
wxcasframe.h:87: error: ISO C++ forbids declaration of `wxTimer' with no type
wxcasframe.h:87: error: expected `;' before '*' token
wxcasframe.h:88: error: ISO C++ forbids declaration of `wxTimer' with no type
wxcasframe.h:88: error: expected `;' before '*' token
wxcasframe.h:90: error: ISO C++ forbids declaration of `wxStaticBitmap' with no type
wxcasframe.h:90: error: expected `;' before '*' token
wxcasframe.h:117: error: variable or field `OnBarRefresh' declared void
wxcasframe.h:117: error: expected `;' before '(' token
wxcasframe.h:118: error: variable or field `OnBarAbout' declared void
wxcasframe.h:118: error: expected `;' before '(' token
wxcasframe.h:119: error: variable or field `OnBarSave' declared void
wxcasframe.h:119: error: expected `;' before '(' token
wxcasframe.h:120: error: variable or field `OnBarPrint' declared void
wxcasframe.h:120: error: expected `;' before '(' token
wxcasframe.h:121: error: variable or field `OnBarPrefs' declared void
wxcasframe.h:121: error: expected `;' before '(' token
wxcasframe.h:122: error: variable or field `OnRefreshTimer' declared void
wxcasframe.h:122: error: expected `;' before '(' token
wxcasframe.h:123: error: variable or field `OnFtpUpdateTimer' declared void
wxcasframe.h:123: error: expected `;' before '(' token
wxcas.cpp: In function `wxApp* wxCreateApp()':
wxcas.cpp:56: error: cannot allocate an object of type `WxCas'
wxcas.cpp:56: error:   because the following virtual functions are abstract:
/usr/include/wx/app.h:131: error:  virtual int wxAppBase:: OnRun()
wxcas.cpp: In member function `virtual bool WxCas:: OnInit()':
wxcas.cpp:66: error: incomplete type `wxImage' used in nested name specifier
wxcas.cpp:66: error: `wxPNGHandler' has not been declared
wxcas.cpp:71: error: incomplete type `wxImage' used in nested name specifier
wxcas.cpp:71: error: `wxJPEGHandler' has not been declared
wxcas.cpp:79: error: `SetPrintMode' undeclared (first use this function)
wxcas.cpp:89: error: 'class WxCasFrame' has no member named 'Show'
wxcas.cpp:90: error: `SetTopWindow' undeclared (first use this function)
gmake[6]: *** [wxcas-wxcas.o] Error 1
gmake[6]: Leaving directory `/downloads/aMule/aMule-2.0.0rc5/src/utils/wxCas/src'
gmake[5]: *** [all-recursive] Error 1
gmake[5]: Leaving directory `/downloads/aMule/aMule-2.0.0rc5/src/utils/wxCas'
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory `/downloads/aMule/aMule-2.0.0rc5/src/utils'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/downloads/aMule/aMule-2.0.0rc5/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/downloads/aMule/aMule-2.0.0rc5/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/downloads/aMule/aMule-2.0.0rc5'
gmake: *** [all] Error 2

I looked into src/utils/wxCas, I found most of the files I need to change apart from setup.h
Can someone direct me where to find the setup.h for wxcas so I can make the necessary changes?

Thanks
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Compiling 2.0.0rc5 under Solaris 9
« Reply #1 on: September 22, 2004, 12:23:12 PM »

setup.h is a file belonging to wxWidgets, so you basically have to set it when installing wxWidgets AFAIK.
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: Compiling 2.0.0rc5 under Solaris 9
« Reply #2 on: September 22, 2004, 01:09:42 PM »

Solarisnerd,

I suppose you are using wx-2.4.2, right? If you are using wx-2.5.x, you don't need wxBase, it comes included with wx-GTK.

This error is due to a missing option when configuring wx. You should include --enable-printarch in your configure command. It is strange though, because this is default on linux.

For wxBase-2.4.2 I use: ./configure --enable-debug --disable-optimise --enable-debug_flag --enable-debug_info --enable-debug_gdb --enable-soname --disable-gui --disable-std_iostreams --with-opengl

For wxWindows-2.4.2: ./configure --enable-debug --disable-optimise --enable-debug_flag --enable-debug_info --enable-debug_gdb --enable-soname

Notice that the debug options are not necessary unless you are going to debug inside wx itself.

Cheers!
Logged

Solarisnerd

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Compiling 2.0.0rc5 under Solaris 9
« Reply #3 on: September 25, 2004, 03:04:08 PM »

Thank Phoenix, I am compiling wxGTK-2.5.2 on my system now, didn't find any precompiled binary for Solaris.

You can contact the people in Blastwave.org see if they are interested to include aMule in their pkg-get.
Logged