fix build
This commit is contained in:
parent
424ba1d88d
commit
36fda20a6f
|
@ -105,6 +105,10 @@ make
|
||||||
|
|
||||||
### Сборка одним скриптом
|
### Сборка одним скриптом
|
||||||
|
|
||||||
|
Где `<kernel>`:
|
||||||
|
- `Linux515_64`
|
||||||
|
- `Linux62_64`
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
./build.sh
|
./build.sh <kernel>
|
||||||
```
|
```
|
||||||
|
|
31
build.sh
31
build.sh
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
CURRENT_PATH=$PWD
|
CURRENT_PATH=$PWD
|
||||||
|
LINUX_VERSION=$1
|
||||||
|
|
||||||
export USE_GTK3=Yes
|
export USE_GTK3=Yes
|
||||||
export USE_PKGCONFIG=Yes
|
export USE_PKGCONFIG=Yes
|
||||||
|
@ -8,21 +9,21 @@ export USE_LUA_VERSION=54
|
||||||
export USE_LUA54=Yes
|
export USE_LUA54=Yes
|
||||||
export LUA_LIB=$CURRENT_PATH/lua-5.4.4/src
|
export LUA_LIB=$CURRENT_PATH/lua-5.4.4/src
|
||||||
export LUA_INC=$CURRENT_PATH/lua-5.4.4/src
|
export LUA_INC=$CURRENT_PATH/lua-5.4.4/src
|
||||||
export IM_LIB=$CURRENT_PATH/im/lib/Linux62_64
|
export IM_LIB=$CURRENT_PATH/im/lib/$LINUX_VERSION
|
||||||
export IM_INC=$CURRENT_PATH/im/include
|
export IM_INC=$CURRENT_PATH/im/include
|
||||||
export FTGL_LIB=$CURRENT_PATH/ftgl/lib/Linux62_64
|
export FTGL_LIB=$CURRENT_PATH/ftgl/lib/$LINUX_VERSION
|
||||||
export FTGL_INC=$CURRENT_PATH/ftgl/include
|
export FTGL_INC=$CURRENT_PATH/ftgl/include
|
||||||
export PDFLIB_LIB=$CURRENT_PATH/pdflib7/lib/Linux62_64
|
export PDFLIB_LIB=$CURRENT_PATH/pdflib7/lib/$LINUX_VERSION
|
||||||
export PDFLIB_INC=$CURRENT_PATH/pdflib7/include
|
export PDFLIB_INC=$CURRENT_PATH/pdflib7/include
|
||||||
export CD_LIB=$CURRENT_PATH/cd/lib/Linux62_64
|
export CD_LIB=$CURRENT_PATH/cd/lib/$LINUX_VERSION
|
||||||
export CD_INC=$CURRENT_PATH/cd/include
|
export CD_INC=$CURRENT_PATH/cd/include
|
||||||
|
|
||||||
cd lua-5.4.4
|
cd lua-5.4.4
|
||||||
make linux
|
make linux
|
||||||
ln -s liblua.a src/liblua54.a
|
ln -s liblua.a src/liblua54.a
|
||||||
|
|
||||||
mkdir -p $CURRENT_PATH/lua54/bin/Linux62_64
|
mkdir -p $CURRENT_PATH/lua54/bin/$LINUX_VERSION
|
||||||
ln -sf $LUA_LIB/lua $CURRENT_PATH/lua54/bin/Linux62_64/lua54
|
ln -sf $LUA_LIB/lua $CURRENT_PATH/lua54/bin/$LINUX_VERSION/lua54
|
||||||
|
|
||||||
cd ../pdflib7
|
cd ../pdflib7
|
||||||
make
|
make
|
||||||
|
@ -30,14 +31,14 @@ make
|
||||||
cd ../ftgl
|
cd ../ftgl
|
||||||
make
|
make
|
||||||
|
|
||||||
# cd ../fftw
|
cd ../fftw
|
||||||
# ./configure --enable-shared --enable-sse --prefix=/usr
|
./configure --enable-shared --prefix=/usr
|
||||||
# make -j16
|
make -j16
|
||||||
# make install
|
make install
|
||||||
# make clean
|
make clean
|
||||||
# ./configure --enable-shared --enable-float --prefix=/usr
|
./configure --enable-shared --enable-float--prefix=/usr
|
||||||
# make -j16
|
make -j16
|
||||||
# make install
|
make install
|
||||||
|
|
||||||
cd ../im
|
cd ../im
|
||||||
make
|
make
|
||||||
|
@ -46,5 +47,5 @@ cd ../cd
|
||||||
make
|
make
|
||||||
|
|
||||||
cd ../iup
|
cd ../iup
|
||||||
patch -p1 < without-lua-prefix-with-linux6.patch
|
# patch -p1 < without-lua-prefix-with-linux6.patch
|
||||||
make
|
make
|
||||||
|
|
Loading…
Reference in New Issue