ofxAudioAnalyzer icon indicating copy to clipboard operation
ofxAudioAnalyzer copied to clipboard

addon compilation issue with qt on mac

Open burakertekin opened this issue 8 years ago • 11 comments

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!

burakertekin avatar Dec 05 '16 00:12 burakertekin

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

leozimmerman avatar Dec 05 '16 15:12 leozimmerman

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?

burakertekin avatar Dec 05 '16 23:12 burakertekin

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

leozimmerman avatar Dec 05 '16 23:12 leozimmerman

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

burakertekin avatar Dec 06 '16 09:12 burakertekin

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

leozimmerman avatar Dec 06 '16 15:12 leozimmerman

Yes. I'm using that fork.

burakertekin avatar Dec 06 '16 15:12 burakertekin

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

leozimmerman avatar Dec 06 '16 15:12 leozimmerman

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'

burakertekin avatar Dec 06 '16 16:12 burakertekin

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

leozimmerman avatar Dec 08 '16 17:12 leozimmerman

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

transat avatar Jan 30 '17 12:01 transat

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

transat avatar Jan 31 '17 08:01 transat