Results 1 to 5 of 5
  1. #1
    xcode build help

    Member Since
    Jun 01, 2005
    Posts
    20
    xcode build help
    I am completely out of my league with xcode, but I am trying to compile mp3val http://mp3val.sourceforge.net/ to save me from hours and hours of reripping my CD collection after a HDD crash (my backup of my MP3s apparently got messed up because all my files seem to have sync errors, skip and pop)....anywho....

    I figured out how to start a new C++ project in xcode, and thought I figured out how to add the program files for mp3val...when I try and build the program I get some sort of error:

    cd /Users/t_k/test
    /Developer/usr/bin/g++-4.0 -o /Users/t_k/test/build/test.build/Release/test.build/Objects-normal/ppc/test -L/Users/t_k/test/build/Release -F/Users/t_k/test/build/Release -filelist /Users/t_k/test/build/test.build/Release/test.build/Objects-normal/ppc/test.LinkFileList -framework Carbon -arch ppc -mmacosx-version-min=10.5 -Wl,-dead_strip -no_dead_strip_inits_and_terms -isysroot /Developer/SDKs/MacOSX10.5.sdk
    ld: duplicate symbol _main in /Users/t_k/test/build/test.build/Release/test.build/Objects-normal/ppc/main-8A88286D.o and /Users/t_k/test/build/test.build/Release/test.build/Objects-normal/ppc/main-A07497A6.o

    collect2: ld returned 1 exit status
    I have no idea if I am starting out on this all wrong or what. Anyone have an suggestions on how to fix it?

    Thanks!

  2. #2
    xcode build help

    Member Since
    Jun 01, 2005
    Posts
    20
    Anyone? I still can't figure it out...

  3. #3
    xcode build help
    xstep's Avatar
    Member Since
    Jun 25, 2005
    Location
    On the road
    Posts
    3,231
    Specs:
    2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
    I downloaded the generic command line version of the project, unzipped it, renamed the Makefile.cpp to just Makefile, and typed make to build it. This gave me the mp3val.exe executable file.

    I have no idea if this is the proper way, but, to bring it into Xcode (version 3), I created a project as a C++ Tool under the Command Line Utility selection. I first removed the main.ccp file that was created by default in the Source folder, then dragged all of the .cpp & .h files into the Source folder (use the copy if needed option), then hit build. Note that I had to make the new project name mp3val. I tried a different name I got 19 errors during compiling.

  4. #4
    xcode build help

    Member Since
    Jun 01, 2005
    Posts
    20
    Thanks for the help! That worked for the build. I tried the program and it starts to analyze the first file and then gives: "segmentation fault"

    Any ideas?

  5. #5
    xcode build help
    xstep's Avatar
    Member Since
    Jun 25, 2005
    Location
    On the road
    Posts
    3,231
    Specs:
    2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
    Nope. Don't know.

    I'd test it on a known good rip. So rip a CD and pass those files to it. If that works then perhaps your corrupted files are really messed up.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Xcode 4: Add Build Carbon Resources Build Phase
    By Tommato in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 06-15-2012, 02:27 PM
  2. Xcode build error
    By danlb in forum OS X - Operating System
    Replies: 2
    Last Post: 10-02-2010, 02:27 PM
  3. having problems with xcode build
    By ironhide707 in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 08-12-2010, 05:14 AM
  4. Not able to enable build option in Xcode 1.5
    By roublesaha in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 12-26-2008, 07:32 AM
  5. XCode build hangs?
    By robin in forum OS X - Development and Darwin
    Replies: 3
    Last Post: 01-12-2004, 01:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •