Pages:
Author

Topic: Building headless Bitcoin and Bitcoin-qt on Windows - page 28. (Read 419390 times)

hero member
Activity: 588
Merit: 500
i got one step further today without an error now i get this lmao.


only thing i think it could be is because the packages that error are tar files and id used winzip to unpack the zip file inside the tar file and not done as per the previous and used the mysys shell to unzip tar files first.


edit solved. it was because id unzipped using winzip and not tar lol schoolboy error
newbie
Activity: 59
Merit: 0
Hi,

i was able to compile the latest Bitcoin source release.

Now i am trying to compile the latest litecoin version,but there seems to be sth different.

After running the "sh ../dist/configure --enable-mingw --enable-cxx" command, i am gettint that error msg.

http://i.imgur.com/SK1T2cN.jpg

Any idea what i am doing wrong?
hero member
Activity: 588
Merit: 500
error in your wording!!  also make sure that mysys-gcc and mysys-w32api ARE installed. not not installed otherwise gcc - v errors out

Using mingw included toolchain will not work so you should make sure not to install it.

if anyone knows of a good linux tut could you post it please.

Gitian is the easiest way to cross compile it on linux. You can see what is going on behind the scenes by having a look at gitian descriptors: https://github.com/bitcoin/bitcoin/tree/master/contrib/gitian-descriptors
thanks but believe it or not i ran gitian on my ubuntu 14.10 and well was never able to boot again. windows or ubuntu seems gitian killed it.
im trying to use your way and getting stuck everywhere lol.

maybe thats why. but when i click the mysys packages leave anything it decides it needs eg mysys auto conf and any dependancys as it picks 5 more things. as if i deselect them i end up with no mysys/1.0/mysys.bat thingy
full member
Activity: 131
Merit: 108
error in your wording!!  also make sure that mysys-gcc and mysys-w32api ARE installed. not not installed otherwise gcc - v errors out

Using mingw included toolchain will not work so you should make sure not to install it.

if anyone knows of a good linux tut could you post it please.

Gitian is the easiest way to cross compile it on linux. You can see what is going on behind the scenes by having a look at gitian descriptors: https://github.com/bitcoin/bitcoin/tree/master/contrib/gitian-descriptors
hero member
Activity: 588
Merit: 500
error in your wording!!  also make sure that mysys-gcc and mysys-w32api ARE installed. not not installed otherwise gcc - v errors out

No, because you get those tools in the next step. Although I'm not sure why.
ok just the gcc -v command came up with no file  / programme found or similar error untill i went and repeated step one with those.

i presume doing this all in linux would be much easier but cant find a good run through for this.

if anyone knows of a good linux tut could you post it please.
legendary
Activity: 996
Merit: 1013
error in your wording!!  also make sure that mysys-gcc and mysys-w32api ARE installed. not not installed otherwise gcc - v errors out

No, because you get those tools in the next step. Although I'm not sure why.
hero member
Activity: 588
Merit: 500
2.5 protoc and libprotobuf:
Download and unpack http://protobuf.googlecode.com/files/protobuf-2.5.0.zip
Then from msys shell
Code:
cd /c/deps/protobuf-2.5.0
configure --disable-shared
make

2.6 qrencode:
Download and unpack http://prdownloads.sourceforge.net/libpng/libpng-1.6.10.tar.gz?download inside your deps folder then configure and make:
Code:
cd /c/deps/libpng-1.6.10
configure --disable-shared
make

Download and unpack http://fukuchi.org/works/qrencode/qrencode-3.4.3.tar.gz inside your deps folder then configure and make:
Code:
cd /c/deps/qrencode-3.4.3

LIBS="../libpng-1.6.10/.libs/libpng16.a ../../mingw32/i686-w64-mingw32/lib/libz.a" \
png_CFLAGS="-I../libpng-1.6.10" \
png_LIBS="-L../libpng-1.6.10/.libs" \
configure --enable-static --disable-shared --without-tools

make
[/quote]


all errors out

 
at make
http://imgur.com/hsvV3F2
http://imgur.com/wcxFaPD
http://imgur.com/0hRHlgr
hero member
Activity: 588
Merit: 500
Hi all, I recently went through the process of building bitcoind on windows.
I found the official build-msw.txt to be a bit lacking, so I thought that documenting the steps here on the forums could save some time to people wanting to compile their own windows binary. Wink

Please note this is mostly for testing purposes. Always use official executables on production environments.
The following instructions are intended for use with the latest 0.9.1. See additional notes if compiling an older 0.8.6 version.

1. Prepare your build system.
I strongly suggest setting up a clean windows virtual machine via Virtualbox or similar.

1.1 Install msys shell:
http://sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download
From MinGW installation manager -> All packages -> MSYS
mark the following for installation:

msys-base-bin
msys-autoconf-bin
msys-automake-bin
msys-libtool-bin


then click on Installation -> Apply changes

Make sure no mingw packages are checked for installation or present from a previous install. Only the above msys packages should be installed. Also make sure that msys-gcc and msys-w32api packages are not installed.
 


error in your wording!!  also make sure that mysys-gcc and mysys-w32api ARE installed. not not installed otherwise gcc - v errors out

and you would think this goes without saying but i have to say because i just made a school boy error. OPEN CMD BY RIGHT CLICK RUN AS ADMIN!!!!! that will save you hours if not days/weeks of why wont db compile or make.
newbie
Activity: 59
Merit: 0
Right click on "Computer"->"Properties" or open system from control panel:

http://www.faqforge.com/wp-content/uploads/2012/01/path.png
Thanks a lot, seems to be compileing the openssl Smiley
hero member
Activity: 588
Merit: 500
Right click on "Computer"->"Properties" or open system from control panel:


