Author

Topic: CMake build system (Read 1489 times)

legendary
Activity: 2576
Merit: 1186
February 03, 2011, 01:09:08 PM
#7
I thought we were going with autotools from jgarzik?
full member
Activity: 136
Merit: 100
February 03, 2011, 01: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
newbie
Activity: 3
Merit: 0
February 03, 2011, 03:38:00 AM
#5
newbie
Activity: 53
Merit: 0
January 14, 2011, 06: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.
legendary
Activity: 1652
Merit: 2317
Chief Scientist
January 07, 2011, 12: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.
member
Activity: 103
Merit: 17
January 02, 2011, 03: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.
newbie
Activity: 3
Merit: 0
January 02, 2011, 03: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.
Jump to: