wxIshiko / wxCharts

A library to create charts in wxWidgets applications
https://www.wxishiko.com/wxCharts/
MIT License
114 stars 50 forks source link

wxCharts is dead broken #205

Open pps83 opened 1 year ago

pps83 commented 1 year ago

I've dealt with different libs in 20+ years doing c++ but this one is dead broken. I simply cannot build it. I use vs2022. Can't you provide something that actually builds?.. what's the point of a public lib that doesn't build?

all VS solutions in wxCharts/build/msw are broken (missing wxcharts_export.h). From numerous reports, it seems that these are dead and cmake has to be used. When I try to open cmake I get this:

1> [CMake] -- Configuring incomplete, errors occurred!
1> [CMake] See also "C:/work/wxCharts/out/build/x64-Debug/CMakeFiles/CMakeOutput.log".
1> 'C:\WINDOWS\system32\cmd.exe' '/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "c:\program files\microsoft visual studio\2022\professional\common7\ide\commonextensions\microsoft\cmake\CMake\bin\cmake.exe"  -G "Ninja"  -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="C:\work\wxCharts\out\install\x64-Debug" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.33.31629/bin/Hostx64/x64/cl.exe"  -DCMAKE_MAKE_PROGRAM="c:\program files\microsoft visual studio\2022\professional\common7\ide\commonextensions\microsoft\cmake\Ninja\ninja.exe" "C:\work\wxCharts" 2>&1"' execution failed with error: ''C:\WINDOWS\system32\cmd.exe' '/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "c:\program files\microsoft visual studio\2022\professional\common7\ide\commonextensions\microsoft\cmake\CMake\bin\cmake.exe"  -G "Ninja"  -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="C:\work\wxCharts\out\install\x64-Debug" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.33.31629/bin/Hostx64/x64/cl.exe"  -DCMAKE_MAKE_PROGRAM="c:\program files\microsoft visual studio\2022\professional\common7\ide\commonextensions\microsoft\cmake\Ninja\ninja.exe" "C:\work\wxCharts" 2>&1"' returned with exit code: 1'.

and nothing happens after that. It appears frozen. It's just a bunch of cpp files, can't you simply provide a working vs solution/project just like vxWidgets?

xleclercq commented 1 year ago

Sorry you are having issues. I will try to fix.

gammasoft71 commented 1 year ago

Hello @pps83,

I have posted a pull request (#207) to fix the CMakeLists.txt file to fix the build on Windows.

While waiting for it to be merged you can simply modify your CMakeLists.txt locally and replace the lines 21 and 22 with the following:

 if (NOT WIN32)
     set(wxWidgets_ROOT_DIR "" CACHE PATH "")
     set(wxWidgets_wxrc_EXECUTABLE "" CACHE FILEPATH "")
 endif()

Regards, Gammasoft