Rookie HvHer
- User ID
- 43177
- Messages
- 25
- Reactions
- 16
- Level
- 7
download personer:
git clone
cd vcpkg
.\bootstrap-vcpkg.bat
.\vcpkg integrate install
.\vcpkg install freetype
add to vs code's include directories /usr/include/freetype2
.put header #include <ft2build.h> and FT_FREETYPE_H just after it, in main.cpp file.
pkg-config --cflags freetype2 command to ensure its location -I/usr/include/freetype2
use CMakeLists.txt in \Frontend\UI\freetype\ add include_directories (/usr/include/freetype2)
cmake_minimum_required(VERSION 3.20.3)
project(gamesense)
include_directories (/usr/include/freetype2)
file(GLOB PUBLIC_HEADERS "include/ft2build.h" "include/freetype/.h")
file(GLOB PUBLIC_CONFIG_HEADERS "include/freetype/config/.h")
file(GLOB PRIVATE_HEADERS "include/freetype/internal/.h")
cmake -E make_directory build
cmake -E chdir build cmake
cmake -E chdir build cmake -D BUILD_SHARED_LIBS:BOOL=true
```cd ../
rm -r build/
cmake --build PRIVATE ("gamesense/include/")
sudo cmake --build --PUBLIC install ("include/freetype2")
make
./gamesense
```
You must be registered for see links
git clone
You must be registered for see links
cd vcpkg
.\bootstrap-vcpkg.bat
.\vcpkg integrate install
.\vcpkg install freetype
add to vs code's include directories /usr/include/freetype2
.put header #include <ft2build.h> and FT_FREETYPE_H just after it, in main.cpp file.
pkg-config --cflags freetype2 command to ensure its location -I/usr/include/freetype2
use CMakeLists.txt in \Frontend\UI\freetype\ add include_directories (/usr/include/freetype2)
cmake_minimum_required(VERSION 3.20.3)
project(gamesense)
include_directories (/usr/include/freetype2)
file(GLOB PUBLIC_HEADERS "include/ft2build.h" "include/freetype/.h")
file(GLOB PUBLIC_CONFIG_HEADERS "include/freetype/config/.h")
file(GLOB PRIVATE_HEADERS "include/freetype/internal/.h")
cmake -E make_directory build
cmake -E chdir build cmake
cmake -E chdir build cmake -D BUILD_SHARED_LIBS:BOOL=true
```cd ../
rm -r build/
cmake --build PRIVATE ("gamesense/include/")
sudo cmake --build --PUBLIC install ("include/freetype2")
make
./gamesense
```