Jump to content

Building From Source

Started By presstab , Apr 03 2014 05:52 PM

  • Please log in to reply
37 replies to this topic

#1

presstab
  • presstab
  • HyperStake Developer
  • DEVELOPER
  • PipPipPip
  • 376 posts
  • 22 topics
    • Time Online: 16d 10h 13m 20s

I successfully built bitcoin Qt for WIndows, a satisfying accomplishment for me. Next step HoboNickels Qt... And I will plan on making a guide once I have it successfully built.

JacdhNy.jpg


  • 0

Cryptocointalk.com doesn't endorse any ads. Warning: ads my be illegal or untrustworthy in your jurisdiction. Advertising Here.

#2

Tranz
  • Tranz
  • Hobonickels Developer
  • CODING DEVELOPER
  • PipPipPipPip
  • 872 posts
  • 34 topics
    • Time Online: 24d 3h 50m 45s

Very cool.

 

What version of libs and compilers did you use?


  • 0

#3

presstab
  • presstab
  • HyperStake Developer
  • DEVELOPER
  • PipPipPip
  • 376 posts
  • 22 topics
    • Time Online: 16d 10h 13m 20s

I msys shell in mingw. I used the following:

 

boost_1_55_0
db-4.8.30.NC/build_unix
openssl-1.0.1f/include
protobuf-2.5.0/src 
libpng-1.6.9 
qrencode-3.4.3" 


  • 0

#4

Tranz
  • Tranz
  • Hobonickels Developer
  • CODING DEVELOPER
  • PipPipPipPip
  • 872 posts
  • 34 topics
    • Time Online: 24d 3h 50m 45s

Looks good, what is protobuf for?


  • 0

#5

presstab
  • presstab
  • HyperStake Developer
  • DEVELOPER
  • PipPipPip
  • 376 posts
  • 22 topics
    • Time Online: 16d 10h 13m 20s

I don't quite have a full understanding of what is going on in the make file and what the lines of code for the makefile translate to. Hopefully as I keep investigating I will get a better grasp on what exactly is going on when the commands are entered. Here are the relevant protobuf lines:

 

CPPFLAGS="-I/c/deps/boost_1_55_0 \
-I/c/deps/db-4.8.30.NC/build_unix \
-I/c/deps/openssl-1.0.1f/include \
-I/c/deps \
-I/c/deps/protobuf-2.5.0/src \
-I/c/deps/libpng-1.6.9 \
-I/c/deps/qrencode-3.4.3" \
LDFLAGS="-L/c/deps/boost_1_55_0/stage/lib \
-L/c/deps/db-4.8.30.NC/build_unix \
-L/c/deps/openssl-1.0.1f \
-L/c/deps/miniupnpc \
-L/c/deps/protobuf-2.5.0/src/.libs \
-L/c/deps/libpng-1.6.9/.libs \
-L/c/deps/qrencode-3.4.3/.libs" \
./configure \
--disable-upnp-default \
--disable-tests \
--with-qt-incdir=/c/Qt/5.2.1/include \
--with-qt-libdir=/c/Qt/5.2.1/lib \
--with-qt-bindir=/c/Qt/5.2.1/bin \
--with-qt-plugindir=/c/Qt/5.2.1/plugins \
--with-boost-system=mgw48-mt-s-1_55 \
--with-boost-filesystem=mgw48-mt-s-1_55 \
--with-boost-program-options=mgw48-mt-s-1_55 \
--with-boost-thread=mgw48-mt-s-1_55 \
--with-boost-chrono=mgw48-mt-s-1_55 \
--with-protoc-bindir=/c/deps/protobuf-2.5.0/src


  • 0

#6

Tranz
  • Tranz
  • Hobonickels Developer
  • CODING DEVELOPER
  • PipPipPipPip
  • 872 posts
  • 34 topics
    • Time Online: 24d 3h 50m 45s

Hmm ok must be something new in .9 version. i haven't played or looked at that source yet.


  • 0

#7

presstab
  • presstab
  • HyperStake Developer
  • DEVELOPER
  • PipPipPip
  • 376 posts
  • 22 topics
    • Time Online: 16d 10h 13m 20s

Tranz, comparing the make files from btc to hbn... which makefile is the most current that I should be looking at?  makefile.unix?


  • 0

#8

unick
  • unick
  • GrowthCoin Developer
  • DEVELOPER
  • PipPip
  • 113 posts
  • 14 topics
    • Time Online: 1d 21h 56m 30s

here's some wikipedia on protocol buffers

 

http://en.wikipedia.org/wiki/Protocol_Buffers


  • 0

#9

presstab
  • presstab
  • HyperStake Developer
  • DEVELOPER
  • PipPipPip
  • 376 posts
  • 22 topics
    • Time Online: 16d 10h 13m 20s

Thanks for the link unick. I am having a hard time building using qt 4.8.5, but I am not done trying yet.


  • 0

#10

Tranz
  • Tranz
  • Hobonickels Developer
  • CODING DEVELOPER
  • PipPipPipPip
  • 872 posts
  • 34 topics
    • Time Online: 24d 3h 50m 45s

Tranz, comparing the make files from btc to hbn... which makefile is the most current that I should be looking at?  makefile.unix?

You are trying to build the QT version on windows?

 

You first need to use qmake on the .pro after that , if successful it will create a make file Makefile.Release and you would use mingw-make on that.

 

Inside the source code there is a file under doc that has some build information. This is very close to my development setup. The production release setup is a bit different, as it uses newer libs and QT 5. But this should help you I think.

 

https://github.com/Tranz5/HoboNickels/blob/master/doc/build-msw.txt


  • 0

#11

presstab
  • presstab
  • HyperStake Developer
  • DEVELOPER
  • PipPipPip
  • 376 posts
  • 22 topics
    • Time Online: 16d 10h 13m 20s

Yes i was using qmake HoboNickels-qt.pro and then after would use make -f makefile.release and i kept getting errors. So after the qmake I will try making with the makefile.mingw and see if that works.
  • 0

#12

Tranz
  • Tranz
  • Hobonickels Developer
  • CODING DEVELOPER
  • PipPipPipPip
  • 872 posts
  • 34 topics
    • Time Online: 24d 3h 50m 45s

Yes i was using qmake HoboNickels-qt.pro and then after would use make -f makefile.release and i kept getting errors. So after the qmake I will try making with the makefile.mingw and see if that works.

After qmake you will always have to use makefile.release.

 

What errors?


  • 0

#13

presstab
  • presstab
  • HyperStake Developer
  • DEVELOPER
  • PipPipPip
  • 376 posts
  • 22 topics
    • Time Online: 16d 10h 13m 20s

I will have to run it again on the same comp and get back to you. It was late but if I remember right it had something to do with mining.cpp
  • 0

#14

Tranz
  • Tranz
  • Hobonickels Developer
  • CODING DEVELOPER
  • PipPipPipPip
  • 872 posts
  • 34 topics
    • Time Online: 24d 3h 50m 45s

Sometimes I leave a commit out and I need to update one to github. I just pulled down the latest from my library and compiled from scratch. No issues on this end. So let me know.


  • 1

#15

presstab
  • presstab
  • HyperStake Developer
  • DEVELOPER
  • PipPipPip
  • 376 posts
  • 22 topics
    • Time Online: 16d 10h 13m 20s

Alright I will let you know how it goes.  I am preparing another build on Ubuntu 13.10 too.  I am hoping that the more I try the more I can learn.


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users