Compiling libs for 0.4 on OSX?

Snavy

Alpha - AUUU
Joined
Apr 1, 2012
Messages
710
Reaction score
110
Location
Sirius Solar System
If Im willing to compile TFS 0.4 on OSX, is it possible for me to install the libraries which were mentioned in another compile guide (which works on linux ofc)
Code:
libboost1.55-dev libboost-system1.55-dev libboost-filesystem1.55-dev libboost-date-time1.55-dev libboost-regex1.5-dev 

libboost-thread1.55-dev libgmp3-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 

lua5.1 libsqlite0-dev libsqlite3-dev sqlite3 libmysql++-dev libmysqlclient-dev mysql-client-5.5 mysql-server-5.5 

mysql-common libxml2-dev libxml++2.6-dev cpp gcc g++ make automake autoconf pkg-config subversion 

liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite3-dev zlib1g-dev zlib1g libcrypto++-dev libcrypto++8
When i browsed to TFS repo on github which mentions that you need the following libs to compile on OSX but im not sure if that works for 0.4
Code:
git cmake gmp mysql-connector-c luajit boost pugixml pkg-config
 

Amiroslo

Guess who's back
Support Team
Joined
Jul 28, 2009
Messages
6,643
Reaction score
587
Location
Norway
Maybe give it a try? And if you encounter any problems/errors post them here
 
OP
Snavy

Snavy

Alpha - AUUU
Joined
Apr 1, 2012
Messages
710
Reaction score
110
Location
Sirius Solar System
@Amiroslo ( only have libs from github btw )
Bash:
$ ./autogen.sh

autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autom4te: need GNU m4 1.4 or later: /usr/bin/m4
aclocal: error: echo failed with exit status: 1
autoreconf: aclocal failed with exit status: 1
 

Amiroslo

Guess who's back
Support Team
Joined
Jul 28, 2009
Messages
6,643
Reaction score
587
Location
Norway
@Amiroslo ( only have libs from github btw )
Bash:
$ ./autogen.sh

autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autom4te: need GNU m4 1.4 or later: /usr/bin/m4
aclocal: error: echo failed with exit status: 1
autoreconf: aclocal failed with exit status: 1
Seems like you need GNU m4 1.4 or later,
take a look here and see if this solves it
 
OP
Snavy

Snavy

Alpha - AUUU
Joined
Apr 1, 2012
Messages
710
Reaction score
110
Location
Sirius Solar System
Seems like you need GNU m4 1.4 or later,
take a look here and see if this solves it
I check up GNU and it says that it's a unix based OS. Wouldn't installing it break the OSX ?
 
OP
Snavy

Snavy

Alpha - AUUU
Joined
Apr 1, 2012
Messages
710
Reaction score
110
Location
Sirius Solar System
@Amiroslo
after executing : ./configure --enable-mysql --enable-sqlite --enable-remote-control --enable-server-diag
I got the following error :
configure: error: "boost::unordered_set header not found."
 

Amiroslo

Guess who's back
Support Team
Joined
Jul 28, 2009
Messages
6,643
Reaction score
587
Location
Norway
You need latest libboost I believe or some other libs
try apt-get install libboost-dev
apt-get install libmysqlclient15-dev
apt-get install libmysql++-dev

@Amiroslo
after executing : ./configure --enable-mysql --enable-sqlite --enable-remote-control --enable-server-diag
I got the following error :
configure: error: "boost::unordered_set header not found."
 
OP
Snavy

Snavy

Alpha - AUUU
Joined
Apr 1, 2012
Messages
710
Reaction score
110
Location
Sirius Solar System
You need latest libboost I believe or some other libs
try apt-get install libboost-dev
apt-get install libmysqlclient15-dev
apt-get install libmysql++-dev
* CRIES IN MAC OSX *

There's no apt-get on osx. I tried installing that using brew .. but it didnt even find it. goddamnit!!

Edit: I was only able to execute brew install boost and when I searched for it in the system the following showed up:

Code:
$ find / -name "boost"

/usr/local/include/boost
/usr/local/var/homebrew/linked/boost
/usr/local/opt/boost
/usr/local/Cellar/[email protected]/1.59.0/include/boost
/usr/local/Cellar/[email protected]/1.59.0/include/boost/chrono/typeof/boost
/usr/local/Cellar/boost
/usr/local/Cellar/boost/1.67.0_1/include/boost
/usr/local/Cellar/boost/1.67.0_1/include/boost/chrono/typeof/boost
/usr/local/Cellar/boost/1.67.0_1/include/boost/hana/ext/boost
/usr/local/Cellar/boost/1.62.0/include/boost
/usr/local/Cellar/boost/1.62.0/include/boost/chrono/typeof/boost
/usr/local/Cellar/boost/1.62.0/include/boost/hana/ext/boost
 
Last edited:

Amiroslo

Guess who's back
Support Team
Joined
Jul 28, 2009
Messages
6,643
Reaction score
587
Location
Norway
Try
brew install boost
brew install mysql-connector-c
brew install mysql++
* CRIES IN MAC OSX *

There's no apt-get on osx. I tried installing that using brew .. but it didnt even find it. goddamnit!!

Edit: I was only able to execute brew install boost and when I searched for it in the system the following showed up:

Code:
$ find / -name "boost"

/usr/local/include/boost
/usr/local/var/homebrew/linked/boost
/usr/local/opt/boost
/usr/local/Cellar/[email protected]/1.59.0/include/boost
/usr/local/Cellar/[email protected]/1.59.0/include/boost/chrono/typeof/boost
/usr/local/Cellar/boost
/usr/local/Cellar/boost/1.67.0_1/include/boost
/usr/local/Cellar/boost/1.67.0_1/include/boost/chrono/typeof/boost
/usr/local/Cellar/boost/1.67.0_1/include/boost/hana/ext/boost
/usr/local/Cellar/boost/1.62.0/include/boost
/usr/local/Cellar/boost/1.62.0/include/boost/chrono/typeof/boost
/usr/local/Cellar/boost/1.62.0/include/boost/hana/ext/boost
 
OP
Snavy

Snavy

Alpha - AUUU
Joined
Apr 1, 2012
Messages
710
Reaction score
110
Location
Sirius Solar System
Try
brew install boost
brew install mysql-connector-c
brew install mysql++
boost & mysql-connector-c are already installed.. and mysql++

I looked for unordered_set and got :
Code:
$ find / -name "unordered_set"
find: /usr/sbin/authserver: Permission denied
/usr/local/Cellar/[email protected]/1.59.0/include/boost/tr1/tr1/unordered_set
/usr/local/Cellar/boost/1.62.0/include/boost/tr1/tr1/unordered_set
/usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/experimental/unordered_set
/usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/tr1/unordered_set
/usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/unordered_set
/usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/profile/unordered_set
/usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/debug/unordered_set
 

Amiroslo

Guess who's back
Support Team
Joined
Jul 28, 2009
Messages
6,643
Reaction score
587
Location
Norway
boost & mysql-connector-c are already installed.. and mysql++

I looked for unordered_set and got :
Code:
$ find / -name "unordered_set"
find: /usr/sbin/authserver: Permission denied
/usr/local/Cellar/[email protected]/1.59.0/include/boost/tr1/tr1/unordered_set
/usr/local/Cellar/boost/1.62.0/include/boost/tr1/tr1/unordered_set
/usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/experimental/unordered_set
/usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/tr1/unordered_set
/usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/unordered_set
/usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/profile/unordered_set
/usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/debug/unordered_set
Run “brew update” first, then you can use “brew upgrade” to update all packages, or “brew upgrade boost” to only update boost lib
 
Top