Now, the thing has the right flags but still manages to complain about:

[PhilMac:~/Documents/Smalltalk/2-MyWorkspaces/workspaceVMiOSFromBook/blessed/build
philippeback$] sudo make
[  0%] Building C object
IOSPlugin/CMakeFiles/IOSPlugin.dir/Users/philippeback/Documents/Smalltalk/2-MyWorkspaces/workspaceVMiOSFromBook/blessed/src/plugins/IOSPlugin/IOSPlugin.c.o
<built-in>:0: error: Unknown value ‘6.1’ of -mmacosx-version-min
/Users/philippeback/Documents/Smalltalk/2-MyWorkspaces/workspaceVMiOSFromBook/blessed/src/plugins/IOSPlugin/IOSPlugin.c:10:18:
error: math.h: No such file or directory
/Users/philippeback/Documents/Smalltalk/2-MyWorkspaces/workspaceVMiOSFromBook/blessed/src/plugins/IOSPlugin/IOSPlugin.c:11:19:
error: stdio.h: No such file or directory
/Users/philippeback/Documents/Smalltalk/2-MyWorkspaces/workspaceVMiOSFromBook/blessed/src/plugins/IOSPlugin/IOSPlugin.c:12:20:
error: stdlib.h: No such file or directory
/Users/philippeback/Documents/Smalltalk/2-MyWorkspaces/workspaceVMiOSFromBook/blessed/src/plugins/IOSPlugin/IOSPlugin.c:13:20:
error: string.h: No such file or directory
/Users/philippeback/Documents/Smalltalk/2-MyWorkspaces/workspaceVMiOSFromBook/blessed/src/plugins/IOSPlugin/IOSPlugin.c:14:18:
error: time.h: No such file or directory
In file included from
/Users/philippeback/Documents/Smalltalk/2-MyWorkspaces/workspaceVMiOSFromBook/blessed/src/plugins/IOSPlugin/IOSPlugin.c:25:
/Users/philippeback/Documents/Smalltalk/2-MyWorkspaces/workspaceVMiOSFromBook/blessed/platforms/iOS/vm/iPhone/sqPlatformSpecific.h:68:20:
error: unistd.h: No such file or directory
In file included from
/Users/philippeback/Documents/Smalltalk/2-MyWorkspaces/workspaceVMiOSFromBook/blessed/src/plugins/IOSPlugin/IOSPlugin.c:25:
/Users/philippeback/Documents/Smalltalk/2-MyWorkspaces/workspaceVMiOSFromBook/blessed/platforms/iOS/vm/iPhone/sqPlatformSpecific.h:82:
error: expected declaration specifiers or ‘...’ before ‘FILE’
/Users/philippeback/Documents/Smalltalk/2-MyWorkspaces/workspaceVMiOSFromBook/blessed/platforms/iOS/vm/iPhone/sqPlatformSpecific.h:132:22:
error: pthread.h: No such file or directory
/Users/philippeback/Documents/Smalltalk/2-MyWorkspaces/workspaceVMiOSFromBook/blessed/src/plugins/IOSPlugin/IOSPlugin.c:
In function ‘msg’:
/Users/philippeback/Documents/Smalltalk/2-MyWorkspaces/workspaceVMiOSFromBook/blessed/src/plugins/IOSPlugin/IOSPlugin.c:110:
warning: incompatible implicit declaration of built-in function
‘fprintf’
/Users/philippeback/Documents/Smalltalk/2-MyWorkspaces/workspaceVMiOSFromBook/blessed/src/plugins/IOSPlugin/IOSPlugin.c:110:
error: ‘stderr’ undeclared (first use in this function)
/Users/philippeback/Documents/Smalltalk/2-MyWorkspaces/workspaceVMiOSFromBook/blessed/src/plugins/IOSPlugin/IOSPlugin.c:110:
error: (Each undeclared identifier is reported only once
/Users/philippeback/Documents/Smalltalk/2-MyWorkspaces/workspaceVMiOSFromBook/blessed/src/plugins/IOSPlugin/IOSPlugin.c:110:
error: for each function it appears in.)
/Users/philippeback/Documents/Smalltalk/2-MyWorkspaces/workspaceVMiOSFromBook/blessed/src/plugins/IOSPlugin/IOSPlugin.c:
At top level:
/Users/philippeback/Documents/Smalltalk/2-MyWorkspaces/workspaceVMiOSFromBook/blessed/src/plugins/IOSPlugin/IOSPlugin.c:170:
error: ‘NULL’ undeclared here (not in a function)
make[2]: *** 
[IOSPlugin/CMakeFiles/IOSPlugin.dir/Users/philippeback/Documents/Smalltalk/2-MyWorkspaces/workspaceVMiOSFromBook/blessed/src/plugins/IOSPlugin/IOSPlugin.c.o]
Error 1
make[1]: *** [IOSPlugin/CMakeFiles/IOSPlugin.dir/all] Error 2
make: *** [all] Error 2

