Hello all,
I'm trying to compile Gem from git on osx 10.9.2 intel i7. I was used to compile it on osx 10.6.8 with an Intel Core 2 duo with success. I tried to do it from a fresh install:
$ git clone git://git.code.sf.net/p/pd-gem/gem
first question: is this the good repository if I want a dev version of Gem? (Iohannes you said sourceforge, but I don't know which sourceforge repo...) then:
$ cd gem $ ./autogen.sh
now i configure for a 32bit output and I desactivate ftgl for a first step:
$ ./configure --without-ftgl --enable-fat-binary=i386
then make, it stops with these errors:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DGEM_INTERNAL -DGLEW_BUILD -g -O2 -MT glew.lo -MD -MP -MF .deps/glew.Tpo -c glew.c -o glew.o >/dev/null 2>&1 mv -f .deps/glew.Tpo .deps/glew.Plo /bin/sh ../../libtool --tag=CXX --mode=link g++ -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -g -O2 -Os -ffast-math -mmmx -fpascal-strings -arch i386 -framework QuickTime -framework Carbon -framework Cocoa -framework AGL -o libGem.la glew.lo libGem_la-Cache.lo libGem_la-ContextData.lo libGem_la-Dylib.lo libGem_la-Event.lo libGem_la-Exception.lo libGem_la-Files.lo libGem_la-GLStack.lo libGem_la-Image.lo libGem_la-ImageLoad.lo libGem_la-ImageSave.lo libGem_la-PixConvertAltivec.lo libGem_la-PixConvertSSE2.lo libGem_la-Loaders.lo libGem_la-Manager.lo libGem_la-PBuffer.lo libGem_la-Properties.lo libGem_la-Rectangle.lo libGem_la-Settings.lo libGem_la-Setup.lo libGem_la-State.lo -L/Applications/Pd-extended.app/Contents/Resources/bin -ldl -lz -lm libtool: link: ar cru .libs/libGem.a .libs/glew.o .libs/libGem_la-Cache.o .libs/libGem_la-ContextData.o .libs/libGem_la-Dylib.o .libs/libGem_la-Event.o .libs/libGem_la-Exception.o .libs/libGem_la-Files.o .libs/libGem_la-GLStack.o .libs/libGem_la-Image.o .libs/libGem_la-ImageLoad.o .libs/libGem_la-ImageSave.o .libs/libGem_la-PixConvertAltivec.o .libs/libGem_la-PixConvertSSE2.o .libs/libGem_la-Loaders.o .libs/libGem_la-Manager.o .libs/libGem_la-PBuffer.o .libs/libGem_la-Properties.o .libs/libGem_la-Rectangle.o .libs/libGem_la-Settings.o .libs/libGem_la-Setup.o .libs/libGem_la-State.o /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive member: .libs/libGem.a(libGem_la-Cache.o) cputype (7) does not match previous archive members cputype (16777223) (all members must match) /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive member: .libs/libGem.a(libGem_la-ContextData.o) cputype (7) does not match previous archive members cputype (16777223) (all members must match) [...] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive member: .libs/libGem.a(libGem_la-State.o) cputype (7) does not match previous archive members cputype (16777223) (all members must match) /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: for architecture: i386 file: .libs/libGem.a(libGem_la-PixConvertAltivec.o) has no symbols make[3]: *** [libGem.la] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all] Error 2 make: *** [all-recursive] Error 1
-----------------------------------------
if I try to look at the architecture of the file: $ file src/Gem/.libs/* src/Gem/.libs/glew.o: Mach-O 64-bit object x86_64 src/Gem/.libs/libGem.a: Mach-O universal binary with 2 architectures src/Gem/.libs/libGem.a (for architecture x86_64): current ar archive random library src/Gem/.libs/libGem.a (for architecture i386): current ar archive random library src/Gem/.libs/libGem_la-Cache.o: Mach-O object i386 src/Gem/.libs/libGem_la-ContextData.o: Mach-O object i386 src/Gem/.libs/libGem_la-Dylib.o: Mach-O object i386 src/Gem/.libs/libGem_la-Event.o: Mach-O object i386 src/Gem/.libs/libGem_la-Exception.o: Mach-O object i386 src/Gem/.libs/libGem_la-Files.o: Mach-O object i386 src/Gem/.libs/libGem_la-GLStack.o: Mach-O object i386 src/Gem/.libs/libGem_la-Image.o: Mach-O object i386 src/Gem/.libs/libGem_la-ImageLoad.o: Mach-O object i386 src/Gem/.libs/libGem_la-ImageSave.o: Mach-O object i386 src/Gem/.libs/libGem_la-Loaders.o: Mach-O object i386 src/Gem/.libs/libGem_la-Manager.o: Mach-O object i386 src/Gem/.libs/libGem_la-PBuffer.o: Mach-O object i386 src/Gem/.libs/libGem_la-PixConvertAltivec.o: Mach-O object i386 src/Gem/.libs/libGem_la-PixConvertSSE2.o: Mach-O object i386 src/Gem/.libs/libGem_la-Properties.o: Mach-O object i386 src/Gem/.libs/libGem_la-Rectangle.o: Mach-O object i386 src/Gem/.libs/libGem_la-Settings.o: Mach-O object i386 src/Gem/.libs/libGem_la-Setup.o: Mach-O object i386 src/Gem/.libs/libGem_la-State.o: Mach-O object i386
It seems the arch of glew.o is not good, as we can see on the compilation line before, the "--enable-fat-binary=i386" flag to configure doesn't seem to pass the arch flag to the c compiler.
----------------------------------------- I tried forcing the c compiler in 32bits:
$ CFLAGS="-arch i386" ./configure --without-ftgl --enable-fat-binary=i386
It is now passing the precedent step and stops on new errors, the first one is:
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DGEM_INTERNAL -DGLEW_BUILD -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -g -O2 -Os -ffast-math -mmmx -fpascal-strings -MT libBase_la-GemVertex.lo -MD -MP -MF .deps/libBase_la-GemVertex.Tpo -c GemVertex.cpp -o libBase_la-GemVertex.o >/dev/null 2>&1 TextBaseNone.cpp:25:13: error: constructor for 'TextBase' must explicitly initialize the member 'm_infoOut' which does not have a default constructor TextBase :: TextBase(int argc, t_atom *argv){ ^ ./TextBase.h:205:20: note: member is declared here gem::RTE::Outlet m_infoOut; ^ ../../src/RTE/Outlet.h:22:22: note: 'gem::RTE::Outlet' declared here class GEM_EXTERN Outlet { ^ 1 error generated.
-----------------------------------------
I'm not sure if it's related to the errors m.grimm had before but I thought these errors were corrected now. Does someone know how I can correct these errors, and compile Gem?
Tell me if I can provide files or output to help.
Thanks in advance,
n
On 04/22/2014 10:52 AM, Nicolas Montgermont wrote:
Hello all,
I'm trying to compile Gem from git on osx 10.9.2 intel i7. I was used to compile it on osx 10.6.8 with an Intel Core 2 duo with success. I tried to do it from a fresh install:
$ git clone git://git.code.sf.net/p/pd-gem/gem
first question: is this the good repository if I want a dev version of Gem? (Iohannes you said sourceforge, but I don't know which sourceforge repo...)
you are using the correct repo on sf (there's only a single git repository for Gem on sf i know of)
then:
$ cd gem $ ./autogen.sh
ok.
now i configure for a 32bit output and I desactivate ftgl for a first step:
$ ./configure --without-ftgl --enable-fat-binary=i386
ok.
then make, it stops with these errors:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DGEM_INTERNAL -DGLEW_BUILD -g -O2 -MT glew.lo -MD -MP -MF .deps/glew.Tpo -c glew.c -o glew.o >/dev/null 2>&1 mv -f .deps/glew.Tpo .deps/glew.Plo
this compiles one of the sources (glew.c) for the native arch (amd64) instead of the requested arch (i386). which in turn leads to:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive member: .libs/libGem.a(libGem_la-Cache.o) cputype (7) does not match previous archive members cputype (16777223) (all members must match)
i'll try to commit a fix for that.
TextBaseNone.cpp:25:13: error: constructor for 'TextBase' must explicitly initialize the member 'm_infoOut' which does not have a default constructor
ah ok, i'll commit a fix for that as well...
please update your clone.
gf,adsr IOhannes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Le 22/04/2014 18:08, IOhannes m zmölnig a écrit :
please update your clone. gf,adsr IOhannes
thanks the fix seems to work. Now the compilation stops at:
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DGEM_INTERNAL -DGLEW_BUILD -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -g -O2 -Os -ffast-math -mmmx -fpascal-strings -MT libBase_la-GemWinCreateMac.lo -MD -MP -MF .deps/libBase_la-GemWinCreateMac.Tpo -c -o libBase_la-GemWinCreateMac.lo `test -f 'GemWinCreateMac.cpp' || echo './'`GemWinCreateMac.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DGEM_INTERNAL -DGLEW_BUILD -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -g -O2 -Os -ffast-math -mmmx -fpascal-strings -MT libBase_la-GemWinCreateMac.lo -MD -MP -MF .deps/libBase_la-GemWinCreateMac.Tpo -c GemWinCreateMac.cpp -fno-common -DPIC -o .libs/libBase_la-GemWinCreateMac.o
There is a lot of warnings (mostly "deprecated"), here are the errors: - ----------------------------------------------
GemWinCreateMac.cpp:209:9: error: use of undeclared identifier 'DMGetFirstScreenDevice' hGD = DMGetFirstScreenDevice (true); // check number of screens ^ GemWinCreateMac.cpp:259:8: error: use of undeclared identifier 'DMGetNextScreenDevice' hGD = DMGetNextScreenDevice (hGD, true); ^ GemWinCreateMac.cpp:268:5: error: use of undeclared identifier 'SetRect' SetRect(&info.r, ^ GemWinCreateMac.cpp:298:15: error: use of undeclared identifier 'DMGetNextScreenDevice' hGD = DMGetNextScreenDevice (hGD, true); ^ GemWinCreateMac.cpp:334:5: error: use of undeclared identifier 'SetRect' SetRect(&info.r, ^ GemWinCreateMac.cpp:476:7: error: no member named 'UnlockPixels' in the global namespace ::UnlockPixels(info.pixMap); ~~^ GemWinCreateMac.cpp:477:7: error: no member named 'DisposeGWorld' in the global namespace ::DisposeGWorld(info.offscreen); ~~^ GemWinCreateMac.cpp:504:5: error: use of undeclared identifier 'ShowCursor' ShowCursor(); ^ GemWinCreateMac.cpp:506:5: error: use of undeclared identifier 'HideCursor' HideCursor(); ^ GemWinCreateMac.cpp:632:3: error: use of undeclared identifier 'GetPort'; did you mean 'CFRunLoopSourceContext1::getPort'? GetPort (&cgrafSave); ^~~~~~~ CFRunLoopSourceContext1::getPort /System/Library/Frameworks/CoreFoundation.framework/Headers/CFRunLoop.h:105:19: note: 'CFRunLoopSourceContext1::getPort' declared here mach_port_t (*getPort)(void *info); ^ GemWinCreateMac.cpp:632:3: error: invalid use of non-static data member 'getPort' GetPort (&cgrafSave); ^~~~~~~ GemWinCreateMac.cpp:778:13: error: use of undeclared identifier 'GetMainDevice' hGD = GetMainDevice (); ^ GemWinCreateMac.cpp:784:14: error: use of undeclared identifier 'DMGetFirstScreenDevice' hDevice = DMGetFirstScreenDevice (true); ^ GemWinCreateMac.cpp:789:18: error: use of undeclared identifier 'DMGetNextScreenDevice' hDevice = DMGetNextScreenDevice (hDevice, true); ^ GemWinCreateMac.cpp:807:10: error: use of undeclared identifier 'DMGetFirstScreenDevice' hGD = DMGetFirstScreenDevice (true); ^ GemWinCreateMac.cpp:810:27: error: use of undeclared identifier 'DMGetNextScreenDevice' GDHandle hGDNext = DMGetNextScreenDevice (hGD, true); ^ GemWinCreateMac.cpp:828:13: error: use of undeclared identifier 'DMGetFirstScreenDevice' hGD = DMGetFirstScreenDevice (true); ^ GemWinCreateMac.cpp:836:14: error: use of undeclared identifier 'DMGetNextScreenDevice' hGD = DMGetNextScreenDevice (hGD, true); ^ GemWinCreateMac.cpp:1086:18: error: use of undeclared identifier 'GetDeviceList' GDHandle hGD = GetDeviceList (); // get the first screen fatal error: too many errors emitted, stopping now [-ferror-limit=] 93 warnings and 20 errors generated. make[3]: *** [libBase_la-GemWinCreateMac.lo] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all] Error 2 make: *** [all-recursive] Error 1
- ----------------------------------------------
thanks in advance, n
- -- http://www.nimon.org
On 04/23/2014 09:41 PM, Nicolas Montgermont wrote:
Le 22/04/2014 18:08, IOhannes m zmölnig a écrit :
please update your clone. gf,adsr IOhannes
thanks the fix seems to work. Now the compilation stops at:
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DGEM_INTERNAL -DGLEW_BUILD -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -g -O2 -Os -ffast-math -mmmx -fpascal-strings -MT libBase_la-GemWinCreateMac.lo -MD -MP -MF .deps/libBase_la-GemWinCreateMac.Tpo -c -o libBase_la-GemWinCreateMac.lo `test -f 'GemWinCreateMac.cpp' || echo './'`GemWinCreateMac.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DGEM_INTERNAL -DGLEW_BUILD -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -g -O2 -Os -ffast-math -mmmx -fpascal-strings -MT libBase_la-GemWinCreateMac.lo -MD -MP -MF .deps/libBase_la-GemWinCreateMac.Tpo -c GemWinCreateMac.cpp -fno-common -DPIC -o .libs/libBase_la-GemWinCreateMac.o
There is a lot of warnings (mostly "deprecated"), here are the errors:
well, this basically means that the windowing code as found in src/Base/GemWinCreateMac.cpp has reached it's end of life, even when doing a legacy i386-only build.
it's probably time to entirely remove the old legacy windowing code, and switch to the new one found in src/Output.
i *guess* the easiest way to do so (for you, right now), is to simply: - remove the line containing GemWinCreateMac.cpp from src/Base/Makefile.am - remove the line containing gemwin.cpp from src/Control/Makefile.am
- add Gem's abstractions (containing gemwin.pd and the like) to your search-path
gfmrdsa IOhannes
Le 24/04/2014 15:52, IOhannes m zmölnig a écrit :
well, this basically means that the windowing code as found in src/Base/GemWinCreateMac.cpp has reached it's end of life, even when doing a legacy i386-only build.
it's probably time to entirely remove the old legacy windowing code, and switch to the new one found in src/Output.
i *guess* the easiest way to do so (for you, right now), is to simply:
remove the line containing GemWinCreateMac.cpp from src/Base/Makefile.am
remove the line containing gemwin.cpp from src/Control/Makefile.am
add Gem's abstractions (containing gemwin.pd and the like) to your
search-path
I tried that.
-- first comment (as seen by m.grimm) this error:
videoBase.cpp:426:3: error: use of undeclared identifier 'select' select(0,0,0,0,&sleep);
can be corrected by modifying the beginning of the file
#ifdef HAVE_SYS_SELECT_H # include <sys/select.h> #endif
it works by adding
# include <sys/select.h>
outside of the test but i don't understand it because in my config.h i have #define HAVE_SYS_SELECT_H 1
------------------------------------------------------------------
second comment even if i configure with "--without-ftgl" I have errors on text related objects, for example: TextBaseFTGL.cpp:57:3: error: member initializer 'm_font' does not name a non-static data member or base class m_font(NULL), m_fontname(NULL) ^~~~~~~~~~~~ TextBaseFTGL.cpp:57:17: error: initializer 'm_fontname' does not name a non-static data member or base class; did you mean the member 'm_fontSize'? m_font(NULL), m_fontname(NULL) ^~~~~~~~~~ m_fontSize ./TextBase.h:166:10: note: 'm_fontSize' declared here float m_fontSize; ^ TextBaseFTGL.cpp:57:28: warning: implicit conversion of NULL constant to 'float' [-Wnull-conversion] m_font(NULL), m_fontname(NULL) ~^~~~ 0.0 TextBaseFTGL.cpp:57:17: error: multiple initializations given for non-static member 'm_fontSize' m_font(NULL), m_fontname(NULL) ^~~~~~~~~~~~~~~~ TextBaseFTGL.cpp:53:26: note: previous initialization is here m_dist(1), m_valid(0), m_fontSize(20), m_fontDepth(20), m_precision(3.f), ^~~~~~~~~~~~~~ TextBaseFTGL.cpp:71:18: error: out-of-line definition of 'startRendering' does not match any declaration in 'TextBase' void TextBase :: startRendering(void) { ^~~~~~~~~~~~~~ TextBaseFTGL.cpp:72:12: error: use of undeclared identifier 'm_font' if(NULL==m_font) { ^ TextBaseFTGL.cpp:73:8: error: use of undeclared identifier 'm_fontname' if(m_fontname) ^ TextBaseFTGL.cpp:74:20: error: use of undeclared identifier 'm_fontname' fontNameMess(m_fontname->s_name); ^ TextBaseFTGL.cpp:83:18: error: out-of-line definition of 'renderLine' does not match any declaration in 'TextBase' void TextBase :: renderLine(const char*line, float dist) { ^~~~~~~~~~ TextBaseFTGL.cpp:85:3: error: use of undeclared identifier 'm_font' m_font->BBox(line, x1, y1, z1, x2, y2, z2); // FTGL ^ TextBaseFTGL.cpp:94:3: error: use of undeclared identifier 'm_font' m_font->Render(line); ^ TextBaseFTGL.cpp:98:18: error: out-of-line definition of 'renderLine' does not match any declaration in 'TextBase' void TextBase :: renderLine(const wchar_t*line, float dist) { ^~~~~~~~~~ TextBaseFTGL.cpp:100:3: error: use of undeclared identifier 'm_font' m_font->BBox(line, x1, y1, z1, x2, y2, z2); // FTGL ^ TextBaseFTGL.cpp:109:3: error: use of undeclared identifier 'm_font' m_font->Render(line); ^ TextBaseFTGL.cpp:116:29: error: use of undeclared identifier 'm_font' if (m_theText.empty() || !m_font)return; ^ TextBaseFTGL.cpp:171:6: error: use of undeclared identifier 'm_font' if(m_font)delete m_font; m_font=NULL; ^ TextBaseFTGL.cpp:171:20: error: use of undeclared identifier 'm_font' if(m_font)delete m_font; m_font=NULL; ^ TextBaseFTGL.cpp:171:28: error: use of undeclared identifier 'm_font' if(m_font)delete m_font; m_font=NULL; ^ TextBaseFTGL.cpp:172:3: error: use of undeclared identifier 'm_font' m_font=makeFont(bufptr); ^ TextBaseFTGL.cpp:172:10: error: use of undeclared identifier 'makeFont' m_font=makeFont(bufptr); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DGEM_INTERNAL -DGLEW_BUILD -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -g -O2 -Os -ffast-math -mmmx -fpascal-strings -MT libBase_la-TextBaseNone.lo -MD -MP -MF .deps/libBase_la-TextBaseNone.Tpo -c TextBaseNone.cpp -o libBase_la-TextBaseNone.o >/dev/null 2>&1 1 warning and 20 errors generated. make[3]: *** [libBase_la-TextBaseFTGL.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... or:
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DGEM_INTERNAL -DGLEW_BUILD -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -g -O2 -Os -ffast-math -mmmx -fpascal-strings -MT libGeos_la-text2d.lo -MD -MP -MF .deps/libGeos_la-text2d.Tpo -c text2d.cpp -fno-common -DPIC -o .libs/libGeos_la-text2d.o text2d.cpp:143:16: error: out-of-line definition of 'render' does not match any declaration in 'text2d' void text2d :: render(GemState*){} ^~~~~~ 1 error generated.
------------------------------------------------------------------
third: if i try make -k to get through the text errors, i have a few errors in imageQT and filmDarwin
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -framework QuickTime -g -O2 -Os -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../../src -I../../src -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -framework QuickTime -g -O2 -Os -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:267:5: error: no member named 'OffsetRect' in the global namespace ::OffsetRect(&r, -r.left, -r.top); ~~^ imageQT.cpp:323:5: error: no type named 'DisposeGWorld' in the global namespace ::DisposeGWorld(gw); //dispose the offscreen ~~^
with a few more in filmDarwin, filmQT and videoDarwin:
filmDarwin.cpp:188:42: error: use of undeclared identifier 'GetGWorldDevice' ::SetMovieGWorld(m_movie, m_srcGWorld, GetGWorldDevice(m_srcGWorld)); ^ filmDarwin.cpp:206:5: error: no member named 'GetGWorld' in the global namespace ::GetGWorld(&savedPort, &savedDevice); ~~^ filmDarwin.cpp:207:5: error: no member named 'SetGWorld' in the global namespace ::SetGWorld(m_srcGWorld, NULL); ~~^ filmDarwin.cpp:208:5: warning: 'GetMovieBox' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations] ::GetMovieBox(m_movie, &m_srcRect); ^ /System/Library/Frameworks/QuickTime.framework/Headers/Movies.h:2550:1: note: 'GetMovieBox' declared here GetMovieBox( ^ filmDarwin.cpp:210:16: error: no member named 'GetGWorldPixMap' in the global namespace m_pixMap = ::GetGWorldPixMap(m_srcGWorld); ~~^
------------------------------------------------------------------
finally in the output folder i have more or less the same errors than before, but this time in gemmacwindow.cpp:
libtool: link: g++ -Wl,-undefined -Wl,dynamic_lookup -o .libs/gemglutwindow.pd_darwin -bundle .libs/gemglutwindow_la-gemglutwindow.o -lstdc++ -framework QuickTime -framework Carbon -framework Cocoa -framework AGL -L/Applications/Pd-extended.app/Contents/Resources/bin -L../.. -framework GLUT -framework OpenGL -ldl -lz -lm -arch i386 -O2 -Os -mmmx -arch i386 -framework QuickTime -framework Carbon -framework Cocoa -framework AGL -framework GLUT -framework OpenGL libtool: link: ( cd ".libs" && rm -f "gemglutwindow.la" && ln -s "../gemglutwindow.la" "gemglutwindow.la" ) /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -g -O2 -Os -ffast-math -mmmx -fpascal-strings -MT gemmacwindow_la-gemmacwindow.lo -MD -MP -MF .deps/gemmacwindow_la-gemmacwindow.Tpo -c -o gemmacwindow_la-gemmacwindow.lo `test -f 'gemmacwindow.cpp' || echo './'`gemmacwindow.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -g -O2 -Os -ffast-math -mmmx -fpascal-strings -MT gemmacwindow_la-gemmacwindow.lo -MD -MP -MF .deps/gemmacwindow_la-gemmacwindow.Tpo -c gemmacwindow.cpp -fno-common -DPIC -o .libs/gemmacwindow_la-gemmacwindow.o [...] gemmacwindow.cpp:269:3: error: use of undeclared identifier 'GetPort'; did you mean 'CFRunLoopSourceContext1::getPort'? GetPort (&cgrafSave); ^~~~~~~ CFRunLoopSourceContext1::getPort /System/Library/Frameworks/CoreFoundation.framework/Headers/CFRunLoop.h:105:19: note: 'CFRunLoopSourceContext1::getPort' declared here mach_port_t (*getPort)(void *info); ^ gemmacwindow.cpp:269:3: error: invalid use of non-static data member 'getPort' GetPort (&cgrafSave); ^~~~~~~
gemmacwindow.cpp:388:13: error: use of undeclared identifier 'GetMainDevice' hGD = GetMainDevice (); ^ gemmacwindow.cpp:394:21: error: use of undeclared identifier 'DMGetFirstScreenDevice' hDevice = DMGetFirstScreenDevice (true); ^ gemmacwindow.cpp:399:25: error: use of undeclared identifier 'DMGetNextScreenDevice' hDevice = DMGetNextScreenDevice (hDevice, true); ^ gemmacwindow.cpp:417:17: error: use of undeclared identifier 'DMGetFirstScreenDevice' hGD = DMGetFirstScreenDevice (true); ^ gemmacwindow.cpp:420:34: error: use of undeclared identifier 'DMGetNextScreenDevice' GDHandle hGDNext = DMGetNextScreenDevice (hGD, true); ^ gemmacwindow.cpp:438:13: error: use of undeclared identifier 'DMGetFirstScreenDevice' hGD = DMGetFirstScreenDevice (true); ^ gemmacwindow.cpp:446:21: error: use of undeclared identifier 'DMGetNextScreenDevice' hGD = DMGetNextScreenDevice (hGD, true); ^ [...]
Is this solvable somehow? I make a branch on github to track changes to compile on osx. Thanks in advance and sorry for this long mail n
On 04/25/2014 11:44 AM, Nicolas Montgermont wrote:
Le 24/04/2014 15:52, IOhannes m zmölnig a écrit :
first comment (as seen by m.grimm) this error:
videoBase.cpp:426:3: error: use of undeclared identifier 'select' select(0,0,0,0,&sleep);
[...]
outside of the test but i don't understand it because in my config.h i have #define HAVE_SYS_SELECT_H 1
because i have stupidly forgotten to actually *include* the config.h; should be fixed now.
second comment even if i configure with "--without-ftgl" I have errors on text related objects, for example: TextBaseFTGL.cpp:57:3: error: member initializer 'm_font' does not name
indeed. i hopefully fixed the issue by disabling compilation of TextBaseFTGL if FTGL was disabled. this should have been done all along...
if i try make -k to get through the text errors, i have a few errors in imageQT and filmDarwin
to be expected.
finally in the output folder i have more or less the same errors than before, but this time in gemmacwindow.cpp:
yes, to be expected as well. [gemmacwindow] is really just a port of the original windowing code to a standalong external. the trick is, that there are now alternative [gemwindow] implementations, that should succeed to compile, one (or some or all) of: - [gemcocoawindow] - [gemglutwindow] and less likely (depending on 3rd party libs) - [gemsdlwindow] - [gemglfwindow] - [gemglfw3window]
fmsadr IOhannes
On 05/08/2014 12:10 PM, IOhannes m zmölnig wrote:
the trick is, that there are now alternative [gemwindow] implementations, that should succeed to compile, one (or some or all) of:
well, of course they will only succeed to compile if run with the "-k" flag: $ make -k -C src/Output
(as the failure to build [gemmacwindow] would otherwise prevent those externals to be created)
gfrdsa IOhannes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hello Iohannes,
Nothing compiling still. A resume of what I am doing (because I'm a bit lost myself...) - - get a fresh copy (or make clean dist) - - ./autogen.sh - - remove the line containing GemWinCreateMac.cpp from src/Base/Makefile.am - - remove the line containing gemwin.cpp from src/Control/Makefile.am - - ./configure --without-ftgl --enable-fat-binary=i386 - - make -k [1] and tried - - make -k -C src/Output [2]
the [1] gives me: - --------------------------------------- * first error:
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DGEM_INTERNAL -DGLEW_BUILD -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -w -Os -ffast-math -mmmx -fpascal-strings -MT libGeos_la-GemSplash.lo -MD -MP -MF .deps/libGeos_la-GemSplash.Tpo -c GemSplash.cpp -o libGeos_la-GemSplash.o >/dev/null 2>&1 text2d.cpp:143:16: error: out-of-line definition of 'render' does not match any declaration in 'text2d' void text2d :: render(GemState*){} ^~~~~~ 1 error generated. make[3]: *** [libGeos_la-text2d.lo] Error 1
so the problem is not solved totally
- ------------------------------------- * then errors in imageQT, filmDarwin, .... as I said before * and the errors in gemmacwindow.cpp as i said before
- --------------------------------------- the [2] gives me the same errors about gemmacwindow.cpp so it means I don't need to do it separately, it's already included in the main compilation, right?
In the output folder, it builds:
- -rw-r--r-- 1 nix staff 1104 22 mai 17:34 gemcocoawindow.la - -rw-r--r-- 1 nix staff 348 22 mai 17:34 gemcocoawindow_la-gemcocoawindow.lo - -rw-r--r-- 1 nix staff 27804 22 mai 17:34 gemcocoawindow_la-gemcocoawindow.o - -rw-r--r-- 1 nix staff 1133 22 mai 17:33 gemglutwindow.la - -rw-r--r-- 1 nix staff 342 22 mai 17:33 gemglutwindow_la-gemglutwindow.lo - -rw-r--r-- 1 nix staff 29920 22 mai 17:33 gemglutwindow_la-gemglutwindow.o - -rw-r--r-- 1 nix staff 23826 8 mai 14:22 gemglxwindow.cpp
How can I try to compile Gem against one of these, instead of gemmacwindow?
Thanks, Nicolas
Le 08/05/2014 12:13, IOhannes m zmölnig a écrit :
On 05/08/2014 12:10 PM, IOhannes m zmölnig wrote:
the trick is, that there are now alternative [gemwindow] implementations, that should succeed to compile, one (or some or all) of:
well, of course they will only succeed to compile if run with the "-k"
flag:
$ make -k -C src/Output
(as the failure to build [gemmacwindow] would otherwise prevent those externals to be created)
gfrdsa IOhannes
GEM-dev mailing list GEM-dev@iem.at http://lists.puredata.info/listinfo/gem-dev
- -- http://www.nimon.org
On 05/22/2014 05:48 PM, Nicolas Montgermont wrote:
How can I try to compile Gem against one of these, instead of gemmacwindow?
these are externals, so you should have e.g. gemglutwindow.pd_darwin in Gem/.
i will try to have a look at the other text issues within the next few days.
once you do have a Gem.pd_darwin and a gem*window.pd_darwin, you should proceed as follows:
- add Gem/abstractions/ to your path - you might have to use [./gemwin] instead of [gemwin] (or disable gemwin.cpp in Gem/src/Control/Makefile.am)
gmdasrd IOhannes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Le 22/05/2014 19:21, IOhannes m zmölnig a écrit :
On 05/22/2014 05:48 PM, Nicolas Montgermont wrote:
How can I try to compile Gem against one of these, instead of
gemmacwindow?
these are externals, so you should have e.g. gemglutwindow.pd_darwin in
No I don't have any *.pd_darwin in Gem/ or elsewhere... Here is my log of the compilation of the src/Output folder (I'm using -w so there is no warnings) - --------------------------------------------
Making all in src/Output /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -w -Os -ffast-math -mmmx -fpascal-strings -MT gemcocoawindow_la-gemcocoawindow.lo -MD -MP -MF .deps/gemcocoawindow_la-gemcocoawindow.Tpo -c -o gemcocoawindow_la-gemcocoawindow.lo `test -f 'gemcocoawindow.mm' || echo './'`gemcocoawindow.mm /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -D_THREAD_SAFE -w -Os -ffast-math -mmmx -fpascal-strings -MT gemglutwindow_la-gemglutwindow.lo -MD -MP -MF .deps/gemglutwindow_la-gemglutwindow.Tpo -c -o gemglutwindow_la-gemglutwindow.lo `test -f 'gemglutwindow.cpp' || echo './'`gemglutwindow.cpp /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -w -Os -ffast-math -mmmx -fpascal-strings -MT gemmacwindow_la-gemmacwindow.lo -MD -MP -MF .deps/gemmacwindow_la-gemmacwindow.Tpo -c -o gemmacwindow_la-gemmacwindow.lo `test -f 'gemmacwindow.cpp' || echo './'`gemmacwindow.cpp UNUSED SOURCES: libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -w -Os -ffast-math -mmmx -fpascal-strings -MT gemcocoawindow_la-gemcocoawindow.lo -MD -MP -MF .deps/gemcocoawindow_la-gemcocoawindow.Tpo -c gemcocoawindow.mm -fno-common -DPIC -o .libs/gemcocoawindow_la-gemcocoawindow.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -w -Os -ffast-math -mmmx -fpascal-strings -MT gemmacwindow_la-gemmacwindow.lo -MD -MP -MF .deps/gemmacwindow_la-gemmacwindow.Tpo -c gemmacwindow.cpp -fno-common -DPIC -o .libs/gemmacwindow_la-gemmacwindow.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -D_THREAD_SAFE -w -Os -ffast-math -mmmx -fpascal-strings -MT gemglutwindow_la-gemglutwindow.lo -MD -MP -MF .deps/gemglutwindow_la-gemglutwindow.Tpo -c gemglutwindow.cpp -fno-common -DPIC -o .libs/gemglutwindow_la-gemglutwindow.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -D_THREAD_SAFE -w -Os -ffast-math -mmmx -fpascal-strings -MT gemglutwindow_la-gemglutwindow.lo -MD -MP -MF .deps/gemglutwindow_la-gemglutwindow.Tpo -c gemglutwindow.cpp -o gemglutwindow_la-gemglutwindow.o >/dev/null 2>&1 gemmacwindow.cpp:269:3: error: use of undeclared identifier 'GetPort'; did you mean 'CFRunLoopSourceContext1::getPort'? GetPort (&cgrafSave); ^~~~~~~ CFRunLoopSourceContext1::getPort /System/Library/Frameworks/CoreFoundation.framework/Headers/CFRunLoop.h:105:19: note: 'CFRunLoopSourceContext1::getPort' declared here mach_port_t (*getPort)(void *info); ^ gemmacwindow.cpp:269:3: error: invalid use of non-static data member 'getPort' GetPort (&cgrafSave); ^~~~~~~ gemmacwindow.cpp:388:13: error: use of undeclared identifier 'GetMainDevice' hGD = GetMainDevice (); ^ gemmacwindow.cpp:394:21: error: use of undeclared identifier 'DMGetFirstScreenDevice' hDevice = DMGetFirstScreenDevice (true); ^ gemmacwindow.cpp:399:25: error: use of undeclared identifier 'DMGetNextScreenDevice' hDevice = DMGetNextScreenDevice (hDevice, true); ^ mv -f .deps/gemglutwindow_la-gemglutwindow.Tpo .deps/gemglutwindow_la-gemglutwindow.Plo /bin/sh ../../libtool --tag=CXX --mode=link g++ -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -D_THREAD_SAFE -w -Os -ffast-math -mmmx -fpascal-strings -module -avoid-version -shared -shrext .pd_darwin -arch i386 -framework QuickTime -framework Carbon -framework Cocoa -framework AGL -o gemglutwindow.la -rpath /usr/local/lib/pd/extra/Gem gemglutwindow_la-gemglutwindow.lo -L/Applications/Pd-extended.app/Contents/Resources/bin -L../.. -framework GLUT -framework OpenGL -lm -ldl -lz -lm gemmacwindow.cpp:417:17: error: use of undeclared identifier 'DMGetFirstScreenDevice' hGD = DMGetFirstScreenDevice (true); ^ gemmacwindow.cpp:420:34: error: use of undeclared identifier 'DMGetNextScreenDevice' GDHandle hGDNext = DMGetNextScreenDevice (hGD, true); ^ libtool: link: g++ -Wl,-undefined -Wl,dynamic_lookup -o .libs/gemglutwindow.pd_darwin -bundle .libs/gemglutwindow_la-gemglutwindow.o -lstdc++ -framework QuickTime -framework Carbon -framework Cocoa -framework AGL -L/Applications/Pd-extended.app/Contents/Resources/bin -L../.. -framework GLUT -framework OpenGL -ldl -lz -lm -arch i386 -Os -mmmx -arch i386 -framework QuickTime -framework Carbon -framework Cocoa -framework AGL -framework GLUT -framework OpenGL gemmacwindow.cpp:438:13: error: use of undeclared identifier 'DMGetFirstScreenDevice' hGD = DMGetFirstScreenDevice (true); ^ libtool: link: ( cd ".libs" && rm -f "gemglutwindow.la" && ln -s "../gemglutwindow.la" "gemglutwindow.la" ) gemmacwindow.cpp:446:21: error: use of undeclared identifier 'DMGetNextScreenDevice' hGD = DMGetNextScreenDevice (hGD, true); ^ gemmacwindow.cpp:696:18: error: use of undeclared identifier 'GetDeviceList' GDHandle hGD = GetDeviceList (); // get the first screen ^ libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -w -Os -ffast-math -mmmx -fpascal-strings -MT gemcocoawindow_la-gemcocoawindow.lo -MD -MP -MF .deps/gemcocoawindow_la-gemcocoawindow.Tpo -c gemcocoawindow.mm -o gemcocoawindow_la-gemcocoawindow.o >/dev/null 2>&1 gemmacwindow.cpp:759:13: error: use of undeclared identifier 'GetNextDevice' hGD = GetNextDevice (hGD); // get next device ^ gemmacwindow.cpp:924:3: error: use of undeclared identifier 'GetPort'; did you mean 'CFRunLoopSourceContext1::getPort'? GetPort (&pgpSave); ^~~~~~~ CFRunLoopSourceContext1::getPort /System/Library/Frameworks/CoreFoundation.framework/Headers/CFRunLoop.h:105:19: note: 'CFRunLoopSourceContext1::getPort' declared here mach_port_t (*getPort)(void *info); ^ gemmacwindow.cpp:924:3: error: invalid use of non-static data member 'getPort' GetPort (&pgpSave); ^~~~~~~ gemmacwindow.cpp:929:3: error: use of undeclared identifier 'LocalToGlobal' LocalToGlobal (reinterpret_cast<Point*>(& rectWind.top)); // convert to global coordinates ^ gemmacwindow.cpp:930:3: error: use of undeclared identifier 'LocalToGlobal' LocalToGlobal (reinterpret_cast<Point*>(& rectWind.bottom)); ^ gemmacwindow.cpp:931:18: error: use of undeclared identifier 'GetDeviceList' hgdNthDevice = GetDeviceList (); ^ gemmacwindow.cpp:937:46: error: use of undeclared identifier 'screenDevice' if (TestDeviceAttribute (hgdNthDevice, screenDevice)) ^ gemmacwindow.cpp:938:48: error: use of undeclared identifier 'screenActive' if (TestDeviceAttribute (hgdNthDevice, screenActive)) ^ gemmacwindow.cpp:944:13: error: use of undeclared identifier 'SectRect' SectRect (&rectWind, &(**hgdNthDevice).gdRect, &rectSect); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[1]: *** [gemmacwindow_la-gemmacwindow.lo] Error 1 mv -f .deps/gemcocoawindow_la-gemcocoawindow.Tpo .deps/gemcocoawindow_la-gemcocoawindow.Plo /bin/sh ../../libtool --mode=link g++ -g -O2 -module -avoid-version -shared -shrext .pd_darwin -arch i386 -framework QuickTime -framework Carbon -framework Cocoa -framework AGL -o gemcocoawindow.la -rpath /usr/local/lib/pd/extra/Gem gemcocoawindow_la-gemcocoawindow.lo -L/Applications/Pd-extended.app/Contents/Resources/bin -L../.. -ldl -lz -lm libtool: link: g++ -Wl,-undefined -Wl,dynamic_lookup -o .libs/gemcocoawindow.pd_darwin -bundle .libs/gemcocoawindow_la-gemcocoawindow.o -lstdc++ -framework QuickTime -framework Carbon -framework Cocoa -framework AGL -L/Applications/Pd-extended.app/Contents/Resources/bin -L../.. -ldl -lz -lm -O2 -arch i386 -framework QuickTime -framework Carbon -framework Cocoa -framework AGL libtool: link: ( cd ".libs" && rm -f "gemcocoawindow.la" && ln -s "../gemcocoawindow.la" "gemcocoawindow.la" ) make[1]: Target `all' not remade because of errors. Making all in extra
- -- http://www.nimon.org
On 05/22/2014 07:51 PM, Nicolas Montgermont wrote:
Here is my log of the compilation of the src/Output folder (I'm using -w so there is no warnings)
are you using "-k" as well?
what's the output of (without the trailing '$'):
$ find src/Output -iname "*gemglut*"
or even
$ find . -iname "*gemglut*"
fgsdmr IOhannes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Le 28/05/2014 13:05, IOhannes m zmölnig via GEM-dev a écrit :
On 05/22/2014 07:51 PM, Nicolas Montgermont wrote:
Here is my log of the compilation of the src/Output folder (I'm using -w so there is no warnings)
are you using "-k" as well?
yes
what's the output of (without the trailing '$'):
$ find src/Output -iname "*gemglut*"
cool, here it is! src/Output/.deps/gemglutwindow_la-gemglutwindow.Plo src/Output/.libs/gemglutwindow.la src/Output/.libs/gemglutwindow.lai src/Output/.libs/gemglutwindow.pd_darwin src/Output/.libs/gemglutwindow_la-gemglutwindow.o src/Output/gemglutwindow.cpp src/Output/gemglutwindow.h src/Output/gemglutwindow.la src/Output/gemglutwindow_la-gemglutwindow.lo src/Output/gemglutwindow_la-gemglutwindow.o
actually $ find . -iname "*pd_darwin*" ./extra/pix_drum/.libs/pix_drum.pd_darwin ./extra/pix_drum/pix_drum.pd_darwin ./extra/pix_fiducialtrack/.libs/pix_fiducialtrack.pd_darwin ./extra/pix_fiducialtrack/pix_fiducialtrack.pd_darwin ./extra/pix_hit/.libs/pix_hit.pd_darwin ./extra/pix_hit/pix_hit.pd_darwin ./extra/pix_mano/.libs/pix_mano.pd_darwin ./extra/pix_mano/pix_mano.pd_darwin ./src/Output/.libs/gemcocoawindow.pd_darwin ./src/Output/.libs/gemglutwindow.pd_darwin
no Gem.pd_darwin but 2 windows :)!
- -- http://www.nimon.org
On 05/28/2014 01:58 PM, Nicolas Montgermont via GEM-dev wrote:
are you using "-k" as well?
yes
ok.
what's the output of (without the trailing '$'):
$ find src/Output -iname "*gemglut*"
cool, here it is!
[...]
ah; the automatic symlinking of the .pd_darwin's to the base Gem/ directory does not work because the build really fails (and the symlinks are created in a last step after everything else succeeded...)
actually $ find . -iname "*pd_darwin*"
[...]
no Gem.pd_darwin
bad.
but 2 windows :)!
good.
i have finally disabled FTGL-support in my local configuration and have been able to fix the [text2d] issue.
if you do a fresh copy, you might be able to compile a Gem.pd_darwin :-) (note that i haven't committed any fixes for your manual hacks yet; so don't lose them)
fgrda IOhannes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
ok here we are:
without "-k" it stops at pix_frei0r: libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DGEM_INTERNAL -DGLEW_BUILD -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -w -Os -ffast-math -mmmx -fpascal-strings -MT libPixes_la-pix_freeframe.lo -MD -MP -MF .deps/libPixes_la-pix_freeframe.Tpo -c pix_freeframe.cpp -o libPixes_la-pix_freeframe.o >/dev/null 2>&1 pix_frei0r.cpp:259:24: error: const_cast from 'const value_type *' (aka 'const char *') to 'f0r_param_string *' (aka 'char **') is not allowed f0r_param_string*v=const_cast<f0r_param_string*>(s.c_str()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated.
- ------------- with "-k" I still have no Gem.pd_darwin: $ find . -iname "*pd_darwin*" ./extra/pix_drum/.libs/pix_drum.pd_darwin ./extra/pix_drum/pix_drum.pd_darwin ./extra/pix_fiducialtrack/.libs/pix_fiducialtrack.pd_darwin ./extra/pix_fiducialtrack/pix_fiducialtrack.pd_darwin ./extra/pix_hit/.libs/pix_hit.pd_darwin ./extra/pix_hit/pix_hit.pd_darwin ./extra/pix_mano/.libs/pix_mano.pd_darwin ./extra/pix_mano/pix_mano.pd_darwin ./gemcocoawindow.pd_darwin ./gemglutwindow.pd_darwin ./src/Output/.libs/gemcocoawindow.pd_darwin ./src/Output/.libs/gemglutwindow.pd_darwin
There is only errors in imageQT, filmDarwin, videoDarwin and Output/ like:
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -D_THREAD_SAFE -w -Os -ffast-math -mmmx -fpascal-strings -MT gemglutwindow_la-gemglutwindow.lo -MD -MP -MF .deps/gemglutwindow_la-gemglutwindow.Tpo -c gemglutwindow.cpp -o gemglutwindow_la-gemglutwindow.o >/dev/null 2>&1 gemmacwindow.cpp:269:3: error: use of undeclared identifier 'GetPort'; did you mean 'CFRunLoopSourceContext1::getPort'? GetPort (&cgrafSave); ^~~~~~~ CFRunLoopSourceContext1::getPort
Do you want my complete compilation log or some specific lines?
Thanks for your help Best n
- -- http://www.nimon.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
It compiles! But when loading it in Pd-ext 0.43.4 I still have the same error: /Users/nix/Library/Pd/Gem/Gem.pd_darwin: dlopen(/Users/nix/Library/Pd/Gem/Gem.pd_darwin, 10): Symbol not found: __ZN8TextBase11justifyFontEfffffff Referenced from: /Users/nix/Library/Pd/Gem/Gem.pd_darwin Expected in: flat namespace in /Users/nix/Library/Pd/Gem/Gem.pd_darwin
n
Le 28/05/2014 17:59, IOhannes m zmölnig via GEM-dev a écrit :
On 05/28/2014 05:40 PM, Nicolas Montgermont via GEM-dev wrote:
ok here we are:
without "-k" it stops at pix_frei0r:
i committed a fix for that right after i wrote the last email.
now it should indeed compile.
gfmsadr IOhannes
GEM-dev mailing list GEM-dev@lists.iem.at http://lists.puredata.info/listinfo/gem-dev
- -- http://www.nimon.org
On 05/28/2014 07:42 PM, Nicolas Montgermont via GEM-dev wrote:
It compiles! But when loading it in Pd-ext 0.43.4 I still have the same error: /Users/nix/Library/Pd/Gem/Gem.pd_darwin: dlopen(/Users/nix/Library/Pd/Gem/Gem.pd_darwin, 10): Symbol not found: __ZN8TextBase11justifyFontEfffffff
phew. i'm just too lazy...i should have tried loading Gem and would have seen the same behaviour.
fixed (now Gem compiles and loads on my computer even when compiled without FTGL)
fgrdsa IOhannes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
I have a new symbol error at loading: /Users/nix/Library/Pd/Gem/Gem.pd_darwin: dlopen(/Users/nix/Library/Pd/Gem/Gem.pd_darwin, 10): Symbol not found: __Z10initGemWinv Referenced from: /Users/nix/Library/Pd/Gem/Gem.pd_darwin Expected in: flat namespace in /Users/nix/Library/Pd/Gem/Gem.pd_darwin
n
Le 29/05/2014 20:23, IOhannes m zmölnig via GEM-dev a écrit :
On 05/28/2014 07:42 PM, Nicolas Montgermont via GEM-dev wrote:
It compiles! But when loading it in Pd-ext 0.43.4 I still have the same error: /Users/nix/Library/Pd/Gem/Gem.pd_darwin: dlopen(/Users/nix/Library/Pd/Gem/Gem.pd_darwin, 10): Symbol not found: __ZN8TextBase11justifyFontEfffffff
phew. i'm just too lazy...i should have tried loading Gem and would have seen the same behaviour.
fixed (now Gem compiles and loads on my computer even when compiled without FTGL)
fgrdsa IOhannes
- -- http://www.nimon.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 2014-06-04 10:56, Nicolas Montgermont via GEM-dev wrote:
I have a new symbol error at loading: /Users/nix/Library/Pd/Gem/Gem.pd_darwin: dlopen(/Users/nix/Library/Pd/Gem/Gem.pd_darwin, 10): Symbol not found: __Z10initGemWinv
i'm sure we are getting closer :-)
the problem you are seeing now, is due to the disabled GemWinMac.cpp files.
uncomment the line in src/Gem/Manager.cpp:282 and try again :-)
fgamsdr IOhannes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Le 04/06/2014 11:28, IOhannes m zmoelnig via GEM-dev a écrit :
On 2014-06-04 10:56, Nicolas Montgermont via GEM-dev wrote:
I have a new symbol error at loading: /Users/nix/Library/Pd/Gem/Gem.pd_darwin: dlopen(/Users/nix/Library/Pd/Gem/Gem.pd_darwin, 10): Symbol not found: __Z10initGemWinv
i'm sure we are getting closer :-)
:)
uncomment the line in src/Gem/Manager.cpp:282 and try again :-)
it's not commented here, it's: initGemWin();
I tried with commenting it, and now I have a new symbol error on loading: /Users/nix/Library/Pd/Gem/Gem.pd_darwin: dlopen(/Users/nix/Library/Pd/Gem/Gem.pd_darwin, 10): Symbol not found: __Z15createGemWindowR10WindowInfoR11WindowHints Referenced from: /Users/nix/Library/Pd/Gem/Gem.pd_darwin Expected in: flat namespace in /Users/nix/Library/Pd/Gem/Gem.pd_darwin
n - -- http://www.nimon.org
On 06/04/2014 11:58 AM, Nicolas Montgermont via GEM-dev wrote:
uncomment the line in src/Gem/Manager.cpp:282 and try again :-)
it's not commented here, it's: initGemWin();
I tried with commenting it
that's what i meant.
, and now I have a new symbol error on loading:
ok. before we go through this one by one, we should get a list of all unresolved symbols.
please post the output of $ nm -u Gem.pd_darwin
gfdsmr IOhannes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Le 04/06/2014 14:18, IOhannes m zmölnig via GEM-dev a écrit :
nm -u Gem.pd_darwin
here it is n - -- $ nm -u Gem.pd_darwin _CGLChoosePixelFormat _CGLCreateContext _CGLCreatePBuffer _CGLDestroyContext _CGLDestroyPBuffer _CGLDestroyPixelFormat _CGLErrorString _CGLGetCurrentContext _CGLGetParameter _CGLGetVirtualScreen _CGLSetCurrentContext _CGLSetPBuffer __Unwind_Resume __Z15createGemWindowR10WindowInfoR11WindowHints __Z15cursorGemWindowR10WindowInfoi __Z16destroyGemWindowR10WindowInfo __Z16topmostGemWindowR10WindowInfoi __Z17gemWinMakeCurrentR10WindowInfo __Z17gemWinSwapBuffersR10WindowInfo __Z21initWin_sharedContextR10WindowInfoR11WindowHints __Z25dispatchGemWindowMessagesR10WindowInfo __ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4findEPKcmm __ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE5rfindEcm __ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareEPKc __ZNKSt3__120__vector_base_commonILb1EE20__throw_length_errorEv __ZNKSt3__121__basic_string_commonILb1EE20__throw_length_errorEv __ZNKSt3__16locale9use_facetERNS0_2idE __ZNKSt3__18ios_base6getlocEv __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcmm __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEmc __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcm __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKcm __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6resizeEmc __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_ __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_mmRKS4_ __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED1Ev __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_ __ZNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw __ZNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEC1ERKS5_ __ZNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED1Ev __ZNSt3__113basic_istreamIcNS_11char_traitsIcEEED0Ev __ZNSt3__113basic_istreamIcNS_11char_traitsIcEEED1Ev __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE3putEc __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE5flushEv __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryC1ERS3_ __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryD1Ev __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEED0Ev __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEED1Ev __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEElsEd __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEElsEi __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEElsEj __ZNSt3__114basic_iostreamIcNS_11char_traitsIcEEED0Ev __ZNSt3__114basic_iostreamIcNS_11char_traitsIcEEED1Ev __ZNSt3__114basic_iostreamIcNS_11char_traitsIcEEED2Ev __ZNSt3__115basic_streambufIcNS_11char_traitsIcEEE4syncEv __ZNSt3__115basic_streambufIcNS_11char_traitsIcEEE5imbueERKNS_6localeE __ZNSt3__115basic_streambufIcNS_11char_traitsIcEEE5uflowEv __ZNSt3__115basic_streambufIcNS_11char_traitsIcEEE6setbufEPci __ZNSt3__115basic_streambufIcNS_11char_traitsIcEEE6xsgetnEPci __ZNSt3__115basic_streambufIcNS_11char_traitsIcEEE6xsputnEPKci __ZNSt3__115basic_streambufIcNS_11char_traitsIcEEE9showmanycEv __ZNSt3__115basic_streambufIcNS_11char_traitsIcEEEC2Ev __ZNSt3__115basic_streambufIcNS_11char_traitsIcEEED2Ev __ZNSt3__14cerrE __ZNSt3__14coutE __ZNSt3__15ctypeIcE2idE __ZNSt3__16localeD1Ev __ZNSt3__18ios_base33__set_badbit_and_consider_rethrowEv __ZNSt3__18ios_base4initEPv __ZNSt3__18ios_base5clearEj __ZNSt3__19basic_iosIcNS_11char_traitsIcEEED2Ev __ZNSt8bad_castC2Ev __ZNSt8bad_castD2Ev __ZSt9terminatev __ZTINSt3__113basic_istreamIcNS_11char_traitsIcEEEE __ZTINSt3__113basic_ostreamIcNS_11char_traitsIcEEEE __ZTINSt3__114basic_iostreamIcNS_11char_traitsIcEEEE __ZTINSt3__115basic_streambufIcNS_11char_traitsIcEEEE __ZTIPc __ZTIPv __ZTISt8bad_cast __ZTISt9bad_alloc __ZTIb __ZTIc __ZTId __ZTIf __ZTIh __ZTIi __ZTIj __ZTIm __ZTIs __ZTIt __ZTVN10__cxxabiv117__class_type_infoE __ZTVN10__cxxabiv119__pointer_type_infoE __ZTVN10__cxxabiv120__si_class_type_infoE __ZTVN10__cxxabiv121__vmi_class_type_infoE __ZThn8_NSt3__114basic_iostreamIcNS_11char_traitsIcEEED0Ev __ZThn8_NSt3__114basic_iostreamIcNS_11char_traitsIcEEED1Ev __ZTv0_n12_NSt3__113basic_istreamIcNS_11char_traitsIcEEED0Ev __ZTv0_n12_NSt3__113basic_istreamIcNS_11char_traitsIcEEED1Ev __ZTv0_n12_NSt3__113basic_ostreamIcNS_11char_traitsIcEEED0Ev __ZTv0_n12_NSt3__113basic_ostreamIcNS_11char_traitsIcEEED1Ev __ZTv0_n12_NSt3__114basic_iostreamIcNS_11char_traitsIcEEED0Ev __ZTv0_n12_NSt3__114basic_iostreamIcNS_11char_traitsIcEEED1Ev __ZdaPv __ZdlPv __Znam __Znwm ___assert_rtn ___bzero ___cxa_allocate_exception ___cxa_atexit ___cxa_begin_catch ___cxa_call_unexpected ___cxa_end_catch ___cxa_free_exception ___cxa_get_exception_ptr ___cxa_pure_virtual ___cxa_rethrow ___cxa_throw ___error ___gxx_personality_v0 ___stack_chk_fail ___stack_chk_guard ___tolower ___toupper _aglSetInteger _asin _atan2 _atan2f _atoi _atom_getfloat _atom_getfloatarg _atom_getint _atom_getsymbol _atom_getsymbolarg _atom_string _binbuf_free _binbuf_getnatom _binbuf_getvec _binbuf_new _binbuf_read _binbuf_read_via_path _bug _canvas_getcurrent _canvas_getdir _canvas_makefilename _canvas_open _ceilf _class_addanything _class_addbang _class_addcreator _class_addlist _class_addmethod _class_addsymbol _class_new _class_sethelpsymbol _clock_delay _clock_free _clock_getsystime _clock_gettimesince _clock_new _clock_unset _close$UNIX2003 _cos _cosf _dlclose _dlerror _dlopen _dlsym _drand48 _dsp_add _endpost _error _exp _expf _fclose _ferror _floatinlet_new _floorf _fmod _fmodf _fopen$UNIX2003 _fread _free _freebytes _fseek _ftell _garray_class _garray_getfloatarray _garray_getfloatwords _garray_redraw _garray_resize _gensym _getbytes _getenv _glAccum _glAlphaFunc _glAreTexturesResident _glArrayElement _glBegin _glBindTexture _glBitmap _glBlendFunc _glCallList _glClear _glClearAccum _glClearColor _glClearDepth _glClearIndex _glClearStencil _glClipPlane _glColor3b _glColor3bv _glColor3d _glColor3dv _glColor3f _glColor3fv _glColor3i _glColor3iv _glColor3s _glColor3sv _glColor3ub _glColor3ubv _glColor3ui _glColor3uiv _glColor3us _glColor3usv _glColor4b _glColor4bv _glColor4d _glColor4dv _glColor4f _glColor4fv _glColor4i _glColor4iv _glColor4s _glColor4sv _glColor4ub _glColor4ubv _glColor4ui _glColor4uiv _glColor4us _glColor4usv _glColorMask _glColorMaterial _glColorPointer _glCopyPixels _glCopyTexImage1D _glCopyTexImage2D _glCopyTexSubImage1D _glCopyTexSubImage2D _glCullFace _glDeleteLists _glDeleteTextures _glDepthFunc _glDepthMask _glDepthRange _glDisable _glDisableClientState _glDrawArrays _glDrawBuffer _glDrawElements _glDrawPixels _glEdgeFlag _glEnable _glEnableClientState _glEnd _glEndList _glEvalCoord1d _glEvalCoord1dv _glEvalCoord1f _glEvalCoord1fv _glEvalCoord2d _glEvalCoord2dv _glEvalCoord2f _glEvalCoord2fv _glEvalMesh1 _glEvalMesh2 _glEvalPoint1 _glEvalPoint2 _glFeedbackBuffer _glFinish _glFlush _glFogf _glFogfv _glFogi _glFogiv _glFrontFace _glFrustum _glGenLists _glGenTextures _glGetBooleanv _glGetError _glGetFloatv _glGetIntegerv _glGetMapdv _glGetMapfv _glGetMapiv _glGetPointerv _glGetString _glHint _glIndexMask _glIndexd _glIndexdv _glIndexf _glIndexfv _glIndexi _glIndexiv _glIndexs _glIndexsv _glIndexub _glIndexubv _glInitNames _glIsEnabled _glIsList _glIsTexture _glLightModelf _glLightModeli _glLightf _glLightfv _glLighti _glLineStipple _glLineWidth _glLoadIdentity _glLoadMatrixd _glLoadMatrixf _glLoadName _glLogicOp _glMap1d _glMap1f _glMap2d _glMap2f _glMapGrid1d _glMapGrid1f _glMapGrid2d _glMapGrid2f _glMaterialf _glMaterialfv _glMateriali _glMatrixMode _glMultMatrixd _glMultMatrixf _glNewList _glNormal3b _glNormal3bv _glNormal3d _glNormal3dv _glNormal3f _glNormal3fv _glNormal3i _glNormal3iv _glNormal3s _glNormal3sv _glNormalPointer _glOrtho _glPassThrough _glPixelMapfv _glPixelStoref _glPixelStorei _glPixelTransferf _glPixelTransferi _glPixelZoom _glPointSize _glPolygonMode _glPolygonOffset _glPopAttrib _glPopClientAttrib _glPopMatrix _glPopName _glPrioritizeTextures _glPushAttrib _glPushClientAttrib _glPushMatrix _glPushName _glRasterPos2d _glRasterPos2dv _glRasterPos2f _glRasterPos2fv _glRasterPos2i _glRasterPos2iv _glRasterPos2s _glRasterPos2sv _glRasterPos3d _glRasterPos3dv _glRasterPos3f _glRasterPos3fv _glRasterPos3i _glRasterPos3iv _glRasterPos3s _glRasterPos3sv _glRasterPos4d _glRasterPos4dv _glRasterPos4f _glRasterPos4fv _glRasterPos4i _glRasterPos4iv _glRasterPos4s _glRasterPos4sv _glReadBuffer _glReadPixels _glRectd _glRectf _glRecti _glRects _glRenderMode _glRotated _glRotatef _glScaled _glScalef _glScissor _glSelectBuffer _glShadeModel _glStencilFunc _glStencilMask _glStencilOp _glTexCoord1d _glTexCoord1dv _glTexCoord1f _glTexCoord1fv _glTexCoord1i _glTexCoord1iv _glTexCoord1s _glTexCoord1sv _glTexCoord2d _glTexCoord2dv _glTexCoord2f _glTexCoord2fv _glTexCoord2i _glTexCoord2iv _glTexCoord2s _glTexCoord2sv _glTexCoord3d _glTexCoord3dv _glTexCoord3f _glTexCoord3fv _glTexCoord3i _glTexCoord3iv _glTexCoord3s _glTexCoord3sv _glTexCoord4d _glTexCoord4dv _glTexCoord4f _glTexCoord4fv _glTexCoord4i _glTexCoord4iv _glTexCoord4s _glTexCoord4sv _glTexCoordPointer _glTexEnvf _glTexEnvi _glTexGend _glTexGenf _glTexGenfv _glTexGeni _glTexImage2D _glTexParameterf _glTexParameteri _glTexSubImage1D _glTexSubImage2D _glTranslated _glTranslatef _glVertex2d _glVertex2dv _glVertex2f _glVertex2fv _glVertex2i _glVertex2iv _glVertex2s _glVertex2sv _glVertex3d _glVertex3dv _glVertex3f _glVertex3fv _glVertex3i _glVertex3iv _glVertex3s _glVertex3sv _glVertex4d _glVertex4dv _glVertex4f _glVertex4fv _glVertex4i _glVertex4iv _glVertex4s _glVertex4sv _glVertexPointer _glViewport _glob$INODE64 _globfree _gluCylinder _gluDeleteQuadric _gluErrorString _gluLookAt _gluNewQuadric _gluPerspective _gluQuadricDrawStyle _gluQuadricTexture _gluScaleImage _gluSphere _inlet_free _inlet_new _log _logf _malloc _memcmp _memcpy _memmove _memset _memset_pattern16 _nullfn _open$UNIX2003 _open_via_path _outlet_anything _outlet_bang _outlet_float _outlet_free _outlet_list _outlet_new _outlet_symbol _pd_bind _pd_error _pd_findbyclass _pd_free _pd_new _pd_objectmaker _pd_typedmess _pd_unbind _perror _post _postatom _pow _printf _pthread_cond_destroy _pthread_cond_init$UNIX2003 _pthread_cond_signal _pthread_cond_wait$UNIX2003 _pthread_create _pthread_join$UNIX2003 _pthread_mutex_destroy _pthread_mutex_init _pthread_mutex_lock _pthread_mutex_trylock _pthread_mutex_unlock _puts _qsort _rand _s_ _s_bang _s_float _s_list _s_signal _s_symbol _select$UNIX2003 _shmat _shmctl$UNIX2003 _shmdt _shmget _sin _sinf _snprintf _sprintf _sscanf _startpost _strcmp _strcpy _strdup _strlen _strncmp _strncpy _strtod$UNIX2003 _strtok _strtol _sys_bashfilename _sys_getrealtime _sys_lock _sys_trylock _sys_unlock _sysctl _verbose _vsnprintf _wordexp _zgetfn dyld_stub_binder
- -- http://www.nimon.org
On 06/04/2014 02:54 PM, Nicolas Montgermont via GEM-dev wrote:
Le 04/06/2014 14:18, IOhannes m zmölnig via GEM-dev a écrit :
nm -u Gem.pd_darwin
here it is
thanks. i pushed (to github only for now) a changeset that at least let's me (on linux!) compile and run Gem without GemWinCreate and stuff.
the fix already disables GemWinCreateMac.cpp and the like (so if you get an error when checking out, revert your changes (e.g. `git checkout src/Base/Makefile.am?) and try again)
fgmadsr IOhannes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Thanks for your work! I've done a fresh copy of your repository on github and from what I understand, it tries to compile GemWinCreateMac.cpp (no more Gem.pd_darwin whithout tweaking...) in the Makefile.am, i see it's related to the ENABLE_MULTICONTEXT variable, in my config.log i have: ENABLE_MULTICONTEXT_FALSE='' ENABLE_MULTICONTEXT_TRUE='#' so it seems I have the wrong value, how can I tell configure to enable multicontext ?
if I manually remove the line containing GemWinCreateMac.cpp from src/Base/Makefile.am and remove the line containing gemwin.cpp from src/Control/Makefile.am it compiles but I have the same symbol error as before when loading: /Users/nix/Library/Pd/Gem/Gem.pd_darwin: dlopen(/Users/nix/Library/Pd/Gem/Gem.pd_darwin, 10): Symbol not found: __Z10initGemWinv Referenced from: /Users/nix/Library/Pd/Gem/Gem.pd_darwin Expected in: flat namespace in /Users/nix/Library/Pd/Gem/Gem.pd_darwin
best n Le 05/06/2014 18:46, IOhannes m zmölnig via GEM-dev a écrit :
On 06/04/2014 02:54 PM, Nicolas Montgermont via GEM-dev wrote:
Le 04/06/2014 14:18, IOhannes m zmölnig via GEM-dev a écrit :
nm -u Gem.pd_darwin
here it is
thanks. i pushed (to github only for now) a changeset that at least let's me (on linux!) compile and run Gem without GemWinCreate and stuff.
the fix already disables GemWinCreateMac.cpp and the like (so if you get an error when checking out, revert your changes (e.g. `git checkout src/Base/Makefile.am?) and try again)
fgmadsr IOhannes
GEM-dev mailing list GEM-dev@lists.iem.at http://lists.puredata.info/listinfo/gem-dev
- -- http://www.nimon.org
On 06/05/2014 09:36 PM, Nicolas Montgermont via GEM-dev wrote:
Thanks for your work! I've done a fresh copy of your repository on github and from what I understand, it tries to compile GemWinCreateMac.cpp (no more Gem.pd_darwin whithout tweaking...) in the Makefile.am, i see it's related to the ENABLE_MULTICONTEXT variable, in my config.log i have: ENABLE_MULTICONTEXT_FALSE='' ENABLE_MULTICONTEXT_TRUE='#' so it seems I have the wrong value, how can I tell configure to enable multicontext ?
oh darn, i forgot the crucial part: you have to specify "--enable-multicontext" when running configure.
all my fixes depend on having multicontext enabled.
gfmdsr IOhannes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
If I configure with enable-multicontext, I have new errors here: - -- libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DGEM_INTERNAL -DGLEW_BUILD -DGLEW_MX -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -w -Os -ffast-math -mmmx -fpascal-strings -MT libGem_la-PBuffer.lo -MD -MP -MF .deps/libGem_la-PBuffer.Tpo -c PBuffer.cpp -fno-common -DPIC -o .libs/libGem_la-PBuffer.o Manager.cpp:914:19: error: use of undeclared identifier 'gfxInfo' aglSetInteger ( gfxInfo.context, AGL_SWAP_INTERVAL, &swapInt); ^ 1 error generated. make[3]: *** [libGem_la-Manager.lo] Error 1 - -- libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DGEM_INTERNAL -DGLEW_BUILD -DGLEW_MX -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -w -Os -ffast-math -mmmx -fpascal-strings -MT libBase_la-CPPExtern.lo -MD -MP -MF .deps/libBase_la-CPPExtern.Tpo -c CPPExtern.cpp -o libBase_la-CPPExtern.o >/dev/null 2>&1 GemContext.cpp:37:44: error: allocation of incomplete type 'void' context(new GLEWContext), xcontext(new GemGlewXContext), ^~~~~~~~~~~~~~~ ./GemContext.h:26:27: note: expanded from macro 'GemGlewXContext' # define GemGlewXContext void ^~~~ GemContext.cpp:53:56: error: allocation of incomplete type 'void' context(new GLEWContext(*p.context)), xcontext(new GemGlewXContext(*p.xcontext)), ^~~~~~~~~~~~~~~ ./GemContext.h:26:27: note: expanded from macro 'GemGlewXContext' # define GemGlewXContext void ^~~~ 2 errors generated. make[3]: *** [libBase_la-GemContext.lo] Error 1
- -- n
Le 06/06/2014 14:29, IOhannes m zmölnig via GEM-dev a écrit :
On 06/05/2014 09:36 PM, Nicolas Montgermont via GEM-dev wrote:
Thanks for your work! I've done a fresh copy of your repository on github and from what I understand, it tries to compile GemWinCreateMac.cpp (no more Gem.pd_darwin whithout tweaking...) in the Makefile.am, i see it's related to the ENABLE_MULTICONTEXT
variable,
in my config.log i have: ENABLE_MULTICONTEXT_FALSE='' ENABLE_MULTICONTEXT_TRUE='#' so it seems I have the wrong value, how can I tell configure to enable multicontext ?
oh darn, i forgot the crucial part: you have to specify "--enable-multicontext" when running configure.
all my fixes depend on having multicontext enabled.
- -- http://www.nimon.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 2014-06-06 16:21, Nicolas Montgermont via GEM-dev wrote:
If I configure with enable-multicontext, I have new errors here:
i hope we are getting closer :-)
this time i built without FTGL and with MultiContext on an OSX (10.5 or so) machine, and the ne wfixes (found on github) allow at least to build a Gem.pd_darwin.
as this was done on a remote machine, i have no idea whether the binary does work. so please try again :-)
fgamsdr IOhannes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Yes it works! It compiles, It can't find gemglutwindow because no link is created in the root directory but if I use Gem/src/Output/.libs/gemglutwindow it work and I can render things! I will investigate further as soon as possible thanks a lot!
Best n
Le 10/06/2014 17:25, IOhannes m zmoelnig via GEM-dev a écrit :
On 2014-06-06 16:21, Nicolas Montgermont via GEM-dev wrote:
If I configure with enable-multicontext, I have new errors here:
i hope we are getting closer :-)
this time i built without FTGL and with MultiContext on an OSX (10.5 or so) machine, and the ne wfixes (found on github) allow at least to build a Gem.pd_darwin.
as this was done on a remote machine, i have no idea whether the binary does work. so please try again :-)
fgamsdr IOhannes
GEM-dev mailing list GEM-dev@lists.iem.at http://lists.puredata.info/listinfo/gem-dev
- -- http://www.nimon.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hello,
I confirm that the new multi-context window system is working on osx 10.9.3 I can use both gemglutwindow and gemcocoawindow without noticeable difference. The only thing is that I have to explicitly create them with : Gem/src/Output/.libs/gemglutwindow because no link is created in the Gem directory.
I can do all rendering operation, so now I'd like to use pix and text to have a complete Gem. Will precise that in another mail for archive.
Thanks! n
Le 10/06/2014 18:24, Nicolas Montgermont via GEM-dev a écrit :
Yes it works! It compiles, It can't find gemglutwindow because no link is created in the root
directory but if I use Gem/src/Output/.libs/gemglutwindow it work and I can render things!
I will investigate further as soon as possible thanks a lot!
Best n
Le 10/06/2014 17:25, IOhannes m zmoelnig via GEM-dev a écrit :
On 2014-06-06 16:21, Nicolas Montgermont via GEM-dev wrote:
If I configure with enable-multicontext, I have new errors here:
i hope we are getting closer :-)
this time i built without FTGL and with MultiContext on an OSX (10.5 or so) machine, and the ne wfixes (found on github) allow at least to build a Gem.pd_darwin.
as this was done on a remote machine, i have no idea whether the binary does work. so please try again :-)
fgamsdr IOhannes
GEM-dev mailing list GEM-dev@lists.iem.at http://lists.puredata.info/listinfo/gem-dev
GEM-dev mailing list GEM-dev@lists.iem.at http://lists.puredata.info/listinfo/gem-dev
- -- http://www.nimon.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
When i compile Gem on osx Mavericks 10.9.3 I have these errors in the QT plugins:
- -- /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -framework QuickTime -framework Carbon -w -Os -ffast-math -mmmx -fpascal-strings -MT gem_filmDarwin_la-filmDarwin.lo -MD -MP -MF .deps/gem_filmDarwin_la-filmDarwin.Tpo -c -o gem_filmDarwin_la-filmDarwin.lo `test -f 'filmDarwin.cpp' || echo './'`filmDarwin.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -framework QuickTime -framework Carbon -w -Os -ffast-math -mmmx -fpascal-strings -MT gem_filmDarwin_la-filmDarwin.lo -MD -MP -MF .deps/gem_filmDarwin_la-filmDarwin.Tpo -c filmDarwin.cpp -fno-common -DPIC -o .libs/gem_filmDarwin_la-filmDarwin.o filmDarwin.cpp:68:7: error: no type named 'DisposeGWorld' in the global namespace ::DisposeGWorld(m_srcGWorld); ~~^ filmDarwin.cpp:148:3: error: use of undeclared identifier 'OffsetRect' OffsetRect(&m_srcRect, -m_srcRect.left, -m_srcRect.top); ^ filmDarwin.cpp:188:42: error: use of undeclared identifier 'GetGWorldDevice' ::SetMovieGWorld(m_movie, m_srcGWorld, GetGWorldDevice(m_srcGWorld)); ^ filmDarwin.cpp:206:5: error: no member named 'GetGWorld' in the global namespace ::GetGWorld(&savedPort, &savedDevice); ~~^ filmDarwin.cpp:207:5: error: no member named 'SetGWorld' in the global namespace ::SetGWorld(m_srcGWorld, NULL); ~~^ filmDarwin.cpp:210:16: error: no member named 'GetGWorldPixMap' in the global namespace m_pixMap = ::GetGWorldPixMap(m_srcGWorld); ~~^ 6 errors generated. make[2]: *** [gem_filmDarwin_la-filmDarwin.lo] Error 1 make[2]: Target `all' not remade because of errors. Making all in filmGMERLIN Making all in filmMPEG1 Making all in filmMPEG3 Making all in filmQT /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -framework QuickTime -w -Os -ffast-math -mmmx -fpascal-strings -MT gem_filmQT_la-filmQT.lo -MD -MP -MF .deps/gem_filmQT_la-filmQT.Tpo -c -o gem_filmQT_la-filmQT.lo `test -f 'filmQT.cpp' || echo './'`filmQT.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -framework QuickTime -w -Os -ffast-math -mmmx -fpascal-strings -MT gem_filmQT_la-filmQT.lo -MD -MP -MF .deps/gem_filmQT_la-filmQT.Tpo -c filmQT.cpp -fno-common -DPIC -o .libs/gem_filmQT_la-filmQT.o filmQT.cpp:274:42: error: use of undeclared identifier 'GetGWorldDevice' ::SetMovieGWorld(m_movie, m_srcGWorld, GetGWorldDevice(m_srcGWorld)); ^ filmQT.cpp:306:5: error: no member named 'GetGWorld' in the global namespace ::GetGWorld(&savedPort, &savedDevice); ~~^ filmQT.cpp:307:5: error: no member named 'SetGWorld' in the global namespace ::SetGWorld(m_srcGWorld, NULL); ~~^ 3 errors generated. make[2]: *** [gem_filmQT_la-filmQT.lo] Error 1 make[2]: Target `all' not remade because of errors. Making all in filmQT4L Making all in recordQT /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -framework QuickTime -w -Os -ffast-math -mmmx -fpascal-strings -MT gem_recordQT_la-recordQT.lo -MD -MP -MF .deps/gem_recordQT_la-recordQT.Tpo -c -o gem_recordQT_la-recordQT.lo `test -f 'recordQT.cpp' || echo './'`recordQT.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -framework QuickTime -w -Os -ffast-math -mmmx -fpascal-strings -MT gem_recordQT_la-recordQT.lo -MD -MP -MF .deps/gem_recordQT_la-recordQT.Tpo -c recordQT.cpp -fno-common -DPIC -o .libs/gem_recordQT_la-recordQT.o recordQT.cpp:298:38: error: use of undeclared identifier 'GetGWorldDevice' SetMovieGWorld(m_movie,m_srcGWorld,GetGWorldDevice(m_srcGWorld)); ^ recordQT.cpp:341:50: error: use of undeclared identifier 'GetPortPixMap' compErr = SCCompressSequenceBegin(stdComponent,GetPortPixMap(m_srcGWorld),&m_srcRect,&hImageDesc); ^ recordQT.cpp:389:3: error: use of undeclared identifier 'DisposeGWorld' DisposeGWorld(m_srcGWorld); ^ recordQT.cpp:451:37: error: use of undeclared identifier 'GetPortPixMap' GetPortPixMap(m_srcGWorld), ^ 4 errors generated. make[2]: *** [gem_recordQT_la-recordQT.lo] Error 1 - ----------------------
If I understand correctly, there is no more Quicktime framework support on osx 10.9 so it means if we want to add image and video decoding/encoding we must build a new plugin? Must this new plugin rely on the AV.kit framework? Must it be written in C++ or can it be written in objective C?
Thanks for your infos in that. Best,
Nicolas - -- http://www.nimon.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 2014-06-24 13:55, Nicolas Montgermont via GEM-dev wrote:
If I understand correctly, there is no more Quicktime framework support on osx 10.9 so it means if we want to add image and video decoding/encoding we must build a new plugin?
yes, most likely.
Must this new plugin rely on the AV.kit framework?
not necessarily.
the alternative is to make filmGMERLIN and imageMAGICK work. (both should be (almost?) working).
however, i would very much prefer to have *native* plugins available as well (e.g. using AV-kit) - simply because it is what most people will expect.
Must it be written in C++ or can it be written in objective C?
ObjectiveC++ is the way to go. (you need C++ to make Gem recognize the plugin; you can use ObjC to properly interact with the AVFoundation Framework)
but who is going to implement it?
fgmasdr IOhannes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Le 24/06/2014 14:12, IOhannes m zmoelnig via GEM-dev a écrit :
the alternative is to make filmGMERLIN and imageMAGICK work. (both should be (almost?) working).
I have installed imageMagick (with homebrew) It compiles and link if I compile the 64bits version of gem (the lib in brew is 64bits) the version i have is: Version: ImageMagick 6.8.8-9 Q16 x86_64 2014-03-23 http://www.imagemagick.org However if I use pix_image in Gem it says it loads the image but the square stays white. I am sure I use magick plugin because I've removed all the other gem_image*.so and Gem says: GEM: image loading support: magick GEM: image saving support: magick How can I do to debug that?
ps: using Pd-0.45.4-64bits
however, i would very much prefer to have *native* plugins available as well (e.g. using AV-kit) - simply because it is what most people will expect.
Must it be written in C++ or can it be written in objective C?
ObjectiveC++ is the way to go. (you need C++ to make Gem recognize the plugin; you can use ObjC to properly interact with the AVFoundation Framework)
but who is going to implement it?
good question :) Does this mean there must be 3 files ( like in imageMagick without magick++) imageAV.cpp and imageAV.h to make the link with Gem AVcore.m to read/ write the picture using AV-kit framework?
n
- -- http://www.nimon.org
On 06/24/2014 04:01 PM, Nicolas Montgermont via GEM-dev wrote:
However if I use pix_image in Gem it says it loads the image but the
good.
square stays white.
bad.
I am sure I use magick plugin because I've removed all the other gem_image*.so and Gem says: GEM: image loading support: magick GEM: image saving support: magick How can I do to debug that?
the first thing i would try is to put a [pix_info] after the [pix_image] and see what it tells you.
and see my reply to dan in this thread.
ObjectiveC++ is the way to go. (you need C++ to make Gem recognize the plugin; you can use ObjC to properly interact with the AVFoundation Framework)
but who is going to implement it?
good question :) Does this mean there must be 3 files ( like in imageMagick without magick++) imageAV.cpp and imageAV.h to make the link with Gem AVcore.m to read/ write the picture using AV-kit framework?
there only *must* be a single file: the implementation-file (the header-files are kept separate for good style :-)
imageMAGICK/ is somewhat special as it allows to be compiled with two different backends (Magick++ and MagickCore).
the file-layout most likely would look like: imageAV/ imageAV.h imageAV.mm
(.mm is the extension for ObjC++)
gfsdr IOhannes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 2014-06-24 13:09, Nicolas Montgermont via GEM-dev wrote:
The only thing is that I have to explicitly create them with : Gem/src/Output/.libs/gemglutwindow because no link is created in the Gem directory.
$ cd Gem $ ln -s src/Output/.libs/*.pd_darwin .
fgmasdr IOhannes
Hello,
I'm trying to build with msys a Gem.dll for having a chance to use some new plugins like libvlc and gmerlin support on a windows vista x86_64 machine.
Using "autoreconf -i", disable-Pixes, and --without-jpeg, configure && make runs almost until the end but the Gem.dll is about 41Mo and couldn't load in a pd-vanilla 0.45 version.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
actually, trying to use gemglutwindow and gemcocoawindow in Pd gives:
/Users/nix/Library/Pd/gemcocoawindow.pd_darwin: dlopen(/Users/nix/Library/Pd/gemcocoawindow.pd_darwin, 10): Symbol not found: __ZN9GemWindow3keyENSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEii Referenced from: /Users/nix/Library/Pd/gemcocoawindow.pd_darwin Expected in: flat namespace in /Users/nix/Library/Pd/gemcocoawindow.pd_darwin gemcocoawindow ... couldn't create /Users/nix/Library/Pd/gemglutwindow.pd_darwin: dlopen(/Users/nix/Library/Pd/gemglutwindow.pd_darwin, 10): Symbol not found: __ZN9GemWindow3keyENSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEii Referenced from: /Users/nix/Library/Pd/gemglutwindow.pd_darwin Expected in: flat namespace in /Users/nix/Library/Pd/gemglutwindow.pd_darwin gemglutwindow ... couldn't create
Pd-extended 0.43.4 n
Le 28/05/2014 13:05, IOhannes m zmölnig via GEM-dev a écrit :
On 05/22/2014 07:51 PM, Nicolas Montgermont wrote:
Here is my log of the compilation of the src/Output folder (I'm using -w so there is no warnings)
are you using "-k" as well?
what's the output of (without the trailing '$'):
$ find src/Output -iname "*gemglut*"
or even
$ find . -iname "*gemglut*"
fgsdmr IOhannes
GEM-dev mailing list GEM-dev@lists.iem.at http://lists.puredata.info/listinfo/gem-dev
- -- http://www.nimon.org
On 05/28/2014 02:02 PM, Nicolas Montgermont via GEM-dev wrote:
actually, trying to use gemglutwindow and gemcocoawindow in Pd gives:
[...]
oh yes, these are Gem-externals. so you need to have Gem loaded in order to be able to use them. (which means that we first have to succeed in compiling Gem itself :-))
gfndsar IOhannes