Closed kalun88 closed 3 years ago
Looks like you're making progress.
Try installing homebrew and brew install eigen
before you compile again. If that doesn't work you may need to add a flag to the compile flags so that xcode can find the eigen headers...
I will help you work through this later today in any case.
I think I managed to install Eigen and have the .h file point to it. New issue now:
So we got eigen and the submodules all working smoothly during our meeting but there remains some kind of conflict between a CoreFoundation header included by the readerwriterqueue library and the Juce includes. Both define a type named "Point" but for some reason the compiler can't tell which to use. I'm going to try separating the readerwriterqueue include so that it doesn't appear in the same compilation unit as anything Juce related and hopefully that will resolve the issue...
Apparently this is an issue others have encountered: https://forum.juce.com/t/juce-is-busted-in-xcode-11-4/38249/36
I'm adding some preprocessor mumbo jumbo to try to make sure the juce headers are included last of all, hopefully that will help.
@kalun88 please pull the latest wip and try compiling again.
Similar "point" error. Here's Not sure if this is the export txt you're thinking of:
Showing Recent Issues CompileC /Users/leunk117/Library/Developer/Xcode/DerivedData/granular-gmdetlpsxylggigfxwndrrylzyjz/Build/Intermediates.noindex/granular.build/Debug/granular\ -\ App.build/Objects-normal/x86_64/list.o /Users/leunk117/repos/mubone/granular/Test/list.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler cd /Users/leunk117/repos/mubone/granular/Builds/MacOSX export LANG=en_US.US-ASCII /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -target x86_64-apple-macos10.12 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c++1z -stdlib=libc++ -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Wunreachable-code -Wnon-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -D_DEBUG=1 -DDEBUG=1 -DRUNTESTS=1 -DJUCER_XCODE_MAC_F6D2F4CF=1 -DJUCE_APP_VERSION=0.0.5 -DJUCE_APP_VERSION_HEX=0x5 -DJucePlugin_Build_VST=0 -DJucePlugin_Build_VST3=0 -DJucePlugin_Build_AU=0 -DJucePlugin_Build_AUv3=0 -DJucePlugin_Build_RTAS=0 -DJucePlugin_Build_AAX=0 -DJucePlugin_Build_Standalone=0 -DJucePlugin_Build_Unity=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -index-store-path /Users/leunk117/Library/Developer/Xcode/DerivedData/granular-gmdetlpsxylggigfxwndrrylzyjz/Index/DataStore -I/Users/leunk117/repos/mubone/granular/Builds/MacOSX/build/Debug/include -I../../JuceLibraryCode -I/Users/leunk117/Google\ Drive\ (kalunis@gmail.com)/Projects/Mubone/MuGranulator/JUCE/modules -I/Users/leunk117/Library/Developer/Xcode/DerivedData/granular-gmdetlpsxylggigfxwndrrylzyjz/Build/Intermediates.noindex/granular.build/Debug/granular\ -\ App.build/DerivedSources-normal/x86_64 -I/Users/leunk117/Library/Developer/Xcode/DerivedData/granular-gmdetlpsxylggigfxwndrrylzyjz/Build/Intermediates.noindex/granular.build/Debug/granular\ -\ App.build/DerivedSources/x86_64 -I/Users/leunk117/Library/Developer/Xcode/DerivedData/granular-gmdetlpsxylggigfxwndrrylzyjz/Build/Intermediates.noindex/granular.build/Debug/granular\ -\ App.build/DerivedSources -Wreorder -F/Users/leunk117/repos/mubone/granular/Builds/MacOSX/build/Debug -F/usr/local/lib -I/Users/westerncompass/_Repos/Github/readerwriterqueue -I/usr/local/include -MMD -MT dependencies -MF /Users/leunk117/Library/Developer/Xcode/DerivedData/granular-gmdetlpsxylggigfxwndrrylzyjz/Build/Intermediates.noindex/granular.build/Debug/granular\ -\ App.build/Objects-normal/x86_64/list.d --serialize-diagnostics /Users/leunk117/Library/Developer/Xcode/DerivedData/granular-gmdetlpsxylggigfxwndrrylzyjz/Build/Intermediates.noindex/granular.build/Debug/granular\ -\ App.build/Objects-normal/x86_64/list.dia -c /Users/leunk117/repos/mubone/granular/Test/list.cpp -o /Users/leunk117/Library/Developer/Xcode/DerivedData/granular-gmdetlpsxylggigfxwndrrylzyjz/Build/Intermediates.noindex/granular.build/Debug/granular\ -\ App.build/Objects-normal/x86_64/list.o
/Users/leunk117/repos/mubone/granular/Test/list.cpp:29:14: warning: unused variable 'l' [-Wunused-variable] auto l = List{1, true, 5.0}; ^ /Users/leunk117/repos/mubone/granular/Test/list.cpp:87:9: warning: unused variable 'i' [-Wunused-variable] int i = a + b; ^ /Users/leunk117/repos/mubone/granular/Test/list.cpp:89:9: warning: unused variable 'k' [-Wunused-variable] int k = e + f; ^ /Users/leunk117/repos/mubone/granular/Test/list.cpp:88:9: warning: unused variable 'j' [-Wunused-variable] int j = c + d; ^ 4 warnings generated.
CompileC /Users/leunk117/Library/Developer/Xcode/DerivedData/granular-gmdetlpsxylggigfxwndrrylzyjz/Build/Intermediates.noindex/granular.build/Debug/granular\ -\ App.build/Objects-normal/x86_64/audiosphere-1A476B374BF77BA.o /Users/leunk117/repos/mubone/granular/Source/audiosphere.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler cd /Users/leunk117/repos/mubone/granular/Builds/MacOSX export LANG=en_US.US-ASCII /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -target x86_64-apple-macos10.12 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c++1z -stdlib=libc++ -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Wunreachable-code -Wnon-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -D_DEBUG=1 -DDEBUG=1 -DRUNTESTS=1 -DJUCER_XCODE_MAC_F6D2F4CF=1 -DJUCE_APP_VERSION=0.0.5 -DJUCE_APP_VERSION_HEX=0x5 -DJucePlugin_Build_VST=0 -DJucePlugin_Build_VST3=0 -DJucePlugin_Build_AU=0 -DJucePlugin_Build_AUv3=0 -DJucePlugin_Build_RTAS=0 -DJucePlugin_Build_AAX=0 -DJucePlugin_Build_Standalone=0 -DJucePlugin_Build_Unity=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -index-store-path /Users/leunk117/Library/Developer/Xcode/DerivedData/granular-gmdetlpsxylggigfxwndrrylzyjz/Index/DataStore -I/Users/leunk117/repos/mubone/granular/Builds/MacOSX/build/Debug/include -I../../JuceLibraryCode -I/Users/leunk117/Google\ Drive\ (kalunis@gmail.com)/Projects/Mubone/MuGranulator/JUCE/modules -I/Users/leunk117/Library/Developer/Xcode/DerivedData/granular-gmdetlpsxylggigfxwndrrylzyjz/Build/Intermediates.noindex/granular.build/Debug/granular\ -\ App.build/DerivedSources-normal/x86_64 -I/Users/leunk117/Library/Developer/Xcode/DerivedData/granular-gmdetlpsxylggigfxwndrrylzyjz/Build/Intermediates.noindex/granular.build/Debug/granular\ -\ App.build/DerivedSources/x86_64 -I/Users/leunk117/Library/Developer/Xcode/DerivedData/granular-gmdetlpsxylggigfxwndrrylzyjz/Build/Intermediates.noindex/granular.build/Debug/granular\ -\ App.build/DerivedSources -Wreorder -F/Users/leunk117/repos/mubone/granular/Builds/MacOSX/build/Debug -F/usr/local/lib -I/Users/westerncompass/_Repos/Github/readerwriterqueue -I/usr/local/include -MMD -MT dependencies -MF /Users/leunk117/Library/Developer/Xcode/DerivedData/granular-gmdetlpsxylggigfxwndrrylzyjz/Build/Intermediates.noindex/granular.build/Debug/granular\ -\ App.build/Objects-normal/x86_64/audiosphere-1A476B374BF77BA.d --serialize-diagnostics /Users/leunk117/Library/Developer/Xcode/DerivedData/granular-gmdetlpsxylggigfxwndrrylzyjz/Build/Intermediates.noindex/granular.build/Debug/granular\ -\ App.build/Objects-normal/x86_64/audiosphere-1A476B374BF77BA.dia -c /Users/leunk117/repos/mubone/granular/Source/audiosphere.cpp -o /Users/leunk117/Library/Developer/Xcode/DerivedData/granular-gmdetlpsxylggigfxwndrrylzyjz/Build/Intermediates.noindex/granular.build/Debug/granular\ -\ App.build/Objects-normal/x86_64/audiosphere-1A476B374BF77BA.o
In file included from /Users/leunk117/repos/mubone/granular/Source/audiosphere.cpp:11: In file included from /Users/leunk117/repos/mubone/granular/Source/audiosphere.h:19: In file included from /Users/leunk117/repos/mubone/granular/Source/soundobjectlist.h:9: In file included from /Users/leunk117/repos/mubone/granular/Source/../3rdparty/readerwriterqueue/readerwriterqueue.h:54: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:78: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/MacTypes.h:542:16: error: reference to 'Point' is ambiguous typedef struct Point Point; ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/MacTypes.h:538:8: note: candidate found by name lookup is 'Point' struct Point { ^ In file included from /Users/leunk117/repos/mubone/granular/Source/audiosphere.cpp:11: In file included from /Users/leunk117/repos/mubone/granular/Source/audiosphere.h:18: In file included from /Users/leunk117/repos/mubone/granular/Source/soundobject.h:21: In file included from /Users/leunk117/repos/mubone/granular/Source/../JuceLibraryCode/JuceHeader.h:18: In file included from /Users/leunk117/Google Drive (kalunis@gmail.com)/Projects/Mubone/MuGranulator/JUCE/modules/juce_audio_devices/juce_audio_devices.h:59: In file included from /Users/leunk117/Google Drive (kalunis@gmail.com)/Projects/Mubone/MuGranulator/JUCE/modules/juce_graphics/juce_graphics.h:114: /Users/leunk117/Google Drive (kalunis@gmail.com)/Projects/Mubone/MuGranulator/JUCE/modules/juce_graphics/geometry/juce_Point.h:41:7: note: candidate found by name lookup is 'juce::Point' class Point ^ In file included from /Users/leunk117/repos/mubone/granular/Source/audiosphere.cpp:11: In file included from /Users/leunk117/repos/mubone/granular/Source/audiosphere.h:19: In file included from /Users/leunk117/repos/mubone/granular/Source/soundobjectlist.h:9: In file included from /Users/leunk117/repos/mubone/granular/Source/../3rdparty/readerwriterqueue/readerwriterqueue.h:54: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:78: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/MacTypes.h:543:9: error: reference to 'Point' is ambiguous typedef Point PointPtr; ^ In file included from /Users/leunk117/repos/mubone/granular/Source/audiosphere.cpp:11: In file included from /Users/leunk117/repos/mubone/granular/Source/audiosphere.h:18: In file included from /Users/leunk117/repos/mubone/granular/Source/soundobject.h:21: In file included from /Users/leunk117/repos/mubone/granular/Source/../JuceLibraryCode/JuceHeader.h:18: In file included from /Users/leunk117/Google Drive (kalunis@gmail.com)/Projects/Mubone/MuGranulator/JUCE/modules/juce_audio_devices/juce_audio_devices.h:59: In file included from /Users/leunk117/Google Drive (kalunis@gmail.com)/Projects/Mubone/MuGranulator/JUCE/modules/juce_graphics/juce_graphics.h:114: /Users/leunk117/Google Drive (kalunis@gmail.com)/Projects/Mubone/MuGranulator/JUCE/modules/juce_graphics/geometry/juce_Point.h:41:7: note: candidate found by name lookup is 'juce::Point' class Point ^ In file included from /Users/leunk117/repos/mubone/granular/Source/audiosphere.cpp:11: In file included from /Users/leunk117/repos/mubone/granular/Source/audiosphere.h:19: In file included from /Users/leunk117/repos/mubone/granular/Source/soundobjectlist.h:9: In file included from /Users/leunk117/repos/mubone/granular/Source/../3rdparty/readerwriterqueue/readerwriterqueue.h:54: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:78: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/MacTypes.h:538:8: note: candidate found by name lookup is 'Point' struct Point { ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/MacTypes.h:543:9: error: use of class template 'Point' requires template arguments; argument deduction not allowed in typedef typedef Point PointPtr; ^~~~~ In file included from /Users/leunk117/repos/mubone/granular/Source/audiosphere.cpp:11: In file included from /Users/leunk117/repos/mubone/granular/Source/audiosphere.h:18: In file included from /Users/leunk117/repos/mubone/granular/Source/soundobject.h:21: In file included from /Users/leunk117/repos/mubone/granular/Source/../JuceLibraryCode/JuceHeader.h:18: In file included from /Users/leunk117/Google Drive (kalunis@gmail.com)/Projects/Mubone/MuGranulator/JUCE/modules/juce_audio_devices/juce_audio_devices.h:59: In file included from /Users/leunk117/Google Drive (kalunis@gmail.com)/Projects/Mubone/MuGranulator/JUCE/modules/juce_graphics/juce_graphics.h:114: /Users/leunk117/Google Drive (kalunis@gmail.com)/Projects/Mubone/MuGranulator/JUCE/modules/juce_graphics/geometry/juce_Point.h:41:7: note: template is declared here class Point ^ 3 errors generated.
@kalun88 Ok, give it another shot.
Well at least it's different errors now...
Opened a new issue for the new error.
@DocSunset