4bb4 / implot-rs

Rust bindings to https://github.com/epezent/implot
Apache License 2.0
54 stars 22 forks source link

demo build failed? #26

Open skydig opened 2 years ago

skydig commented 2 years ago

F:\rs\implot-rs\implot-examples\implot-glium-demo>cargo run Updating ustc index Compiling winapi v0.3.9 Compiling winit v0.25.0 Compiling imgui-sys v0.8.0 Compiling implot-sys v0.6.0 (F:\rs\implot-rs\implot-sys) error: failed to run custom build command for implot-sys v0.6.0 (F:\rs\implot-rs\implot-sys)

Caused by: process didn't exit successfully: F:\rs\implot-rs\implot-examples\implot-glium-demo\target\debug\build\implot-sys-87fe32f44bcaa047\build-script-build (exit code: 1) --- stderr

error occurred: Command "d:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.29.30132\bin\HostX64\x64\cl.exe" "-nologo" "-MT" "-Z7" "-Brepro" "-I" "C:\Users\Administrator\.cargo\registry\src\mirrors.ustc.edu.cn-12df342d903acd47\imgui-sys-0.8.0\third-party" "-I" "C:\Users\Administrator\.cargo\registry\src\mirrors.ustc.edu.cn-12df342d903acd47\imgui-sys-0.8.0\third-party\imgui" "-I" "third-party/cimplot/implot/" "-W4" "-DCIMGUI_NO_EXPORT" "-DIMGUI_DISABLE_OSX_FUNCTIONS" "-DIMGUI_DISABLE_WIN32_FUNCTIONS" "-DIMGUI_USE_WCHAR32" "-FoF:\rs\implot-rs\implot-examples\implot-glium-demo\target\debug\build\implot-sys-6132c7af9f575321\out\third-party/cimplot/cimplot.o" "-c" "third-party/cimplot/cimplot.cpp" with args "cl.exe" did not execute successfully (status code exit code: 2).

warning: build failed, waiting for other jobs to finish... error: build failed

skydig commented 2 years ago

a little advance

I copied implot-rs directory to existing imgui projectm compile is ok, but at last, link error say: can not find ImPlot_SetNextPlotTicksYdoublePtr,in function _ZN6implot4plot4Plot21maybe_set_tick_label

what can I do to remove this error? thanks!!

I use latest imgui and implot

4bb4 commented 2 years ago

Thanks for reporting this. I'll try to reproduce the problem and get back to you.

4bb4 commented 2 years ago

I have installed the latest version of the VS tools I could find (14.29.30133) and could not reproduce the problem locally - let's try and look for other differences between our setups as well. I am using the latest Rust (1.57.0) and an otherwise fairly vanilla up-to-date Windows 10 installation.