akermu / emacs-libvterm

Emacs libvterm integration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compile offline / through proxy support

zackteo opened this issue · comments

Hello, have tried to compile vterm in my work environment at various junctures but unfortunately all my attempts have been to no avail. So I thought it is a worth a shot to try asking here.

The problem I face is due to the following: https://github.com/akermu/emacs-libvterm/blob/master/CMakeLists.txt#L74-L80

My machine is only able to access the internet behind a proxy and I am unable to fulfill Performing download step (git clone) for 'libvterm' as this access is blocked by the proxy.

I am able to download the libvterm manually but CMakeLists.txt forces the download step, is there a way to overcome this?

(For added context, I also have no access to homebrew)

Okay! I managed to resolve it

For anyone who encounters the same problem

ExternalProject_add(libvterm
#GIT_REPOSITORY https://github.com/Sbozzolo/libvterm-mirror.git
#GIT_TAG 64f1775952dbe001e989f2ab679563b54f2fca55
SOURCE_DIR "<REPLACE_ME>/libvterm"
CONFIGURE_COMMAND ""
BUILD_COMMAND ${LIBVTERM_BUILD_COMMAND} "CFLAGS='-fPIC'" "LDFLAGS='-static'"
BUILD_IN_SOURCE ON
INSTALL_COMMAND "")

For installation of glibtool (which is needed due to the the building of libvterm itself) without homebrew, follow https://stackoverflow.com/questions/54078839/mac-osx-where-can-i-download-glibtool

mkdir build
cd build
../configure --prefix=/my/install/path --program-prefix=g
make; make install