Cuda + Qt creator

I cannot compile project with cuda support. Can anybody give advice, how to configure cuda + qt creator?
There’s is my .pro file:
link text

hi @Danila24

I cannot compile project with cuda support. Can anybody give advice, how to configure cuda + qt creator?

What are you trying to do?
What is your application?
Could you share an example project and an error log?

Thanks and best regards,
Jaski

@jaski.tx Just simple app.

main.cpp

#include <iostream>
#include <stdio.h>
#include <string>
#include <cuda.h>
#include <cuda_runtime.h>
#include <myCuda.cu>
//#include <test.h>
using namespace std;

unsigned char frame[2048*2048];
float dpSrc, dpDst;
int main()
{
    cout << "Hello World!" << endl;
    d();
//    resizeBGRplanarBatch(&dpSrc, 0, 0, 0, &dpDst, 0, 0, 0, 0);
//    Test* test = new Test();
//    test->myTest();


    return 0;
}

myCuda.cu

#include <cuda.h>
#include <cuda_runtime.h>
#include <iostream>

__global__ void cuda_hello(){
    //cout << "Hello World from GPU!\n";
}


__global__ void d(){

    cuda_hello<<<1,1>>>();
}

Give following error:

expected primary-expression before '<' token       myCuda.cu
expected primary-expression before '>' token       myCuda.cu
expected primary-expression before '}' token       myCuda.cu

Which compiler command did you use?
Did you compile the image yourself? If yes, could you provide the changes to local.conf?

@jaski.tx

`g++ -c -pipe -g -Wall -W -fPIE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -I/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++ -I../cudaTest -I/usr/local/cuda-6.5/targets/armv7-linux-gnueabihf/include -I/usr/local/cuda-6.5/samples/common/inc -I. -o main.o ../cudaTest/main.cpp`

I’m trying to compile on apalis tk1 without cross-compile.
Image from yout site with L4T jetpack.
I use Qt Creator. Create Non Qt c++ project. Create .pro file, where indicate nvcc compiler to compile .cu files. In build&run menu standart setting of compiler.

hi @Danila24

I think your Build Environment is not correctly configured. Could you try the settings described in the following site? Thanks.