aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: cvs20050429 and 30 don't compile  (Read 3686 times)

m2kio

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 152
    • http://little-bat.de
cvs20050429 and 30 don't compile
« on: April 30, 2005, 02:37:56 PM »

hi,
amule cvs snapshots as of 29.4. and 30.4. don't compile on Mac OSX 10.3.9 against static wxMac 2.6.0.
amule cvs as of 25.4. and 28.4. did compile against wxMac 2.6.0.
i can't tell whether compiling against wxMac 2.5.5 would still work. i have trashed that version already and dislike compiling it again if it can be avoided.

Code: [Select]
In file included from /pub/Develop/projects/amule/wxMac-2.6.0/include/wx/mac/carbon/private.h:21,
                 from /pub/Develop/projects/amule/wxMac-2.6.0/include/wx/mac/private.h:4,
                 from filefn.cpp:51:
/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:33:37: CarbonSound/CarbonSound.h: No such file or directory

for some reason CarbonSound.h is now included. I lack this file completely.

amule was configured with: ./configure --disable-systray --disable-gtk  --with-wx-prefix=../wxMac-2.6.0/build/lib/  --with-wx-config=../wxMac-2.6.0/build/wx-config   --enable-debug --disable-optimise

wxMac was configured with: ../configure --disable-shared --enable-unicode

m2kio !
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: cvs20050429 and 30 don't compile
« Reply #1 on: April 30, 2005, 04:32:08 PM »

m2kio, I would suggest that you check the wxMac tarball whether CarbonSound.h is in, and just not installed, or maybe even the wxAll tarball, to see if it's just left out from the wxMac pack (sometimes they forget about things...)
And if this is the case, report to wx...
Logged
concordia cum veritate

m2kio

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 152
    • http://little-bat.de
Re: cvs20050429 and 30 don't compile
« Reply #2 on: April 30, 2005, 08:50:57 PM »

nope. it's included from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h and therefore should be in /System/Library/Frameworks/Carbon.framework/Headers/CarbonSound/CarbonSound.h. Weird. Sources say this is an old/outdated api for sound, superseded by CoreAudio.
It is included from Carbon.h because __CARBON__ is defined but __CARBONSOUND__ not. One of those defines has changed and the trigger must be in filefn.cpp. hmm. but diff tells no difference from '28 to '29. has s.o. changed the compiler flags?

 ?(
Logged

m2kio

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 152
    • http://little-bat.de
Re: cvs20050429 and 30 don't compile
« Reply #3 on: May 01, 2005, 11:07:01 AM »

cv2 2005-05-01 now compiles again against wxMac 2.6.0.

but it no longer compiles against wxMac 2.5.5.
actually i would prefer 2.5.5 for Mac, because 2.6.0 now exhibits major performance problems, at least on single cpu machines. ;(

error:
Code: [Select]
In file included from extern/listctrl.242.h:20,
                 from listctrl.h:6,
                 from MuleListCtrl.h:34,
                 from ServerListCtrl.h:33,
                 from amule-gui.cpp:91:
/pub/Develop/projects/amule/wxMac-2.5.5/include/wx/generic/imaglist.h: At global scope:
/pub/Develop/projects/amule/wxMac-2.5.5/include/wx/generic/imaglist.h:100: error: redefinition of `class wxImageList'
/pub/Develop/projects/amule/wxMac-2.5.5/include/wx/mac/carbon/imaglist.h:58: error: previous definition of `class wxImageList'
amule-gui.cpp:253:18: warning: #warning Need to parse the geometry for non-GTK/WIN platforms
amule-gui.cpp: In member function `virtual int CamuleGuiBase::InitGui(bool, wxString&)':
amule-gui.cpp:184: warning: unused parameter `wxString&geom_string'
make[3]: *** [amule-amule-gui.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


m2kio !
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: cvs20050429 and 30 don't compile
« Reply #4 on: May 01, 2005, 05:50:55 PM »

m2kio, I'm using 10.3.9 and I do have CarbonSound.h: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/Headers/CarbonSound.h

Did you use a Finder search to try and find it?  Annoyingly, it's hard to get the Finder to search in /System.  You have to add it as a Specific Place.  The "locate" command at the command line found it instantly, though.

Also, are you using wxMac 2.6.0 as released, or are you using more recent cvs versions?  Given that filefn.cpp hasn't changed, I can only imagine that the change is due to changes in wxMac.  I suppose another possibility is that your system is acting flaky and is spontaneously losing track of files.  8o

The problem with wxMac 2.5.5 is Xaignar's fault.  For a while, aMule was maintaining several copies of some wx files (listctrl.h, listctrl.cpp) to work around various compatibility problems with the listctrl files that come with wx.  With wxMac 2.6.0, Xaignar was able to eliminate the extra copies because wxMac's version was finally useable.  Unfortunately, that means that Mac aMule now requires wxMac 2.6.0.  :(

So, let's concentrate on identifying and fixing the performance problems.
Logged