Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: zerodrama on December 09, 2013, 01:11:59 AM



Title: DOGECOIN does not build on Linux
Post by: zerodrama on December 09, 2013, 01:11:59 AM
Dogecoin build dies here:
g++ -c -m64 -pipe -fstack-protector -O2 -fdiagnostics-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -D_REENTRANT -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DBOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN -D__NO_SYSTEM_INCLUDES -DUSE_UPNP=1 -DSTATICLIB -DHAVE_BUILD_INFO -DLINUX -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Isrc -Isrc/json -Isrc/qt -Ic:/deps -IC:/deps/boost -Ic:/deps/db/build_unix -Ic:/deps/ssl/include -Ibuild -Ibuild -o build/main.o src/main.cpp
src/main.cpp: In function ‘bool ProcessMessages(CNode*)’:
src/main.cpp:3111:79: error: no matching function for call to ‘CDataStream::insert(CDataStream::iterator, std::vector<char>::iterator, std::vector<char>::iterator)’
             vRecv.insert(vRecv.begin(), vHeaderSave.begin(), vHeaderSave.end());
                                                                               ^
src/main.cpp:3111:79: note: candidates are:
In file included from src/netbase.h:11:0,
                 from src/util.h:31,
                 from src/bignum.h:13,
                 from src/main.h:10,
                 from src/db.h:9,
                 from src/main.cpp:9:
src/serialize.h:808:14: note: CDataStream::iterator CDataStream::insert(CDataStream::iterator, const char&)
     iterator insert(iterator it, const char& x=char()) { return vch.insert(it, x); }
              ^
src/serialize.h:808:14: note:   candidate expects 2 arguments, 3 provided
src/serialize.h:809:10: note: void CDataStream::insert(CDataStream::iterator, CDataStream::size_type, const char&)
     void insert(iterator it, size_type n, const char& x) { vch.insert(it, n, x); }
          ^
src/serialize.h:809:10: note:   no known conversion for argument 2 from ‘std::vector<char>::iterator {aka __gnu_cxx::__normal_iterator<char*, std::vector<char> >}’ to ‘CDataStream::size_type {aka long unsigned int}’
src/serialize.h:811:10: note: void CDataStream::insert(CDataStream::iterator, CDataStream::const_iterator, CDataStream::const_iterator)
     void insert(iterator it, const_iterator first, const_iterator last)
          ^
src/serialize.h:811:10: note:   no known conversion for argument 2 from ‘std::vector<char>::iterator {aka __gnu_cxx::__normal_iterator<char*, std::vector<char> >}’ to ‘CDataStream::const_iterator {aka __gnu_cxx::__normal_iterator<const char*, std::vector<char, zero_after_free_allocator<char> > >}’
src/serialize.h:825:10: note: void CDataStream::insert(CDataStream::iterator, const char*, const char*)
     void insert(iterator it, const char* first, const char* last)
          ^
src/serialize.h:825:10: note:   no known conversion for argument 2 from ‘std::vector<char>::iterator {aka __gnu_cxx::__normal_iterator<char*, std::vector<char> >}’ to ‘const char*’
src/main.cpp: At global scope:
src/main.cpp:3394:21: warning: ‘unsigned int ScanHash_CryptoPP(char*, char*, char*, char*, unsigned int&)’ defined but not used [-Wunused-function]
 unsigned int static ScanHash_CryptoPP(char* pmidstate, char* pdata, char* phash1, char* phash, unsigned int& nHashesDone)
                     ^
make: *** [build/main.o] Error 1

much problem
so confus
HALP


Title: Re: DOGECOIN does not build on Linux
Post by: Dogecoin on December 09, 2013, 01:13:27 AM
Sorry, I brought in a bad pull request. I just fixed it, please reclone from git and try again :)


Title: Re: DOGECOIN does not build on Linux
Post by: zerodrama on December 09, 2013, 02:29:16 AM
Sorry, I brought in a bad pull request. I just fixed it, please reclone from git and try again :)

WOW NEW PROBLEM

wants mgw64 boost libs. on linux? i think that's a problem.


Title: Re: DOGECOIN does not build on Linux
Post by: Dogecoin on December 09, 2013, 02:34:29 AM
Are you building the qt? Probably need to comment out the windows stuff from the .pro file


Title: Re: DOGECOIN does not build on Linux
Post by: zerodrama on December 09, 2013, 02:52:06 AM
Are you building the qt? Probably need to comment out the windows stuff from the .pro file

I have boost 1.54.
these are the offending lines
LIBS += -lboost_system-mgw46-mt-sd-1_53 -lboost_filesystem-mgw46-mt-sd-1_53 -lboost_program_options-mgw46-mt-sd-1_53 -lboost_thread-mgw46-mt-sd-1_53
BOOST_LIB_SUFFIX=-mgw46-mt-sd-1_53


Title: Re: DOGECOIN does not build on Linux
Post by: grex on December 11, 2013, 08:03:42 PM
Are you building the qt? Probably need to comment out the windows stuff from the .pro file

I have boost 1.54.
these are the offending lines
LIBS += -lboost_system-mgw46-mt-sd-1_53 -lboost_filesystem-mgw46-mt-sd-1_53 -lboost_program_options-mgw46-mt-sd-1_53 -lboost_thread-mgw46-mt-sd-1_53
BOOST_LIB_SUFFIX=-mgw46-mt-sd-1_53

Thx! After commenting out these lines and using 'qmake "USE_UPNP=-"' it works with ubuntu.

WOW so much wallet!