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

Error. Undefined symbol: pdsp::WhiteNoise::out_signal() #76

Open
steeley opened this issue Aug 12, 2022 · 4 comments
Open

Error. Undefined symbol: pdsp::WhiteNoise::out_signal() #76

steeley opened this issue Aug 12, 2022 · 4 comments

Comments

@steeley
Copy link

steeley commented Aug 12, 2022

Using OF 0.11.2 on OSX Big Sur

if I patch a VAoscillator it works ok.
osc.out_sine() >> engine.audio_out(1);

if I have a WhiteNoise object called wNoise and do this instead, I get the compile error shown below:
wNoise.out_signal() >> engine.audio_out(1);

`Ld /Volumes/Extra/of_v0.11.2_osx_release/apps/myApps/pDspSigGen/bin/pDspSigGenDebug.app/Contents/MacOS/pDspSigGenDebug normal (in target 'pDspSigGen' from project 'pDspSigGen')
cd /Volumes/Extra/of_v0.11.2_osx_release/apps/myApps/pDspSigGen
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target x86_64-apple-macos10.9 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -L/Volumes/Extra/of_v0.11.2_osx_release/apps/myApps/pDspSigGen/bin -F/Volumes/Extra/of_v0.11.2_osx_release/apps/myApps/pDspSigGen/bin -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks -filelist /Users/ian/Library/Developer/Xcode/DerivedData/pDspSigGen-bcyghfxnmwlaimbdogyycslpkybs/Build/Intermediates.noindex/pDspSigGen.build/Debug/pDspSigGen.build/Objects-normal/x86_64/pDspSigGenDebug.LinkFileList -dead_strip -Xlinker -object_path_lto -Xlinker /Users/ian/Library/Developer/Xcode/DerivedData/pDspSigGen-bcyghfxnmwlaimbdogyycslpkybs/Build/Intermediates.noindex/pDspSigGen.build/Debug/pDspSigGen.build/Objects-normal/x86_64/pDspSigGenDebug_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -stdlib=libc++ ../../../libs/tess2/lib/osx/tess2.a ../../../libs/glew/lib/osx/glew.a ../../../libs/cairo/lib/osx/cairo-script-interpreter.a ../../../libs/cairo/lib/osx/cairo.a ../../../libs/cairo/lib/osx/pixman-1.a ../../../libs/fmod/lib/osx/libfmod.dylib ../../../libs/rtAudio/lib/osx/rtaudio.a ../../../libs/glfw/lib/osx/glfw3.a ../../../libs/FreeImage/lib/osx/freeimage.a ../../../libs/freetype/lib/osx/freetype.a ../../../libs/boost/lib/osx/boost_filesystem.a ../../../libs/boost/lib/osx/boost_system.a ../../../libs/curl/lib/osx/curl.a ../../../libs/uriparser/lib/osx/uriparser.a ../../../libs/pugixml/lib/osx/pugixml.a -framework Accelerate -framework AGL -framework AppKit -framework ApplicationServices -framework AudioToolbox -framework AVFoundation -framework Cocoa -framework CoreAudio -framework CoreFoundation -framework CoreMedia -framework CoreServices -framework CoreVideo -framework IOKit -framework OpenGL -framework QuartzCore -framework QTKit -framework Security ../../../libs/openFrameworksCompiled/lib/osx/openFrameworksDebug.a -framework CoreMIDI -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/ian/Library/Developer/Xcode/DerivedData/pDspSigGen-bcyghfxnmwlaimbdogyycslpkybs/Build/Intermediates.noindex/pDspSigGen.build/Debug/pDspSigGen.build/Objects-normal/x86_64/pDspSigGenDebug_dependency_info.dat -o /Volumes/Extra/of_v0.11.2_osx_release/apps/myApps/pDspSigGen/bin/pDspSigGenDebug.app/Contents/MacOS/pDspSigGenDebug

ld: warning: object file (../../../libs/rtAudio/lib/osx/rtaudio.a(RtAudio.o)) was built for newer macOS version (10.15) than being linked (10.9)
Undefined symbols for architecture x86_64:
"pdsp::WhiteNoise::out_signal()", referenced from:
ofApp::setup() in ofApp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
`

@npisanti
Copy link
Owner

i don't have a mac with that OSX version for testing this issue, any PR for solving it are welcome

@steeley
Copy link
Author

steeley commented Aug 21, 2022

What software/OS version are you using?
I can try on a different machine maybe.

If you have a pDSP white noise example that you know is working I can try that.

@npisanti
Copy link
Owner

At the moment i'm using Debian 11, i also have access to a window 10 machine (but not all the time). I still have to setup an OSX machine again. But i think it should be tested on osx because the error looks like an OSX specific linking error.

@steeley
Copy link
Author

steeley commented Sep 16, 2022

I found that patching the white noise through an amplifier or other module before patching to the output seems to
work without an error.

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

No branches or pull requests

2 participants