I want to make a Linux's compiler server for LastChaos.
Can anyone teach me (free/paid)?
Can anyone teach me (free/paid)?
credits to KarmelQuote:
# ------------ LC server source compile instruction by Karmel ------------
# Necessary software downloads ## updated 14.05.2018 ### [Only registered and activated users can see links. Click Here To Register...]
cd /usr/local
wget [Only registered and activated users can see links. Click Here To Register...]
wget [Only registered and activated users can see links. Click Here To Register...]
wget [Only registered and activated users can see links. Click Here To Register...]
wget [Only registered and activated users can see links. Click Here To Register...]
wget [Only registered and activated users can see links. Click Here To Register...]
wget [Only registered and activated users can see links. Click Here To Register...]
wget [Only registered and activated users can see links. Click Here To Register...]
tar xvzf ccache-3.4.2.tar.gz
tar xvzf Botan-1.10.17.tgz
tar xvzf apache-log4cxx-0.10.0.tar.gz
tar xvzf jsoncpp-src-0.6.0-rc2.tar.gz
tar xvzf sqlite-autoconf-3230100.tar.gz
tar xvzf curl-7.59.0.tar.gz
tar xvzf boost_1_65_1.tar.gz
# __________________________________________________ ___
# CentOS Update (optional)
yum -y upgrade
yum -y install python python-devel nano libtool svn
yum -y install gcc gcc-c++
yum -y install zlib zlib-devel ncurses-devel subversion-devel
yum -y install libidn-devel openldap-devel openssl-devel
yum -y install expat expat-devel openldap openldap-devel
yum -y install apr apr-devel apr-util apr-util-devel
yum -y install mysql mysql-devel
####### x64 unix#######
yum -y install gcc.i686 gcc-c++.i686 glibc-devel.i686 libgcc.i686 libstdc++-devel.i686
yum -y install zlib-devel.i686 ncurses-devel.i686 subversion-devel.i686
yum -y install libidn-devel.i686 openldap-devel.i686 openssl-devel.i686
yum -y install expat-devel.i686 openldap-devel.i686
yum -y install apr-devel.i686 apr-util-devel.i686
yum -y install mysql-devel.i686
export CFLAGS='-m32'
export CC="gcc -m32"
export CXX="g++ -m32"
####### x64 #######
#ln -s /usr/lib/libexpat.a /usr/local/lib
cd /usr/local
# ccache
cd ccache-3.4.2
./configure && make -j4 && make install
cd ..
# Botan library
cd Botan-1.10.17
##_x86_##./configure.py --disable-shared --includedir=../../usr/include
./configure.py --disable-shared --includedir=../../usr/include --cpu=x86_32 --cc-bin='gcc -m32'
######################### source edits
# nano src/hash/gost_3411/gost_3411.cpp
#include <stdint.h>
make -j4 && make install
ln -s -d /usr/include/botan-1.10/botan /usr/include/
cd ..
# Apache log4cxx
cd apache-log4cxx-0.10.0
##_x86_##./configure --enable-shared=no --enable-static=yes #--with-apr=/usr/local/apr-1.6.3 --with-apr-util=/usr/local/apr-util-1.6.1
./configure --enable-shared=no --enable-static=yes LDFLAGS="-L/usr/lib"
######################### source edits
# nano src/main/cpp/inputstreamreader.cpp
# nano src/main/cpp/socketoutputstream.cpp
# nano src/examples/cpp/console.cpp
#include <stdio.h>
#include <string.h>
make -j4 && make install
cd ..
# jsoncpp
cd jsoncpp-src-0.6.0-rc2
cd src/lib_json/
##_x86_##g++ -I../../include -O2 -c *.cpp
g++ -m32 -I../../include -O2 -c *.cpp
ar rs libjsoncpp.a *.o
cp libjsoncpp.a /usr/local/lib
cp -R ../../include/json /usr/local/include
cd ../../..
# Sqlite-autoconf
cd sqlite-autoconf-3230100
./configure && make -j4 && make install
cd ..
# curl
cd curl-7.59.0
./configure --enable-shared=no --libdir=/usr/local/lib
make -j4 && make install
cd ..
# Boost ## newer versions not compatible
cd boost_1_65_1
./bootstrap.sh
##_x86_##./b2 -j8 --toolset=gcc --build-type=complete --layout=versioned link=static threading=multi install
./bjam -j8 --toolset=gcc --build-type=complete --layout=versioned link=static threading=multi install cflags=-m32 cxxflags=-m32 address-model=32 threading=multi architecture=x86 instruction-set=i686 stage
ln -s -d /usr/local/boost_1_65_1/boost /usr/include/
# ---------------------------
make -j8 -C ./ShareLib usa
make -j8 -C ./Connector usa
make -j8 -C ./Helper usa
make -j8 -C ./SubHelper usa
make -j8 -C ./Messenger usa
make -j8 -C ./LoginServer usa
make -j8 -C ./GameServer usadebug
# -------------------- Source edits --------------------
# makefile (change to your boost current version(1_65_1))
nano makefile.inc
CXX = ccache g++ -g -m32
BOOST_LIB_VER = -gcc44-mt-d-1_65_1
# gameserver
nano GameServer/DBProcess_CreateChar.cpp
#include <boost/scoped_ptr.hpp>
________________________________________
# config(optional) comment this lines(3, 39) by //
nano ShareLib/Config_Localize_USA.h
#define SERVER_AUTHENTICATION
#define XTRAP
but I don't much understand it saidQuote:
# ---------------------------
make -j8 -C ./ShareLib usa
make -j8 -C ./Connector usa
make -j8 -C ./Helper usa
make -j8 -C ./SubHelper usa
make -j8 -C ./Messenger usa
make -j8 -C ./LoginServer usa
make -j8 -C ./GameServer usadebug
# -------------------- Source edits --------------------
# makefile (change to your boost current version(1_65_1))
nano makefile.inc
CXX = ccache g++ -g -m32
BOOST_LIB_VER = -gcc44-mt-d-1_65_1
# gameserver
nano GameServer/DBProcess_CreateChar.cpp
#include <boost/scoped_ptr.hpp>
________________________________________
# config(optional) comment this lines(3, 39) by //
nano ShareLib/Config_Localize_USA.h
#define SERVER_AUTHENTICATION
#define XTRAP
[root@localhost boost_1_65_1]# make -j8 -C ./ShareLib usa
make: *** ShareLib: No such file or directory. Stop.
[root@localhost boost_1_65_1]#
Thanks for reply.Quote:
Why dont you use pre-compiled binaries?
If you dont understand anything whats happening, you wont have any success.
" -I../ShareLib -I/usr/include/mysql -I/usr/local/ssl/include -I/usr/local/include/botan-1.10 -I/usr/local/include/boost-1_65_1 -c -o DBCmd.o DBCmd.cpp
LCHttps.cpp: In member function ‘int CLCHttps::Connect(const char*, const char*) ’:
LCHttps.cpp:69:31: error: ‘unlink’ was not declared in this scope
unlink(FINGERPRINT_FILENAME);
^
make[2]: *** [LCHttps.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/home/compiler/ShareLib'