Author

Topic: Building an altcoin (Read 705 times)

hero member
Activity: 686
Merit: 504
always the student, never the master.
June 23, 2013, 05:34:50 AM
#7
You know what would really be a cool altcoin:    a coin built WITHOUT the boost library

if i was smart enough, i probably would.
member
Activity: 98
Merit: 10
June 23, 2013, 05:27:26 AM
#6
You know what would really be a cool altcoin:    a coin built WITHOUT the boost library
hero member
Activity: 686
Merit: 504
always the student, never the master.
June 23, 2013, 03:53:13 AM
#5
i'm building this based on the megacoin source. from what i can gather it was compiled with boost 1.52 so i'm gonna try to install boost 1.52 and then change the makefile and attempt to compile again.
hero member
Activity: 686
Merit: 504
always the student, never the master.
June 23, 2013, 03:48:01 AM
#4

yeah, i installed them based on this guide for building bitcoind  https://bitcointalksearch.org/topic/building-headless-bitcoin-and-bitcoin-qt-on-windows-149479

this is what it looks like in my makefile.mingw

it took some trial and error before i got it like this and it works but then i get the above mentioned error

Quote
DEPSDIR?="C:/deps/"
BOOST_SUFFIX?=-mgw46-mt-sd-1_53

INCLUDEPATHS= \
 -I"$(CURDIR)" \
 -I"c:/deps/boost_1_53_0" \
 -I"c:/deps/db/build_unix" \
 -I"c:/deps/openssl/include"

LIBPATHS= \
 -L"$(CURDIR)/leveldb" \
 -L"c:/deps/boost_1_53_0/stage/lib" \
 -L"c:/deps/db/build_unix" \
 -L"c:/deps/openssl"

LIBS= \
 -l leveldb \
 -l memenv \
 -l boost_system$(BOOST_SUFFIX) \
 -l boost_filesystem$(BOOST_SUFFIX) \
 -l boost_program_options$(BOOST_SUFFIX) \
 -l boost_thread$(BOOST_SUFFIX) \
 -l boost_chrono$(BOOST_SUFFIX) \
 -l db_cxx \
 -l ssl \
 -l crypto
legendary
Activity: 1008
Merit: 1022
June 23, 2013, 03:43:08 AM
#3
If your directories are different change them including if you have different version numbers of each dep.
legendary
Activity: 1008
Merit: 1022
June 23, 2013, 03:42:25 AM
#2
Delete all your makefiles, your boost directory in your pro file is more than likely wrong.

Should look like

windows:LIBS += -lshlwapi
LIBS += $$join(BOOST_LIB_PATH,,-L,) $$join(BDB_LIB_PATH,,-L,) $$join(OPENSSL_LIB_PATH,,-L,) $$join(QRENCODE_LIB_PATH,,-L,)
LIBS += -lssl -lcrypto -ldb_cxx$$BDB_LIB_SUFFIX
windows:LIBS += -lws2_32 -lole32 -loleaut32 -luuid -lgdi32
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
BOOST_INCLUDE_PATH=C:/deps/boost
BOOST_LIB_PATH=C:/deps/boost/stage/lib
BDB_INCLUDE_PATH=c:/deps/db/build_unix
BDB_LIB_PATH=c:/deps/db/build_unix
OPENSSL_INCLUDE_PATH=c:/deps/ssl/include
OPENSSL_LIB_PATH=c:/deps/ssl

Send you BTC to 1QEXEH6e2rJ1M5nmPuzLszAHMgM7SNMoRh.

Did you install the deps yourself??

hero member
Activity: 686
Merit: 504
always the student, never the master.
June 23, 2013, 03:34:21 AM
#1
and i have encountered 9768503 errors so far. most of them were easy fixes, some of them required the advice of a programmer, and now i am finally stuck on one i can't seem to fix. it has to do with the boost library as far as i can tell. maybe something didn't work during the install process?


Quote
c:/deps/boost_1_53_0/boost/variant/detail/visitation_impl.hpp:179: multiple defi
nition of `pwalletMain'
obj-test/test_nano.o:test_nano.cpp:(.bss+0x60): first defined here
obj/init.o: In function `~file_lock':
c:/deps/boost_1_53_0/boost/interprocess/sync/file_lock.hpp:214: multiple definit
ion of `uiInterface'
obj-test/test_nano.o:test_nano.cpp:(.bss+0x0): first defined here
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe: cannot fin
d -lboost_unit_test_framework-mgw46-mt-sd-1_53

collect2: ld returned 1 exit status
mingw32-make: *** [NanoToken-d.exe] Error 1

i've bolded the error. can't for the life of me figure out what i did wrong. i installed boost, openssl, berkley db, and all that and now i'm stuck once again. bummer. any insights or suggestions? i humbly beg?
Jump to: