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

MSYS2中执行ninja编译不过去,cmakelist.txt有问题 #863

Open
hyl1234567 opened this issue Mar 18, 2025 · 1 comment
Open

MSYS2中执行ninja编译不过去,cmakelist.txt有问题 #863

hyl1234567 opened this issue Mar 18, 2025 · 1 comment

Comments

@hyl1234567
Copy link

ninja

[0/1] Re-running CMake...CMake Deprecation Warning at CMakeLists.txt:22 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.

Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.

----- glib-2.0:
-- includes:D:/MSYS2/mingw64/include/glib-2.0D:/MSYS2/mingw64/lib/glib-2.0/includeD:/MSYS2/min
gw64/include
-- libraries:D:/MSYS2/mingw64/lib/libglib-2.0.*
----- python3:
-- includes:D:/MSYS2/mingw64/include/python3.12
-- libraries:D:/MSYS2/mingw64/lib/libpython3.12.dll.a
----- FFTW:
-- includes:D:/MSYS2/mingw64/include
-- libraries:D:/MSYS2/mingw64/lib/libfftw3.dll.a
----- libusb-1.0:
-- includes:D:/MSYS2/mingw64/include/libusb-1.0
-- libraries:D:/MSYS2/mingw64/lib/libusb-1.0.dll.a
----- zlib:
-- includes:D:/MSYS2/mingw64/include
-- libraries:D:/MSYS2/mingw64/lib/libz.dll.a
----- Qt5:
-- includes:D:/MSYS2/mingw64/include/D:/MSYS2/mingw64/include/QtCoreD:/MSYS2/mingw64/share/qt5
//mkspecs/win32-g++
CMake Warning (dev) at CMakeLists.txt:218 (find_package):
Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake
--help-policy CMP0167" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

This warning is for project developers. Use -Wno-dev to suppress it.

----- boost:
-- includes:D:/MSYS2/mingw64/include
-- Output dir: D:/MSYS2/home/DSView/build.dir
-- Configuring done (2.5s)
CMake Error at CMakeLists.txt:634 (add_executable):
Cannot find source file:

DSView/pv/ui/xtoolbutton.cpp

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm
.ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90
.f95 .f03 .hip .ispc

CMake Error at CMakeLists.txt:634 (add_executable):
No SOURCES given to target: DSView

CMake Generate step failed. Build files cannot be regenerated correctly.
ninja: error: rebuilding 'build.ninja': subcommand failed

FAILED: build.ninja
D:\MSYS2\mingw64\bin\cmake.exe --regenerate-during-build -SD:\MSYS2\home\DSView -BD:\MSYS2\home\DSVi
ew

@dreamsource-tai
Copy link
Collaborator

@hyl1234567
请检查一下有没有这个文件”DSView/pv/ui/xtoolbutton.cpp“

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