Forum > General

SOLVED - Exception launching a powerpc application built under Intel

(1/1)

sinfoni:
Hi all,

I'm trying to cross compile from Mac OS X 10.6 Intel to Mac OS X 10.5 powerPC.
Two of my three binaries seem to run well, the third raises an exception:


--- Code: ---12/07/10 22:44:39 runner[147] postinstall[153]: [FORMS.PP] ExceptionOccurred 
12/07/10 22:44:39 runner[147] postinstall[153]:   Sender=EAccessViolation
12/07/10 22:44:39 runner[147] postinstall[153]:   Exception=Access violation
12/07/10 22:44:39 runner[147] postinstall[153]:   Stack trace:
12/07/10 22:44:39 runner[147] postinstall[153]:   $92A66948
12/07/10 22:44:39 runner[147] postinstall[153]:   $000AC60C
12/07/10 22:44:39 runner[147] postinstall[153]:   $000A9A34
12/07/10 22:44:39 runner[147] postinstall[153]:   $000121E4
12/07/10 22:44:39 runner[147] postinstall[153]: TApplication.HandleException Access violation
12/07/10 22:44:39 runner[147] postinstall[153]:   Stack trace:
12/07/10 22:44:39 runner[147] postinstall[153]:   $92A66948
12/07/10 22:44:39 runner[147] postinstall[153]:   $000AC60C
12/07/10 22:44:39 runner[147] postinstall[153]:   $000A9A34
12/07/10 22:44:43 runner[147] postinstall[153]:   $000121E4
--- End code ---

Here is the command I use to compile the application on my 10.6 Intel:


--- Code: ---/usr/local/bin/ppcppc  -MObjFPC -Scgi -Os3 -TDarwin -Ppowerpc  -k/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/IOKit.framework/IOkit  -k-framework -kCarbon -k-framework -kOpenGL -k'-dylib_file' -k'/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib' -va -l -Fi/Users/SINFONI/myproject/lib/powerpc-darwin/ -Fu/Developer/lazarus/lcl/units/powerpc-darwin/ -Fu/Developer/lazarus/lcl/units/powerpc-darwin/carbon/ -Fu/Developer/lazarus/packager/units/powerpc-darwin/ -Fu. -FUlib/powerpc-darwin/ -dLCL -dLCLcarbon /users/sinfoni/myproject/myproject.lpr
--- End code ---

The intel version runs well.

The difference between the binaries is that the third has a Carbon GUI. The others don't.

I use IOKit framework and I have paid attention to use 10.5 SDK.

Any idea ?

André. 

sinfoni:
The problem were in a C library I've made before and used in my project. I had left a reference to 10.6 SDK...

Navigation

[0] Message Index

Go to full version