Utility libraries for C++
- FlatAlg - Linear algebra
- HGraf - Graphics utility functions
- HCam - Webcam interface
- Winval - Window system
- Flaudio - Audio engine-ish
cmake
g++
(Linux)- Visual Studio build tools (Windows)
- X11 (Linux)
- asound (Linux)
- A sane mind, as you could actually hurt your hearing with this. Take care
- Run
build.sh
(Linux) orbuild.bat
(Windows) in root folder
You would write something like
g++ test.cpp -o test -I path/to/HConLib/include -L path/to/HConLib/lib -l FlatAlg
to compile with FlatAlg etc. Some libraries require further linking, like
g++ winval_test.cpp -o winval_test -I path/to/HConLib/include -L path/to/HConLib/lib -l Winval -l X11
The above should work if g++
is installed. Equivalents with Visual Studio's compiler (cl
) would probably work too. Building with cmake
and msbuild
might be easier anyway. But I don't judge.
- Compile examples by going to examples and run
compile_with_cmake.sh
in Linux orcompile_with_cmake.bat
in Windows - Supports turbojpeg for image decompression with webcam (see example/CMakeLists.txt to see how it is used)
-
Is this necessary? No, but it makes me feel good about myself
-
May I use it? Yeah, sure
-
Is it optimized? Not very. But hopefully, you are not running this on a toaster