I'll work a tad more on this later today.

Phil

2013/2/27 Igor Stasenko <[email protected]>:
> On 27 February 2013 17:46, [email protected] <[email protected]> wrote:
>> Now changed the variables in the generator.image for pointing to the
>> right iPhoneOS SDK.
>>
>> Build process now complains...   0%] Building C object
>> IOSPlugin/CMakeFiles/IOSPlugin.dir/Users/philippeback/Documents/Smalltalk/2-MyWorkspaces/workspaceVMiOSFromBook/blessed/src/plugins/IOSPlugin/IOSPlugin.c.o
>> <built-in>:0: warning: Mac OS X version 10.5 or later is needed for
>> use of the new objc abi
>> <built-in>:0: error: Unknown value ‘6.1’ of -mmacosx-version-min
>>
>> Arhg
>>
> :)
>
> Thanks, Phil for looking at it.
> Things rotting quite fast on Apple platforms.. so any external help is
> invaluable.
>
>> Phil
>>
>> 2013/2/27 Igor Stasenko <[email protected]>:
>>> could be.
>>> Esteban didn't touched ios build for a while..
>>> and there was some changes in cmake stuff meanwhile.
>>>
>>> On 27 February 2013 17:02, [email protected] <[email protected]> wrote:
>>>> Guess the CMake that is generated is plain wrong.
>>>>
>>>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX6.1.sdk
>>>> ...
>>>>
>>>> WRONG I guess...
>>>>
>>>> set(CMAKE_C_COMPILER
>>>> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc)
>>>> set(CMAKE_CXX_COMPILER
>>>> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++)
>>>> set(CMAKE_OSX_ARCHITECTURES armv7)
>>>> set(CMAKE_OSX_SYSROOT /)
>>>> # This is automatically generated file using StackIPhoneConfig on 27
>>>> February 2013 4:17:00.984 pm
>>>> cmake_minimum_required(VERSION 2.6.2)
>>>> include(CMakeDetermineSystem)
>>>> project("iStackVM")
>>>> set(CMAKE_OSX_DEPLOYMENT_TARGET 10.5)
>>>> set(CMAKE_OSX_SYSROOT
>>>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX6.1.sdk)
>>>> include(directories.cmake)
>>>> set(externalModulesDir "${outputDir}/iStackVM.app/Contents/MacOS/Plugins")
>>>> 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/SoundP
>>>>
>>>
>>>
>>>
>>> --
>>> Best regards,
>>> Igor Stasenko.
>>>
>>
>
>
>
> --
> Best regards,
> Igor Stasenko.
>
set(CMAKE_C_COMPILER 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc)
set(CMAKE_CXX_COMPILER 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++)
set(CMAKE_OSX_ARCHITECTURES armv7)
set(CMAKE_OSX_SYSROOT /)
# This is automatically generated file using StackIPhoneConfig on 27 February 
2013 5:57:28.345 pm
cmake_minimum_required(VERSION 2.6.2)
include(CMakeDetermineSystem)
project("iStackVM")
set(CMAKE_OSX_DEPLOYMENT_TARGET 6.1)
set(CMAKE_OSX_SYSROOT 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk)
include(directories.cmake)
set(externalModulesDir "${outputDir}/iStackVM.app/Contents/MacOS/Plugins")
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(-g0 -arch armv7 -DHAVE_UUID_GENERATE -O3 -DDEBUGVM=0 -DNDEBUG 
-fomit-frame-pointer)
set(CMAKE_OSX_ARCHITECTURES "armv7")
set(resourceDir 
"/Users/philippeback/Documents/Smalltalk/2-MyWorkspaces/workspaceVMiOSFromBook/blessed/iosbuild/resources")
set(resources "${resourceDir}/Cog.png" "${resourceDir}/Cog.png" 
"${resourceDir}/Cog.png" "${resourceDir}/Cog.png" "${resourceDir}/iOS.image" 
"${resourceDir}/iOS.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/sqMacV2Memory.c 
${targetPlatform}/vm/iPhone/sqMacUnixExternalPrims.m)
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 
${platformsDir}/unix/vm/aio.c
)
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 ${CoreFoundation_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 ${CoreFoundation_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 ${CoreFoundation_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 ${CoreFoundation_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 ${CoreFoundation_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 ${CoreFoundation_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 ${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 ${CoreFoundation_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 ${CoreFoundation_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 ${CoreFoundation_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 ${CoreFoundation_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 ${CoreFoundation_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 ${CoreFoundation_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 ${CoreFoundation_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 ${CoreFoundation_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 ${CoreFoundation_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 ${CoreFoundation_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 ${CoreFoundation_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 ${CoreFoundation_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 ${CoreFoundation_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 ${CoreFoundation_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 ${CoreFoundation_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 ${CoreFoundation_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 ${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 ${CoreFoundation_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 ${CoreFoundation_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 ${CoreFoundation_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 ${CoreFoundation_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")
add_subdirectory("BMPReadWriterPlugin")
add_subdirectory("B2DPlugin")
add_subdirectory("BitBltPlugin")
add_subdirectory("DSAPrims")
add_subdirectory("ZipPlugin")
add_subdirectory("LocalePlugin")
add_subdirectory("FFTPlugin")
add_subdirectory("FilePlugin")
add_subdirectory("FloatArrayPlugin")
add_subdirectory("HostWindowPlugin")
add_subdirectory("JPEGReadWriter2Plugin")
add_subdirectory("JPEGReaderPlugin")
add_subdirectory("LargeIntegers")
add_subdirectory("Matrix2x3Plugin")
add_subdirectory("MiscPrimitivePlugin")
add_subdirectory("SecurityPlugin")
add_subdirectory("SocketPlugin")
add_subdirectory("SoundCodecPrims")
add_subdirectory("SoundPlugin")
add_subdirectory("SurfacePlugin")
add_subdirectory("UUIDPlugin")
add_subdirectory("ObjectiveCPlugin")
add_subdirectory("IOSPlugin")
target_link_libraries(iStackVM  ADPCMCodecPlugin BMPReadWriterPlugin B2DPlugin 
BitBltPlugin DSAPrims ZipPlugin LocalePlugin FFTPlugin FilePlugin 
FloatArrayPlugin HostWindowPlugin JPEGReadWriter2Plugin JPEGReaderPlugin 
LargeIntegers Matrix2x3Plugin MiscPrimitivePlugin SecurityPlugin SocketPlugin 
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 "6.1")
set(DEVROOT 
"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer")
set(SDKROOT "${DEVROOT}/SDKs/iPhoneOS${SDKVER}.sdk")
set(CMAKE_OSX_SYSROOT iphoneos${SDKVER})
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 "--sysroot ${SDKROOT} -L${SDKROOT}/usr/lib 
-L${SDKROOT}/usr/lib/system")
set(CMAKE_C_FLAGS "--sysroot ${SDKROOT} -L${SDKROOT}/usr/lib 
-L${SDKROOT}/usr/lib/system")
set(CMAKE_CXX_FLAGS "--sysroot ${SDKROOT} -L${SDKROOT}/usr/lib 
-L${SDKROOT}/usr/lib/system")
find_library(CoreAudio_FMWK CoreAudio)
list(APPEND LINKLIBS ${CoreAudio_FMWK})
find_library(CoreGraphics_FMWK CoreGraphics)
list(APPEND LINKLIBS ${CoreGraphics_FMWK})
find_library(CoreLocation_FMWK CoreLocation)
list(APPEND LINKLIBS ${CoreLocation_FMWK})
find_library(UIKit_FMWK UIKit)
list(APPEND LINKLIBS ${UIKit_FMWK})
find_library(CoreFoundation_FMWK CoreFoundation)
list(APPEND LINKLIBS ${CoreFoundation_FMWK})
find_library(Foundation_FMWK Foundation)
list(APPEND LINKLIBS ${Foundation_FMWK})
find_library(QuartzCore_FMWK QuartzCore)
list(APPEND LINKLIBS ${QuartzCore_FMWK})
find_library(OpenGLES_FMWK OpenGLES)
list(APPEND LINKLIBS ${OpenGLES_FMWK})
find_library(AudioToolbox_FMWK AudioToolbox)
list(APPEND LINKLIBS ${AudioToolbox_FMWK})
find_library(SystemConfiguration_FMWK SystemConfiguration)
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/Documents/Smalltalk/2-MyWorkspaces/workspaceVMiOSFromBook/blessed/build/iStackVM_Prefix.pch\"")
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "iPhone Developer")
set(CMAKE_XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY "1,2 ")
set(CMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET 4.0)
set(CMAKE_XCODE_ATTRIBUTE_CONFIGURATION_BUILD_DIR 
"$(BUILD_DIR)/$(CONFIGURATION)")
set(CMAKE_XCODE_ATTRIBUTE_CONFIGURATION_TEMP_DIR 
"$(BUILD_DIR)/$(CONFIGURATION)")
set(EXECUTABLE_OUTPUT_PATH 
"/Users/philippeback/Documents/Smalltalk/2-MyWorkspaces/workspaceVMiOSFromBook/blessed/results")
set_source_files_properties(${srcVMDir}/gcc3x-cointerp.c PROPERTIES 
COMPILE_FLAGS -O0)
target_link_libraries(iStackVM ${LINKLIBS})
set(bundlePath "${outputDir}/iStackVM.app")
set(pluginsRelPath "@executable_path/Plugins")

                INSTALL(CODE "
                        set(externalModulesDir \"${externalModulesDir}\")
                        set(bundlePath \"${bundlePath}\")
                        set(pluginsRelPath \"${pluginsRelPath}\")
                        
                        include(fix_libs.cmake)
                ")

Reply via email to