aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Error while compiling  (Read 2925 times)

steparianwolf

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Error while compiling
« on: May 10, 2005, 08:36:04 PM »

Hi!!!

I changed my OS (from Fedora Core 1 to Fedora Core 3), I had aMule installed on FC1 without problems, but when I tried to install it on FC3, get these errors:

wxcas.cpp:51:2: #error You must set wxUSE_PRINTING_ARCHITECTURE to 1 in setup.h to compile wxCas.
In file included from /usr/local/include/wx/gdicmn.h:29,
                 from /usr/local/include/wx/image.h:20,
                 from wxcas.cpp:54:
/usr/local/include/wx/font.h:82: error: expected class-name before '{' token
/usr/local/include/wx/font.h: In member function `bool wxFontBase::Ok() const':
/usr/local/include/wx/font.h:104: error: `m_refData' undeclared (first use this function)
/usr/local/include/wx/font.h:104: error: (Each undeclared identifier is reported only once for each function it appears in.)
/usr/local/include/wx/font.h: In member function `wxFontRefData* wxFontBase::GetFontData() const':
/usr/local/include/wx/font.h:156: error: `m_refData' undeclared (first use this function)
In file included from wxcas.h:49,
                 from wxcas.cpp:57:
wxcasframe.h: At global scope:
wxcasframe.h:63: error: invalid use of undefined type `struct wxFrame'
/usr/local/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:71: error: ISO C++ forbids declaration of `wxPanel' with no type
wxcasframe.h:71: error: expected `;' before '*' token
wxcasframe.h:73: error: ISO C++ forbids declaration of `wxStaticLine' with no type
wxcasframe.h:73: error: expected `;' before '*' token
wxcasframe.h:79: error: ISO C++ forbids declaration of `wxStaticBox' with no type
wxcasframe.h:79: error: expected `;' before '*' token
wxcasframe.h:80: error: ISO C++ forbids declaration of `wxStaticBoxSizer' with no type
wxcasframe.h:80: error: expected `;' before '*' token
wxcasframe.h:82: error: ISO C++ forbids declaration of `wxStaticBox' with no type
wxcasframe.h:82: error: expected `;' before '*' token
wxcasframe.h:83: error: ISO C++ forbids declaration of `wxStaticBoxSizer' with no type
wxcasframe.h:83: error: expected `;' before '*' token
wxcasframe.h:85: error: ISO C++ forbids declaration of `wxStaticBox' with no type
wxcasframe.h:85: error: expected `;' before '*' token
wxcasframe.h:86: error: ISO C++ forbids declaration of `wxStaticBoxSizer' with no type
wxcasframe.h:86: error: expected `;' before '*' token
wxcasframe.h:88: error: ISO C++ forbids declaration of `wxStaticBox' with no type
wxcasframe.h:88: error: expected `;' before '*' token
wxcasframe.h:89: error: ISO C++ forbids declaration of `wxStaticBoxSizer' with no type
wxcasframe.h:89: error: expected `;' before '*' token
wxcasframe.h:91: error: ISO C++ forbids declaration of `wxStaticText' with no type
wxcasframe.h:91: error: expected `;' before '*' token
wxcasframe.h:92: error: ISO C++ forbids declaration of `wxStaticText' with no type
wxcasframe.h:92: error: expected `;' before '*' token
wxcasframe.h:93: error: ISO C++ forbids declaration of `wxStaticText' with no type
wxcasframe.h:93: error: expected `;' before '*' token
wxcasframe.h:94: error: ISO C++ forbids declaration of `wxStaticText' with no type
wxcasframe.h:94: error: expected `;' before '*' token
wxcasframe.h:95: error: ISO C++ forbids declaration of `wxStaticText' with no type
wxcasframe.h:95: error: expected `;' before '*' token
wxcasframe.h:96: error: ISO C++ forbids declaration of `wxStaticText' with no type
wxcasframe.h:96: error: expected `;' before '*' token
wxcasframe.h:98: error: ISO C++ forbids declaration of `wxStaticText' with no type
wxcasframe.h:98: error: expected `;' before '*' token
wxcasframe.h:99: error: ISO C++ forbids declaration of `wxButton' with no type
wxcasframe.h:99: error: expected `;' before '*' token
wxcasframe.h:101: error: ISO C++ forbids declaration of `wxStaticText' with no type
wxcasframe.h:101: error: expected `;' before '*' token
wxcasframe.h:102: error: ISO C++ forbids declaration of `wxButton' with no type
wxcasframe.h:102: error: expected `;' before '*' token
wxcasframe.h:105: error: ISO C++ forbids declaration of `wxTimer' with no type
wxcasframe.h:105: error: expected `;' before '*' token
wxcasframe.h:106: error: ISO C++ forbids declaration of `wxTimer' with no type
wxcasframe.h:106: error: expected `;' before '*' token
wxcasframe.h:113: error: ISO C++ forbids declaration of `wxStaticText' with no type
wxcasframe.h:113: error: expected `;' before '*' token
wxcasframe.h:114: error: ISO C++ forbids declaration of `wxStaticText' with no type
wxcasframe.h:114: error: expected `;' before '*' token
wxcasframe.h:160: error: `wxCommandEvent' has not been declared
wxcasframe.h:160: error: ISO C++ forbids declaration of `event' with no type
wxcasframe.h:161: error: `wxCommandEvent' has not been declared
wxcasframe.h:161: error: ISO C++ forbids declaration of `event' with no type
wxcasframe.h:162: error: `wxCommandEvent' has not been declared
wxcasframe.h:162: error: ISO C++ forbids declaration of `event' with no type
wxcasframe.h:163: error: `wxCommandEvent' has not been declared
wxcasframe.h:163: error: ISO C++ forbids declaration of `event' with no type
wxcasframe.h:164: error: `wxCommandEvent' has not been declared
wxcasframe.h:164: error: ISO C++ forbids declaration of `event' with no type
wxcasframe.h:165: error: `wxTimerEvent' has not been declared
wxcasframe.h:165: error: ISO C++ forbids declaration of `event' with no type
wxcasframe.h:166: error: `wxTimerEvent' has not been declared
wxcasframe.h:166: error: ISO C++ forbids declaration of `event' with no type
wxcasframe.h:167: error: `wxCommandEvent' has not been declared
wxcasframe.h:167: error: ISO C++ forbids declaration of `event' with no type
wxcasframe.h:168: error: `wxCommandEvent' has not been declared
wxcasframe.h:168: error: ISO C++ forbids declaration of `event' with no type
wxcas.cpp: In function `wxApp* wxCreateApp()':
wxcas.cpp:60: error: cannot allocate an object of type `WxCas'
wxcas.cpp:60: error:   because the following virtual functions are abstract:
/usr/local/include/wx/app.h:131: error:  virtual int wxAppBase::OnRun()
wxcas.cpp: In member function `virtual bool WxCas::OnInit()':
wxcas.cpp:71: error: incomplete type `wxImage' used in nested name specifier
wxcas.cpp:71: error: `wxPNGHandler' has not been declared
wxcas.cpp:76: error: incomplete type `wxImage' used in nested name specifier
wxcas.cpp:76: error: `wxJPEGHandler' has not been declared
wxcas.cpp:84: error: `SetPrintMode' undeclared (first use this function)
wxcas.cpp:94: error: 'class WxCasFrame' has no member named 'Show'
wxcas.cpp:95: error: `SetTopWindow' undeclared (first use this function)
make[6]: *** [wxcas-wxcas.o] Error 1
make[6]: Leaving directory `/usr/local/software/eMule/aMule-2.0.0rc8/src/utils/wxCas/src'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/usr/local/software/eMule/aMule-2.0.0rc8/src/utils/wxCas'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr/local/software/eMule/aMule-2.0.0rc8/src/utils'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/software/eMule/aMule-2.0.0rc8/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/software/eMule/aMule-2.0.0rc8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/software/eMule/aMule-2.0.0rc8'
make: *** [all] Error 2

I followed the installation readme to FC3, someone help me please!!

[root@localhost aMule-2.0.0rc8]# ls -l /usr/local/bin/wx* && /usr/bin/wx*
-rwxr-xr-x  1 root root 4870 May 10 13:41 /usr/local/bin/wxbase-2.4-config
lrwxrwxrwx  1 root root   17 May 10 13:41 /usr/local/bin/wx-config -> wxbase-2.4-config
-rwxr-xr-x  1 root root 5229 May 10 13:34 /usr/local/bin/wxgtk2u-2.4-config
bash: /usr/bin/wx*: No such file or directory
Logged
There are 10 kind of people, who knows binary code, and who doesn't

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Error while compiling
« Reply #1 on: May 10, 2005, 08:48:21 PM »

ok easy one...

just do this as root

# ln -sf /usr/bin/wxgt2u-2.4-config /usr/bin/wx-config
# ln -sf /usr/bin/wxbase-2.4-config /usr/bin/wxbase-config
# ldconfig

and run configure and make again..
but before I forget, your setup is definelty not recommende, you run wxGTK 2.4.2 with gtk2 compiled
thats like putting ice on an oven, I suggest you delete ALL your wxgtk rpms and wxbase rpms and dl the wxgtk-2.6 rpms for fc3

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Error while compiling
« Reply #2 on: May 10, 2005, 08:51:00 PM »

and get rid of this one (some fc wx?) -> -rwxr-xr-x 1 root root 5229 May 10 13:34 /usr/local/bin/wxgtk2u-2.4-config

btw.. you can find in dl wxgtk-2.6.0 and amule-2.0.0 rpms for fc3 .. ;)

cheers

steparianwolf

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Txs
« Reply #3 on: May 17, 2005, 12:10:06 AM »

Hi again!!!!

Thanks for reply my post. I downloaded the rpms to FC3 and all works fine.
Logged
There are 10 kind of people, who knows binary code, and who doesn't