Common build problems
Some common errors might crop while trying to build the library, since the makefiles were created for a specific environment. In case you improve them and find a way to generalize them, I am grateful if you can submit your code.
Linker errors when linking the CUDA runtime "cudart"
I have a 64 bit system, and the CUDA library path is hard-coded to end with "lib64". On your system, the correct CUDA runtime might reside e.g in "/usr/local/cuda/lib" instead. In this case, do the following:
Locate the COCOLIB project files (ending with .pro) in "cocolib/" and "examples/".
Change the line "CUDA_LIBDIR = lib64" to "CUDA_LIBDIR = lib"
Still Linker errors
Verify that you have the correct Qt version installed. Run
qmake --version
and check for Qt version >= 4 and qmake version >= 2. If it is outdated, update the Qt development packages.