Bitcoin Forum
May 25, 2024, 04:44:10 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: [1]
  Print  
Author Topic: Building an altcoin  (Read 686 times)
r3wt (OP)
Hero Member
*****
Offline Offline

Activity: 686
Merit: 504


always the student, never the master.


View Profile
June 23, 2013, 08: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?

My negative trust rating is reflective of a personal vendetta by someone on default trust.
muddafudda
Legendary
*
Offline Offline

Activity: 1008
Merit: 1022



View Profile
June 23, 2013, 08: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??

muddafudda
Legendary
*
Offline Offline

Activity: 1008
Merit: 1022



View Profile
June 23, 2013, 08:43:08 AM
 #3

If your directories are different change them including if you have different version numbers of each dep.
r3wt (OP)
Hero Member
*****
Offline Offline

Activity: 686
Merit: 504


always the student, never the master.


View Profile
June 23, 2013, 08:48:01 AM
 #4


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

My negative trust rating is reflective of a personal vendetta by someone on default trust.
r3wt (OP)
Hero Member
*****
Offline Offline

Activity: 686
Merit: 504


always the student, never the master.


View Profile
June 23, 2013, 08: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.

My negative trust rating is reflective of a personal vendetta by someone on default trust.
hotcoldcoin
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
June 23, 2013, 10:27:26 AM
 #6

You know what would really be a cool altcoin:    a coin built WITHOUT the boost library

r3wt (OP)
Hero Member
*****
Offline Offline

Activity: 686
Merit: 504


always the student, never the master.


View Profile
June 23, 2013, 10: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.

My negative trust rating is reflective of a personal vendetta by someone on default trust.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!