This is a template for creating a ImGui apllication using openGL and GLFW.
To use it just clone it, cd into it and then run make. The Makefile is going to compile all of the files from ImGui and it will put all of the output files inside ./build folder, there is also ./lib folder in which you can add any lib that you want (make your on) and the Makefile will automaticly link all of them with main.cpp.
In the ./lib there is already an exaple called myLib that for now is just being run every frame and it prints "Hello".
In the Makefile few addition libraries are also linked:
- opencv4
- mysql
- glew
(They are aslo included in main.cpp file)
- Download the opencv-xxx.zip from opencv.org
- Extract it and cd into it
- make new folder and cd into it
mk build; cd build
- run
cmake -D OPENCV_GENERATE_PKGCONFIG=ON ..
- run
make -j$(nproc)
- run
sudo make install
- run
sudo cp -r /usr/local/include/opencv4/opencv2 /usr/local/include/
- run
sudo cp -r unix-install/opencv4.pc /usr/local/lib/pkgconfig
- run
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
(in the same windows as in you are going to run make) - run
sudo ldconfig
- run
export LD_LIBRARY_PATH=/usr/local/lib
- install it using aur packet manager
yay -S glew
- Download the zip from official website
- extarct the zip and cd into it
- run
sudo cp -r ./include/jdbc /usr/local/include
- run
sudo mv /usr/local/incude/jdbc/cppconn /usr/local/include
- run
sudo cp -r ./lib64/* /usr/local/lib
Just run make
and it will build the executable.