User:Sylvain
From KitwarePublic
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
http://msdn.microsoft.com/vstudio/express/visualc/download/
- Using Windows Unzip, extract qt-win-opensource-src-4.2.2.zip and acs-4.2.2-patch1.zip to c:/qt/qt-win-opensource-src-4.2.2
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 Cygwin.exe, and apply the following patch
patch -p1 -i qtwin_patch\msvc_bcc32_42.patch
- 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
- Configure Qt and answer yes to all questions
qconfigure.bat msvc2005
- Configure ParaView3 using CMake; Compile using MSVC2005
Change shell in Debian
Type:
chsh
Type your password Logout and login again. Set up the .zshrc file.