Skip to content

wxWidgets fails to build due to missing mswud path in debug #9141

@ArgoreOfficial

Description

@ArgoreOfficial

Xmake Version

3.0.5

Operating System Version and Architecture

Windows 10

Describe Bug

Don't know if this is a wxWidgets or xrepo bug, but I'll post this just in case

building a project that depends on wxWidgets in Debug causes the build to fail due to missing ../../lib/vc14x_x64_dll/mswud/ path, included in wx/setup.h
setup.h defines a wxSETUPH_PATH_STR macro that, in debug (unicode) expands to .../mswud/, while in release to .../mswu/. Only the mswu path is present in the package install directory

Expected Behavior

wxWidgets should either not build in debug, or the mswud directory should be present

Project Configuration

add_requires("wxwidgets")

target("wxtest")
    set_kind("binary")
    add_packages("wxwidgets")   
    add_files{ "src/**.cpp" }
#include <wx/wx.h>

int main()
{
	return 0;
}

Additional Information and Error Logs

error: main.cpp
C:\Users\argore\AppData\Local\.xmake\packages\w\wxwidgets\3.2.4\65f58dce48c248899c4654ed3fc39567\include\wx/setup.h(142): fatal error C1083: Cannot open include file: '../../lib/vc14x_x64_dll/mswd/wx/setup.h': No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions