From: Bill H. <bil...@ki...> - 2006-11-27 20:53:53
|
Peter Vanroose wrote: >> Is this about the performance everyone else is getting for a "clean" >> build-from-scratch? >> > > Yes, I guess so. > Looking at the dashboard builds > (http://www.cs.rpi.edu/research/groups/vxl/Testing/Dashboard/MostRecentResults-Nightly/Dashboard.html > ) > I see elapse times between start of build and end of running all tests of between 1 and 8 hours. > > >> The warnings are mostly a combination of complaints about depreciated >> C-style methods like fopen(), sprintf(), fscanf(), strcpy() and the >> like, and complaints that some long_doubles are being forced to >> bool. But as I said, these warnings don't seem to effect my stuff, >> and after the first full build never appear again. >> >> Is everyone else experiencing this error and these warnings? Or is >> it unique to VS8? >> > > Again looking at the dashboard builds, I've seen other VS compile builds have those bunch of > "forced to bool" warnings as well. > The C-style warnings should be limited to the v3p stuff, I believe. Or coming from > compiler-internal include files. > Most (if not all) of the "real" vxl is ANSI compliant, using e.g. vcl_strcpy (which translates to > std::strcpy). > > We try to get rid of all compiler warnings (even e.g. the "signed/unsigned mismatch" ones) but for > some newer code there ma > y still be some of thes For VS 8, in Cmake and VTK, we do this: IF(CMAKE_COMPILER_2005) ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE) ENDIF(CMAKE_COMPILER_2005) Also, if you are adventurous and like the command line.... You can use cmake to create makefiles for "Unix Makefiles", but set CXX and CC to cl. Make sure cl command line environment is setup correctly. Then you can use make -j3 to do the build. Due to a bug in the cygwin make, you have to use this patched one: http://www.cmake.org/files/make.exe This will only work with Vs 2005 because before that the compiler could not run more than one file at the same time. (it wrote to a .pdb file that was shared between object files at the same time.) The VS 2005 ide will do stuff in parallel, but not as much as gmake. -Bill |