build script
This commit is contained in:
parent
a8991c938f
commit
424ba1d88d
23
README.md
23
README.md
|
@ -19,6 +19,7 @@ wget https://www.lua.org/ftp/lua-5.4.4.tar.gz
|
||||||
Экспорт переменных, где `/root/iup/` путь к репозиторию, а `Linux62_64` релиз ядра (возможен другой путь после компиляции):
|
Экспорт переменных, где `/root/iup/` путь к репозиторию, а `Linux62_64` релиз ядра (возможен другой путь после компиляции):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
export USE_GTK3=Yes
|
||||||
export USE_PKGCONFIG=Yes
|
export USE_PKGCONFIG=Yes
|
||||||
export USE_LUA_VERSION=54
|
export USE_LUA_VERSION=54
|
||||||
export USE_LUA54=Yes
|
export USE_LUA54=Yes
|
||||||
|
@ -34,17 +35,19 @@ export CD_LIB=/root/iup/cd/lib/Linux62_64
|
||||||
export CD_INC=/root/iup/cd/include
|
export CD_INC=/root/iup/cd/include
|
||||||
```
|
```
|
||||||
|
|
||||||
Установить при необходимости (возможны ошибки для старых `webkit`):
|
|
||||||
|
|
||||||
```sh
|
|
||||||
export USE_GTK3=Yes
|
|
||||||
```
|
|
||||||
|
|
||||||
### lua
|
### lua
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cd lua-5.4.4
|
cd lua-5.4.4
|
||||||
make linux
|
make linux
|
||||||
|
ln -s liblua.a src/liblua54.a
|
||||||
|
```
|
||||||
|
|
||||||
|
Для компиляции из под Lua 5.4 необходимо создать ссылки:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
mkdir -p /root/iup/lua54/bin/Linux62_64
|
||||||
|
ln -sf $LUA_LIB/lua /root/iup/lua54/bin/Linux62_64/lua54
|
||||||
```
|
```
|
||||||
|
|
||||||
### pdflib7
|
### pdflib7
|
||||||
|
@ -96,6 +99,12 @@ make
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cd iup
|
cd iup
|
||||||
git apply without-lua-prefix-with-linux6.patch
|
patch -p1 < without-lua-prefix-with-linux6.patch
|
||||||
make
|
make
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Сборка одним скриптом
|
||||||
|
|
||||||
|
```sh
|
||||||
|
./build.sh
|
||||||
|
```
|
||||||
|
|
|
@ -0,0 +1,50 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
CURRENT_PATH=$PWD
|
||||||
|
|
||||||
|
export USE_GTK3=Yes
|
||||||
|
export USE_PKGCONFIG=Yes
|
||||||
|
export USE_LUA_VERSION=54
|
||||||
|
export USE_LUA54=Yes
|
||||||
|
export LUA_LIB=$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_INC=$CURRENT_PATH/im/include
|
||||||
|
export FTGL_LIB=$CURRENT_PATH/ftgl/lib/Linux62_64
|
||||||
|
export FTGL_INC=$CURRENT_PATH/ftgl/include
|
||||||
|
export PDFLIB_LIB=$CURRENT_PATH/pdflib7/lib/Linux62_64
|
||||||
|
export PDFLIB_INC=$CURRENT_PATH/pdflib7/include
|
||||||
|
export CD_LIB=$CURRENT_PATH/cd/lib/Linux62_64
|
||||||
|
export CD_INC=$CURRENT_PATH/cd/include
|
||||||
|
|
||||||
|
cd lua-5.4.4
|
||||||
|
make linux
|
||||||
|
ln -s liblua.a src/liblua54.a
|
||||||
|
|
||||||
|
mkdir -p $CURRENT_PATH/lua54/bin/Linux62_64
|
||||||
|
ln -sf $LUA_LIB/lua $CURRENT_PATH/lua54/bin/Linux62_64/lua54
|
||||||
|
|
||||||
|
cd ../pdflib7
|
||||||
|
make
|
||||||
|
|
||||||
|
cd ../ftgl
|
||||||
|
make
|
||||||
|
|
||||||
|
# cd ../fftw
|
||||||
|
# ./configure --enable-shared --enable-sse --prefix=/usr
|
||||||
|
# make -j16
|
||||||
|
# make install
|
||||||
|
# make clean
|
||||||
|
# ./configure --enable-shared --enable-float --prefix=/usr
|
||||||
|
# make -j16
|
||||||
|
# make install
|
||||||
|
|
||||||
|
cd ../im
|
||||||
|
make
|
||||||
|
|
||||||
|
cd ../cd
|
||||||
|
make
|
||||||
|
|
||||||
|
cd ../iup
|
||||||
|
patch -p1 < without-lua-prefix-with-linux6.patch
|
||||||
|
make
|
Loading…
Reference in New Issue