-
Notifications
You must be signed in to change notification settings - Fork 24
Compiling
Dependencies:
- glib >= 2.14
- libcurl (devel and binary)
- cmake (required)
- SQLite (required, may be optional later)
- git (optional)
Note:
For running `glyrc` you only need libcurl and glib in binary form,
not the developement packages!
If you have git installed:
git clone https://github.com/sahib/glyr.git
else download a tarball:
wget --no-check-certificate http://github.com/sahib/glyr/tarball/master -O glyr.tar
tar xfv glyr.tar
after downloading:
cd glyr
cmake -DCMAKE_INSTALL_PREFIX=/usr .
make && sudo make install
The instructions for Linux are almost the same, but a few more steps may be needed:
- libintl is needed, install it from here
https://code.google.com/p/rudix/downloads/detail?name=static-libintl-0.18.1.1-5.pkg
- You may need to link
sqlite3.pc
to/usr/local/pkgconfig/
with$ brew link --force sqlite
- Details:
https://github.com/sahib/glyr/issues/34
For Windows you gonna need the MinGW compiler with the libcurl packages installed.
Detailed instructions missing, although libglyr has been built succesfully on libglyr there is no guide on it yet.
Please contact avuton if you are interested in writing one/provide packages as he managed to compile it:
There are some vars you can adjust by setting on the commandline like this -DVarname=value
:
- CMAKE_INSTALL_PREFIX => a path, by default “/usr/local”, you might want to change it to “/usr”
- CMAKE_BUILD_TYPE => “debug” or “release”
- -DTEST=“[true|false]” => Enables or disables tests.
- LIB_SUFFIX => Some distris install libraries to lib64, you can use this to overwrite this.
- INSTALL_BIN_DIR => Install binaries to , relative to CMAKE_INSTALL_PREFIX
- INSTALL_LIB_DIR => Install libraries to , relative to CMAKE_INSTALL_PREFIX
- INSTALL_INC_DIR => Install headers to , relative to CMAKE_INSTALL_PREFIX
Once installed you can compile applications that use libglyr like this:
gcc source.c -o binary -lglyr
But you rather should use this form using pkg-config
:
gcc source.c -o binary $(pkg-config --libs --cflags libglyr)
Archlinux: There is a package in the AUR.