Closed Leidenschaftliche closed 1 year ago
But if I change its location it does not work well. (The working of exe is dependend of its location unfortunately)
At this point, you have to tell us what the error is.
But if I change its location it does not work well. (The working of exe is dependend of its location unfortunately)
At this point, you have to tell us what the error is.
It doesn't give any explicit error. The executable just doesn't plot anything other than legends if I change its location.
It is solved, it was a compatibility issue. As windows associates full path of the executable with its compatibility settings, it doesn't work if we move the executable to a new location. But if we configure settings also for new location it works there as well. So for each location change we must redo our compatibility configuration which is "windows-8".
So the new problem here is do we have to use windows-8 mode for an healthy execution, or are there any shortcuts?
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
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\relI 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.
Originally posted by @Leidenschaftliche in https://github.com/alandefreitas/matplotplusplus/discussions/317