Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.68 KB

README.md

File metadata and controls

42 lines (30 loc) · 1.68 KB

Building NetListViewer on Windows

NetListViewer uses vcpkg to install its 2 dependencies:

  1. wxWidgets >= 3.0.0
  2. Boost >= 1.58

Step by step procedure to get them installed:

  1. Install vcpkg following the vcpkg getting started guide
  2. 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. You can monitor the build of each dependency by watching/grepping the "completed submission of" messages of vcpkg.

  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 libexpat/libexpat#418 if you have a localized version of VisualStudio. Check that URL for the workaround (i.e. installing the English pack in VisualStudio)

NOTE: these steps are also part of the CI pipeline of the Github project.

Update the build system

vcpkg works using some "baseline". From time to time, it's worth updating it with:

vcpkg x-update-baseline