Skip to content

Commit

Permalink
wxlib.bat generator variable seems unnecessary, the user's VS version…
Browse files Browse the repository at this point in the history
… will be the default
  • Loading branch information
bbbradsmith committed Apr 14, 2024
1 parent 73dc895 commit 5c27918
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ but there is some additional setup required:
* Put the `lib\vc14x_x64_dll` folder from the 64-bit downloaded libraries in `wxlib\lib\vc_x64_lib`.
* Put the `lib\vc14x_dll` folder from the 32-bit downloaded libraries in `wxlib\lib\vc_lib`.

It's probably easier, however, to just use the `wxlib.bat` file to build it from the submodule source code in `wx`. If you want to try with Visual Studio 2022, you can edit the batch file or set an environment variable:
* `set WXB_GENERATOR="Visual Studio 17 2022"`
* `wxlib.bat`
It's probably easier, however, to just use the `wxlib.bat` file to build it from the submodule source code in `wx`.

Otherwise on other platforms there is probably some wxWidgets library package you can install and use. In theory could could use the `WXL_CONFIG` environment variable to tell the make build how to use it instead.
* `export WXL_CONFIG=/path/to/wx-config`
Expand Down
3 changes: 0 additions & 3 deletions wxlib.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
@set WXCMAKE64=vc64
@set WXCMAKE32=vc32

@if not defined WXB_GENERATOR set WXB_GENERATOR="Visual Studio 16 2019"

@set WXCONF=%WXCONF% -G %WXB_GENERATOR%
@set WXCONF=%WXCONF% -DwxBUILD_USE_STATIC_RUNTIME=ON
@set WXCONF=%WXCONF% -DwxBUILD_SHARED=OFF
@set WXCONF=%WXCONF% -DwxUSE_UNICODE=ON
Expand Down

0 comments on commit 5c27918

Please sign in to comment.