Tag Archives: Linux kernel 7.0

Bid for Kirin (Linux kernel) 7.0 compiler and installation sdl2.0 and QT using sdl2

Chinese standard kirin (Linux kernel)7.0 compiler installation SDL2.0
Compile environment and preparation
Kylin desktop operating system software V7.0SDL2 source code download address
compile
1. Unpack

tar xvf  SDL2-2.0.12.tar.gz

2. Enter the folder SDL2-2.0.12

cd SDL2-2.0.12

3. Configure Confiure

./configure --prefix=$PWD/build

4. Compile and install

make && make install

5, complete
Configuring environment variables (same as window principle)
You can also directly copy the dynamic link library to /user/lib (similar to Win7: C:\ Windows \Sytstem32)export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:[absolute path of source code]/ sdl2-2.0.12 /build/lib
Qt call SDL2
Add SDL2 library in. Pro

INCLUDEPATH += $$PWD/SDL2/include/
DEPENDPATH += $$PWD/SDL2/include/
LIBS += -L$$PWD/SDL2/lib/ -lSDL2