kinetikeith / CyShock

VCV Rack plugin with some modules I've made, notably one that uses my sine-tracking algorithm dstrack
GNU General Public License v3.0
1 stars 0 forks source link

Don't compiled on Windows 10 with MSYS2 #1

Open caecos opened 3 years ago

caecos commented 3 years ago

$ RACK_DIR=C:/msys64/Rack-SDK make dist g++ -std=c++11 -Wsuggest-override -Idstrack/include -fPIC -IC:/msys64/Rack-SDK/include -IC:/msys64/Rack-SDK/dep/include -MMD -MP -g -O3 -march=nocona -funsafe-math-optimizations -Wall -Wextra -Wno-unused-parameter -DARCH_WIN -D_USE_MATH_DEFINES -c -o build/src/Sinusoid.cpp.o src/Sinusoid.cpp src/Sinusoid.cpp:5:10: fatal error: DSTracker.hpp: No such file or directory 5 | #include "DSTracker.hpp" | ^~~~~~~ compilation terminated. make: *** [C:/msys64/Rack-SDK/compile.mk:69: build/src/Sinusoid.cpp.o] Error 1

kinetikeith commented 3 years ago

I'll get to it when I can. I haven't set up a windows VM yet for testing, so it might be a little bit.

kinetikeith commented 3 years ago

@caecos I just pushed a commit that might fix things. I tested using the mingw toolchain for linux, and there were no errors. I was not able to reproduce your problem. However, here's a windows build of my plugin, hope it works. CyShock-1.0.0-win.zip Any issues from that would also be gladly received! Thanks for taking the time to open this issue.

caecos commented 3 years ago

Thank’s, I will try once at home after my night-club shift

Téléchargez Outlook pour iOShttps://aka.ms/o0ukef


De : kinetikeith notifications@github.com Envoyé : Tuesday, February 23, 2021 9:13:21 PM À : kinetikeith/CyShock CyShock@noreply.github.com Cc : caecos caecos@hotmail.ca; Mention mention@noreply.github.com Objet : Re: [kinetikeith/CyShock] Don't compiled on Windows 10 with MSYS2 (#1)

@caecoshttps://github.com/caecos I just pushed a commit that might fix things. I tested using the mingw toolchain for linux, and there were no errors. I was not able to reproduce your problem. However, here's a windows build of my plugin, hope it works. CyShock-1.0.0-win.ziphttps://github.com/kinetikeith/CyShock/files/6032865/CyShock-1.0.0-win.zip Any issues from that would also be gladly received! Thanks for taking the time to open this issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/kinetikeith/CyShock/issues/1#issuecomment-784696014, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHSGFA66EYJTTZIICKH6IADTAROEDANCNFSM4YBYQTXA.

caecos commented 3 years ago

Still got the same error on compiling but you dll works well...thanks..

kinetikeith commented 3 years ago

