I'm guessing OSX is forcing pocketsphinx and sphinxbase to be compiled as 64 bit by default. So I'm hit with these errors when I try and link them in my Xcode 6 project with OpenFrameworks.
~~~~~~~~
ld: warning: ignoring file /usr/local/lib/libsphinxbase.3.dylib,
file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libsphinxbase.3.dylib
ld: warning: ignoring file /usr/local/lib/libsphinxad.3.dylib,
file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libsphinxad.3.dylib
ld: warning: ignoring file /usr/local/lib/libpocketsphinx.3.dylib,
file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libpocketsphinx.3.dylib
~~~~~~~~~~~
Without OpenFrameworks linked everything works fine, so I know I have installed the sphinx libs correctly.
So my question is how can I build sphinxbase and pocketsphinx as 32 bit libs on OSX and is this possible?
Last edit: Benjamin Gorman 2015-06-09
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey,
I'm trying to use pocketsphinx in an application which makes use of OpenFrameworks. OpenFrameworks on OSX is a 32 bit library. https://github.com/openframeworks/openFrameworks
I'm guessing OSX is forcing pocketsphinx and sphinxbase to be compiled as 64 bit by default. So I'm hit with these errors when I try and link them in my Xcode 6 project with OpenFrameworks.
~~~~~~~~
ld: warning: ignoring file /usr/local/lib/libsphinxbase.3.dylib,
file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libsphinxbase.3.dylib
ld: warning: ignoring file /usr/local/lib/libsphinxad.3.dylib,
file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libsphinxad.3.dylib
ld: warning: ignoring file /usr/local/lib/libpocketsphinx.3.dylib,
file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libpocketsphinx.3.dylib
~~~~~~~~~~~
Without OpenFrameworks linked everything works fine, so I know I have installed the sphinx libs correctly.
So my question is how can I build sphinxbase and pocketsphinx as 32 bit libs on OSX and is this possible?
Last edit: Benjamin Gorman 2015-06-09
Run
It should install i386.
You can add other required flags to CFLAGS.
Perfect! Thanks!
Should this maybe be added to the tutorial?
Last edit: Benjamin Gorman 2015-06-10