When I move executable it does not plot well. #317
Unanswered
Leidenschaftliche
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm using matplotplusplus-1.1.0 in my KNNplot project
It works well after cmake when i execute
mingw32-make install
command.As it installs it on to ./build/rel directory
If I delete all files other than my installed executable it still works well. (doesn't depend on other files of the project)
But if I change its location it does not work well. (The working of exe is dependend of its location unfortunately)
My project has only 3 files: classifierKNN_2d.cpp, classifierKNN_2d.h and main.cpp
In my project I use the matplotplusplus-1.1.0.
The directory structure before executing any build command(cmake make etc) is:
Directory of C:\Users\ASUS\Desktop\knn_LabFinal
02.01.2023 02:55
.02.01.2023 02:55 ..
01.01.2023 23:12 9.090 classifierKNN_2d.cpp
01.01.2023 23:09 4.743 classifierKNN_2d.h
02.01.2023 02:23 1.067 CMakeLists.txt
01.01.2023 21:23 1.233 main.cpp
02.01.2023 02:45 matplotplusplus
4 File(s) 16.133 bytes
3 Dir(s) 775.606.550.528 bytes free
I execute this 3 commands in order in cmd to build my project:
My cmakelists.txt File:
after
mingw32-make -j8
command knn_LabFinal.exe is created at:C:\Users\ASUS\Desktop\knn_LabFinal\
after
mingw32-make install
command knn_LabFinal.exe is created at:C:\Users\ASUS\Desktop\knn_LabFinal\compiled\rel
I checked hashes for both C:\Users\ASUS\Desktop\knn_LabFinal\compiled\rel\knn_LabFinal.exe and
C:\Users\ASUS\Desktop\knn_LabFinal\knn_LabFinal.exe and they're exactly the same.
I wonder why this happens? How do I solve it?
I want to make my executable(knn_LabFinal.exe) portable,
So it should work in every win-10_x86_64 system which has gnuplot on sytems PATH variable.
Left one works well, while right one doesn't.
Beta Was this translation helpful? Give feedback.
All reactions