Re: Problems when linking/using ZeroLink in XCode 1.5
Re: Problems when linking/using ZeroLink in XCode 1.5
- Subject: Re: Problems when linking/using ZeroLink in XCode 1.5
- From: Syd Polk <email@hidden>
- Date: Fri, 7 Jul 2006 12:52:21 -0500
It looks like one of your libraries was built with gcc 4.0. Nothing
built with gcc 3.3 should have any symbols referenced in libstdc++.
6.dylib. You need to figure out which of the libraries was built with
gcc 4.0, and rebuild it with gcc 3.3.
You cannot build directly with gcc 4.0 from Panther; you have to use
Tiger to do so, and use the 10.3.9 sdk.
On Jul 7, 2006, at 7:46 AM, Alex Juarez wrote:
Hi:
I am having some troubles trying to link a hybrid C/C++ carbon
application using XCode Tool. I'm running Panther (10.3.9) with Xcode
1.5 (all Developer Tools extras installed also). The application is a
simple Quicktime based video capture with some custom image processing
libraries as well as the linux distribution of OpenCV included. The
compile phase works well, however, the problem starts when xcode tries
to link the libraries needed by the app, then i get the following
error in the Build Results window:
Native Build of Target "testcvproj"
CompileC build/testcvproj.build/testcvproj.build/Objects-normal/ppc/
main.o
main.c normal ppc c++ com.apple.compilers.gcc.3_3
cd /testcv/testcvproj
/usr/bin/gcc-3.3 -x c++ -arch ppc -pipe -Wno-trigraphs
-fasm-blocks -fpascal-strings -g -O0 -mtune=G4 -fmessage-length=0
-ffix-and-continue -F/testcv/testcvproj/build
-I/testcv/testcvproj/build/include -I/usr/local/include/opencv
-I/testcv/testcvproj/build/testcvproj.build/testcvproj.build/
DerivedSources
-Wp,-header-mapfile,/testcv/testcvproj/build/testcvproj.build/
testcvproj.build/testcvproj.hmap
-include /testcv/testcvproj/testcvproj_Prefix.pch -c
/testcv/testcvproj/main.c -o
/testcv/testcvproj/build/testcvproj.build/testcvproj.build/Objects-
normal/ppc/main.o
Ld /testcv/testcvproj/build/testcvproj.app/Contents/MacOS/testcvproj
cd /testcv/testcvproj
/usr/bin/g++-3.3 -o
/testcv/testcvproj/build/testcvproj.app/Contents/MacOS/testcvproj
-L/testcv/testcvproj/build -L/usr/local/lib -F/testcv/testcvproj/build
-filelist /testcv/testcvproj/build/testcvproj.build/
testcvproj.build/Objects-normal/testcvproj.LinkFileList
-framework Carbon -lstdc++ -framework QuickTime -arch ppc -prebind
-Wl,-no_arch_warnings -bind_at_load -lcxcore -lcv -lhighgui -lcvaux
ld: warning prebinding disabled because dependent library:
/usr/local/lib/libcxcore.0.dylib is not prebound
ld: warning multiple definitions of symbol _icvCompareC_8u_C1R_p
/usr/local/lib/libcv.dylib(single module) definition of
_icvCompareC_8u_C1R_p
/usr/local/lib/libcxcore.dylib(single module) definition of
_icvCompareC_8u_C1R_p
ld: /usr/lib/gcc/darwin/3.3/libstdc++.a(eh_personality.o) illegal
reference to symbol: ___cxa_allocate_exception defined in indirectly
referenced dynamic library /usr/lib/libstdc++.6.dylib
After getting this error, I went to the project properties and enabled
ZeroLink and then the application ran smoothly until the point when i
try to use one of the functions of the external (OpenCV specifically)
libraries that I previously included in the Other Linker Flags option
in the XCode project info pane. Then i get the following error from
the Run Log window:
[Session started at 2006-07-07 14:40:01 +0200.]
(255,128,0) 0.000000 0 'Orange'
(255,255,0) 0.000000 0 'Yellow'
(0,0,255) 0.000000 0 'Blue'
(255,255,255) 0.000000 0 'White'
(255,0,255) 0.000000 0 'Pink'
(160,0,160) 0.000000 0 'Purple'
ZeroLink: unknown symbol '_cvReleaseImage'
Executable "testcvproj" has exited due to signal 6 (SIGABRT).
I've been trying for quite a while to solve this but no success :'( .I
would really appreciate any help you can provide me cause i'm running
out of time to find a solution to this issue.
Thanks for yout time.
Best Regards
Alex J.
P.D. If this is not a question for this mailing list, please indicate
which/who I have to ask. thnx!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
Syd Polk
email@hidden
"Let the music be your light" - Dave Edwards, KUHF-FM, 1982
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden