New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

xcode build help


Post Reply New Thread Subscribe

 
Thread Tools
universible

 
Member Since: Jun 01, 2005
Posts: 20
universible is on a distinguished road

universible is offline
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:

Quote:
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!
QUOTE Thanks
universible

 
Member Since: Jun 01, 2005
Posts: 20
universible is on a distinguished road

universible is offline
Anyone? I still can't figure it out...
QUOTE Thanks
xstep

 
xstep's Avatar
 
Member Since: Jun 25, 2005
Location: On the road
Posts: 3,231
xstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to all
Mac Specs: 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid

xstep is offline
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.
QUOTE Thanks
universible

 
Member Since: Jun 01, 2005
Posts: 20
universible is on a distinguished road

universible is offline
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?
QUOTE Thanks
xstep

 
xstep's Avatar
 
Member Since: Jun 25, 2005
Location: On the road
Posts: 3,231
xstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to all
Mac Specs: 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid

xstep is offline
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.
QUOTE Thanks

Post Reply New Thread Subscribe


« Mac software developers. | File IO trace program »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Need simple Xcode explanation for C++ compscistudent OS X - Apps and Games 0 12-01-2007 05:16 PM
Xcode 1.5 alejandrico OS X - Development and Darwin 0 06-03-2006 06:56 PM
Question about exceptions in C++ via Xcode cipher OS X - Development and Darwin 2 06-25-2004 11:02 AM
XCode build hangs? robin OS X - Development and Darwin 3 01-12-2004 02:42 AM
New Xcode plug-in helps developers reuse code Murlyn OS X - Development and Darwin 0 11-10-2003 01:16 PM

All times are GMT -4. The time now is 06:04 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?