[Pharo-project] Building the iOS VM - Help

philippe.back@highoctane.be philippe.back at gmail.com
Mon Mar 26 13:26:46 EDT 2012


Hello,

I have spent a fair chunk of my day grinding my teeth at getting this
working in Xcode 4.3

Not there yet.

I am better at Cmake, Xcode 4.3, iOS5.1 SDK and GenerateSources for sure...

The Xcode project gets generated but Xcode doesn't agrees with me opening
it.

Key findings:

* all pathes are different with Xcode 4.3 - there is a patch for Cmake to
deal with this, I applied it into my macports install.
* several frameworks are not findable as expressed in the cmake config
(CoreGraphics, UIKit, ..)
* there was a bug in the image, where sqTouch.m is involved. The correct
thing is IOSPlugin and not touchplugin as mentioned
* a lot of pathes are hardcoded in the image and it for sure doesn't help
with the relocation of stuff by Apple

It would be great to be able to discuss this in an IM session one of these
days. The answer is not far.

Attached the cmake stuff from the main dir (there are things in all plugins
but they all come from generate sources initially).

Kind Regards,
Philippe

2012/3/26 philippe.back at highoctane.be <philippe.back at gmail.com>

> Hello
>
> I have been working at this today.
>
> cmake 2.8.3 gives me a weird message (always the same kind, so it looks
> like fixable...)
>
> I managed to get the sources generated (but a Pharo 1. 4 image failed, I
> used the script provided in image and this fetched me an image from Lille
> that worked - or so it seems).
>
> Here is the cmake issue:
>
> PhilMac:build philippeback$ cmake -G Xcode .
>
> Adding internal plugin: ADPCMCodecPlugin
> Adding internal plugin: BMPReadWriterPlugin
> Adding internal plugin: B2DPlugin
> Adding internal plugin: BitBltPlugin
> Adding internal plugin: DSAPrims
> Adding internal plugin: ZipPlugin
> Adding internal plugin: FFTPlugin
> Adding internal plugin: FilePlugin
> Adding internal plugin: FloatArrayPlugin
> Adding internal plugin: HostWindowPlugin
> Adding internal plugin: JPEGReadWriter2Plugin
> Adding internal plugin: JPEGReaderPlugin
> Adding internal plugin: LargeIntegers
> Adding internal plugin: Matrix2x3Plugin
> Adding internal plugin: MiscPrimitivePlugin
> Adding internal plugin: SecurityPlugin
> Adding internal plugin: SoundCodecPrims
> Adding internal plugin: SoundPlugin
> Adding internal plugin: SurfacePlugin
> Adding internal plugin: UUIDPlugin
> Adding internal plugin: ObjectiveCPlugin
> Adding internal plugin: IOSPlugin
> CMake Error: The following variables are used in this project, but they
> are set to NOTFOUND.
> Please set them or make sure they are set and tested correctly in the
> CMake files:
> CoreGraphics_FMWK
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
> OpenGLES_FMWK
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
> UIKit_FMWK
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>     linked by target "iStackVM" in directory
> /Users/philippeback/iosvm/cog-osx/build
>
> -- Configuring incomplete, errors occurred!
>
> 2012/3/24 Esteban Lorenzano <estebanlm at gmail.com>
>
>> Hi,
>>
>> this are, more or less, the instructions to build an iOS vm:
>>
>> you need:
>>
>> - cmake 2.8.3 (not working with latest 2.8.7 because chainsets changed)
>> - xcode 4.1 or 4.2 (not working on 4.3 because cmake is not prepared to
>> build correct project for latest xcode version)
>>
>> 1) clone cog-osx  (mine) or blessed from git [1]
>> 2) in ./image download a 1.4 and install ConfigurationOfCog (latest)
>> 3) execute:
>>
>>  StackIPhoneConfig new
>> generateSources; generate
>>
>> 4) in ./build execute
>>
>> cmake -G Xcode .
>>
>> 5) open iStackVM.xcodeproj
>> 6) add your own provisioning data
>> 7) run :)
>>
>> cheers,
>> Esteban
>>
>> [1] https://gitorious.org/~estebanlm/cogvm/cog-osx
>>
>> El 24/03/2012, a las 3:25p.m., phil at highoctane.be escribió:
>>
>> I am trying to build the VM for iOS.
>> Got the sources from the ci jenkins server (the ones that built last
>> month, as the current one is red).
>>
>> /platforms has something looking like it. (iOS)
>>
>> But Cog is x86 and iOS is ARM7.
>>
>> So, I guess that I have to build a StackVM for it to work.
>>
>> But there is nothing about iOS in the instructions (Part1, Part2, ...)
>>
>> The MacOSX VM is documented but not the iOS version.
>>
>> As maintenance was taken over from John, how do we build from here? (I
>> also tried from a copy out of squeak-svn to no avail).
>>
>> My setup: OSX Lion, latest XCode upgraded from Snow Leopard, so I do have
>> GCC on it as well (as LLVM doesn't work).
>>
>> Target devices: iPad 2 3G, iPad 2 Wifi, iPhone 3GS (All with iOS 5.1).
>>
>> My wife is a math teacher and my point with all this is to have a working
>> VM running Dr Geo II.
>>
>> I am currently having fun with Arduino and would like to bridge it with
>> the iPad through the web (using an Ethernet Shield on the Arduino) - the
>> whole chain running Pharo inside self build VMs.
>>
>> The ultimate point is to run a summer camp with kids if I can put
>> everything together by then.
>>
>> Thanks in advance,
>> Philippe
>>
>> --
>> Philippe Back
>> "Helping you hit the top 3 outcomes you really want to achieve"
>>
>> Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail:
>> phil at highoctane.be | Web: http://philippeback.eu | Blog:
>> http://philippeback.be
>>
>> High Octane SPRL
>> rue cour Boisacq 101
>> 1301 Bierges
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20120326/0d5255a7/attachment-0001.html>
-------------- next part --------------
# This is automatically generated file using StackIPhoneConfig on 26 March 2012 7:13:59 pm
cmake_minimum_required(VERSION 2.6.2)
include(CMakeDetermineSystem)
project("iStackVM")
include(directories.cmake)
message("${CMAKE_MODULE_PATH}")
set(CMAKE_CONFIGURATION_TYPES Release)
include_directories(${buildDir}/)
include_directories(${platformsDir}/iOS/vm/iPhone)
include_directories(${crossDir}/vm ${srcVMDir} ${targetPlatform}/vm ${buildDir})
include_directories(${srcDir}/vm)
include_directories(${platformsDir}/iOS/vm/iPhone)
include_directories(${platformsDir}/iOS/vm/iPhone/Classes)
include_directories(${platformsDir}/iOS/vm/OSX)
include_directories(${platformsDir}/unix/vm)
include_directories(${platformsDir}/iOS/vm/Common/Classes)
include_directories(${platformsDir}/iOS/plugins/SoundPlugin)
include_directories(${platformsDir}/iOS/vm/OSX/plugins/SoundPlugin)
include_directories(${crossDir}/plugins/SoundPlugin)
include_directories(${crossDir}/plugins/HostWindowPlugin)
include_directories(${platformsDir}/Cross/plugins/HostWindowPlugin)
include_directories(${platformsDir}/iOS/vm/iPhone/plugins/HostWindowPlugin)
include_directories(${crossDir}/plugins/FilePlugin)
add_definitions(-isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -x objective-c -std=gnu99 -falign-functions=16 -fno-gcse -fno-cse-follow-jumps -fvisibility=hidden -funroll-loops -finline-functions -mno-thumb -DSTACKVM=1 -DCOGMTVM=0 -DUSE_GLOBAL_STRUCT=0 -DBASE_HEADER_SIZE=4 -DTARGET_OS_IS_IPHONE -DHAVE_UUID_GENERATE -DUSE_INLINE_MEMORY_ACCESSORS -DHAVE_SYS_TIME_H -DLSB_FIRST -DHAVE_NANOSLEEP -DISQUEAK_IMAGE=iPhone -DISQUEAK_SOURCES=PharoV10 -g0 -O3 -finline-functions -fomit-frame-pointer -DNDEBUG -DDEBUGVM=0)
set(CMAKE_OSX_ARCHITECTURES "armv6")
set(resourceDir "/Users/philippeback/iosvm/cog-osx/iosbuild/resources")
set(resources "${resourceDir}/Cog.png" "${resourceDir}/iPhone.image" "${resourceDir}/iPhone.changes" "${resourceDir}/PharoV10.sources")
set(resourcesLocaleEnglish "${resourceDir}/English.lproj/MainWindow.nib")
set_source_files_properties(${resources} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
set_source_files_properties(${resourcesLocaleEnglish} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
set(coreSources  ${srcVMDir}/gcc3x-interp.c)
set(platformVMSources  ${targetPlatform}/vm/Common/main.m ${targetPlatform}/vm/Common/Classes/Queue.m ${targetPlatform}/vm/Common/Classes/sqMacV2Time.c ${targetPlatform}/vm/Common/Classes/sqSqueakAppDelegate.m ${targetPlatform}/vm/Common/Classes/sqSqueakFileDirectoryAPI.m ${targetPlatform}/vm/Common/Classes/sqSqueakFileDirectoryInterface.m ${targetPlatform}/vm/Common/Classes/sqSqueakInfoPlistInterface.m ${targetPlatform}/vm/Common/Classes/sqSqueakMainApplication.m ${targetPlatform}/vm/Common/Classes/sqSqueakMainApplication+attributes.m ${targetPlatform}/vm/Common/Classes/sqSqueakMainApplication+events.m ${targetPlatform}/vm/Common/Classes/sqSqueakMainApplication+imageReadWrite.m ${targetPlatform}/vm/Common/Classes/sqSqueakMainApplication+sound.m ${targetPlatform}/vm/Common/Classes/sqSqueakMainApplication+vmAndImagePath.m ${targetPlatform}/vm/Common/Classes/sqSqueakMainApplication+screen.m ${targetPlatform}/vm/Common/Classes/sqSqueakMainApplication+cursor.m ${targetPlatform}/vm/Common/Classes/sqSqueakAttributesAPI.m ${targetPlatform}/vm/Common/Classes/sqSqueakSoundAPI.m ${targetPlatform}/vm/Common/Classes/sqSqueakVmAndImagePathAPI.m ${targetPlatform}/vm/Common/Classes/sqSqueakMainApp.m ${targetPlatform}/vm/Common/Classes/sqSqueakEventsAPI.m ${targetPlatform}/vm/Common/Classes/sqSqueakScreenAPI.m ${targetPlatform}/vm/Common/Classes/sqSqueakScreenAndWindow.m ${targetPlatform}/vm/iPhone/Classes/SqueakNoOGLIPhoneAppDelegate.m ${targetPlatform}/vm/iPhone/Classes/sqSqueakIPhoneApplication.m ${targetPlatform}/vm/iPhone/Classes/sqSqueakIPhoneApplication+attributes.m ${targetPlatform}/vm/iPhone/Classes/sqSqueakIPhoneApplication+clipboard.m ${targetPlatform}/vm/iPhone/Classes/sqSqueakIPhoneApplication+imageReadWrite.m ${targetPlatform}/vm/iPhone/Classes/sqSqueakIPhoneApplication+events.m ${targetPlatform}/vm/iPhone/Classes/sqSqueakIPhoneApplication+Network.m ${targetPlatform}/vm/iPhone/Classes/sqSqueakiPhoneApplication+sound.m ${targetPlatform}/vm/iPhone/Classes/sqSqueakIPhoneFileDirectoryInterface.m ${targetPlatform}/vm/iPhone/Classes/sqSqueakIPhoneInfoPlistInterface.m ${targetPlatform}/vm/iPhone/Classes/sqiPhoneScreenAndWindow.m ${targetPlatform}/vm/iPhone/Classes/SqueakUIView.m ${targetPlatform}/vm/iPhone/Classes/SqueakUIViewCALayer.m ${targetPlatform}/vm/iPhone/Classes/SqueakUIViewOpenGL.m ${targetPlatform}/vm/iPhone/Classes/SqueakUIController.m ${targetPlatform}/vm/iPhone/Classes/sqSqueakIPhoneClipboardAPI.m ${targetPlatform}/vm/iPhone/macintoshextra.c ${targetPlatform}/vm/iPhone/osExports.c ${targetPlatform}/vm/iPhone/sqDummyaio.c ${targetPlatform}/vm/iPhone/sqMacV2Memory.c)
set(crossVMSources  ${crossDir}/vm/sqNamedPrims.c ${crossDir}/vm/sqVirtualMachine.c ${crossDir}/vm/sqExternalSemaphores.c ${crossDir}/vm/sqHeapMap.c ${crossDir}/vm/sqTicker.c)
set(extraSources ${buildDir}/iStackVM_Prefix.pch 
${resources} ${buildDir}/iStackVM_Prefix.pch 
${resourcesLocaleEnglish} 
${platformsDir}/unix/vm/sqUnixHeartbeat.c  
${platformsDir}/unix/vm/sqUnixThreads.c
)

find_library(CoreAudio_FMWK CoreAudio)
find_library(CoreLocation_FMWK CoreLocation)
find_library(Foundation_FMWK Foundation)
find_library(QuartzCore_FMWK QuartzCore)
find_library(AudioToolbox_FMWK AudioToolbox)
find_library(SystemConfiguration_FMWK SystemConfiguration)

set(IOSFWK "/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks")
set(CoreGraphics_FMWK "${IOSFWK}/CoreGraphics.framework")
set(OpenGLES_FMWK "${IOSFWK}/OpenGLES.framework")
set(UIKit_FMWK "${IOSFWK}/UIKit.framework")


add_executable(iStackVM MACOSX_BUNDLE ${coreSources} ${crossVMSources} ${platformVMSources} ${extraSources})
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
add_subdirectory("ADPCMCodecPlugin")
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
add_subdirectory("BMPReadWriterPlugin")
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
add_subdirectory("B2DPlugin")
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
add_subdirectory("BitBltPlugin")
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
add_subdirectory("DSAPrims")
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
add_subdirectory("ZipPlugin")
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
add_subdirectory("FFTPlugin")
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
add_subdirectory("FilePlugin")
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
add_subdirectory("FloatArrayPlugin")
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
add_subdirectory("HostWindowPlugin")
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
add_subdirectory("JPEGReadWriter2Plugin")
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
add_subdirectory("JPEGReaderPlugin")
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
add_subdirectory("LargeIntegers")
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
add_subdirectory("Matrix2x3Plugin")
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
add_subdirectory("MiscPrimitivePlugin")
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
add_subdirectory("SecurityPlugin")
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
add_subdirectory("SoundCodecPrims")
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
add_subdirectory("SoundPlugin")
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
add_subdirectory("SurfacePlugin")
list(APPEND LINKLIBS ${CoreFoundation_FMWK})
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
add_subdirectory("UUIDPlugin")
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
add_subdirectory("ObjectiveCPlugin")
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
add_subdirectory("IOSPlugin")
target_link_libraries(iStackVM  ADPCMCodecPlugin BMPReadWriterPlugin B2DPlugin BitBltPlugin DSAPrims ZipPlugin FFTPlugin FilePlugin FloatArrayPlugin HostWindowPlugin JPEGReadWriter2Plugin JPEGReaderPlugin LargeIntegers Matrix2x3Plugin MiscPrimitivePlugin SecurityPlugin SoundCodecPrims SoundPlugin SurfacePlugin UUIDPlugin ObjectiveCPlugin IOSPlugin)
set_target_properties(iStackVM PROPERTIES XCODE_ATTRIBUTE_GCC_PREFIX_HEADER "${buildDir}/iStackVM_Prefix.pch")
set(CMAKE_CROSSCOMPILING TRUE)
set(CMAKE_SYSTEM_NAME Darwin)
set(CMAKE_SYSTEM_PROCESSOR arm)
set(SDKVER "5.1")
set(DEVROOT "/Applications/Xcode.app/Contents/Developer/Platforms/Developer")
set(SDKROOT "${DEVROOT}/SDKs/iPhoneOS${SDKVER}.sdk")
set(CMAKE_OSX_SYSROOT iPhoneOs${SDKVER})
set(CMAKE_C_COMPILER ${DEVROOT}/usr/bin/llvm-gcc)
set(CMAKE_CXX_COMPILER ${DEVROOT}/usr/bin/llvm-g++)
set(CMAKE_FIND_ROOT_PATH "${SDKROOT}" "${DEVROOT}")
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_EXE_LINKER_FLAGS "-L${SDKROOT}/usr/lib -L${SDKROOT}/usr/lib/system")
list(APPEND LINKLIBS ${CoreAudio_FMWK})
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
list(APPEND LINKLIBS ${CoreLocation_FMWK})
list(APPEND LINKLIBS ${UIKit_FMWK})
list(APPEND LINKLIBS ${Foundation_FMWK})
list(APPEND LINKLIBS ${QuartzCore_FMWK})
list(APPEND LINKLIBS ${OpenGLES_FMWK})
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
list(APPEND LINKLIBS ${SystemConfiguration_FMWK})
set_target_properties(iStackVM PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${buildDir}/Info.plist")
set_target_properties(iStackVM PROPERTIES COMPILE_FLAGS "-include \"/Users/philippeback/iosvm/cog-osx/build/iStackVM_Prefix.pch\"")
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "iPhone Developer")
set(CMAKE_XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY "2")
set(CMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET 5.1)
set(EXECUTABLE_OUTPUT_PATH "/Users/philippeback/iosvm/cog-osx/results")
target_link_libraries(iStackVM ${LINKLIBS})
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake_install.cmake
Type: application/octet-stream
Size: 3509 bytes
Desc: not available
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20120326/0d5255a7/attachment.cmake>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: directories.cmake
Type: application/octet-stream
Size: 503 bytes
Desc: not available
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20120326/0d5255a7/attachment-0001.cmake>


More information about the Pharo-dev mailing list