DBraun / TD-JUCE

JUCE audio and VSTs in TouchDesigner
Other
36 stars 3 forks source link

Win32 arch is not supported! error during CMake build #7

Open vrtx-voiod opened 3 years ago

vrtx-voiod commented 3 years ago

During building I get the error " Win32 arch is not supported!", even though my system is not Win32

DBraun commented 3 years ago

Hello, thanks for giving it a try. I assume you're using Windows 64. It seems to be this line: https://github.com/DBraun/TD-JUCE/blob/master/CMakeLists.txt#L15 I think this implies that the cmake variable CMAKE_VS_PLATFORM_NAME is already set. Looking it up, https://cmake.org/cmake/help/latest/variable/CMAKE_VS_PLATFORM_NAME_DEFAULT.html#variable:CMAKE_VS_PLATFORM_NAME_DEFAULT this might mean you're using visual studio 2017. Is that true? Would you mind using Visual Studio 2019 instead?

Maybe it's possible to change lines https://github.com/DBraun/TD-JUCE/blob/219ade1c9945d4caa084380892bee4e213d40d76/CMakeLists.txt#L9-L11 to remove the conditional IF and just always set the variable. If that works you'd have to do it in each of the other cmake files: https://github.com/DBraun/TD-JUCE/blob/master/TD-JUCE/TD-JUCE-VST/CMakeLists.txt https://github.com/DBraun/TD-JUCE/blob/master/TD-JUCE/TD-JUCE-Reverb/CMakeLists.txt

vrtx-voiod commented 3 years ago

Hello, thanks for giving it a try. I assume you're using Windows 64. It seems to be this line: https://github.com/DBraun/TD-JUCE/blob/master/CMakeLists.txt#L15 I think this implies that the cmake variable CMAKE_VS_PLATFORM_NAME is already set. Looking it up, https://cmake.org/cmake/help/latest/variable/CMAKE_VS_PLATFORM_NAME_DEFAULT.html#variable:CMAKE_VS_PLATFORM_NAME_DEFAULT this might mean you're using visual studio 2017. Is that true? Would you mind using Visual Studio 2019 instead?

Maybe it's possible to change lines

https://github.com/DBraun/TD-JUCE/blob/219ade1c9945d4caa084380892bee4e213d40d76/CMakeLists.txt#L9-L11

to remove the conditional IF and just always set the variable. If that works you'd have to do it in each of the other cmake files: https://github.com/DBraun/TD-JUCE/blob/master/TD-JUCE/TD-JUCE-VST/CMakeLists.txt https://github.com/DBraun/TD-JUCE/blob/master/TD-JUCE/TD-JUCE-Reverb/CMakeLists.txt

I usually work with VS2017, but after installing the 2019 Community version it worked, thanks :)

vrtx-voiod commented 3 years ago

Now I get some other error messages during build in VS19:

Severity Code Description Project File Line Suppression State Error C1083 Cannot open include file: 'juce_video/juce_video.cpp': No such file or directory TD-JUCE XXX\TD-JUCE\JuceLibraryCode\include_juce_video.cpp 9 Error C1083 Cannot open include file: 'juce_opengl/juce_opengl.cpp': No such file or directory TD-JUCE XXX\TD-JUCE\JuceLibraryCode\include_juce_opengl.cpp 9 Error C1083 Cannot open include file: 'juce_gui_extra/juce_gui_extra.cpp': No such file or directory TD-JUCE XXX\TD-JUCE\JuceLibraryCode\include_juce_gui_extra.cpp 9 Error C1083 Cannot open include file: 'juce_gui_basics/juce_gui_basics.cpp': No such file or directory TD-JUCE XXX\TD-JUCE\JuceLibraryCode\include_juce_gui_basics.cpp 9 Error C1083 Cannot open include file: 'juce_graphics/juce_graphics.cpp': No such file or directory TD-JUCE XXX\TD-JUCE\JuceLibraryCode\include_juce_graphics.cpp 9 Error C1083 Cannot open include file: 'juce_events/juce_events.cpp': No such file or directory TD-JUCE XXX\TD-JUCE\JuceLibraryCode\include_juce_events.cpp 9 Error C1083 Cannot open include file: 'juce_dsp/juce_dsp.cpp': No such file or directory TD-JUCE XXX\TD-JUCE\JuceLibraryCode\include_juce_dsp.cpp 9 Error C1083 Cannot open include file: 'juce_data_structures/juce_data_structures.cpp': No such file or directory TD-JUCE XXX\TD-JUCE\JuceLibraryCode\include_juce_data_structures.cpp 9 Error C1083 Cannot open include file: 'juce_cryptography/juce_cryptography.cpp': No such file or directory TD-JUCE XXX\TD-JUCE\JuceLibraryCode\include_juce_cryptography.cpp 9 Error C1083 Cannot open include file: 'juce_core/juce_core.cpp': No such file or directory TD-JUCE XXX\TD-JUCE\JuceLibraryCode\include_juce_core.cpp 9 Error C1083 Cannot open include file: 'juce_audio_utils/juce_audio_utils.cpp': No such file or directory TD-JUCE XXX\TD-JUCE\JuceLibraryCode\include_juce_audio_utils.cpp 9 Error C1083 Cannot open include file: 'juce_audio_processors/juce_audio_processors.cpp': No such file or directory TD-JUCE XXX\TD-JUCE\JuceLibraryCode\include_juce_audio_processors.cpp 9 Error C1083 Cannot open include file: 'juce_audio_formats/juce_audio_formats.cpp': No such file or directory TD-JUCE XXX\TD-JUCE\JuceLibraryCode\include_juce_audio_formats.cpp 9 Error C1083 Cannot open include file: 'juce_audio_devices/juce_audio_devices.cpp': No such file or directory TD-JUCE XXX\TD-JUCE\JuceLibraryCode\include_juce_audio_devices.cpp 9 Error C1083 Cannot open include file: 'juce_audio_basics/juce_audio_basics.cpp': No such file or directory TD-JUCE XXX\TD-JUCE\JuceLibraryCode\include_juce_audio_basics.cpp 9

Do I have to get those files from another source?

DBraun commented 3 years ago

I think you need to use git to clone this repository. This will make sure the necessary files are in the thirdparty folder.

vrtx-voiod commented 3 years ago

I think you need to use git to clone this repository. This will make sure the necessary files are in the thirdparty folder.

I actually did, but I will try again from scratch

DBraun commented 3 years ago

@vrtx-voiod Did you succeed?

vrtx-voiod commented 3 years ago

@DBraun Thanks for asking, I could not find time to investigate this further since I am working on a job atm, but I will keep you updated soon :)