Recent site activity

Using Eclipse IDE

Experiences with indigo

How to build QMCPACK in eclipse

  • Download QMCPACK and complete cmake step as usual: Don't need eclipse for this step. In fact, you don't need to the eclipse build system.
  • Setting up a project in eclipse
    • start an empty C++ project : File > New C++ Project > 
    • select the build directory: File> Property
  • Build: Project > Build Project
Old stuff : predate 2011 August

Getting eclipse and plugins

Older version is fine but 3.4 appears to manage packages better than before

Using cmake in eclipse

http://www.cmake.org/Wiki/CMake:Eclipse

How to install plugins using "software updates" feature of eclipse

  • Within Eclipse IDE
     Help->Software Updates->Find and Install function->New Remote Site
    • Add a URL for each plugin for automatic download and updates.

How to install pre-built plugins from the project sources

  • Some plugins need to be downloaded and installed separately
    • Unpack them in the plugins directory of eclipse

Useful plugins

plugins update/download URL Comment
CDT Callisto Discovery Site or the CDT Update (default update site) C/C++ Development Tools
CMakeEd http://cmakeed.sourceforge.net/updates/ cmake editor
Remote Target Management http://download.eclipse.org/dsdp/tm/updates/ edit files, execute commands on remote hosts
Mylar http://download.eclipse.org/technology/mylar/update-site/e3.2 http://download.eclipse.org/technology/mylar/update-site/e3.3 required by subclipse
subclipse http://subclipse.tigris.org/update_1.2.x subversion client

Using external programs in eclipse IDE

Linux

  • Using dataspork to view .dat files in Eclipse. A sample Bash script with instructions for its use goes as follows,
#!/bin/bash
#!Change the path to be correct for your location of dataspork.
#!In Eclipse go to the Window->Preferences..->General->Editors->File Associations
#!add the file type .dat. Choose this script as the default editor.
java -jar /{absolute path to}/dataspork.jar $1

Windows

  • Using dataspork to view .dat files in Eclipse. A sample batch file goes as follows,
start C:/{absolute path to}/dataspork.jar %1
  • You can name the file something like dataspork.bat. Once this is made it is necessary to go to Control Panel->Folder Options->FileTypes and add a new type of file "dat". Then choose dataspork.bat as the default opener for this file type.
  • Next, in Eclipse, go to Window->Preferences->General->Editors->File Associations and add *.dat then associate it with the same .bat file.

Connecting to Remote Sites using Remote Target Management

  • In Eclipse go to Window->Open Perspective->Remote System Explorer. You may have to choose other and select it from a secondary menu if it is not automatically included in the initial list.
  • Right click on the white space below Local and choose New Connection... Most likely you will be using SSH only.
  • Once done entering the hostname information you should be able to right click and connect to the server by entering your username/password combination at the appropriate prompt.
  • You are able to browse your home directory and the base of the file system (Sftp files), as well as open a remote shell on the server (Ssh Shells).

Importing Projects using Subclipse

  • Choose the SVN repository Exploring perspective from the Window menu. Right click on the white space in the SVN Repository field, choose Add SVN Repository and enter the URL of the repository.
  • After setting the repository up you can checkout the repository into the workspace or into the new project wizard. If you intend to use Eclipse to work on the project it is best to check it out as a project to be configured using the New Project Wizard. There is a walkthrough to guide you.
  • In one of the code editing perspectives, by right clicking on the project or individual files you are able to commit changes to repository, update files from the repository, and compare differences between the remote and local versions of the project.
Č
ċ
ď
qmc_file_format.xml
(17k)
Jeongnim Kim,
Jul 31, 2011 2:45 PM