Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osx compile issue #1

Closed
ofZach opened this issue Dec 7, 2012 · 4 comments
Closed

osx compile issue #1

ofZach opened this issue Dec 7, 2012 · 4 comments
Assignees

Comments

@ofZach
Copy link

ofZach commented Dec 7, 2012

this is more a problem with armadillo then ofxSequence, but I thought I'd post it here in case it's helpful:

openframeworks/openFrameworks#1728

armadillo conflicts with a header that OF is pushing on it.

I fixed this by hand changing all the instances of "check()" within armadillo, but there's probably some simple #undef trick people can use.

on the OF side, we'll investigate the conflict including armadillo in an osx project causes, and I might post an OSX specific version of ofxSequence up in a branch if it's helpful.

@kamend
Copy link

kamend commented Dec 7, 2012

Hey Zach, would you mind telling which version of Armadillo, are you using. I was able to compile 3.6.0 and I fixed the "check" issue, but could not run ofxSequence, I get a compile error:

Undefined symbols for architecture i386:
"wrapper_dgemm", referenced from:
void arma::blas::gemm(char const_, char const_, int const_, int const_, int const_, double const_, double const_, int const_, double const_, int const_, double const_, double_, int const_) in HMM.o
"wrapper_dgemv", referenced from:
void arma::blas::gemv(char const_, int const_, int const_, double const_, double const_, int const_, double const_, int const_, double const_, double_, int const_) in HMM.o

.. and I could not figure this out.

Thanks!

@ofZach
Copy link
Author

ofZach commented Dec 7, 2012

I am using 3.4.4

I thin, for that issue, I altered this in config.hpp:

#if !defined(ARMA_USE_BLAS)
//#define ARMA_USE_BLAS
//// Uncomment the above line if you have BLAS or a high-speed replacement for BLAS,
//// such as GotoBLAS, Intel's MKL, AMD's ACML, or the Accelerate framework.
//// BLAS is used for matrix multiplication.
//// Without BLAS, matrix multiplication will still work, but might be slower.
#endif

commenting out #define ARMA_USE_BLAS which seems to force armadillo to use accelerate framework and link properly. I've noticed that armadillo is compiled (via cmake or brew) to be 64 bit, so that might be the linking issue you are seeing.

@kamend
Copy link

kamend commented Dec 7, 2012

Thanks a bunch! Compiled the latest version, without any issues, now I have to figure out how this thing actually works :)

@ghost ghost assigned nkint Dec 12, 2012
@nkint
Copy link
Owner

nkint commented Dec 12, 2012

Hei! Sorry for the late view but my life is quite busy right now.
I'm glad you try to use this addons. I'm going to write some issues on the main README.md for this.

So, I',, close this issue, if you think there is a better way (open a branch?) let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants