PDA

View Full Version : A little help please.




cdsboy
Dec 12, 2006, 06:44 PM
So i am trying to compile this program. It is based on allegro, uses jpgalleg, dumb, and ogg vorbis for support. and when i try to compile it it fails with the error "Command /Developer/Private/jam failed with exit code 1".

heres what the build results prints.
Building target “lj” of project “lj” with configuration “Default”


Checking Dependencies
JamToolExecution lj
cd /Users/Mac/lj
setenv ASCII_OUTPUT_ANNOTATION YES
setenv ENABLE_APPLE_JAM_EXTENSIONS YES
setenv ENABLE_APPLE_JAM_OUTPUT_ANNOTATION YES
setenv GROUP Mac
setenv NATIVE_ARCH ppc
setenv OBJROOT /Users/Mac/LJ/build/LJ.build
setenv SYMROOT /Applications
setenv USER Mac
/Developer/Private/jam -d1 -j1 JAMBASE=/Developer/Makefiles/pbx_jamfiles/ProjectBuilderJambase JAMFILE=/Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/lj.jam build ACTION=build _DEFAULT_GCC_VERSION=4.0 GCC_VERSION_IDENTIFIER=4_0 CONFIGURATION=Default BUILD_STYLE=Default CPP_HEADERMAP_FILE=/Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/lj.hmap SRCROOT=/Users/Mac/lj OBJROOT=/Users/Mac/LJ/build/LJ.build SYMROOT=/Applications DSTROOT=/tmp/lj.dst

StandaloneExecutable /Applications/Default/lj.app/Contents/MacOS/lj /Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/main.o /Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/wktables.o /Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/pcjoy.o /Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/options.o /Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/macro.o /Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/ljreplay.o /Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/ljplay.o /Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/lj.o /Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/gimmicks.o /Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/debrief.o /Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/ljmusic.o /Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/ljvorbis.o /System/Library/Frameworks/Cocoa.framework /usr/local/lib/libjpgal.a /usr/local/lib/libdumbd.a /usr/local/lib/libdumb.a /usr/local/lib/libaldmd.a /usr/local/lib/libaldmb.a /usr/local/lib/libogg.a /usr/local/lib/libvorbis.a /usr/local/lib/libvorbisenc.a /usr/local/lib/libvorbisfile.a /Library/Frameworks/Allegro.framework


StandaloneExecutable.LinkUsingFileList /Applications/Default/lj.app/Contents/MacOS/lj /Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/LinkFileList
/usr/bin/gcc-4.0 -o /Applications/Default/lj.app/Contents/MacOS/lj "-L/Applications/Default" "-F/Applications/Default" -filelist /Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/LinkFileList "-arch" "ppc" "-prebind" "-Wl,-no_arch_warnings" "-L/usr/local/lib" "-lalleg-main" "-framework" "Cocoa" "-ljpgal" "-ldumbd" "-ldumb" "-laldmd" "-laldmb" "-logg" "-lvorbis" "-lvorbisenc" "-lvorbisfile" "-framework" "Allegro"
/usr/bin/ld: multiple definitions of symbol _hotlineRows
/Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/main.o definition of _hotlineRows in section (__DATA,__common)
/Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/wktables.o definition of _hotlineRows in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol _optionsScoringNames
/Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/main.o definition of _optionsScoringNames in section (__DATA,__common)
/Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/wktables.o definition of _optionsScoringNames in section (__DATA,__common)
/Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/options.o definition of _hotlineRows in section (__DATA,__common)
/Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/options.o definition of _optionsScoringNames in section (__DATA,__common)
/Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/macro.o definition of _hotlineRows in section (__DATA,__common)
/Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/macro.o definition of _optionsScoringNames in section (__DATA,__common)
/Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/ljreplay.o definition of _hotlineRows in section (__DATA,__common)
/Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/ljreplay.o definition of _optionsScoringNames in section (__DATA,__common)
/Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/ljplay.o definition of _hotlineRows in section (__DATA,__common)
/Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/ljplay.o definition of _optionsScoringNames in section (__DATA,__common)
/Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/lj.o definition of _hotlineRows in section (__DATA,__common)
/Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/lj.o definition of _optionsScoringNames in section (__DATA,__common)
/Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/gimmicks.o definition of _hotlineRows in section (__TEXT,__const)
/Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/gimmicks.o definition of _optionsScoringNames in section (__DATA,__const)
/Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/debrief.o definition of _hotlineRows in section (__DATA,__common)
/Users/Mac/LJ/build/LJ.build/lj.build/Default/lj.build/Objects-normal/ppc/debrief.o definition of _optionsScoringNames in section (__DATA,__common)
/usr/bin/ld: warning prebinding disabled because dependent library: /usr/local/lib/libogg.0.dylib is not prebound
collect2: ld returned 1 exit status


Anyone know whats going wrong or have any ideas? Btw my xcode is the latest version, i downloaded the newest version last night.



kainjow
Dec 12, 2006, 07:33 PM
Whenever I need to use jam, I never use Apple's version. I always download and compile it from online:

http://public.perforce.com/public/jam/index.html#source

cdsboy
Dec 12, 2006, 09:48 PM
is that compatible with xcode? I would like to continue using xcode.

szymczyk
Dec 13, 2006, 02:45 PM
Upgrade your project's targets to native targets by choosing Project > Upgrade All Targets in Project to Native. By doing this, Xcode uses its native build system instead of jam to build the project. Jam is the old build system used by Project Builder, Xcode's predecessor.

Looking at the build log, you're getting a link error because the variables hotlineRows and optionsScoringNames have been defined multiple times. A common cause of multiple symbol definition errors is including a header file more than once.

cdsboy
Dec 13, 2006, 10:04 PM
ok i upgraded all the targets. Now it is compiling. But it still does not work. Now its saying it is either damaged or incomplete.