Unable to build on Windows using CMake and Ninja (Issue #23875)

77 views
Skip to first unread message

Quin

unread,
Sep 14, 2023, 7:15:13 PM9/14/23
to wx-...@googlegroups.com, Subscribed

Description

When attempting to build wxWidgets using CMake and Ninja on Windows, I get an error about there being no sources given to the targets.

I'm doing:

cd wxWidgets
mkdir builddir
cd builddir
cmake -G Ninja ..

The build log is around 200000 characters, but I can paste it if really necessary.

Platform and version information

  • wxWidgets version you are building: Latest master branch
  • wxWidgets port you are building: wxMSW
  • OS and its version: Windows 10 22H2 (AMD64) build 19045.3324
  • Compiler being used: GCC 13.1.0,, being used with Ninja.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/23875@github.com>

VZ

unread,
Sep 14, 2023, 7:44:14 PM9/14/23
to wx-...@googlegroups.com, Subscribed

We do need the exact error message to be able to do anything about this.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/23875/1720291437@github.com>

Quin

unread,
Sep 14, 2023, 7:51:02 PM9/14/23
to wx-...@googlegroups.com, Subscribed

It repeats something like this over and over and over. CMake Error at build/cmake/functions.cmake:592 (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:27 (include)

CMake Error at build/cmake/functions.cmake:592 (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:27 (include)

CMake Error at build/cmake/functions.cmake:592 (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:27 (include)

CMake Error at build/cmake/functions.cmake:592 (add_library):
No SOURCES given to target: wxscintilla
Call Stack (most recent call first):
build/cmake/lib/stc/scintilla.cmake:13 (wx_add_builtin_library)
build/cmake/lib/stc/CMakeLists.txt:10 (include)

CMake Error at build/cmake/functions.cmake:592 (add_library):
No SOURCES given to target: wxlexilla
Call Stack (most recent call first):
build/cmake/lib/stc/lexilla.cmake:13 (wx_add_builtin_library)
build/cmake/lib/stc/CMakeLists.txt:11 (include)

CMake Generate step failed. Build files cannot be regenerated correctly.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/23875/1720296657@github.com>

VZ

unread,
Sep 14, 2023, 8:00:49 PM9/14/23
to wx-...@googlegroups.com, Subscribed

Do you have the required submodules?


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/23875/1720298966@github.com>

Quin

unread,
Sep 14, 2023, 8:21:29 PM9/14/23
to wx-...@googlegroups.com, Subscribed

I could've sworn I did, but apparently I did not. All seems to work now, thanks a ton!


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/23875/1720317796@github.com>

Quin

unread,
Sep 14, 2023, 8:21:30 PM9/14/23
to wx-...@googlegroups.com, Subscribed

Closed #23875 as completed.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issue/23875/issue_event/10377868315@github.com>

Reply all
Reply to author
Forward
0 new messages