Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: AlexMerced on May 04, 2013, 05:13:22 PM



Title: Help Compiling the Boost Libraries
Post by: AlexMerced on May 04, 2013, 05:13:22 PM
I was attempting to compile litecoin (I'm doing it to learn the process for an altcoin I'm working on) on windows using the following directions from this thread:

https://bitcointalk.org/index.php?topic=149479.0

I successfully did the Berkley DB and OpenSSL compiles, but ran into the following when doing the Bootstrap.bet mingw command

http://img.photobucket.com/albums/v416/alexmerced/CMDboost.png

any help?


(Also, does anyone know where I can find an windows binary of Multicoin)


Title: Re: Help Compiling the Boost Libraries
Post by: AlexMerced on May 04, 2013, 07:34:27 PM
any help?


Title: Re: Help Compiling the Boost Libraries
Post by: Bitsky on May 04, 2013, 07:46:57 PM
"gcc is not recognized" sounds like gcc isn't in your path. Either add it or try to use the full path.
"b2" further down isn't recognized either.


Title: Re: Help Compiling the Boost Libraries
Post by: AlexMerced on May 04, 2013, 08:01:10 PM
Do I need to reinstall the GCC compiler somewhere?


Title: Re: Help Compiling the Boost Libraries
Post by: Bitsky on May 04, 2013, 08:49:18 PM
Check if you have a gcc.exe where you installed gcc.
Try "echo %PATH%" to get a list of your current paths for programs; gcc should be in there.
If not, you could try to reinstall gcc (assuming it would add the path) or you do it yourself. I think it's somewhere in computer->properties->advanced->environment
Or you edit the bat file and use the complete path to your gcc.exe in it.


Title: Re: Help Compiling the Boost Libraries
Post by: AlexMerced on May 04, 2013, 10:23:32 PM
I think this is what I didn't do but not sure how to do it:

1.3. Add MinGW bin folder to your PATH environment variable (C:\MinGW\bin if you used installer defaults).


Title: Re: Help Compiling the Boost Libraries
Post by: yogi on May 04, 2013, 10:29:32 PM
http://www.computerhope.com/issues/ch000549.htm (http://www.computerhope.com/issues/ch000549.htm)


Title: Re: Help Compiling the Boost Libraries
Post by: AlexMerced on May 04, 2013, 10:37:59 PM
Thanks, that's excatly it, I found here right before you posted that: http://windowsitpro.com/systems-management/how-can-i-add-new-folder-my-system-path

much much appreciated

Must say I have learned a lot about how all these OS's work from working on compiling all this stuff.


Title: Re: Help Compiling the Boost Libraries
Post by: yogi on May 04, 2013, 10:45:30 PM
If you haven't tried it already, I would recommend you take a look at MSYS (http://www.mingw.org/wiki/MSYS). It has a number of helpful tools for building cross platform libraries.


Title: Re: Help Compiling the Boost Libraries
Post by: AlexMerced on May 04, 2013, 10:50:46 PM
i fixed the gcc error but i still have this

http://img.photobucket.com/albums/v416/alexmerced/CMDboost2.png


Title: Re: Help Compiling the Boost Libraries
Post by: AlexMerced on May 04, 2013, 10:57:12 PM
here is what I found in the bootstrap text file...

Code:
###
### Using 'mingw' toolset.
###

c:\deps\boost_1_53_0\tools\build\v2\engine>if exist bootstrap rd /S /Q bootstrap

c:\deps\boost_1_53_0\tools\build\v2\engine>md bootstrap

c:\deps\boost_1_53_0\tools\build\v2\engine>gcc -DNT -o bootstrap\jam0.exe  command.c compile.c constants.c debug.c execnt.c filent.c function.c glob.c hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c object.c option.c output.c parse.c pathunix.c regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c modules.c strings.c filesys.c builtins.c md5.c pwd.c class.c w32_getreg.c native.c modules/set.c modules/path.c modules/regex.c modules/property-set.c modules/sequence.c modules/order.c

c:\deps\boost_1_53_0\tools\build\v2\engine>.\bootstrap\jam0 -f build.jam --toolset=mingw "--toolset-root= "  clean
...found 1 target...
...updating 1 target...
...updated 1 target...

c:\deps\boost_1_53_0\tools\build\v2\engine>.\bootstrap\jam0 -f build.jam --toolset=mingw "--toolset-root= " 
...found 50 targets...
...updating 3 targets...
[MKDIR] bin.ntx86


Title: Re: Help Compiling the Boost Libraries
Post by: yogi on May 04, 2013, 11:40:45 PM
What version of mingw are you using?


Title: Re: Help Compiling the Boost Libraries
Post by: AlexMerced on May 05, 2013, 12:57:06 AM
figured it out, I forgot to include the MSYS Basic Package when installing MINGW