Discussion:
wxWidgets apps for MacOS X Panther
(too old to reply)
Graeme Costin
2009-05-13 23:35:54 UTC
Permalink
Hi Stefan,

Many thanks for that help. The extra constants that set which
compiler to use for the PPC part of the build, etc. solved the
problem and now our app can run on anything from PPC Panther to Intel
Leopard. Yea! I found, in the Xcode project for building the wxMac
library, the ones you referred to and then put the same into our
app's project.

But I had to turn off all optimisation because the gcc-3.3 compiler
went into an apparently infinite loop on one particular .cpp file.
With no optimisation it compiles OK, but with even the lowest level
of optimisation gcc-3.3 hangs on this particular file.

Is there a gcc pragma that can turn off optimisation for just a
section of code? So far I can't find it in gcc documentation.

Graeme
Hi Graeme
On 01.05.09 03:55, "Graeme Costin"
Oops, I forgot to mention that we are using wxWidgets 2.8.9.
Graeme
We have an app that is running successfully on MacOS X Tiger and
Leopard.
But
we want to extend its range to include MacOS Panther on PPC as
well. We are
building the app on MacOS X.4.11 Tiger using Xcode 2.5.
I have made the obvious changes in the Xcode projects for both
the wxMac
static library and our app (Deployment target X.3, Architecture
ppc as well
as
intel, G4 instruction scheduling) but still when I copy the app
across to my
eMac (PPC G4 & X.3.9) the app simply won't load. No error
message, it just
won't load.
and you did adapt (or remove) the corresponding constants at the
very bottom
of the build properties screen ?
the OSX console should show at least a line or two about the problem
Best,
Stefan
Costin Computing Services
PO Box 1053
Artarmon NSW 2064
Ph: 02 9417 4835
Mo: 0416 354 234
Em: ***@costincomputingservices.com.au
Bob Paddock
2009-05-14 11:54:43 UTC
Permalink
But I had to turn off all optimisation because the gcc-3.3 compiler went
into an apparently infinite loop on one particular .cpp file. With no
optimisation it compiles OK, but with even the lowest level of optimisation
gcc-3.3 hangs on this particular file.
Is there a gcc pragma that can turn off optimisation for just a section of
code? So far I can't find it in gcc documentation.
http://gcc.gnu.org/onlinedocs/gcc/Pragmas.html

GCC "does not recommend the use of pragmas; See Function
Attributes<http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html#Function-Attributes>,
for further explanation. "

It would be better to find out what is wrong with the source file, have you
tried running Lint on it?

You can tell GCC to apply flags to only certain object files in your
Makefile.

problem_file.o: CFLAGS += stuff

careful that the "+=" ordering is what you expect or adapt accordingly.
Graeme
Hi Graeme
Oops, I forgot to mention that we are using wxWidgets 2.8.9.
Graeme
We have an app that is running successfully on MacOS X Tiger and
Leopard.
But
we want to extend its range to include MacOS Panther on PPC as well. We are
building the app on MacOS X.4.11 Tiger using Xcode 2.5.
I have made the obvious changes in the Xcode projects for both the wxMac
static library and our app (Deployment target X.3, Architecture ppc as well
as
intel, G4 instruction scheduling) but still when I copy the app across to
my
eMac (PPC G4 & X.3.9) the app simply won't load. No error message, it just
won't load.
and you did adapt (or remove) the corresponding constants at the very
bottom
of the build properties screen ?
the OSX console should show at least a line or two about the problem
Best,
Stefan
Costin Computing Services
PO Box 1053
Artarmon NSW 2064
Ph: 02 9417 4835
Mo: 0416 354 234
Loading...