Skip to content

Commit e9d5f02

Browse files
committed
Add Alpine build instructions
1 parent fd9c0c3 commit e9d5f02

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,22 @@ pkg install devel/cmake devel/boost-libs textproc/expat2 \
9999
databases/postgresql94-client graphics/proj lang/lua52
100100
```
101101

102+
On Alpine, use
103+
104+
```sh
105+
apk --update-cache add cmake make g++ boost-dev expat-dev \
106+
bzip2-dev zlib-dev libpq proj-dev lua5.3-dev
107+
```
108+
109+
Due to Lua installation details, CMake only detects some of the
110+
required Lua paths on Alpine, but not the library.
111+
This can be resolved by setting the `LUA_DIR` environment variable,
112+
or you can modify `CMAKE_PREFIX_PATH` as mentioned below.
113+
114+
```sh
115+
export LUA_DIR=<path> # Defaults to /usr/lib/lua5.3/
116+
```
117+
102118
Once dependencies are installed, use CMake to build the Makefiles in a separate
103119
folder:
104120

0 commit comments

Comments
 (0)