leozimmerman / ofxAudioAnalyzer

openFrameworks wrapper for Essentia. Audio analysis algorithms in real-time
GNU Affero General Public License v3.0
183 stars 37 forks source link

addon compilation issue with qt on mac #7

Open burakertekin opened 7 years ago

burakertekin commented 7 years ago

Hello,

I've been trying to compile this addon with Qt 5.7.0 on mac OS 10.12.1. Using .qbs build system.

I'm getting the following linker error: ld: framework not found /Users/burakertekin/openFrameworks/addons/ofxAudioAnalyzer/OpenAL clang: error: linker command failed with exit code 1 (use -v to see invocation) Process failed with exit code 1. Although, I've added OpenAL to frameworks list in qbs file. Do I have to compile this addon somehow? Anybody have an idea on this?

Thanks!

leozimmerman commented 7 years ago

In OSX the audio file player needs OpenAL framework. It seems Qt isn'n likning it right, but I don't use Qt and I can't help you very much with that. The Xcode projects have it included and are ready to compile. Try using the Project Generator

burakertekin commented 7 years ago

It seems the linking problem is no more with Xcode; However I'm getting the following error: /Users/burakertekin/openFrameworks/apps/ofxPlayground/audioAnalyze/src/ofApp.h:29:31: Field type 'ofSoundPlayerExtended' is an abstract class Any idea on this maybe?

leozimmerman commented 7 years ago

Do you have that error compiling the examples also? If not, maybe is something in your code

burakertekin commented 7 years ago

Yeap, I get this error while compiling "allAlgorithms" example.

leozimmerman commented 7 years ago

Using this fork https://github.com/leozimmerman/ofxAudioDecoder ?

burakertekin commented 7 years ago

Yes. I'm using that fork.

leozimmerman commented 7 years ago

Ok, that's weird. What version of OF, Xcode OSX are you using, please post more log info about the error

burakertekin commented 7 years ago

I'm using master branch OF, Xcode 8.1 and running on macOS 10.12.1. And the following is the error:

example-allAlgorithms Group Semantic Issue Group /Users/burakertekin/openFrameworks/addons/ofxAudioAnalyzer/src/ofxAudioAnalyzer.cpp:123:16: Reference to stack memory associated with local variable 'r' returned /Users/burakertekin/openFrameworks/addons/ofxAudioAnalyzer/src/ofxAudioAnalyzer.cpp:135:16: Reference to stack memory associated with local variable 'r' returned /Users/burakertekin/openFrameworks/addons/ofxAudioAnalyzer/example-allAlgorithms/src/ofApp.h:29:31: Field type 'ofSoundPlayerExtended' is an abstract class /Users/burakertekin/openFrameworks/addons/ofxAudioAnalyzer/example-allAlgorithms/src/main.cpp:11:2: No matching function for call to 'ofRunApp'

leozimmerman commented 7 years ago

Try using OF 0.9.7, thats the last stable version that I know its working. I think it might be that

transat commented 7 years ago

I'm getting the same errors as @burakertekin . With Xcode 8.1 OS 10.12.2 and using the master branch.

transat commented 7 years ago

@burakertekin I think I've got it fixed for 0.9.8. if you'd like to try this out: #8 and confirm.