Bitcoin Forum
December 04, 2016, 04:17:38 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: CMake build system  (Read 1209 times)
tfoote
Newbie
*
Offline Offline

Activity: 3


View Profile
January 02, 2011, 08:14:00 PM
 #1

I've put together the required CMake rules to allow bitcoin to be built using CMake.  The branch is posted on github at https://github.com/tfoote/bitcoin/tree/cmake_devel

CMake is a very powerful tool and it makes developing across multiple platforms easier.  http://www.cmake.org/  It's also more flexible for finding non standard libraries such as the ones bitcoin currently requires.   

I've only been able to test this on Lucid 64 machines.  I'll try to test on more platforms.  However right now it's not clear what platforms are expected to work.  If anyone can test it that would be great.  And if you have any feedback or suggestions that'd be great too.
1480825058
Hero Member
*
Offline Offline

Posts: 1480825058

View Profile Personal Message (Offline)

Ignore
1480825058
Reply with quote  #2

1480825058
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1480825058
Hero Member
*
Offline Offline

Posts: 1480825058

View Profile Personal Message (Offline)

Ignore
1480825058
Reply with quote  #2

1480825058
Report to moderator
1480825058
Hero Member
*
Offline Offline

Posts: 1480825058

View Profile Personal Message (Offline)

Ignore
1480825058
Reply with quote  #2

1480825058
Report to moderator
1480825058
Hero Member
*
Offline Offline

Posts: 1480825058

View Profile Personal Message (Offline)

Ignore
1480825058
Reply with quote  #2

1480825058
Report to moderator
puddinpop
Member
**
Offline Offline

Activity: 103


View Profile
January 02, 2011, 08:24:02 PM
 #2

I think there are a few CMake build files for bitcoin already in existence.  For instance, there's one I put together, which you can find in the source package here.

Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652


Chief Scientist


View Profile WWW
January 07, 2011, 05:24:16 PM
 #3

Great!  I'd like to see this good work make it back into mainline bitcoin; please talk with the other improve-the-build-process efforts and submit some patches.

How often do you get the chance to work on a potentially world-changing project?
dkaparis
Jr. Member
*
Offline Offline

Activity: 53


View Profile
January 14, 2011, 11:33:09 AM
 #4

I have a CMake-integrated branch here, that I keep in synch with the official repository. I've tested it on Windows (MSVC++ 8 and 9) and FreeBSD (without GUI).

There's also this hsoft's clone of mine that has added support of OS X and is cleaning up the code.
tfoote
Newbie
*
Offline Offline

Activity: 3


View Profile
February 03, 2011, 08:38:00 AM
 #5

I've merged the CMake changes from https://bitbucket.org/dkaparis/bitcoin-cmake/overview and https://bitbucket.org/hsoft/bitcoin-clean I've tested it on Ubuntu Lucid.  https://github.com/bitcoin/bitcoin/pull/56
alkor
Full Member
***
Offline Offline

Activity: 137


View Profile
February 03, 2011, 06:05:46 PM
 #6

I just tried to test on the Mac (commenting out the GUI building part of the code), and I get the following error:

Code:
[  9%] Building CXX object CMakeFiles/btc.dir/irc.cpp.o
/Users/alkor/Desktop/Dev/bitcoin/irc.cpp: In function ‘bool Send(SOCKET, const char*)’:
/Users/alkor/Desktop/Dev/bitcoin/irc.cpp:61: error: ‘MSG_NOSIGNAL’ was not declared in this scope
make[2]: *** [CMakeFiles/btc.dir/irc.cpp.o] Error 1
make[1]: *** [CMakeFiles/btc.dir/all] Error 2
make: *** [all] Error 2
Luke-Jr
Legendary
*
expert
Offline Offline

Activity: 2086



View Profile
February 03, 2011, 06:09:08 PM
 #7

I thought we were going with autotools from jgarzik?

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!