@caecos I think I found the solution to your problem. This repo contains submodules, which (if you didn't already know) are repos used/included by other repos. Before you build, you must populate the submodule folders with the command git submodule update --init --recursive. I may automate this in the future.

caecos commented 3 years ago

Here's my latest shot:

caeco@clientmd-PC MINGW64 ~/modules/cyshock $ git submodule update --init --recursive Submodule 'dstrack' (https://github.com/kinetikeith/dstrack.git) registered for path 'dstrack' Cloning into '/home/caeco/modules/cyshock/dstrack'... Chemin de sous-module 'dstrack' : '2d66bd04b2f78ce8f5674c9e0ddb6fd3eb2a7d8f' extrait Submodule 'AudioFile' (https://github.com/adamstark/AudioFile.git) registered for path 'dstrack/AudioFile' Cloning into '/home/caeco/modules/cyshock/dstrack/AudioFile'... Chemin de sous-module 'dstrack/AudioFile' : 'b7dd84abd5763f64fcf74e58499c4b5d779a396d' extrait

caeco@clientmd-PC MINGW64 ~/modules/cyshock $ RACK_DIR=C:/msys64/Rack-SDK make dist g++ -std=c++11 -Wsuggest-override -Idstrack/include -fPIC -IC:/msys64/Rack-SDK/include -IC:/msys64/Rack-SDK/dep/include -MMD -MP -g -O3 -march=nocona -funsafe-math-optimizations -Wall -Wextra -Wno-unused-parameter -DARCH_WIN -D_USE_MATH_DEFINES -c -o build/src/Sinusoid.cpp.o src/Sinusoid.cpp g++ -std=c++11 -Wsuggest-override -Idstrack/include -fPIC -IC:/msys64/Rack-SDK/include -IC:/msys64/Rack-SDK/dep/include -MMD -MP -g -O3 -march=nocona -funsafe-math-optimizations -Wall -Wextra -Wno-unused-parameter -DARCH_WIN -D_USE_MATH_DEFINES -c -o build/src/plugin.cpp.o src/plugin.cpp g++ -o plugin.dll build/src/Sinusoid.cpp.o build/src/plugin.cpp.o -Ldstrack/lib -ldstrack -shared -LC:/msys64/Rack-SDK -lRack C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -ldstrack collect2.exe: error: ld returned 1 exit status make: *** [C:/msys64/Rack-SDK/compile.mk:59: plugin.dll] Error 1

kinetikeith commented 3 years ago

You need to run the make dep before the make dist. This will compile the dstrack library it's complaining about.

caecos commented 3 years ago

ok I miss this step…

Téléchargez Outlook pour iOShttps://aka.ms/o0ukef


De : kinetikeith notifications@github.com Envoyé : Thursday, February 25, 2021 6:52:36 AM À : kinetikeith/CyShock CyShock@noreply.github.com Cc : caecos caecos@hotmail.ca; Mention mention@noreply.github.com Objet : Re: [kinetikeith/CyShock] Don't compiled on Windows 10 with MSYS2 (#1)

You need to run the make dep before the make dist. This will compile the dstrack library it's complaining about.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/kinetikeith/CyShock/issues/1#issuecomment-785839705, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHSGFA2M6T3JLDPXTOVEUPLTAY2YJANCNFSM4YBYQTXA.

caecos commented 3 years ago

Here the second shot:

$ RACK_DIR=C:/msys64/Rack-SDK make dep cd dstrack && cmake . && cmake --build . -- Building for: Visual Studio 16 2019 -- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19043. -- The C compiler identification is MSVC 19.28.29337.0 -- The CXX compiler identification is MSVC 19.28.29337.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: C:/msys64/home/caeco/modules/CyShock/dstrack Microsoft (R) Build Engine version 16.8.3+39993bd9d pour .NET Framework Copyright (C) Microsoft Corporation. Tous droits réservés.

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(238,5): error MSB6001: Commutateur de ligne de commande non valide pour "cmd.exe". System.ArgumentException: L'élément a déjà été ajouté. Clé du dictionnaire : 'tmp' Clé ajoutée : 'TMP' [C:\msys64\home\caeco\modules\CyShock\dstrack\ZERO_CHECK.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(238,5): error MSB6001: à System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) [C:\msys64\home\caeco\modules\CyShock\dstrack\ZERO_CHECK.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(238,5): error MSB6001: à System.Collections.Hashtable.Add(Object key, Object value) [C:\msys64\home\caeco\modules\CyShock\dstrack\ZERO_CHECK.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(238,5): error MSB6001: à System.Collections.Specialized.StringDictionaryWithComparer.Add(String key, String value) [C:\msys64\home\caeco\modules\CyShock\dstrack\ZERO_CHECK.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(238,5): error MSB6001: à System.Diagnostics.ProcessStartInfo.get_EnvironmentVariables() [C:\msys64\home\caeco\modules\CyShock\dstrack\ZERO_CHECK.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(238,5): error MSB6001: à Microsoft.Build.Utilities.ToolTask.GetProcessStartInfo(String pathToTool, String commandLineCommands, String responseFileSwitch) [C:\msys64\home\caeco\modules\CyShock\dstrack\ZERO_CHECK.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(238,5): error MSB6001: à Microsoft.Build.Utilities.ToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [C:\msys64\home\caeco\modules\CyShock\dstrack\ZERO_CHECK.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(238,5): error MSB6001: à Microsoft.Build.CPPTasks.TrackedVCToolTask.TrackerExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [C:\msys64\home\caeco\modules\CyShock\dstrack\ZERO_CHECK.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(238,5): error MSB6001: à Microsoft.Build.CPPTasks.CustomBuild.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [C:\msys64\home\caeco\modules\CyShock\dstrack\ZERO_CHECK.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(238,5): error MSB6001: à Microsoft.Build.Utilities.ToolTask.Execute() [C:\msys64\home\caeco\modules\CyShock\dstrack\ZERO_CHECK.vcxproj] make: *** [Makefile:12: dstrack/lib/libdstrack.a] Error 1

kinetikeith commented 3 years ago

I'm not sure what's going on. I'm not very familiar with Visual Studio. I'll look into it sometime, but I doubt I will be able to fix it soon, as I don't have a Windows VM set up for testing yet.

The best thing I can recommend (currently) is to try to use a different compiler than Visual C++, like minGW or clang.

caecos commented 3 years ago

It’s OK, I’ll will look on my side but if you can provide me with an updated version of your plugin, it will be more than appreciated.

Regards,

Marc

Provenance : Courrierhttps://go.microsoft.com/fwlink/?LinkId=550986 pour Windows 10

De : kinetikeithmailto:notifications@github.com Envoyé le :samedi 27 février 2021 16:28 À : kinetikeith/CyShockmailto:CyShock@noreply.github.com Cc : caecosmailto:caecos@hotmail.ca; Mentionmailto:mention@noreply.github.com Objet :Re: [kinetikeith/CyShock] Don't compiled on Windows 10 with MSYS2 (#1)

I'm not sure what's going on. I'm not very familiar with Visual Studio. I'll look into it sometime, but I doubt I will be able to fix it soon, as I don't have a Windows VM set up for testing yet.

The best thing I can recommend (currently) is to try to use a different compiler than Visual C++, like minGW or clang.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/kinetikeith/CyShock/issues/1#issuecomment-787150423, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHSGFA7JFWB5DPUX76NBURDTBFPZPANCNFSM4YBYQTXA.