User:Sylvain

From KitwarePublic
Jump to navigationJump to search

crontab on MacOS

  • Example
 crontab -e
 00 20 * * * ctest -S myScript.cmake > myScript.log 2>&1
  • Problem:

When I create a cronjob with

 crontab -e

I get the error message:

 crontab: temp file must be edited in place
  • Solution:

Use the 'nobackup' option in VI:

 :set nobackup
 crontab: installing new crontab

Install X11 on MacOS

To install ParaView-2.4.4, you need to install X11.

  • Insert 'Mac OS X Install Disc 1'
  • Scroll down to 'Optional Installs'
  • Click 'Continue', 'Continue', 'Accept'
  • Select 'Applications', click on the arrow in front of Applications
  • Select 'X11'
  • Click 'Upgrade', enter your password, click 'Ok'

Setup CMake for ICC

To configure a project to use the Intel compiler icc, set CC and CXX *before* you run cmake. Type is the terminal:

 CFLAGS= CXXFLAGS=
 CC=/opt/intel_cc_81/bin/icc
 CXX=/opt/intel_cc_81/bin/icpc

Then run cmake or ccmake.

Headers for Cross-platform Projects

 #include <stdio.h>  // for sscanf

Install Qt OpenSource for VCExpress (VS2005)

  • Install VCExpress AND Platform SDK

C:\Program Files\Microsoft Visual Studio 8\Common7\Tools

  • Unzip qt-win-opensource-src-4.2.2.zip to c:/qt/

http://www.paraview.org/Wiki/Obtaining_GPL'ed_Qt_for_Windows

  • Edit C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat
  • Add path to Platform SDK bin, include and lib:
 C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin
 C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include
 C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib
  • Launch Start > All Programs > Visual C++ Express Edition > Visual Studio Tools > Visual Studio 2005 Command Prompt
  • cd ..; cd qt; cd qt-win-opensource-src-4.2.2
  • qconfigure.bat msvc2005; type yes to all
  • Configure ParaView3 using CMake; Compile using MSVC2005