Re: Build fails on OSX using wx 2.7.0 - Mailing list pgadmin-hackers
From | Chris Campbell |
---|---|
Subject | Re: Build fails on OSX using wx 2.7.0 |
Date | |
Msg-id | 4598E56F-4387-414C-8066-CDDE2028D4C4@bignerdranch.com Whole thread Raw |
In response to | Re: Build fails on OSX using wx 2.7.0 ("Dave Page" <dpage@vale-housing.co.uk>) |
Responses |
Re: Build fails on OSX using wx 2.7.0
|
List | pgadmin-hackers |
On Aug 31, 2006, at 11:00, Dave Page wrote: > Yeah. They can include ppc64 as well. GCC will create them just > fine, or > you can build them individually and combine the resulting executables > and libs using the lipo tool. That's how I build my Universal PostgreSQL binaries (and any other configure-based project). I "./configure && make && make install" on both a PowerPC Mac and an Intel Mac (because configure looks at the host system to make decisions), then lipo the results together (that's how Xcode does it, BTW). It's worked beautifully thus far, but it does require two machines. Here's the script I use to run lipo. I create a directory structure like the following ("ppc" contains the binaries built on the PowerPC machine, "i386" contains the binaries built on the x86 machine, I duplicate one of them as "fat" so that I have the directory structure and non-binary files in place). When I'm done, the I install the "fat" directory on the local machine as /usr/local/pgsql and I'm set. A full run looks something like: $ cd postgresql-8.1.4 $ scp -r powerpc-mac:/usr/local/pgsql ppc $ scp -r intel-mac:/usr/local/pgsql i386 $ cp -R ppc fat $ ./run.sh $ sudo cp -R fat /usr/local/pgsql Directory structure =================== postgresql-8.1.4/ to_lipo.txt run.sh ppc/ bin/ postmaster ... ... i386/ bin/ postmaster ... ... fat/ bin/ postmaster ... ... run.sh ====== #!/bin/sh for file in `cat to_lipo.txt`; do echo "${file}" lipo -create -output "fat/${file}" -arch ppc "ppc/${file}" -arch i386 "i386/${file}" file "fat/${file}" done echo "Done." to_lipo.txt =========== bin/clusterdb bin/createdb bin/createlang bin/createuser bin/dropdb bin/droplang bin/dropuser bin/ecpg bin/initdb bin/pg_config bin/pg_controldata bin/pg_ctl bin/pg_dump bin/pg_dumpall bin/pg_resetxlog bin/pg_restore bin/postgres bin/psql bin/reindexdb bin/vacuumdb lib/libecpg.5.1.dylib lib/libecpg.a lib/libecpg_compat.2.1.dylib lib/libecpg_compat.a lib/libpgport.a lib/libpgtypes.2.1.dylib lib/libpgtypes.a lib/libpq.4.1.dylib lib/libpq.a lib/postgresql/ascii_and_mic.so lib/postgresql/cyrillic_and_mic.so lib/postgresql/euc_cn_and_mic.so lib/postgresql/euc_jp_and_sjis.so lib/postgresql/euc_kr_and_mic.so lib/postgresql/euc_tw_and_big5.so lib/postgresql/latin2_and_win1250.so lib/postgresql/latin_and_mic.so lib/postgresql/plpgsql.so lib/postgresql/utf8_and_ascii.so lib/postgresql/utf8_and_big5.so lib/postgresql/utf8_and_cyrillic.so lib/postgresql/utf8_and_euc_cn.so lib/postgresql/utf8_and_euc_jp.so lib/postgresql/utf8_and_euc_kr.so lib/postgresql/utf8_and_euc_tw.so lib/postgresql/utf8_and_gb18030.so lib/postgresql/utf8_and_gbk.so lib/postgresql/utf8_and_iso8859.so lib/postgresql/utf8_and_iso8859_1.so lib/postgresql/utf8_and_johab.so lib/postgresql/utf8_and_sjis.so lib/postgresql/utf8_and_uhc.so lib/postgresql/utf8_and_win1250.so lib/postgresql/utf8_and_win1252.so lib/postgresql/utf8_and_win1256.so lib/postgresql/utf8_and_win1258.so lib/postgresql/utf8_and_win874.so Thanks! - Chris
Attachment
pgadmin-hackers by date: