Title: Building an altcoin Post by: r3wt on June 23, 2013, 08:34:21 AM 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? Title: Re: Building an altcoin Post by: muddafudda on June 23, 2013, 08:42:25 AM 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?? Title: Re: Building an altcoin Post by: muddafudda on June 23, 2013, 08:43:08 AM If your directories are different change them including if you have different version numbers of each dep.
Title: Re: Building an altcoin Post by: r3wt on June 23, 2013, 08:48:01 AM yeah, i installed them based on this guide for building bitcoind https://bitcointalk.org/index.php?topic=149479.0 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 Title: Re: Building an altcoin Post by: r3wt on June 23, 2013, 08:53:13 AM 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.
Title: Re: Building an altcoin Post by: hotcoldcoin on June 23, 2013, 10:27:26 AM You know what would really be a cool altcoin: a coin built WITHOUT the boost library
Title: Re: Building an altcoin Post by: r3wt on June 23, 2013, 10:34:50 AM You know what would really be a cool altcoin: a coin built WITHOUT the boost library if i was smart enough, i probably would. |