Blake-Madden / Wisteria-Dataviz

Wisteria Dataviz Library
BSD 3-Clause "New" or "Revised" License
14 stars 3 forks source link

Visual Studio cmake fails (Windows, Visual Studio 2022) #44

Open DRNadler opened 1 month ago

DRNadler commented 1 month ago

Apologies, I'm not a cmake expert, and I can't build... I'm using Visual Studio 2022 with all the latest patches, with its built-in cmake. I installed wxWidgets 3.2.5, and built the libraries (debug 64-bit) using wxWidgets-provided SLN (not cmake). wxWidgets samples build and run fine (I've written wxWidgets apps before, no problem there).

I tried to follow your instructions for Windows/Visual Studio. When I first opened the project, settings wanted separate paths for wxWidgets_ROOT_DIR and wxWidgets_LIB_DIR which I provided. First attempt at build wanted path for wxWidgets_wxrc_EXECUTABLE which I added. Now build fails as follows: Severity Code Description Project File Line Suppression State Details Error CMake Error at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES wxWidgets_INCLUDE_DIRS core base adv html ribbon xml xrc qa propgrid) C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake 230

I added wxWidgets_LIBRARIES and wxWidgets_INCLUDE_DIRS to settings but that made no difference.

Again sorry to bother you with this, but any suggestions? Thanks in advance! Best Regards, Dave

DRNadler commented 1 month ago

Update: Using cmake GUI, the demo and library build just fine. Looks like a problem with Visual Studio's cmake handling. Let me know if you'd like me to submit a pull request updating the documentation to save the next guy grief... Thanks!

Blake-Madden commented 1 month ago

A PR would be great, thanks.

DRNadler commented 1 month ago

Just done...