Thanks nitrogenics i knew i was being a fool but sleep dep plus no "my computer" my brain fart turned into a shart! On to the next step where i shall get stuck. Iv seen around alot of build instruction say somthing about a contrib folder in the source will it be an issue if mine dosent contain it?. As i say iv started from razorloves abccoin stock.
legendary
Activity: 996
Merit: 1013
Quote
/libmemenv.a: error adding symbols: Archive has no index; run ranlib to add one

What coin/version are you trying to compile?

This
https://github.com/YarkoL/lovecoin

The most promising hint about the problem I've found so far is to replace "ar" with
the full name of that tool (in the mingw libs) in configuring, but I'm not sure where
should I put it.
full member
Activity: 131
Merit: 108
Quote
/libmemenv.a: error adding symbols: Archive has no index; run ranlib to add one

What coin/version are you trying to compile?
legendary
Activity: 996
Merit: 1013
Have any of you got this?

Quote
/libmemenv.a: error adding symbols: Archive has no index; run ranlib to add one

Started anew on another machine with win7. Everything going smoothly... until the compiling of Qt 4.8.5
halts with:

Quote
/libmemenv.a: error adding symbols: Archive has no index; run ranlib to add one

I imagine I know a little how it feels to be hit by lightning twice in a row...
full member
Activity: 131
Merit: 108
Right click on "Computer"->"Properties" or open system from control panel:

hero member
Activity: 588
Merit: 500
Hi i have been struggling with compiling a windows qt for about a week now. tried everything iv found on google. corrupted my linux with gitian had to re install it a million times. is it possible to use this method with a clone of abccoin? I have changed the coin values and how it operates to suit my needs, compiled both xcoind and xcoin-qt in ubuntu and have had it running and mining but not been able to make a windows qt. i even tried in desperation to use the easywinbuild from bitcoin talk thread and that just crashed. with this i get to the gcc -v and nothing happens iv tried setting env paths with set c:/mingw/* \mingw\* and so on, understand that may be wrong but iv tried so much i cant remember exactly what i used but alass nothing worked lol. Im a total newbie when it comes to this. Il have a read through the last pages of the thread in a mo. But hopefully someone can set me right. Im in ubuntu14.10 and vm win 7

how to run the "gcc -v" command? Do i have to install sth not mentioned in the tutorial? My post with questions is one page back the last post, would be nice if someone could help me out.
I believe you run the gcc -v in the /mysys/1.0/mysys.bin linux based shell. If thats wrong its in cmd comand prompt. One or the other and you "should" be able to just type gcc -v and it does things as described but thats goin on your able to change the paths environmental variables as mentioned in the preceding paragraph. My issue is it says make sure you have done this environmental variable path should look like this. But never explains how or what you change. Iv found windows xp and earlier explanations how to do it. I.e rt click my comp click propertys click enviromental and so on. But windows 7 has no "my computer" and when propertys is clicked you get nothing usefull. So in summary if you type gcc -v in mysys.bin or cmd and it says gcc is not a valid command i am to assume the paths are not set as per previous notation and that is where i failed.
And what i did find was "set c:/mingw/  c\mingw\ which changes the "paths" from c:/ to linux native commands i believe, i did that for c:/* c\* believing it would make for all subfolders. But nope.
newbie
Activity: 59
Merit: 0
Hi i have been struggling with compiling a windows qt for about a week now. tried everything iv found on google. corrupted my linux with gitian had to re install it a million times. is it possible to use this method with a clone of abccoin? I have changed the coin values and how it operates to suit my needs, compiled both xcoind and xcoin-qt in ubuntu and have had it running and mining but not been able to make a windows qt. i even tried in desperation to use the easywinbuild from bitcoin talk thread and that just crashed. with this i get to the gcc -v and nothing happens iv tried setting env paths with set c:/mingw/* \mingw\* and so on, understand that may be wrong but iv tried so much i cant remember exactly what i used but alass nothing worked lol. Im a total newbie when it comes to this. Il have a read through the last pages of the thread in a mo. But hopefully someone can set me right. Im in ubuntu14.10 and vm win 7

how to run the "gcc -v" command? Do i have to install sth not mentioned in the tutorial? My post with questions is one page back the last post, would be nice if someone could help me out.
hero member
Activity: 588
Merit: 500
Hi i have been struggling with compiling a windows qt for about a week now. tried everything iv found on google. corrupted my linux with gitian had to re install it a million times. is it possible to use this method with a clone of abccoin? I have changed the coin values and how it operates to suit my needs, compiled both xcoind and xcoin-qt in ubuntu and have had it running and mining but not been able to make a windows qt. i even tried in desperation to use the easywinbuild from bitcoin talk thread and that just crashed. with this i get to the gcc -v and nothing happens iv tried setting env paths with set c:/mingw/* \mingw\* and so on, understand that may be wrong but iv tried so much i cant remember exactly what i used but alass nothing worked lol. Im a total newbie when it comes to this. Il have a read through the last pages of the thread in a mo. But hopefully someone can set me right. Im in ubuntu14.10 and vm win 7
newbie
Activity: 59
Merit: 0
Hey guys,

i am trying to understand this. But i got stuck @ 1.3 "Ensure that mingw- builds bin folder is set in your PATH..

What i am suposted to but there in?

Is it inside the C:\MinGW\msys\1.0\etc fstab file?

What should i enter there?

I am unpacking the files to c:\deps    ,   c:\MinGW     ,    mingw32

Help would be very apreciated Smiley
member
Activity: 106
Merit: 10
good thread..want to learn it...thanks!
legendary
Activity: 996
Merit: 1013

build_config.mk no such file or directory


If it's not in leveldb folder, you can just copy it from somewhere.
edit: check first that build_detect_platform is executable

Pages:
Jump to: