Created
February 11, 2016 13:36
-
-
Save Cyken-Zeraux/f83bd07eae9da6980f9a to your computer and use it in GitHub Desktop.
SM cURL compile -not working
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fresh Install of Ubuntu 14.04 i386 | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get build-dep zlib | |
sudo apt-get build-dep openssl | |
sudo apt-get build-dep libssh2 | |
sudo apt-get build-dep curl | |
Download latest sources: | |
zlib: http://www.zlib.net/ | |
OpenSSL: ftp://ftp.openssl.org/source/ | |
LibSSH2: http://www.libssh2.org/ | |
cURL: https://curl.haxx.se/download.html | |
Replace all further references of /home/user with your proper user path. | |
cd ~/ | |
mkdir sources | |
Extract all 4 packages to this sources folder. | |
Remove versioning from folder names, should be: curl, libssh, openssl, zlib | |
cd sources | |
mkdir lib | |
cd lib | |
mkdir {zlib,openssl,libssh2,curl} | |
export LIBS+=-ldl | |
cd zlib | |
./configure --prefix=/home/user/sources/lib/zlib | |
sudo make | |
sudo make install | |
cd ../openssl | |
make clean | |
./config no-asm --prefix=/home/user/sources/lib/openssl --enable-md2 --openssldir=/home/user/sources/lib/openssl | |
sudo make | |
sudo make install | |
cd ../libssh2 | |
./configure --with-openssl --with-libssl-prefix=/home/user/sources/lib/openssl --with-libz --with-libz-prefix=/home/user/sources/lib/zlib --without-libgcrypt --enable-static --prefix=/home/user/sources/lib/libssh2 | |
sudo make | |
sudo make install | |
cd ../curl | |
./configure --with-ssl=/home/user/sources/lib/openssl --with-zlib=/home/user/sources/lib/zlib --with-libssh2=/home/user/sources/lib/libssh2 --disable-rtsp --disable-ldaps --disable-ldap --disable-sspi --without-libidn --enable-static --prefix=/home/user/sources/lib/curl | |
sudo make | |
sudo make install | |
https://storage.googleapis.com/google-code-archive-source/v2/code.google.com/sourcemod-curl-extension/source-archive.zip | |
download & extract 'sourcemod-curl-extension' source code to /home/user | |
download & copy latest sourcemod 1.7 src snapshot to /home/user/ named 'sourcemod' | |
download & copy latest metamod 1.10 source to /home/user named 'metamod-source-1.10-dev' | |
copy the .a files from each project folder in sources/lib to the /home/user/sourcemod-curl-extension/lib folder | |
delete the curl folder in /home/user/sourcemod-curl-extension | |
copy curl folder from /home/user/sources/lib/curl/include/ to /home/user/sourcemod-curl-extension | |
copy openssl folder from /home/user/sources/lib/openssl/include to /home/user/sourcemod-curl-extension | |
Modify the 'makefile' in /home/user/sourcemod-curl-extension. | |
The top of the file should look like this: | |
SMSDK = ../sourcemod | |
SRCDS_BASE = ~/srcds | |
MMSOURCE17 = ../metamod-source-1.10-dev | |
cd /home/user/sourcemod-curl-extension | |
make -Wno-error=delete-non-virtual-dtor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment