[GEM-dev] compiling GEM on osx

Nicolas Montgermont nicolas_montgermont at yahoo.fr
Thu Jun 9 17:37:33 CEST 2011


Le 09/06/11 16:44, IOhannes m zmoelnig a écrit :
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 2011-06-09 16:06, Nicolas Montgermont wrote:
>> Hello all,
>>
>> I'm trying to compile GEM svn under OSX (10.6) but I am having some
> cool.
>
> however please note, that while in my last email i said that my changes
> were "a step towards making Gem compile on OSX-10.6", i don't claim (nor
> believe) that you can currently build Gem on 10.6 "just so".
ok,
let's try to go one step further then :)
>> problems. i have tried with xcode and terminal.
>>
> the xcode project have not been updated in a long time.
it's 173 errors but the first one is at the same line.
>
>> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -DHAVE_VERSION_H -DPD
>> -I/Applications/Pd-extended.app/Contents/Resources/include/pd/
>> "-I/Users/nix/gem/pd-gem/trunk/GemLibs/FTGL/freetype include/"
>> -I/Users/nix/gem/pd-gem/trunk/GemLibs/FTGL/include/ -I/usr/X11/include
>> -fPIC -freg-struct-return -Os -falign-loops -falign-functions
>> -falign-jumps -funroll-loops -ffast-math -mmmx -fpascal-strings -MT
>> libBase_la-TextBase.lo -MD -MP -MF .deps/libBase_la-TextBase.Tpo -c
>> TextBase.cpp  -fno-common -DPIC -o .libs/libBase_la-TextBase.o
>> In file included from
>> /Users/nix/gem/pd-gem/trunk/GemLibs/FTGL/include/FTFont.h:4,
>>                   from TextBase.h:37,
>>                   from TextBase.cpp:22:
>> /usr/X11/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No
>> such file or directory
> do you have a file "freetype/config/ftheader.h" on your disk?
> where?
> here it is in the equivalent of
> "/Users/nix/gem/pd-gem/trunk/GemLibs/FTGL/freetype
> include/freetype/config/ftheader.h"
locate ftheader.h
/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include/freetype2/freetype/config/ftheader.h
/Developer/SDKs/MacOSX10.5.sdk/usr/X11/include/freetype2/freetype/config/ftheader.h
/Developer/SDKs/MacOSX10.6.sdk/usr/X11/include/freetype2/freetype/config/ftheader.h
/usr/X11/include/freetype2/freetype/config/ftheader.h

so it's only a problem of adding "freetype2" before the relative search,
i have made a alias with:
ln -s /Developer/SDKs/MacOSX10.6.sdk/usr/X11/include/freetype2/freetype 
/Developer/SDKs/MacOSX10.6.sdk/usr/X11/include/freetype

and the compilation goes further and stops at:
Making all in imageQT
/bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H 
-I. -I../../Base -I/Developer/SDKs/MacOSX10.6.sdk/usr/X11/include 
-I../..  -DPD 
-I/Applications/Pd-extended.app/Contents/Resources/include/pd/ 
-framework QuickTime -g -O2 -fPIC -freg-struct-return -Os -falign-loops 
-falign-functions -falign-jumps -funroll-loops -ffast-math -mmmx 
-fpascal-strings -MT gem_imageQT_la-imageQT.lo -MD -MP -MF 
.deps/gem_imageQT_la-imageQT.Tpo -c -o gem_imageQT_la-imageQT.lo `test 
-f 'imageQT.cpp' || echo './'`imageQT.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../Base 
-I/Developer/SDKs/MacOSX10.6.sdk/usr/X11/include -I../.. -DPD 
-I/Applications/Pd-extended.app/Contents/Resources/include/pd/ 
-framework QuickTime -g -O2 -fPIC -freg-struct-return -Os -falign-loops 
-falign-functions -falign-jumps -funroll-loops -ffast-math -mmmx 
-fpascal-strings -MT gem_imageQT_la-imageQT.lo -MD -MP -MF 
.deps/gem_imageQT_la-imageQT.Tpo -c imageQT.cpp  -fno-common -DPIC -o 
.libs/gem_imageQT_la-imageQT.o
imageQT.cpp:246:2: warning: #warning output format
imageQT.cpp:135: error: 'GraphicsImportComponent' was not declared in 
this scope
imageQT.cpp:135: error: expected primary-expression before '&' token
imageQT.cpp:135: error: 'result' was not declared in this scope
imageQT.cpp:135: error: initializer expression list treated as compound 
expression
imageQT.cpp:136: error: expected ',' or ';' before '{' token
make[2]: *** [gem_imageQT_la-imageQT.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

>> do you have any idea of what is missing?
>> am i including the bad ft2build.h header?
>> i have these others:
>> /Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include/ft2build.h
>> /Developer/SDKs/MacOSX10.5.sdk/usr/X11/include/ft2build.h
>> /Developer/SDKs/MacOSX10.6.sdk/usr/X11/include/ft2build.h
>> /usr/X11/include/ft2build.h
> i don't like the notion of X11 here.
i am not sure of what you mean.
i have return to the ones in the 10.6 SDK.
my conf line is now:
PKG_FTGL_CFLAGS="-I/Users/nix/gem/pd-gem/trunk/GemLibs/FTGL/freetype\ 
include/ -I/Users/nix/gem/pd-gem/trunk/GemLibs/FTGL/include/" 
PKG_FTGL_LIBS="/Users/nix/gem/pd-gem/trunk/GemLibs/FTGL/mac/build/Universal/libftgl.a" 
INCLUDES="-I/Developer/SDKs/MacOSX10.6.sdk/usr/X11/include" ./configure 
--with-pd=/Applications/Pd-extended.app/Contents/Resources/include/pd/ 
--enable-fat-binary=i386

>> but including the one in the 10.6 SDK give me the same error.
>>
>> I am building against Pd-extended-0.42.5 on mac osx 10.6.7
>>
>> i'd like to use the last version of gem :)
> understandable.
thx for the fast answer.
best,

n
-- 
http://nim.on.free.fr



More information about the GEM-dev mailing list