<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Aug 10, 2006, at 12:52 PM, chris clepper wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">There are some issues with this.<BR><BR>- We don't use the X11 GL at all.  It should be the OpenGL and AGL frameworks<BR>- FTGL should not use the X11 GL either<BR>- freetype and FTGL are linked statically<BR><BR><BR><DIV> <SPAN class="gmail_quote">On 8/10/06, <B class="gmail_sendername">IOhannes m zmoelnig</B> &lt;<A href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</A>&gt; wrote:</SPAN><BLOCKQUOTE class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> hi.<BR><BR>i recently played a bit with a G5 and tried to compile Gem on OS-X<BR>(10.4.7) via the autoconf system.<BR><BR>good news:<BR><BR>basically changing the line dealing with "-bundle" in configure(.ac) did <BR>the trick; it is already in the CVS (plus some minor changes, which<BR>should the use of configure a bit simpler; like "--with-pd" not pointing<BR>to the pd-executable anymore, but to the base path where both the <BR>pd-executable/library (./bin) and the headers (./src) can be found)<BR><BR><BR>i only forgot about ftgl-support, which i did today, trying to make<BR>everything from the command-line (which might - or not - be important <BR>for the hans's autobuild system; basically i believe that freetype2 and<BR>ftgl should not be included in the nightly builds, as they are virtually<BR>never-changing; so they could be built via some IDE like xcode once and <BR>then the building of Gem would run without gui)<BR></BLOCKQUOTE></DIV></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV>With the auto-builds, it has to be in CVS or the OS's package system(Fink for OSX). It has to be this way, otherwise its far too much work to maintain.  I think FTGL and freetype2 are in Debian, but they are not in Fink, and I don't know about Ubuntu, Fedora Core, or PlanetCCRMA.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Anything in CVS will be built from scratch every night.  The source is rsync'ed against a clean copy every night, so all binaries are wiped clean.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>For MinGW, they can be built from source outside of CVS since there is no other option,  I am already maintaining a list of working sources.  They will need to install with one or two commands, like "./configure &amp;&amp; make install" or just a "make install", otherwise they need to be in CVS.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>.hc</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR><BLOCKQUOTE type="cite"><DIV><BLOCKQUOTE class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><BR>all in all, it was not hard to do, and here is how i did it:<BR><BR>### START<BR><BR>## i have ${GEMROOT}/Gem/src/ and ${GEMROOT}/GemLibs/<BR>$&gt; export GEMROOT=/Users/zmoelnig/src/pd-gem <BR>## ${PDPATH}/src/m_pd.h<BR>$&gt; export PDPATH=/Users/zmoelnig/src/pure-data/pd<BR>## openGL-headers are in ${X11OPENGL}/GL/gl.h<BR>$&gt; export X11OPENGL=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/<BR><BR>$&gt; cd ${GEMROOT}/GemLibs <BR><BR>## freetype2<BR><BR>$&gt; wget<BR><A href="http://download.savannah.gnu.org/releases/freetype/freetype-2.2.1.tar.bz2">http://download.savannah.gnu.org/releases/freetype/freetype-2.2.1.tar.bz2</A><BR>$&gt; tar xvzf freetype-2.2.1.tar.bz2<BR>$&gt; cd ${GEMROOT}/freetype-2.2.1/<BR>$&gt; ./configure<BR>$&gt; make<BR>## this installs freetype2 into /usr/local/:<BR>$&gt; sudo make install<BR><BR>## since FTGL's build system needs to run freetype-config, we <BR>## need /usr/local/bin in our path<BR>$&gt; export PATH=$PATH:/usr/local/bin<BR><BR>## FTGL<BR><BR>$&gt; wget <A href="http://opengl.geek.nz/ftgl/ftgl-2.1.2.tar.gz">http://opengl.geek.nz/ftgl/ftgl-2.1.2.tar.gz</A><BR> $&gt; tar xvzf ftgl-2.1.2.tar.gz<BR>$&gt; cd ${GEMROOT}/FTGL/unix<BR>$&gt; ./configure --with-ft-prefix=/usr/local/<BR>--with-gl-inc=${X11OPENGL}/include/ --with-gl-lib=${X11OPENGL}/lib/<BR>$&gt; make<BR><BR>## allright, that's it; we don't have to do the above for months, <BR>## probably years!<BR><BR>## here's how i compiled Gem with the above settings<BR><BR>$&gt; export PKG_FTGL_CFLAGS="-I${GEMROOT}/GemLibs/FTGL/include/<BR>$(freetype-config --cflags)"<BR>$&gt; export PKG_FTGL_LIBS="$(freetype-config --libs) <BR>${GEMLIBS}/GemLibs/FTGL/unix/src/.libs/libftgl.a"<BR>$&gt; ./configure --with-pd=${PDPATH}<BR>$&gt; make<BR><BR><BR>### END<BR><BR><BR>(actually i didn't use "export" for the PKG_FTGL_... vars, but set them <BR>in the same line as calling configure:<BR><BR>$&gt; PKG_FTGL_CFLAGS="-I${GEMROOT}/GemLibs/FTGL/include/ $(freetype-config<BR>--cflags)" PKG_FTGL_LIBS="$(freetype-config --libs)<BR>${GEMLIBS}/GemLibs/FTGL/unix/src/.libs/libftgl.a" ./configure <BR>--with-pd=${PDPATH}<BR><BR>i haven't yet spotted any problems with my built (but probably i have<BR>linked the freetype2-lib dynamically, which i guess i should NOT do.<BR>what is the standard tool on os-x to find out the dll-dependencies of a <BR>binary? something like "ldd" on linux.<BR><BR><BR>mf.asdr.<BR>IOhannes<BR><BR>_______________________________________________<BR>GEM-dev mailing list<BR><A href="mailto:GEM-dev@iem.at">GEM-dev@iem.at</A><BR> <A href="http://lists.puredata.info/listinfo/gem-dev">http://lists.puredata.info/listinfo/gem-dev</A><BR></BLOCKQUOTE></DIV><BR><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">GEM-dev mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:GEM-dev@iem.at">GEM-dev@iem.at</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.puredata.info/listinfo/gem-dev">http://lists.puredata.info/listinfo/gem-dev</A></DIV> </BLOCKQUOTE></DIV><BR></BODY></HTML>