On 06/09/2011 05:37 PM, Nicolas Montgermont wrote:
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
probably an even better idea would have been to add
"-I/Developer/SDKs/MacOSX10.6.sdk/usr/X11/include/freetype2/" to the
CXXFLAGS (or CPPFLAGS) you pass at the cmdline.
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
not very surprisingly, as this was the code that also failed before
factoring out the QuickTime image loading.
in the meantime you could just ignore the error by passing "-k" to the
'make' invocation.
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
while trying the same on my machine, i also noticed a show-stopper when
doing the final linking with FTGL.
until this is ironed out, it would be interesting (for me) how far you
get if you disable FTGL alltogether (which obviously won't give you FONT
rendering support, but hopefully it will make creating a somewhat
useable binary more easy)
fmasr
IOhannes
_______________________________________________
GEM-dev mailing list
[email protected]
http://lists.puredata.info/listinfo/gem-dev