-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* convert the project to use Microsoft vcpkg tool to fetch the wxWidgets and Boost dependencies on Windows * update the VS solution file to remove any WXDIR and BOOST_DIR-related settings... now vcpkg makes it easier: no explicit reference needs to be inside the solution file * update the NSIS installer to reference updated build paths
- Loading branch information
Showing
7 changed files
with
93 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,31 @@ | ||
# Building NetListViewer on Windows | ||
|
||
Please download and compile with latest VisualStudio both | ||
NetListViewer uses [vcpkg](https://vcpkg.io/en/getting-started) to install its 2 dependencies: | ||
1. wxWidgets >= 3.0.0 | ||
1. Boost >= 1.58 | ||
|
||
Then define the following 2 environment variables: | ||
1. WXWIN to point to the base root of your wxWidgets directory | ||
1. BOOST_DIR to point to the base root of your Boost directory | ||
|
||
For more info on how to do it, please look on Google, e.g.: https://superuser.com/questions/949560/how-do-i-set-system-environment-variables-in-windows-10 | ||
Step by step procedure to get them installed: | ||
|
||
Finally open the netlist_viewer_vs2022.sln project with VisualStudio and you should be able to build it. | ||
1. Install vcpkg following the [vcpkg getting started guide](https://vcpkg.io/en/getting-started) | ||
1. From a "cmd.exe" window run: | ||
|
||
``` | ||
cd <netlist-viewer-git-repo> | ||
vcpkg install # this will read the dependencies from vcpkg.json and download and build them | ||
vcpkg integrate install # this allows the dependencies to be usable from msbuild | ||
``` | ||
|
||
Note that this step will take a while: it will rebuild all wxWidgets and Boost libraries and all their | ||
dependencies as well. | ||
|
||
1. Open the netlist_viewer_vs2022.sln project with VisualStudio 2022 or newer and you should be able to build it. | ||
Alternatively the build can be launched from a console window as well: | ||
|
||
``` | ||
cd <netlist-viewer-git-repo> | ||
msbuild NetlistViewer\build\win\netlist_viewer_vs2022.vcxproj -t:rebuild -property:Configuration=Release -property:Platform=x64 | ||
``` | ||
|
||
NOTE: as of Nov 2023, the installation through vcpkg of the "expat" library (one of wxWidgets dependencies) can | ||
fail due to https://github.com/libexpat/libexpat/issues/418 if you have a localized version of VisualStudio. | ||
Check that URL for the workaround (i.e. installing the English pack in VisualStudio) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"default-registry": { | ||
"kind": "git", | ||
"baseline": "638b1588be3a265a9c7ad5b212cef72a1cad336a", | ||
"repository": "https://github.com/microsoft/vcpkg" | ||
}, | ||
"registries": [ | ||
{ | ||
"kind": "artifact", | ||
"location": "https://github.com/microsoft/vcpkg-ce-catalog/archive/refs/heads/main.zip", | ||
"name": "microsoft" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"dependencies": [ | ||
{ | ||
"name": "wxwidgets", | ||
"version>=": "3.2.3" | ||
}, | ||
{ | ||
"name": "boost-graph", | ||
"version>=": "1.82.0" | ||
}, | ||
{ | ||
"name": "boost-serialization", | ||
"version>=": "1.82.0" | ||
}, | ||
{ | ||
"name": "boost-functional", | ||
"version>=": "1.82.0" | ||
} | ||
] | ||
} |