Home » Developing U++ » Mac OS » 701-dev1 / 2007.1beta on Mac OSX
Re: 701-dev1 / 2007.1beta on Mac OSX [message #7978 is a reply to message #7932] |
Fri, 02 February 2007 04:11   |
lundman
Messages: 175 Registered: March 2006 Location: Tokyo
|
Experienced Member |
|
|
There used to be a Core on exit bug, but we did fix it. Where does gdb say it died? If you run the program as
# ./myapp -args
use
# gdb ./myapp
gdb> run -args
and use "bt" to get the backtrace once it cores.
Universal build:
In Build Environment I add Compiler flags "-arch i386 -arch ppc" to the method I want, or all of them. (debug, size, speed). If you on a ppc mac you also need to add
"-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
You need the same options when linking, but alas, there is no way to set Link options with U++ based on the platform, or triggered based on your current Building method.
I get around that by using Package Organiser / Add Link Options / WHEN "OSX11" with flags:
"-arch i386 -arch ppc"
again, on PPC, you additionally need to make it:
"-syslibroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386"
Finally, "ar" on OsX is the Gnu "ar" (as in, untouched) and can not handle fat files. You can change the ide sources to use "libtool" instead of ar, by editing CppBuilder.cpp and GccBuilder.cpp.
Or, replace "ar" with a script (temporarily) if you want (or, place it elsewhere, and fiddle with your PATH, there isn't just one way to fix things in Unix).
My "ar" script looks like:
#!/bin/bash
# It is valid to say "ar rc libfoo files.o"
shift
# Skip all arguments
done=0
while [ $done == 0 ]
do
case "$1"
in
-*) shift
;;
*) done=1
;;
esac
done
# Get output name
out=$1
shift
echo libtool $* -o $out
exec /usr/bin/libtool $* -o $out
Alas, you need all support libraries to also be Universal, ide that means libpng at least. You can compile it yourself using the nice ./configure line, or, fight with "port" to do it for you. If you are doing Universal of your own App, you'll have to work out your own dependencies.
Configure line that works on many things:
env CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" LDFLAGS="-arch i386 -arch ppc" ./configure --disable-dependency-tracking
|
|
|
 |
|
701-dev1 / 2007.1beta on Mac OSX
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
By: mirek on Sun, 21 January 2007 20:09
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
By: mirek on Sun, 21 January 2007 20:10
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
By: mirek on Mon, 22 January 2007 11:16
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
By: mirek on Mon, 22 January 2007 14:47
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
By: mirek on Mon, 22 January 2007 17:42
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
By: mirek on Mon, 22 January 2007 17:42
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
By: mirek on Tue, 23 January 2007 08:41
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
By: lundman on Fri, 26 January 2007 04:23
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
By: lundman on Fri, 02 February 2007 04:11
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
By: mirek on Tue, 23 January 2007 08:40
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
By: mirek on Sat, 07 April 2007 19:45
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
By: lundman on Sun, 08 April 2007 11:00
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
By: mirek on Sun, 08 April 2007 11:45
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
By: lundman on Mon, 09 April 2007 03:09
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
By: lundman on Mon, 09 April 2007 03:12
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
By: lundman on Mon, 09 April 2007 05:49
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
By: mirek on Mon, 09 April 2007 13:22
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
By: lundman on Mon, 09 April 2007 14:18
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
By: mirek on Mon, 09 April 2007 17:16
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
By: lundman on Tue, 10 April 2007 00:14
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
|
 |
|
Re: 701-dev1 / 2007.1beta on Mac OSX
By: lundman on Thu, 19 April 2007 05:55
|
Goto Forum:
Current Time: Sat May 03 01:50:42 CEST 2025
Total time taken to generate the page: 0.04115 seconds
|