Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error trying to build avendish in windows 10 #36

Open
dgonzalezt opened this issue Sep 22, 2022 · 1 comment
Open

Error trying to build avendish in windows 10 #36

dgonzalezt opened this issue Sep 22, 2022 · 1 comment

Comments

@dgonzalezt
Copy link

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: I managed to do it (with errors) with the following command line:

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.

  • Then I launch the build with Ninja, and I get an error because it asks for an XCode MAC sdk. I just edit the build.ninja file, delete the standalone/MyProcessor_standalone.exe from the build all command.

  • I now repeat the build ninja command and I have a series of .h .hpp errors not found that I have not been able to resolve in any way.

[7/37] Building CXX object avnd_build/CMakeFiles/Avendish_clap_pch.dir/cmake_pch.hxx.pch FAILED: avnd_build/CMakeFiles/Avendish_clap_pch.dir/cmake_pch.hxx.pch G:\Repos\3daudio\llvm\bin\clang++.exe -DFMT_HEADER_ONLY=1 -D_LIBCPP_NO_EXCEPTIONS=1 -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/clap-main/include -IG:/Repos/3daudio/avendish-audio-processor-template/build_ninja/_deps/avendish-src/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 -fno-exceptions -fno-rtti -fno-unwind-tables -fno-asynchronous-unwind-tables -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_clap_pch.dir/cmake_pch.hxx -x c++-header -MD -MT avnd_build/CMakeFiles/Avendish_clap_pch.dir/cmake_pch.hxx.pch -MF avnd_build\CMakeFiles\Avendish_clap_pch.dir\cmake_pch.hxx.pch.d -o avnd_build/CMakeFiles/Avendish_clap_pch.dir/cmake_pch.hxx.pch -c G:/Repos/3daudio/avendish-audio-processor-template/build_ninja/avnd_build/CMakeFiles/Avendish_clap_pch.dir/cmake_pch.hxx.cxx In file included from <built-in>:1: In file included from G:/Repos/3daudio/avendish-audio-processor-template/build_ninja/avnd_build/CMakeFiles/Avendish_clap_pch.dir/cmake_pch.hxx:5: In file included from G:/Repos/3daudio/avendish-audio-processor-template/build_ninja/_deps/avendish-src/include/avnd/binding/clap/all.hpp:3: In file included from G:/Repos/3daudio/avendish-audio-processor-template/build_ninja/_deps/avendish-src/include/avnd/binding/clap/audio_effect.hpp:5: G:/Repos/3daudio/avendish-audio-processor-template/build_ninja/_deps/avendish-src/include/avnd/binding/clap/bus_info.hpp:9:10: fatal error: 'clap/all.h' file not found #include <clap/all.h>

[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 <built-in>: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
Copy link
Member

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants