Open steeley opened 2 years ago
i don't have a mac with that OSX version for testing this issue, any PR for solving it are welcome
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.
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.
I found that patching the white noise through an amplifier or other module before patching to the output seems to work without an error.
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) `