Bitcoin Forum
March 29, 2024, 02:57:33 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: CMake build system  (Read 1458 times)
tfoote (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


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.
1711724253
Hero Member
*
Offline Offline

Posts: 1711724253

View Profile Personal Message (Offline)

Ignore
1711724253
Reply with quote  #2

1711724253
Report to moderator
Make sure you back up your wallet regularly! Unlike a bank account, nobody can help you if you lose access to your BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1711724253
Hero Member
*
Offline Offline

Posts: 1711724253

View Profile Personal Message (Offline)

Ignore
1711724253
Reply with quote  #2

1711724253
Report to moderator
puddinpop
Member
**
Offline Offline

Activity: 103
Merit: 17


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
Merit: 2164


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
Newbie
*
Offline Offline

Activity: 53
Merit: 0


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 (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


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: 136
Merit: 100


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: 2576
Merit: 1186



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

I thought we were going with autotools from jgarzik?

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!