hxwidgets:Cannot open include file: 'wx/setup.h'

follow this step

http://www.haxeui.org/getting-started/haxeui-hxwidgets/

os:win10

haxe:4.2.3

haxeui:git version

wxWidgets-3.1.5

haxe .\hxwidgets.hxml

I’m not sure if it is a bug

S D:\test\hxcpp> haxe .\hxwidgets.hxml
haxelib run hxcpp Build.xml haxe -DABI="-MD" -DNO_PRECOMPILED_HEADERS=“1” -DPLATFORM_WINDOWS=“1” -DWXSTATIC=“1” -Dhaxe=“4.2.3” -Dhaxe3=“1” -Dhaxe4=“1” -Dhaxe_ver=“4.203” -Dhaxeui-core=“1.3.0” -Dhaxeui-hxwidgets=“1.3.0” -Dhaxeui_core=“1.3.0” -Dhaxeui_hxwidgets=“1.3.0” -DhxWidgets=“1.8.0” -Dhxcpp=“4.2.1” -Dhxcpp_api_level=“400” -Dhxcpp_smart_strings=“1” -Dsource_header=“Generated by Haxe 4.2.3” -Dstatic=“1” -Dtarget.name=“cpp” -Dtarget.static=“true” -Dtarget.sys=“true” -Dtarget.threaded=“true” -Dtarget.unicode=“true” -Dtarget.utf16=“true” -Dutf16=“1”
-I"C:\HaxeToolkit\haxe\lib\hxcpp/4,2,1/" -I"C:\HaxeToolkit\haxe\lib\hxWidgets/1,8,0/src/" -I"C:\HaxeToolkit\haxe\lib\haxeui-hxwidgets/git/" -I"C:\HaxeToolkit\haxe\lib\haxeui-core/git/" -I"src/" -I"" -I"C:\HaxeToolkit\haxe\extraLibs/" -I"C:\HaxeToolkit\haxe\std/cpp/_std/" -I"C:\HaxeToolkit\haxe\std/"
Using wxWidgets from: C:\wxWidgets-3.1.5\lib\vc_lib

Compiling group: haxe
cl.exe -Iinclude -IC:\wxWidgets-3.1.5\include -IC:\wxWidgets-3.1.5\lib\vc_lib\mswu -IC:/HaxeToolkit/haxe/lib/hxWidgets/1,8,0/\include -DUNICODE -D_UNICODE -DwxMSVC_VERISON_AUTO -DwxUSE_GRAPHICS_CONTEXT -DWIN32 -D__WXMSW__
-D__WX__=1 -nologo /WX- /fp:precise -DHX_WINDOWS -GR -O2(optim-std) -Zi(debug) -FdD:\test\hxcpp\build\hxwidgets\obj/msvc19xp/vc.pdb(debug) -Od(debug) -O2(release) -Os(optim-size) -FS -Oy- -c -EHs -GS- -arch:SSE2 -IC:/HaxeToolkit/haxe/lib/hxcpp/4,2,1/include -DHXCPP_VISIT_ALLOCS(haxe) -DHX_SMART_STRINGS(haxe) -DHXCPP_API_LEVEL=400(haxe) -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATCH -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -wd4996 … tags=[haxe,static]

  • src/hx/widgets/BoolProperty.cpp
  • src/hx/widgets/SystemOptions.cpp
  • src/haxe/ui/backend/hxwidgets/behaviours/TableViewDataSource.cpp
  • src/hx/widgets/CheckBox.cpp
    Error: BoolProperty.cpp

C:\wxWidgets-3.1.5\include\wx/platform.h(159): fatal error C1083: Cannot open include file: 'wx/setup.h': No such file or directory

Error: Build failed

Looks like your install / setup is wrong, outside of haxeui (or haxe even), can you build the wxWidgets samples, that might give you some more hints

Yes, after trying to use the vcpkg install tool, everything seems ok.

1 Like