Hi all,
I have successfully compiled a GEM external in OS X using the latest gem from git and Pd 0.45-5. When I try to load this external I get that it finds it, but complains about the architecture:
[…]/Gem-master/extra/pix_demo/pix_demo.pd_darwin: mach-o, but wrong architecture pix_demo ... couldn't create
I assume I need to add a flag but not entirely sure which one or where to put it.
Any suggestions?
best,
J
hi,
did you try to load it with 64bit version of Pd ?
you probably miss the --enable-fat-binary=<arch> flag please refer to https://github.com/umlaeute/Gem/wiki/How-to-build-Gem-on-MacOSX-Mavericks#co... to learn how to build 32bit and 64bit of Gem Please also note that it should be possible to build a FAT binary (32+64bit).
best
a
-- do it yourself http://antoine.villeret.free.fr
2015-05-04 17:08 GMT+02:00 Jaime E Oliver jaime.oliver2@gmail.com:
Hi all,
I have successfully compiled a GEM external in OS X using the latest gem from git and Pd 0.45-5. When I try to load this external I get that it finds it, but complains about the architecture:
[…]/Gem-master/extra/pix_demo/pix_demo.pd_darwin: mach-o, but wrong architecture pix_demo ... couldn't create
I assume I need to add a flag but not entirely sure which one or where to put it.
Any suggestions?
best,
J _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi Antoine,
Thanks for the info and the reference page.
When I open the 64 bit version of Pd it cannot open the OS X precompiled version of GEM I downloaded from http://gem.iem.at/: "no matching architecture in universal wrapper". I used to be able to compile an external and use it with this version of GEM, but this strategy might not work anymore.
I tried:
./configure --enable-fat-binary=i386 --with-pd=/Applications/Pd-0.45-4.app/Contents/Resources/
then make pix_demo.pd_darwin, but when I try to create the object in Pd I get:
/Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin: dlopen(/Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin, 10): Symbol not found: __ZN7GemBase14beforeDeletionEv Referenced from: /Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin Expected in: flat namespace in /Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin pix_demo ... couldn't create
I also tred to build pix_demo.d_fat, but it says: make: *** No rule to make target `pix_demo.d_fat'. Stop.
Thanks!
J
On May 4, 2015, at 11:26 AM, Antoine Villeret antoine.villeret@gmail.com wrote:
hi,
did you try to load it with 64bit version of Pd ?
you probably miss the --enable-fat-binary=<arch> flag please refer to https://github.com/umlaeute/Gem/wiki/How-to-build-Gem-on-MacOSX-Mavericks#co... to learn how to build 32bit and 64bit of Gem Please also note that it should be possible to build a FAT binary (32+64bit).
best
a
-- do it yourself
http://antoine.villeret.free.fr2015-05-04 17:08 GMT+02:00 Jaime E Oliver jaime.oliver2@gmail.com: Hi all,
I have successfully compiled a GEM external in OS X using the latest gem from git and Pd 0.45-5. When I try to load this external I get that it finds it, but complains about the architecture:
[…]/Gem-master/extra/pix_demo/pix_demo.pd_darwin: mach-o, but wrong architecture pix_demo ... couldn't create
I assume I need to add a flag but not entirely sure which one or where to put it.
Any suggestions?
best,
J _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
2015-05-04 17:57 GMT+02:00 Jaime E Oliver jaime.oliver2@gmail.com:
Hi Antoine,
Thanks for the info and the reference page.
When I open the 64 bit version of Pd it cannot open the OS X precompiled version of GEM I downloaded from http://gem.iem.at/: "no matching architecture in universal wrapper". I used to be able to compile an external and use it with this version of GEM, but this strategy might not work anymore.
oups sorry, I've read your first message too quickly, I was thinking you were building Gem itself.
I tried:
./configure --enable-fat-binary=i386 --with-pd=/Applications/Pd-0.45-4.app/Contents/Resources/
then make pix_demo.pd_darwin, but when I try to create the object in Pd I get:
/Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin: dlopen(/Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin, 10): Symbol not found: __ZN7GemBase14beforeDeletionEv Referenced from: /Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin Expected in: flat namespace in /Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin pix_demo ... couldn't create
I'm not sure to undestand well what you're trying to do are you trying to make an external that uses Gem (and Pd) ? or are you trying to build Gem and add it an extra object ?
For the former, you can have a look at some Gem external like pix_opencv [1] or pix_openni [2]. pix_opencv build system is based on autotools like Gem. pix_openni Makefile is based on external template [3].
For the later, you have to modify Makefile.am and probably configure.ac too to include your external. But in this case, you may want to start by adding your source to a known folder (like Geos or something like that) rather than making a new folder for it.
I think the first case is the easiest.
Best a
[1] : https://github.com/avilleret/pix_opencv [2] : https://github.com/avilleret/pix_openni/blob/master/Makefile [3] : https://sourceforge.net/p/pure-data/svn/HEAD/tree/trunk/externals/template/M...
I also tred to build pix_demo.d_fat, but it says: make: *** No rule to make target `pix_demo.d_fat'. Stop.
Thanks!
J
On May 4, 2015, at 11:26 AM, Antoine Villeret antoine.villeret@gmail.com wrote:
hi,
did you try to load it with 64bit version of Pd ?
you probably miss the --enable-fat-binary=<arch> flag please refer to https://github.com/umlaeute/Gem/wiki/How-to-build-Gem-on-MacOSX-Mavericks#co... to learn how to build 32bit and 64bit of Gem Please also note that it should be possible to build a FAT binary (32+64bit).
best
a
-- do it yourself http://antoine.villeret.free.fr
2015-05-04 17:08 GMT+02:00 Jaime E Oliver jaime.oliver2@gmail.com:
Hi all,
I have successfully compiled a GEM external in OS X using the latest gem from git and Pd 0.45-5. When I try to load this external I get that it finds it, but complains about the architecture:
[…]/Gem-master/extra/pix_demo/pix_demo.pd_darwin: mach-o, but wrong architecture pix_demo ... couldn't create
I assume I need to add a flag but not entirely sure which one or where to put it.
Any suggestions?
best,
J _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 05/04/2015 05:08 PM, Jaime E Oliver wrote:
Hi all,
I have successfully compiled a GEM external in OS X using the latest gem from git and Pd 0.45-5. When I try to load this external I get that it finds it, but complains about the architecture:
[…]/Gem-master/extra/pix_demo/pix_demo.pd_darwin: mach-o, but wrong architecture pix_demo ... couldn't create
so what's the architecture of pix_demo.pd_darwin, Gem.pd_darwin and Pd resp.?
I assume I need to add a flag but not entirely sure which one or where to put it.
most likely you are using an i386 Gem (as provided on gem.iem.at) and Pd, so you need to make sure that your external is i386 as well. do this by passing "-arch i386" (or even better. "-arch i386 -arch x86_64", which will give you fat binaries) to both the compiler and the linker.
if you build pix_demo in-tree (that is, in extra/, like pix_drum) using Gem's build-system, this should happen automatically via the @GEM_ARCH_CXXFLAGS@/@GEM_ARCH_LDFLAGS@ templates.
gfmsard IOhannes
On 05/04/2015 07:32 PM, IOhannes m zmölnig wrote:
On 05/04/2015 05:08 PM, Jaime E Oliver wrote:
Hi all,
I have successfully compiled a GEM external in OS X using the latest gem from git and Pd 0.45-5. When I try to load this external I get that it finds it, but complains about the architecture:
[…]/Gem-master/extra/pix_demo/pix_demo.pd_darwin: mach-o, but wrong architecture pix_demo ... couldn't create
so what's the architecture of pix_demo.pd_darwin, Gem.pd_darwin and Pd resp.?
just run "file" on the given file, as in:
$ file zexy.d_fat zexy.d_fat: Mach-O universal binary with 2 architectures zexy.d_fat (for architecture i386): Mach-O bundle i386 zexy.d_fat (for architecture x86_64): Mach-O 64-bit bundle x86_64
fmsdar IOhannes
So here it is:
localhost:pix_demo jo57$ file pix_demo.pd_darwin pix_demo.pd_darwin: Mach-O bundle i386
and the error in Pd is:
/Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin: dlopen(/Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin, 10): Symbol not found: __ZN7GemBase14beforeDeletionEv Referenced from: /Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin Expected in: flat namespace in /Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin pix_demo ... couldn't create
?
J
On May 4, 2015, at 1:39 PM, IOhannes m zmölnig zmoelnig@iem.at wrote:
On 05/04/2015 07:32 PM, IOhannes m zmölnig wrote:
On 05/04/2015 05:08 PM, Jaime E Oliver wrote:
Hi all,
I have successfully compiled a GEM external in OS X using the latest gem from git and Pd 0.45-5. When I try to load this external I get that it finds it, but complains about the architecture:
[…]/Gem-master/extra/pix_demo/pix_demo.pd_darwin: mach-o, but wrong architecture pix_demo ... couldn't create
so what's the architecture of pix_demo.pd_darwin, Gem.pd_darwin and Pd resp.?
just run "file" on the given file, as in:
$ file zexy.d_fat zexy.d_fat: Mach-O universal binary with 2 architectures zexy.d_fat (for architecture i386): Mach-O bundle i386 zexy.d_fat (for architecture x86_64): Mach-O 64-bit bundle x86_64
fmsdar IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
did you load Gem into Pd *before* trying to instanciate your object ?
-- do it yourself http://antoine.villeret.free.fr
2015-05-04 20:04 GMT+02:00 Jaime E Oliver jaime.oliver2@gmail.com:
So here it is:
localhost:pix_demo jo57$ file pix_demo.pd_darwin pix_demo.pd_darwin: Mach-O bundle i386
and the error in Pd is:
/Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin: dlopen(/Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin, 10): Symbol not found: __ZN7GemBase14beforeDeletionEv Referenced from: /Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin Expected in: flat namespace in /Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin pix_demo ... couldn't create
?
J
On May 4, 2015, at 1:39 PM, IOhannes m zmölnig zmoelnig@iem.at wrote:
On 05/04/2015 07:32 PM, IOhannes m zmölnig wrote:
On 05/04/2015 05:08 PM, Jaime E Oliver wrote:
Hi all,
I have successfully compiled a GEM external in OS X using the latest
gem from git and Pd 0.45-5. When I try to load this external I get that it finds it, but complains about the architecture:
[…]/Gem-master/extra/pix_demo/pix_demo.pd_darwin: mach-o, but wrong
architecture
pix_demo ... couldn't create
so what's the architecture of pix_demo.pd_darwin, Gem.pd_darwin and Pd resp.?
just run "file" on the given file, as in:
$ file zexy.d_fat zexy.d_fat: Mach-O universal binary with 2 architectures zexy.d_fat (for architecture i386): Mach-O bundle i386 zexy.d_fat (for architecture x86_64): Mach-O 64-bit bundle x86_64
fmsdar IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
yes…
On May 4, 2015, at 2:09 PM, Antoine Villeret antoine.villeret@gmail.com wrote:
did you load Gem into Pd *before* trying to instanciate your object ?
-- do it yourself
http://antoine.villeret.free.fr2015-05-04 20:04 GMT+02:00 Jaime E Oliver jaime.oliver2@gmail.com: So here it is:
localhost:pix_demo jo57$ file pix_demo.pd_darwin pix_demo.pd_darwin: Mach-O bundle i386
and the error in Pd is:
/Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin: dlopen(/Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin, 10): Symbol not found: __ZN7GemBase14beforeDeletionEv Referenced from: /Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin Expected in: flat namespace in /Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin pix_demo ... couldn't create
?
J
On May 4, 2015, at 1:39 PM, IOhannes m zmölnig zmoelnig@iem.at wrote:
On 05/04/2015 07:32 PM, IOhannes m zmölnig wrote:
On 05/04/2015 05:08 PM, Jaime E Oliver wrote:
Hi all,
I have successfully compiled a GEM external in OS X using the latest gem from git and Pd 0.45-5. When I try to load this external I get that it finds it, but complains about the architecture:
[…]/Gem-master/extra/pix_demo/pix_demo.pd_darwin: mach-o, but wrong architecture pix_demo ... couldn't create
so what's the architecture of pix_demo.pd_darwin, Gem.pd_darwin and Pd resp.?
just run "file" on the given file, as in:
$ file zexy.d_fat zexy.d_fat: Mach-O universal binary with 2 architectures zexy.d_fat (for architecture i386): Mach-O bundle i386 zexy.d_fat (for architecture x86_64): Mach-O 64-bit bundle x86_64
fmsdar IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 05/04/2015 08:04 PM, Jaime E Oliver wrote:
So here it is:
localhost:pix_demo jo57$ file pix_demo.pd_darwin pix_demo.pd_darwin: Mach-O bundle i386
and the error in Pd is:
/Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin: dlopen(/Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin, 10): Symbol not found: __ZN7GemBase14beforeDeletionEv Referenced from: /Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin Expected in: flat namespace in /Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin pix_demo ... couldn't create
looks very much like you are trying to use [pix_demo] with a different version of Gem than you used for building your external. (e.g. using Gem.pd_darwin in ~/Library/Pd/Gem rather than /Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/Gem.pd_darwin.
fgmadsr IOhannes
That is correct, and I guess also the problem…
I was approaching it like having an external binary compiled in some pd source which is generally compatible with a pd binary from another source as long as architectures are the same.
If the solution is to use the same source for the external than for the gem binary I only see two possibilities and two associated problems:
Problem 1: The gem-master source fails to compile with the following error after make:
In file included from TextBaseFTGL.cpp:24: ./TextBase.h:38:12: fatal error: 'FTFont.h' file not found # include "FTFont.h" ^ 1 error generated. make[3]: *** [libBase_la-TextBaseFTGL.lo] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all] Error 2 make: *** [all-recursive] Error 1
Problem 2: The 0.93.3 source fails to run autogen.sh. It fails with the following (some repeated lines omitted):
configure.ac:99: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') /opt/local/share/automake-1.15/am/depend2.am: error: am__fastdepOBJCXX does not appear in AM_CONDITIONAL /opt/local/share/automake-1.15/am/depend2.am: The usual way to define 'am__fastdepOBJCXX' is to add 'AC_PROG_OBJCXX' /opt/local/share/automake-1.15/am/depend2.am: to 'configure.ac' and run 'aclocal' and 'autoconf' again src/Output/Makefile.am: error: Objective C++ source seen but 'OBJCXX' is undefined src/Output/Makefile.am: The usual way to define 'OBJCXX' is to add 'AC_PROG_OBJCXX' src/Output/Makefile.am: to 'configure.ac' and run 'autoconf' again. configure.ac:99: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') autoreconf: /opt/local/bin/automake failed with exit status: 1
So the question is which of the following paths to follow compiling the gem-master or attempting to get 0.93.3 to run the autogen and then compile the external… and I really don't know which one will offer less resistance...
best,
J
On May 4, 2015, at 3:19 PM, IOhannes m zmölnig zmoelnig@iem.at wrote:
On 05/04/2015 08:04 PM, Jaime E Oliver wrote:
So here it is:
localhost:pix_demo jo57$ file pix_demo.pd_darwin pix_demo.pd_darwin: Mach-O bundle i386
and the error in Pd is:
/Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin: dlopen(/Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin, 10): Symbol not found: __ZN7GemBase14beforeDeletionEv Referenced from: /Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin Expected in: flat namespace in /Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin pix_demo ... couldn't create
looks very much like you are trying to use [pix_demo] with a different version of Gem than you used for building your external. (e.g. using Gem.pd_darwin in ~/Library/Pd/Gem rather than /Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/Gem.pd_darwin.
fgmadsr IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
2015-05-05 18:54 GMT+02:00 Jaime E Oliver jaime.oliver2@gmail.com:
That is correct, and I guess also the problem…
I was approaching it like having an external binary compiled in some pd source which is generally compatible with a pd binary from another source as long as architectures are the same.
If the solution is to use the same source for the external than for the gem binary I only see two possibilities and two associated problems:
*Problem 1:* The gem-master source fails to compile with the following error after make:
In file included from TextBaseFTGL.cpp:24: ./TextBase.h:38:12: fatal error: 'FTFont.h' file not found # include "FTFont.h" ^ 1 error generated. make[3]: *** [libBase_la-TextBaseFTGL.lo] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all] Error 2 make: *** [all-recursive] Error 1
see https://github.com/umlaeute/Gem/wiki/How-to-build-Gem-on-MacOSX-Mavericks#im... to install freetype and for some tip about building Gem with FTGL you can also try to disable it (with ./condifure --without-ftgl) but I'm not sure if that helps
*Problem 2:* The 0.93.3 source fails to run autogen.sh. It fails with the following (some repeated lines omitted):
configure.ac:99: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') /opt/local/share/automake-1.15/am/depend2.am: error: am__fastdepOBJCXX does not appear in AM_CONDITIONAL /opt/local/share/automake-1.15/am/depend2.am: The usual way to define 'am__fastdepOBJCXX' is to add 'AC_PROG_OBJCXX' /opt/local/share/automake-1.15/am/depend2.am: to 'configure.ac' and run 'aclocal' and 'autoconf' again src/Output/Makefile.am: error: Objective C++ source seen but 'OBJCXX' is undefined src/Output/Makefile.am: The usual way to define 'OBJCXX' is to add 'AC_PROG_OBJCXX' src/Output/Makefile.am: to 'configure.ac' and run 'autoconf' again. configure.ac:99: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') autoreconf: /opt/local/bin/automake failed with exit status: 1
So the question is which of the following paths to follow compiling the gem-master or attempting to get 0.93.3 to run the autogen and then compile the external… and I really don't know which one will offer less resistance...
it depends on the OS X version you are working with, and what you want to do (if you need text2d/text3d and/or pix_video see https://github.com/umlaeute/Gem/wiki/plugin-compatibility-matrix)
moreover, if you have a working 0.93.3 binary that suits your needs, why don't you try to build your external against that version ? I mean outside the Gem source tree, but with a small handmade (or copy & paste) makefile ?
a
best,
J
On May 4, 2015, at 3:19 PM, IOhannes m zmölnig zmoelnig@iem.at wrote:
On 05/04/2015 08:04 PM, Jaime E Oliver wrote:
So here it is:
localhost:pix_demo jo57$ file pix_demo.pd_darwin pix_demo.pd_darwin: Mach-O bundle i386
and the error in Pd is:
/Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin: dlopen(/Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin, 10): Symbol not found: __ZN7GemBase14beforeDeletionEv Referenced from: /Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin Expected in: flat namespace in /Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/extra/pix_demo/pix_demo.pd_darwin pix_demo ... couldn't create
looks very much like you are trying to use [pix_demo] with a different version of Gem than you used for building your external. (e.g. using Gem.pd_darwin in ~/Library/Pd/Gem rather than
/Users/jo57/Documents/NYU/Courses/2015-1-IMG-SND-GESTURE/session-13/Gem-master/Gem.pd_darwin.
fgmadsr IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 2015-05-05 18:54, Jaime E Oliver wrote:
That is correct, and I guess also the problem…
I was approaching it like having an external binary compiled in some pd source which is generally compatible with a pd binary from another source as long as architectures are the same.
If the solution is to use the same source for the external than for the gem binary I only see two possibilities and two associated problems:
Problem 1: The gem-master source fails to compile with the following error after make:
In file included from TextBaseFTGL.cpp:24: ./TextBase.h:38:12: fatal error: 'FTFont.h' file not found # include "FTFont.h"
please check [1] and [2] what you can do about this and why i think that this is not a problem of Gem.
fgmaser IOhannes
[1] https://github.com/umlaeute/Gem/wiki/How-to-build-Gem-on-MacOSX-Mavericks#im... [2] https://github.com/umlaeute/Gem/issues/28
github seems to be currently unresponsive though...
Hi Iohannes,
so what's the architecture of pix_demo.pd_darwin, Gem.pd_darwin and Pd resp.?
They're all i386, unless i've done something wrong with pix_demo.
I assume I need to add a flag but not entirely sure which one or where to put it.
most likely you are using an i386 Gem (as provided on gem.iem.at) and Pd, so you need to make sure that your external is i386 as well. do this by passing "-arch i386" (or even better. "-arch i386 -arch x86_64", which will give you fat binaries) to both the compiler and the linker.
you mean using this flag: --enable-fat-binary=i386 ? or how?
if you build pix_demo in-tree (that is, in extra/, like pix_drum) using Gem's build-system, this should happen automatically via the @GEM_ARCH_CXXFLAGS@/@GEM_ARCH_LDFLAGS@ templates.
This is exactly what I did. Which is why I was surprised when it didn't work…
J
gfmsard IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list