-
Notifications
You must be signed in to change notification settings - Fork 115
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
Compile fails on Windows (Could not find a package configuration file provided by "yaml-cpp") #800
Comments
You have missed the part to install dependencies in https://www.ngscopeclient.org/manual/GettingStarted.html |
I've tried all the steps again, now I get a different error: In detail: -> Delete c:\msys64 -> pacman -S mingw-w64-ucrt-x86_64-libsigc++ mingw-w64-ucrt-x86_64-cairomm mingw-w64-ucrt-x86_64-yaml-cpp mingw-w64-ucrt-x86_64-glfw mingw-w64-ucrt-x86_64-catch -> pacman -S mingw-w64-ucrt-x86_64-vulkan-headers mingw-w64-ucrt-x86_64-vulkan-loader mingw-w64-ucrt-x86_64-shaderc \ cedric@DESKTOP-LRFL83R UCRT64 ~ -> remove the extra "", and combine into 1 single line: Packages (5) mingw-w64-ucrt-x86_64-glslang-14.3.0-1 mingw-w64-ucrt-x86_64-shaderc-2024.1-1 Total Download Size: 9.65 MiB -> cd ~ -> cd scopehal-apps cedric@DESKTOP-LRFL83R UCRT64 ~ -- The CXX compiler identification is GNU 14.1.0 -- Detecting CXX compiler ABI info Could not find a package configuration file provided by "hidapi" with any
Add the installation prefix of "hidapi" to CMAKE_PREFIX_PATH or set -- Configuring incomplete, errors occurred! |
After installing hidapi, the build fails on another missing dependency: $ pacman -S mingw-w64-ucrt-x86_64-hidapi Packages (1) mingw-w64-ucrt-x86_64-hidapi-0.14.0-2 Total Download Size: 0.05 MiB cedric@DESKTOP-LRFL83R UCRT64 ~/scopehal-apps/build CMake Warning (dev) at C:/msys64/ucrt64/share/cmake/Modules/Platform/Windows-GNU.cmake:193 (enable_l -- Found glslc: C:/msys64/ucrt64/bin/glslc.exe -- Configuring incomplete, errors occurred! |
I find this a bit odd, as the string "hidapi" is not found on the webpage containing the entire get started guide: So I find it odd that it's missing for every supported platform. I guess I missed something else. |
Nope, that's on us. hidapi was a fairly recently added dependency (last month or so) and while the LaTeX doc source code may have been updated (I need to double check) I haven't pushed PDF/HTML renders since. Will do that later today. |
FFTS is not required to build if you're not building unit tests. Can you check the generated CMakeCache.txt and see if BUILD_TESTING is on or off? Set to off and it should build fine without FFTS. We plan to transition these to FFTW eventually (the GPL dependency is a non-issue since tests aren't redistributed) but haven't got around to it. |
too long did't read: you are right, fixed: cedric@DESKTOP-LRFL83R UCRT64 ~/scopehal-apps/build cedric@DESKTOP-LRFL83R UCRT64 ~/scopehal-apps/build cedric@DESKTOP-LRFL83R UCRT64 ~/scopehal-apps/build cedric@DESKTOP-LRFL83R UCRT64 ~/scopehal-apps/build cedric@DESKTOP-LRFL83R UCRT64 ~/scopehal-apps/build cedric@DESKTOP-LRFL83R UCRT64 ~/scopehal-apps/build cedric@DESKTOP-LRFL83R UCRT64 ~/scopehal-apps/build cedric@DESKTOP-LRFL83R UCRT64 ~/scopehal-apps/build CMake Warning (dev) at C:/msys64/ucrt64/share/cmake/Modules/Platform/Windows-GNU.cmake:193 (enable_language): -- Found glslc: C:/msys64/ucrt64/bin/glslc.exe cedric@DESKTOP-LRFL83R UCRT64 ~/scopehal-apps/build cedric@DESKTOP-LRFL83R UCRT64 ~/scopehal-apps/build
C:/msys64/ucrt64/include/yaml-cpp/dll.h:22:65: note: '#pragma message: Defining YAML_CPP_API for DLL import' cedric@DESKTOP-LRFL83R UCRT64 ~/scopehal-apps/build |
How do I actually run it? When I navigate to, and double click the generated file I get these missing dll errors: |
After copying these dll's from C:\msys64\ucrt64\bin I still miss these dll's |
For the dependencies see a solution here |
Oops, PR accidentally closed this. Keeping this open until we get the Windows DLL packaging solved. |
I would suggest adding a note in the documentation to manually copy that list of dll's, so the user has a working program after following the steps in the getting started guide. Shall I submit a PR for that? |
Docs fix merged, closing |
I'm following this guide: https://www.ngscopeclient.org/manual/GettingStarted.html section 3.3 (windows), 7 (Build manually):
Submodule path 'src/imgui-node-editor': checked out '520db2c29a32364cd920f4966ad9ac1e3529c2c9'
Submodule path 'src/imgui_markdown': checked out '61a181bdb83f450f852f7cf5d1282d8cda1c0f57'
Submodule path 'src/nativefiledialog-extended': checked out '388549a5badaa7cbd138f5f189f50c67d5bf060c'
cedric@DESKTOP-LRFL83R UCRT64 ~
$ cd scopehal-apps
cedric@DESKTOP-LRFL83R UCRT64 ~/scopehal-apps
$ mkdir build
cedric@DESKTOP-LRFL83R UCRT64 ~/scopehal-apps
$ cd build
cedric@DESKTOP-LRFL83R UCRT64 ~/scopehal-apps/build
$ cmake ..
-- Building for: Ninja
CMake Warning (dev) at CMakeLists.txt:3 (enable_language):
project() should be called prior to this enable_language() call.
This warning is for project developers. Use -Wno-dev to suppress it.
-- The CXX compiler identification is GNU 14.1.0
CMake Warning (dev) at C:/msys64/ucrt64/share/cmake/Modules/Platform/Windows-GNU.cmake:193 (enable_language):
project() should be called prior to this enable_language() call.
Call Stack (most recent call first):
C:/msys64/ucrt64/share/cmake/Modules/Platform/Windows-GNU-CXX.cmake:2 (__windows_compiler_gnu)
C:/msys64/ucrt64/share/cmake/Modules/CMakeCXXInformation.cmake:48 (include)
CMakeLists.txt:3 (enable_language)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/msys64/ucrt64/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The C compiler identification is GNU 14.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/msys64/ucrt64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Git: C:/msys64/usr/bin/git.exe (found version "2.45.2")
-- Found PkgConfig: C:/msys64/ucrt64/bin/pkg-config.exe (found version "2.2.0")
CMake Error at CMakeLists.txt:109 (find_package):
By not providing "Findyaml-cpp.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "yaml-cpp",
but CMake did not find one.
Could not find a package configuration file provided by "yaml-cpp" with any
of the following names:
Add the installation prefix of "yaml-cpp" to CMAKE_PREFIX_PATH or set
"yaml-cpp_DIR" to a directory containing one of the above files. If
"yaml-cpp" provides a separate development package or SDK, be sure it has
been installed.
-- Configuring incomplete, errors occurred!
cedric@DESKTOP-LRFL83R UCRT64 ~/scopehal-apps/build
My system:
Windows 10 Pro 64 bit
Version 22H2
OS build 19045.5011
Experience Windows Feature Experience Pack 1000.19060.1000.0
I used "msys2-x86_64-20240727(1).exe"
The text was updated successfully, but these errors were encountered: