Closed MidsummerNight closed 2 years ago
@MidsummerNight
From the log file, I think you missed a package:
@tangxifan Yeah I noticed that right after posting, sorry my fault. But is adding -DVPR_USE_EZGL=on
directly inside the Makefile the proper way to enable the GUI?
Update:
The same issue persists even after installing the packages listed in OpenFPGA/.github/workflows/install_dependencies_build.sh. Strangely -- EZGL: graphics enabled
is always displayed before cd build && make
, regardless of whether -DVPR_USE_EZGL=on
is in Makefile or not, and the build process succeeded after I installed libgtk-3-dev
.
@MidsummerNight In general, you do not need to specify the -DVPR_USE_EZGL=on
using Cmake options. The Cmakefile is designed to automatically detect your packages, if the packages are all installed, if will enable GUI. Otherwise it will not.
Regarding libgtk-3-dev
, it is not in our dependency list. It seems that on Github runners, it is preinstalled. If you are trying a different machine that our Github runners, you may expect differences in preinstalled packages.
In the end, my issue was solved by installing libgtk-3-dev
, whatever the reason. This is indeed quite strange since I recall successfully building OpenFPGA back in September without libgtk-3-dev
. I'll close this issue now, hopefully my experience would be helpful to future troubled users.
Sorry if this turns out to be a low level mistake on my part, but when following the How to Compile instructions on enabling the GUI ("VPR’s GUI requires gtk-3, and can be enabled with
cmake .. -DVPR_USE_EZGL=on
"), I modified /OpenFPGA/Makefile like this:Then executed
make all
, and everything went well until this:To be honest I didn't really understand how to
cmake .. -DVPR_USE_EZGL=on
exactly, so I took a guess and added the flag inside the Makefile. Is this not the proper way and the reason of my error? Or did I mishandle something else? Many thanks!