celtera / avendish

declarative polyamorous cross-system intermedia objects
Other
418 stars 12 forks source link

Error trying to build avendish in windows 10 #36

Open dgonzalezt opened 2 years ago

dgonzalezt commented 2 years ago

Hello, I'm trying to compile the example you have at https://celtera.github.io/avendish/getting_started/compiling.html on windows 10. I've been working on it for more than a week and I've reached a point where I can't get out of it. I would like to know if someone has done the same and can give me a hand or I consider it impossible. First I installed Anaconda, through it I got the python, pybind11, boost, etc. libraries. I downloaded from their respective github ossialib and clap. And I installed PureData, Qt and some other stuff.

From here, this is the process I follow, all the errors I find and how I solve them. Until I reach the point where I can't get out of it. I'm sorry to make this so long.

cmake -DCMAKE_C_COMPILER=G:/Repos/3daudio/llvm/bin/clang.exe -DCMAKE_CXX_COMPILER=G:/Repos/3daudio/llvm/bin/clang++.exe -DCMAKE_PREFIX_PATH="G:\Repos\3daudio\ossia;C:\Program Files\Pd\bin;C:\Program Files\Pd\src;G:\Repos\3daudio\clap-main;G:\Repos\3daudio\llvm;G:\Repos\3daudio\ninja;G:\Repos\3daudio\ossia\bin;G:\Repos\3daudio\libossia-master\src\ossia;G:\Repos\3daudio\qt\5.15.2\mingw81_64" -DCMAKE_BUILD_TYPE=Debug -S. -Bbuild_ninja -GNinja

CMake gives me the following error IMPORTED_IMPLIB not set for imported target "ossia::ossia" configuration which I get around by editing the ..\avendish-audio-processor-template_build_ninja_depsavendish-srcMakeLists.txt file and adding this set_target_properties(ossia::ossia PROPERTIES IMPORTED_IMPLIB "G:/Repos/3daudio/ossia/lib/static/ossia_x64.lib") and lauching again de CMake.

`[8/37] Building CXX object avnd_build/CMakeFiles/Avendish_ossia_pch.dir/cmake_pch.hxx.pch FAILED: avnd_build/CMakeFiles/Avendish_ossia_pch.dir/cmake_pch.hxx.pch G:\Repos\3daudio\llvm\bin\clang++.exe -DBOOST_ASIO_DISABLE_CONCEPTS=1 -DBOOST_ASIO_ENABLE_BUFFER_DEBUGGING -DBOOST_MATH_DISABLE_FLOAT128=1 -DBOOST_MULTI_INDEX_ENABLE_INVARIANT_CHECKING -DBOOST_MULTI_INDEX_ENABLE_SAFE_MODE -DFMT_HEADER_ONLY=1 -DRAPIDJSON_HAS_STDSTRING=1 -DSERVUS_USE_DNSSD -DTINYSPLINE_DOUBLE_PRECISION -IG:/Repos/3daudio/avendish-audio-processor-template/build_ninja/avnd_build -IG:/Repos/3daudio/avendish-audio-processor-template/build_ninja/_deps/avendish-src -I/opt/libossia/include -IG:/Repos/3daudio/avendish-audio-processor-template/build_ninja/_deps/avendish-src/include -isystem G:/Repos/3daudio/ossia/include -isystem C:/Users/Daniel/miniconda3/Library/include -g -fvisibility=internal -fvisibility-inlines-hidden -fcoroutines-ts -stdlib=libc++ -fno-stack-protector -fno-ident -fno-plt -ffunction-sections -fdata-sections -std=gnu++20 -Winvalid-pch -fpch-instantiate-templates -Xclang -emit-pch -Xclang -include -Xclang G:/Repos/3daudio/avendish-audio-processor-template/build_ninja/avnd_build/CMakeFiles/Avendish_ossia_pch.dir/cmake_pch.hxx -x c++-header -MD -MT avnd_build/CMakeFiles/Avendish_ossia_pch.dir/cmake_pch.hxx.pch -MF avnd_build\CMakeFiles\Avendish_ossia_pch.dir\cmake_pch.hxx.pch.d -o avnd_build/CMakeFiles/Avendish_ossia_pch.dir/cmake_pch.hxx.pch -c G:/Repos/3daudio/avendish-audio-processor-template/build_ninja/avnd_build/CMakeFiles/Avendish_ossia_pch.dir/cmake_pch.hxx.cxx In file included from :1: G:/Repos/3daudio/avendish-audio-processor-template/build_ninja/avnd_build/CMakeFiles/Avendish_ossia_pch.dir/cmake_pch.hxx:5:10: fatal error: 'ossia/prefix.hpp' file not found

include <ossia/prefix.hpp>`

I understand that the clap/all.h and ossia/prefix files are not properly included. However, both have been copied correctly to their corresponding sub-folder within the ...\avendish-audio-processor-template\build_ninja_deps\avendish-src\include\avnd.

I have also tried to make the CMake for visual studio. I manage to get a solution (.sln file) but I have similar problems when trying to do the build.

Well, if you have read this far, thank you very much for the effort. If you can give me a hand, I'd appreciate it.

Best regards.

jcelerier commented 2 years ago

hello ! slowly getting there - the build seems to pass on the CI. Focusing on checking that everything works now, sorry, I've been focusing on developing various features for use-cases we had in ossia so far, but getting back to it :)