gammasoft71 / xtd

Free open-source modern C++17 / C++20 framework to create console, GUI (forms like WinForms) and unit test applications and libraries on Microsoft Windows, Apple macOS and Linux.
https://gammasoft71.github.io/xtd
MIT License
737 stars 58 forks source link

[BUG] can not build #182

Closed kkptm closed 1 year ago

kkptm commented 2 years ago

CMake Error at build/cmake/functions.cmake:596 (add_library): Cannot find source file:

D:/xtd-master/build/3rdparty/wxWidgets/src/jpeg/jaricom.c

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc Call Stack (most recent call first): build/cmake/lib/jpeg.cmake:11 (wx_add_builtin_library) build/cmake/lib/CMakeLists.txt:28 (include)

CMake Error at build/cmake/functions.cmake:596 (add_library): Cannot find source file:

D:/xtd-master/build/3rdparty/wxWidgets/src/png/png.c

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc Call Stack (most recent call first): build/cmake/lib/png.cmake:21 (wx_add_builtin_library) build/cmake/lib/CMakeLists.txt:28 (include)

CMake Error at build/cmake/functions.cmake:596 (add_library): Cannot find source file:

D:/xtd-master/build/3rdparty/wxWidgets/src/tiff/libtiff/tif_win32.c

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc Call Stack (most recent call first): build/cmake/lib/tiff.cmake:19 (wx_add_builtin_library) build/cmake/lib/CMakeLists.txt:28 (include)

CMake Error at build/cmake/functions.cmake:596 (add_library): No SOURCES given to target: wxregex Call Stack (most recent call first): build/cmake/lib/regex.cmake:13 (wx_add_builtin_library) build/cmake/lib/CMakeLists.txt:28 (include)

CMake Error at build/cmake/functions.cmake:596 (add_library): No SOURCES given to target: wxzlib Call Stack (most recent call first): build/cmake/lib/zlib.cmake:13 (wx_add_builtin_library) build/cmake/lib/CMakeLists.txt:28 (include)

CMake Error at build/cmake/functions.cmake:596 (add_library): No SOURCES given to target: wxexpat Call Stack (most recent call first): build/cmake/lib/expat.cmake:13 (wx_add_builtin_library) build/cmake/lib/CMakeLists.txt:28 (include)

CMake Error at build/cmake/functions.cmake:596 (add_library): No SOURCES given to target: wxjpeg Call Stack (most recent call first): build/cmake/lib/jpeg.cmake:11 (wx_add_builtin_library) build/cmake/lib/CMakeLists.txt:28 (include)

CMake Error at build/cmake/functions.cmake:596 (add_library): No SOURCES given to target: wxpng Call Stack (most recent call first): build/cmake/lib/png.cmake:21 (wx_add_builtin_library) build/cmake/lib/CMakeLists.txt:28 (include)

CMake Error at build/cmake/functions.cmake:596 (add_library): No SOURCES given to target: wxtiff Call Stack (most recent call first): build/cmake/lib/tiff.cmake:19 (wx_add_builtin_library) build/cmake/lib/CMakeLists.txt:28 (include)

CMake Generate step failed. Build files cannot be regenerated correctly. Installing xtd... 子目录或文件 build 已经存在。 -- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19044. CMake Warning at scripts/cmake/xtd_commands.cmake:2167 (message): Doxygen not found try with set "XTD_DOWNLOAD_DOXYGEN" option to ON Call Stack (most recent call first): CMakeLists.txt:54 (include)

CMake Error at C:/Program Files/CMake/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES wxWidgets_INCLUDE_DIRS) Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) C:/Program Files/CMake/share/cmake-3.23/Modules/FindwxWidgets.cmake:1025 (find_package_handle_standard_args) src/xtd.drawing.native.wxwidgets/CMakeLists.txt:18 (find_package)

gammasoft71 commented 2 years ago

The issue was closed by you. Did the build finally work?

kkptm commented 2 years ago

no,the problem is with clone wxwidgets

gammasoft71 commented 2 years ago

Do you use the xtd installation or do you do a manual installation?

If you install manually after cloning wxWidgets you have to execute the following line to install submodules in the wxWidgets root folder:

git submodule update --init 
kkptm commented 2 years ago

i used use the xtd install.cmd

gammasoft71 commented 2 years ago

Are you on version 0.1.0 or on the trunk?

Can you delete the xtd/build folder. And restart the install. Then send me the output of the installation.

gammasoft71 commented 1 year ago

No enough information --> closed.