Eclipse toolchain for CUDA and Qt


This Eclipse plugin provides three different toolchains for compiling CUDA (NVIDIA) and/or Qt (Nokia) sources along with C and C++ sources. Furthermore, Qt's ui-files can be transformed into C++-headers.


This plugin has been successfully tested using Linux and Mac OS X and Eclipse 3.5. Furthermore, it requires a proper installation of CUDA and/or Qt. (The plugin seems to work correctly using Eclipse 3.6 (Helios))

Update Site

To install this plugin add the following update site to your installation/update manager (Help -> Install New Software):


The toolchain can be chosen within the project properties:

The toolchain is applied to the project. Different settings like specifying the command can be done within the settings page:

The following screenshot shows the possibility of transforming .ui-files using the context menu within the project explorer:


  • 7. Jul 2010
    • Solved: The names of the cuda (.cu) dependency files were not correctly set.
    • Solved: Tool conflict inside the toolchain.
  • 18. May 2010
    • Solved: The plugin sometimes generated "null" strings while compiling, resulting in nvcc fatal errors.
  • 6. May 2010
    • Solved: Dependency calculation for .cu-files ignored include paths.
  • 21. Apr 2010
    • Solved: Compiling .cu sources with debug information lead to a trailing '/' inside the dependency file. This always forced builing all .cu-files.
    • Solved: Having two files, for example named 'A.cpp" and '' did not work, since both were compiled into the same object file 'A.o'. Now '.cu'-files are compiled to 'cu_A.o'.

Questions and Answers

What to do, if you get the following error message: session context was:(profile=PlatformProfile, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Install, operand=null --> [R]org.eclipse.ant.ui 3.4.1.v20090901_r351, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction
It seems to be a known bug. According to many internet forums, it can be solved by installing the pde (and jdt) plugins within eclipse. Ubuntu: sudo apt-get install eclipse-pde
After installing the plugin, I don't see the new toolchain in the tool chain editor!?
Uncheck the Display compatible toolchains only. (On some systems eclipse seems to recognize the new toolchain as not compatible.)
What to do if you get the error message: nvcc: command not found
The nvcc is not available to eclipse. Make sure that you have installed it and that it is available in your executable path. Alternatively, if nvcc is installed outside your executable path, you can specify it inside eclipse (C/C++ Build -> Environment. Add: Name: PATH, Value e.g.: /usr/local/cuda/bin).


The plugin, especial the features regarding CUDA is discussed in the following nvidia-forum:


If you have any questions, feel free to contact: