aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Make error under Mac OS X with the 10/1 cvs  (Read 4455 times)

NiKo87

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 49
Make error under Mac OS X with the 10/1 cvs
« on: October 02, 2005, 12:44:55 PM »

Hi, while compiling the 10/1 cvs I get this error:

make  all-recursive
Making all in m4
make[2]: Nothing to be done for `all'.
Making all in docs
Making all in man
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in src
gcc -o utils/mkFileSum utils/mkFileSum.c
Generating ECVersion.h... created.
make  all-recursive
Making all in utils
Making all in xas
Making all in docs
make[6]: Nothing to be done for `all'.
make[6]: Nothing to be done for `all-am'.
make[5]: Nothing to be done for `all-am'.
Making all in pixmaps
make[4]: Nothing to be done for `all'.
Making all in kademlia
Making all in io
make[5]: Nothing to be done for `all'.
Making all in kademlia
make[5]: Nothing to be done for `all'.
Making all in net
make[5]: Nothing to be done for `all'.
Making all in routing
make[5]: Nothing to be done for `all'.
Making all in utils
make[5]: Nothing to be done for `all'.
make[5]: Nothing to be done for `all-am'.
if g++ -DHAVE_CONFIG_H -I. -I. -I..     -DUSE_EMBEDDED_CRYPTO  -O2  -MT ED2KLinkParser.o -MD -MP -MF ".deps/ED2KLinkParser.Tpo" -c -o ED2KLinkParser.o ED2KLinkParser.cpp; \
then mv -f ".deps/ED2KLinkParser.Tpo" ".deps/ED2KLinkParser.Po"; else rm -f ".deps/ED2KLinkParser.Tpo"; exit 1; fi
g++  -DUSE_EMBEDDED_CRYPTO  -O2   -bind_at_load  -lpthread -o ed2k  ED2KLinkParser.o  
/usr/bin/ld: Undefined symbols:
_CFRelease
_CFURLCreateFromFSRef
_CFURLGetFileSystemRepresentation
_FSFindFolder
collect2: ld returned 1 exit status
make[4]: *** [ed2k] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I've compiled the wxMac 2.6.2 using gcc 4.0
What can I do? Thanks :)
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: Make error under Mac OS X with the 10/1 cvs
« Reply #1 on: October 02, 2005, 05:52:19 PM »

That's our fault.  (Maybe that's obvious.  ;))  Sorry about that.  I'll try to fix it for the next snapshot.

In the meantime, the snapshot from 2005-09-29 or earlier should work.
Logged

NiKo87

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 49
Re: Make error under Mac OS X with the 10/1 cvs
« Reply #2 on: October 02, 2005, 05:54:39 PM »

Ok, thank you very much. I'll try with the 10/3 or 10/4 snapshot and I'll let you know :)
Logged

badjob

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Make error under Mac OS X with the 10/1 cvs
« Reply #3 on: October 02, 2005, 08:01:15 PM »

Quote
Originally posted by ken
That's our fault.  (Maybe that's obvious.  ;))  Sorry about that.  I'll try to fix it for the next snapshot.

In the meantime, the snapshot from 2005-09-29 or earlier should work.

Same for 2005-01-02. Any hints for a autoconf/automake noob how to do this on his own? (It seems the proper library for CoreServices.h is not given to the linker)
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: Make error under Mac OS X with the 10/1 cvs
« Reply #4 on: October 02, 2005, 09:26:32 PM »

This is now fixed in cvs.  The next snapshot shouldn't have these problems.

badjob, you are correct.  The link command needs to have "-framework CoreServices" added to it.
Logged

NiKo87

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 49
Re: Make error under Mac OS X with the 10/1 cvs
« Reply #5 on: October 02, 2005, 09:54:31 PM »

Quote
Originally posted by ken
This is now fixed in cvs.  The next snapshot shouldn't have these problems.

badjob, you are correct.  The link command needs to have "-framework CoreServices" added to it.

Thanks, I'll try the next snapshot :)
Logged

badjob

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Make error under Mac OS X with the 10/1 cvs
« Reply #6 on: October 03, 2005, 09:54:48 PM »

Quote
Originally posted by ken
This is now fixed in cvs.  The next snapshot shouldn't have these problems.

badjob, you are correct.  The link command needs to have "-framework CoreServices" added to it.
Can you give me a hint which tools are suited best for developing wxWidgets software w/ autoconf/automake on Mac OS X Tiger?
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: Make error under Mac OS X with the 10/1 cvs
« Reply #7 on: October 03, 2005, 11:44:17 PM »

I'm not sure I understand your question.  If you have the latest Xcode installed, you should be able to compile and use wxWidgets.  Have you looked at this: http://www.amule.org/wiki/index.php/HowTo_compile_on_Mac?

If that's not what you were asking, please clarify.
Logged

badjob

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Make error under Mac OS X with the 10/1 cvs
« Reply #8 on: October 04, 2005, 01:36:03 AM »

What I meant is: If I'm curious and would like to do some development on wxWidgets or aMule which kind of tools (read GUI: IDE, gdb etc.) would integrate best with the given build system? Do I have to use a XServer with tcl/tk based debugging or kdevelop or whatever...? Using a text editor and the terminal is not that comfortable...
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: Make error under Mac OS X with the 10/1 cvs
« Reply #9 on: October 05, 2005, 07:07:01 AM »

Well, mostly that's a matter of preference.  Xcode is a fairly full-featured IDE, and it is capable of managing a project which is built "externally" with, for example, make.  However, you then lose some of Xcode's features (code completion, for instance) because it isn't doing the compilation itself.  For most projects, you can use configure and make to learn which source files are used for which build products, and the settings that are needed to compile them, and then create an Xcode project to mirror that process.  Then, it's a full-fledge Xcode project and you get all the functionality.  That's somewhat fragile, though.

Personally, I use TextWrangler as my editor and the command line to build, although I might use Xcode if my system were more powerful to handle it.  TextWrangler provides a command-line tool so you can, for example, route the results of make to TextWrangler, etc.  Some examples: "edit foo.c" opens foo.c in TextWrangler, "grep -r pattern . | edit" puts the grep output into a new TextWrangler window, "grep -rl pattern . | xargs edit" opens all of the files which contain the pattern in TextWrangler.

You can also try some of the open-source IDEs.  I understand Eclipse works fairly well on Mac OS X (here's an Apple article about it), although it's stronger for Java than C/C++.  I don't know about others (anjuta, kdevelop, etc.).

Generally, you don't need an Xserve and building wxWidgets or aMule has nothing to do with tcl/tk.
Logged

badjob

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Make error under Mac OS X with the 10/1 cvs
« Reply #10 on: October 26, 2005, 01:56:06 AM »

Thanks for the reply and sorry for don't checking this particular e-mail account, where I get the notifications for this forum's threads.

Quote
Originally posted by ken
Personally, I use TextWrangler as my editor and the command line to build, although I might use Xcode if my system were more powerful to handle it.

That's what I use too.

Quote
Generally, you don't need an Xserve and building wxWidgets or aMule has nothing to do with tcl/tk.

I was referring to an XServer, which is the basic software to display some basic window drawing using X11 under Unix and on which the window manager rely on, not a XServe, which is a (you know for sure...).

You have to use the XServer (like the Apple supplied one: Applications -> Tools -> X11) to run a tcl/tk based gui gdb or some other toolkits like gnome or kde to get an IDE which support automake and gdb (I guess).

I was looking for some software, which makes the handling of the build system (automake) and the debugging (gdb) easier for a me -> I want a gui tool for that, because digging those cmdline tools takes ages.

I assume those people who work on aMule for Mac OS X use the cmdline so I probably have to cope with these tools.

Cheers. ;(
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: Make error under Mac OS X with the 10/1 cvs
« Reply #11 on: October 26, 2005, 09:22:58 AM »

Oh.  I wouldn't expect that to be run together into one word like that ("XServer" vs. "X Server" or "X Windows Server").

Anyway, Tiger has tcl/tk included and it uses Aqua by default instead of X.  You can also install the same TclTkAqua on Panther.  I don't know if that enables you to use any particular GUI wrapper around gdb or a tool which has specific support for autoconf/automake.
Logged