Changes between Initial Version and Version 1 of CMakeWindowsRegressionQuickstart


Ignore:
Timestamp:
Jun 17, 2008, 12:52:38 AM (14 years ago)
Author:
troy d. straszheim
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CMakeWindowsRegressionQuickstart

    v1 v1  
     1Start in an empty directory:
     2{{{
     3c:\boost\branches\CMake\release>dir
     4 Volume in drive C is OS
     5 Volume Serial Number is 6AC1-32E0
     6
     7 Directory of c:\boost\branches\CMake\release
     8
     906/16/2008  07:22 PM    <DIR>          .
     1006/16/2008  07:22 PM    <DIR>          ..
     11               0 File(s)              0 bytes
     12               2 Dir(s)  48,047,624,192 bytes free
     13}}}
     14Check that your pysvn and win32api python packages are installed correctly.  These
     15commands should just return without output:
     16{{{
     17c:\boost\branches\CMake\release>python
     18Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on
     19win32
     20Type "help", "copyright", "credits" or "license" for more information.
     21>>> import pysvn
     22>>> import win32api
     23>>> exit()
     24}}}
     25
     26Verify that nmake is in your path:
     27{{{
     28c:\boost\branches\CMake\release>nmake
     29
     30Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
     31Copyright (C) Microsoft Corporation.  All rights reserved.
     32
     33NMAKE : fatal error U1064: MAKEFILE not found and no target specified
     34Stop.
     35
     36}}}
     37Check out the cmake release branch to directory `src`:
     38{{{
     39c:\boost\branches\CMake\release>svn co https://svn.boost.org/svn/boost/branches/
     40CMake/release src
     41A    src\regression
     42A    src\configure
     43A    src\status
     44A    src\status\explicit-failures-markup.xml
     45A    src\status\explicit-failures.xsd
     46A    src\status\Jamfile.v2
     47A    src\people
     48...
     49A    src\libs\filesystem\include\boost\filesystem\fstream.hpp
     50A    src\libs\filesystem\include\boost\filesystem\operations.hpp
     51A    src\libs\filesystem\include\boost\filesystem\config.hpp
     52Checked out external at revision 46437.
     53
     54Checked out revision 46437.
     55}}}
     56Create a directory `build` at the same level as `src` and cd in there:
     57{{{
     58c:\boost\branches\CMake\release>mkdir build
     59c:\boost\branches\CMake\release>cd build
     60}}}
     61Now do the initial cmake configuration.  The options are as follows
     62`BOOST_BUILD_SLAVE`
     63  Enable build slave mode
     64`BUILD_TESTING`
     65  Turn on testing of libraries
     66`-G"NMake Makefiles"`
     67  Generate nmake makefiles, not visual studio project files
     68`CMAKE_MAKE_PROGRAM`
     69  Specify `nmake` as the make program
     70
     71It looks like this:
     72
     73{{{
     74c:\boost\branches\CMake\release\build>cmake -DBOOST_BUILD_SLAVE=ON -DBUILD_TESTING=ON -G"NMake Makefiles" -DCMAKE_MAKE_PROGRAM:FILEPATH=nmake ../src
     75-- The C compiler identification is MSVC
     76-- The CXX compiler identification is MSVC
     77-- Check for CL compiler version
     78-- Check for CL compiler version - 1500
     79-- Check if this is a free VC compiler
     80-- Check if this is a free VC compiler - no
     81-- Check CL platform
     82-- Check CL platform - 32 bit
     83-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio 9.0/VC
     84/bin/cl.exe
     85-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio 9.0/VC
     86/bin/cl.exe -- works
     87-- Detecting C compiler ABI info
     88-- Detecting C compiler ABI info - done
     89-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio 9.0/
     90VC/bin/cl.exe
     91-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio 9.0/
     92VC/bin/cl.exe -- works
     93-- Detecting CXX compiler ABI info
     94-- Detecting CXX compiler ABI info - done
     95-- Found PythonInterp: C:/Program Files/Python25/python.exe
     96-- found python executable  C:/Program Files/Python25/python.exe
     97-- Found PythonLibs: C:/Program Files/Python25/libs/python25.lib
     98-- found python includes    C:/Program Files/Python25/include
     99-- found python libs        C:/Program Files/Python25/libs/python25.lib
     100-- Configuring test/compile drivers
     101-- Looking for doxygen...
     102-- Looking for doxygen... - NOT found
     103-- Looking for dot tool...
     104-- Looking for dot tool... - NOT found
     105--  + algorithm
     106--  + any
     107--  + array
     108--  + assign
     109--  + bind
     110--  + circular_buffer
     111--  + concept_check
     112--  + config
     113-- Performing Test tmp
     114-- Performing Test tmp - Failed
     115--  + conversion
     116--  + crc
     117--  + date_time
     118--  + disjoint_sets
     119--  + dynamic_bitset
     120--  + system
     121--  + filesystem
     122--  + foreach
     123--  + format
     124--  + function
     125--  + function_types
     126--  + functional
     127--  + gil
     128--  + graph
     129-- Could NOT find EXPAT
     130--  + integer
     131--  + io
     132--  + iostreams
     133--  + iterator
     134--  + lambda
     135--  + logic
     136--  + math
     137--  + serialization
     138--  + mpi
     139--  + mpl
     140--  + multi_array
     141--  + multi_index
     142--  + numeric
     143--  + optional
     144--  + parameter
     145--  + pool
     146--  + preprocessor
     147--  + program_options
     148--  + property_map
     149--  + ptr_container
     150--  + python
     151--  + quickbook
     152--  + random
     153--  + range
     154--  + rational
     155--  + regex
     156--  + signals
     157--  + smart_ptr
     158--  + spirit
     159--  + statechart
     160--  + static_assert
     161--  + test
     162--  + thread
     163--  + timer
     164--  + tokenizer
     165--  + tr1
     166-- libs/tr1/test/CMakeLists.txt: was this just cruft?  Seems to duplicate first
     167glob_test_compile line above
     168--  + tuple
     169--  + type_traits
     170--  + typeof
     171--  + utility
     172--  + variant
     173--  + wave
     174--  + xpressive
     175-- Configuring done
     176-- Generating done
     177-- Build files have been written to: C:/boost/branches/CMake/release/build
     178}}}
     179
     180Create a file `slave-description.txt` and put in some descriptive text
     181explaining anything peculiar about the slave's configuration, the
     182site/location, etc.
     183
     184{{{
     185c:\boost\branches\CMake\release\build>notepad slave-description.txt
     186}}}
     187There are two last things to configure.  Do so via `nmake edit_cache`:
     188{{{
     189c:\boost\branches\CMake\release\build>nmake edit_cache
     190
     191Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
     192Copyright (C) Microsoft Corporation.  All rights reserved.
     193
     194Running CMake cache editor...
     195}}}
     196Set the highlighted fields (BOOST_BUILD_SLAVE_CONTACT_INFO and BOOST_BUILD_SLAVE_HOSTNAME)
     197appropriately and press "OK" to generate makefiles and exit.
     198
     199Now notify the server that a slave build is about to start:
     200
     201{{{
     202c:\boost\branches\CMake\release\build>nmake slave-start
     203
     204Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
     205Copyright (C) Microsoft Corporation.  All rights reserved.
     206
     207Slave starting build
     208Url: https://svn.boost.org/svn/boost/branches/CMake/release at rev 46437
     209FQDN: vista.dc.resophonic.com
     210Uname: ('Microsoft', 'EvanXPS', 'Windows', '6.0.6000', '', '')
     211Toolset: vc90
     212
     213Notifying http://boost:boost@boost.resophonic.com/trac/login/xmlrpc of new build
     214 via XML-RPC
     215Setting new build id 33 locally
     216Built target slave-start
     217}}}
     218
     219Now do the build:
     220
     221{{{
     222c:\boost\branches\CMake\release\build>nmake /I test
     223
     224Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
     225Copyright (C) Microsoft Corporation.  All rights reserved.
     226
     227Scanning dependencies of target Algorithm-conv_test
     228[  0%] Building CXX object libs/algorithm/Algorithm-test/CMakeFiles/Algorithm-co
     229nv_test.dir/conv_test.cpp.obj
     230***
     231*** Executing op:cxx_compile_object
     232*** ['C:\\PROGRA~1\\MICROS~1.0\\VC\\bin\\cl.exe', '@C:\\Users\\Evan\\AppData\\Lo
     233cal\\Temp\\nm96EF.tmp']
     234*** log=C:\boost\branches\CMake\release\build\libs\algorithm\Algorithm-test\Log.
     235marshal
     236***
     237Linking CXX executable ..\..\..\bin\tests\Algorithm\conv_test.exe
     238***
     239*** Executing op:link_executable
     240*** ['C:\\Program Files\\CMake 2.6\\bin\\cmake.exe', '-E', 'vs_link_exe', 'C:\\P
     241ROGRA~1\\MICROS~1.0\\VC\\bin\\cl.exe', '/nologo', '@CMakeFiles\\Algorithm-conv_t
     242est.dir\\objects.rsp', '@C:\\Users\\Evan\\AppData\\Local\\Temp\\nmABD7.tmp']
     243*** log=C:\boost\branches\CMake\release\build\libs\algorithm\Algorithm-test\Log.
     244marshal
     245***
     246[  0%] Built target Algorithm-conv_test
     247Scanning dependencies of target Algorithm-conv_test-run
     248Running conv_test in project Algorithm
     249***
     250*** Executing op:run
     251*** ['C:/boost/branches/CMake/release/build/bin/./tests/Algorithm/conv_test']
     252*** log=C:/boost/branches/CMake/release/build/libs/algorithm/Algorithm-test\Log.
     253marshal
     254***
     255[  0%] Built target Algorithm-conv_test-run
     256}}}
     257
     258When it finishes, notify the server that the run is done with
     259{{{
     260c:\boost\branches\CMake\release\build>nmake slave-finish
     261}}}
     262
     263