almostEric / FrozenWasteland

Plugins for VCV Rack
Other
91 stars 18 forks source link

Build failure on macOS platform #93

Closed cschol closed 3 years ago

cschol commented 3 years ago
src/ProbablyNoteMN.cpp:2746:10: error: case value is not a constant expression
                                case module->RATIO_PITCH_TYPE:
                                     ^~~~~~~~~~~~~~~~~~~~~~~~
src/ProbablyNoteMN.cpp:2746:10: note: implicit use of 'this' pointer is only allowed within the evaluation of a call to a 'constexpr' member function
src/ProbablyNoteMN.cpp:2749:10: error: case value is not a constant expression
                                case module->EQUAL_DIVISION_PITCH_TYPE:
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/ProbablyNoteMN.cpp:2749:10: note: implicit use of 'this' pointer is only allowed within the evaluation of a call to a 'constexpr' member function
src/ProbablyNoteMN.cpp:2752:10: error: case value is not a constant expression
                                case module->EQUAL_STEP_SIZE_PITCH_TYPE:
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/ProbablyNoteMN.cpp:2752:10: note: implicit use of 'this' pointer is only allowed within the evaluation of a call to a 'constexpr' member function
src/ProbablyNoteMN.cpp:2755:10: error: case value is not a constant expression
                                case module->MOS_PITCH_TYPE:
                                     ^~~~~~~~~~~~~~~~~~~~~~
src/ProbablyNoteMN.cpp:2755:10: note: implicit use of 'this' pointer is only allowed within the evaluation of a call to a 'constexpr' member function
x86_64-apple-darwin17-clang++-libc++ -std=c++11 -stdlib=libc++  -I./src/xml -I./src/ui -I./src/model -I./src/dsp-compressor -I./src/dsp-delay -I./src/dsp-filter/utils -I./src/dsp-filter/filters -I./src/dsp-filter/third-party/falco   -fPIC -I/home/build/rack-plugin-toolchain/Rack-SDK/include -I/home/build/rack-plugin-toolchain/Rack-SDK/dep/include -MMD -MP -g -O3 -march=nocona -funsafe-math-optimizations -Wall -Wextra -Wno-unused-parameter -DARCH_MAC -mmacosx-version-min=10.7  -c -o build/src/StringTheory.cpp.o src/StringTheory.cpp
src/ProbablyNoteArabic.cpp:866:33: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-int-float-conversion]
                                float rnd = ((float) rand()/RAND_MAX);
                                                           ~^~~~~~~~
/home/build/rack-plugin-toolchain/local/osxcross/bin/../SDK/MacOSX10.13.sdk/usr/include/stdlib.h:104:18: note: expanded from macro 'RAND_MAX'
#define RAND_MAX        0x7fffffff
                        ^~~~~~~~~~
src/ProbablyNoteArabic.cpp:1177:33: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-int-float-conversion]
                                float rnd = ((float) rand()/RAND_MAX);
                                                           ~^~~~~~~~
/home/build/rack-plugin-toolchain/local/osxcross/bin/../SDK/MacOSX10.13.sdk/usr/include/stdlib.h:104:18: note: expanded from macro 'RAND_MAX'
#define RAND_MAX        0x7fffffff
                        ^~~~~~~~~~