[Pharo-dev] [Vm-dev] OSX 10.9 PharoVM build failure workarounds

Ben Coman btc at openInWorld.com
Mon Nov 17 16:17:52 UTC 2014


Whoops. I need to read it more carefully.  But there is a discrepancy, 
it says "Download the latest" and references 10.6.

Ben Coman wrote:
> 
> You've lost me.  That README.md were the instructions I used. Did I miss 
> something, or do you mean I should add notes to it ?
> cheers -ben
> 
> Esteban Lorenzano wrote:
>> Hi,
>> you have to check the README of 
>> https://github.com/pharo-project/pharo-vm :)
>>
>> Esteban
>>
>>
>>
>>> On 17 Nov 2014, at 16:58, Ben Coman <btc at openInWorld.com 
>>> <mailto:btc at openInWorld.com>> wrote:
>>>
>>>
>>> I followed the instructions at https://github.com/pharo-project/pharo-vm
>>> to build the Pharo VM. In generator.image I evaluated...
>>>    PharoVMBuilder buildMacOSX32.
>>> then
>>>    cd ../build
>>>    bash build.sh
>>>
>>> After cmake finished its checks, it tried to compile freetype (2.4.9) 
>>> but gets errors...
>>>
>>> *Generating 
>>> /Users/ben/Repos/pharo-vm/results/Pharo.app/Contents/MacOS/Plugins/libfreetype.6.dylib* 
>>>
>>>
>>> clang: warning: no such sysroot directory:
>>> '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk' 
>>>
>>>
>>> **fatal error: **'math.h' file not found*
>>>
>>>
>>> And indeed, I don't have
>>>  ../MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
>>> I have
>>>  ../MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
>>>
>>> So updating CMakeLists.txt as follows...
>>> + set(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)
>>> + set(CMAKE_OSX_SYSROOT 
>>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk) 
>>>
>>>
>>> - set(CMAKE_OSX_DEPLOYMENT_TARGET 10.5)
>>> - set(CMAKE_OSX_SYSROOT 
>>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk) 
>>>
>>>
>>> allowed the build to progress further.
>>>
>>> =========
>>>
>>> Then the build failed getting "too many errors" that looked somewhat 
>>> like this...
>>> /Users/ben/Repos/pharo-vm/platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m:208:18: 
>>> error: use of undeclared identifier 'GL_TEXTURE_RECTANGLE_ARB'
>>>        glTexParameteri(GL_TEXTURE_RECTANGLE_ARB, 
>>> GL_TEXTURE_MIN_FILTER, GL_NEAREST);
>>>
>>> Tracked down a likely suspect here...
>>> https://codereview.chromium.org/587193005/diff/1/content/browser/compositor/io_surface_layer_mac.mm 
>>>
>>>
>>> And indeed editing...
>>>    platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m
>>>
>>> to add...
>>>    #import <OpenGL/gl.h>
>>>
>>> gave me a working VM.
>>>
>>>
>>> =========
>>>
>>> Should I log these somewhere ?
>>> cheers -ben
>>
> 
> 



More information about the Vm-dev mailing list