BitShares Forum

Other => Graveyard => BitShares PTS => Topic started by: bitcoinerS on December 21, 2013, 08:01:51 pm

Title: Having a hard time building from source on Ubuntu
Post by: bitcoinerS on December 21, 2013, 08:01:51 pm
Trying to build ProtoShares on my Ubuntu x64 machine.

getting this error:

Code: [Select]
git clone https://github.com/InvictusInnovations/ProtoShares

cd ProtoShares/src

cmake -DCMAKE_BUILD_TYPE=Release
make


Code: [Select]
...
usr/include/inttypes.h:361:17: error: ‘uintmax_t’ does not name a type
 __extern_inline uintmax_t
                 ^
In file included from /home/slava/local/src/ProtoShares/src/script.cpp:15:0:
/home/slava/local/src/ProtoShares/src/main.h:2244:24: error: template argument 1 is invalid
     std::vector<int64_t> vTxFees;
                        ^
/home/slava/local/src/ProtoShares/src/main.h:2244:24: error: template argument 2 is invalid
/home/slava/local/src/ProtoShares/src/main.h:2245:24: error: template argument 1 is invalid
     std::vector<int64_t> vTxSigOps;
                        ^
/home/slava/local/src/ProtoShares/src/main.h:2245:24: error: template argument 2 is invalid
make[2]: *** [CMakeFiles/protoshares.dir/script.o] Error 1
make[1]: *** [CMakeFiles/protoshares.dir/all] Error 2
make: *** [all] Error 2
Title: Re: Having a hard time building from source on Ubuntu
Post by: arcke on December 22, 2013, 02:03:16 am
Try make -f makefile.unix

When this fails check if you installed all dependencies.
Title: Re: Having a hard time building from source on Ubuntu
Post by: noobster on December 22, 2013, 11:03:48 am
you should follow doc/readme-qt.rst if building QT frontend

if using ubuntu >=12.04
Code: [Select]
    apt-get install qt4-qmake libqt4-dev build-essential libboost-dev libboost-system-dev \
        libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev \
        libssl-dev libdb++-dev libminiupnpc-dev

then
Code: [Select]
cmake && make -j <cores number + 1>
for eg. core i3 with 2 cores and hyper threading: make -j 5