Re: [hatari-devel] Things still remaining before v1.8 release? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Things still remaining before v1.8 release?
- From: Troed Sångberg <troed@xxxxxxxxxxx>
- Date: Thu, 31 Jul 2014 22:07:30 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=nOeOxGY5P9WfGMaz/wUNqd17LrwwikwgSzjpH27JK9k=; b=vSoehlhu7uCYOzrgh+Ebg1xoTi0qocZvwrakt2mol/cMzCQssv1RC3CV4soZTPS/YN kgKVNquNkehFgxZrk9VAZYM+jtE12acI63BPdTt2TiP+hOuKOsDyFFPKjds70yMoj7cy WWvq7eTmzsosI4FZ9lhqUzlb7h7xN6BnZLtd/8Q4UzfZ/B6w8ZPBylOPeaJwdBV8hp1j P0y0C5KCdfOtrBoFYn4iMhiNIWz2UmynEnv1WKPTQqLftW/2HmLExG8XBrIugQWpEQUx nfSwPHOdQ8XNO8dgkIymiKHD1vDeC3uDAugj5nWZTYqx+fEy+UwX6H/084z8AlR/HQCl 8ffQ==
Thanks - now, after the fact, I consider it to be demystified :)
Prerequisite: SDL.Framework 1.2.15, CAPSImage.framework 4.2 (user version), universal builds of libpng16.16.dylib and libportaudio.2.dylib. The latter can be created with Macports (‘port install libpng +universal’ etc)
0) ‘cmake -G Xcode’ (generates the Xcode project - note - will overwrite any existing)
0.5) use ‘ccmake .’ to set Falcon (ENABLE_WINUAE_CPU) mode (‘configure' doesn’t overwrite project files, ‘generate' will)
1) Project Hatari set “Active architecture only” to No
2) OSX Deployment target: 10.5
3) Runpath search path = @loader_path/../Frameworks
4) Always search user paths: No
5) Framework search paths: $(SRCROOT)
6) Target hatari Other Linker Flags - remove libSDL-files and -lcapsimage if needed
7) Build phases - copy frameworks, tos and dylibs (when adding them to project, use Xcode defaults)
8) Build phases - add two build scripts*
9) Build phases - add “link binary with libraries” - add dylibs and frameworks
*) scripts:
***
#!/bin/bash
EXECFILE=${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}
LIBPATH=${BUILT_PRODUCTS_DIR}/${SHARED_SUPPORT_FOLDER_PATH}
NEWLIBPATH="@executable_path/../SharedSupport"
# space separated list of libraries
TARGETS="libpng16.16.dylib libportaudio.2.dylib"
for TARGET in ${TARGETS} ; do
LIBFILE=${LIBPATH}/${TARGET}
TARGETID=`otool -DX ${LIBPATH}/$TARGET`
NEWTARGETID=${NEWLIBPATH}/${TARGET}
install_name_tool -id ${NEWTARGETID} ${LIBFILE}
install_name_tool -change ${TARGETID} ${NEWTARGETID} ${EXECFILE}
done
***
#!/bin/bash
EXECFILE=${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}
LIBPATH=${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}
NEWLIBPATH="@executable_path/../Frameworks"
# space separated list of libraries
TARGETS="CAPSImage.framework/CAPSImage SDL.Framework/SDL"
for TARGET in ${TARGETS} ; do
LIBFILE=${LIBPATH}/${TARGET}
TARGETID=`otool -DX ${LIBPATH}/$TARGET`
NEWTARGETID=${NEWLIBPATH}/${TARGET}
install_name_tool -id ${NEWTARGETID} ${LIBFILE}
install_name_tool -change ${TARGETID} ${NEWTARGETID} ${EXECFILE}
done
***