Hi,

I have trouble to compile nvtt 2.0.8.1 from the code.google.com webpage with 
cuda support.

My system is: Kubuntu 10.04 64 bit
I have installed the 280 driver from the NVIDIA homepage. as well as the CUDA 
4.0 SDK, the CUDA Tools and the Sample programs.
I use GCC 4.4.3

The sample programs compile find, also the program "deviceQuery" finds my cuda 
grafics hardware correctly.

Unfortunately, if I try to compile nvtt, it throws a low of errors in the nvtt 
part.

Can some of the linux users gibe me an advice what could create the error?

The message is:

Code:

[ 65%] Generating CompressKernel.gen.c
nvcc warning : option 'host-compilation' has been deprecated and is ignored     
                                                                                
                                                                                
                               
[ 67%] Building CXX object src/nvtt/CMakeFiles/nvtt.dir/nvtt.cpp.o
[ 69%] Building CXX object src/nvtt/CMakeFiles/nvtt.dir/Compressor.cpp.o        
                                                                                
                                                                                
                               
[ 71%] Building CXX object src/nvtt/CMakeFiles/nvtt.dir/nvtt_wrapper.cpp.o      
                                                                                
                                                                                
                               
[ 73%] Building CXX object src/nvtt/CMakeFiles/nvtt.dir/CompressDXT.cpp.o       
                                                                                
                                                                                
                               
[ 75%] Building CXX object src/nvtt/CMakeFiles/nvtt.dir/CompressRGB.cpp.o       
                                                                                
                                                                                
                               
[ 76%] Building CXX object src/nvtt/CMakeFiles/nvtt.dir/QuickCompressDXT.cpp.o  
                                                                                
                                                                                
                               
[ 78%] Building CXX object 
src/nvtt/CMakeFiles/nvtt.dir/OptimalCompressDXT.cpp.o                           
                                                                                
                                                                                
    
[ 80%] Building CXX object 
src/nvtt/CMakeFiles/nvtt.dir/CompressionOptions.cpp.o                           
                                                                                
                                                                                
    
[ 82%] Building CXX object src/nvtt/CMakeFiles/nvtt.dir/InputOptions.cpp.o      
                                                                                
                                                                                
                               
[ 84%] Building CXX object src/nvtt/CMakeFiles/nvtt.dir/OutputOptions.cpp.o     
                                                                                
                                                                                
                               
[ 86%] Building CXX object src/nvtt/CMakeFiles/nvtt.dir/cuda/CudaUtils.cpp.o    
                                                                                
                                                                                
                               
[ 88%] Building CXX object 
src/nvtt/CMakeFiles/nvtt.dir/cuda/CudaCompressDXT.cpp.o                         
                                                                                
                                                                                
    
[ 90%] Building C object src/nvtt/CMakeFiles/nvtt.dir/CompressKernel.gen.c.o    
                                                                                
                                                                                
                               
In file included from /usr/local/cuda/include/builtin_types.h:61,               
                                                                                
                                                                                
                               
                 from /usr/local/cuda/include/crt/host_runtime.h:70,
                 from /usr/lib/gcc/x86_64-linux-gnu/4.4.3/include/stddef.h:213:
/usr/local/cuda/include/vector_types.h:497: error: expected 
specifier-qualifier-list before ‘dim3’
/usr/local/cuda/include/cuda_runtime_api.h:134: error: expected identifier or 
‘(’ before string constant
/usr/local/cuda/include/cuda_runtime_api.h:151: error: expected identifier or 
‘(’ before string constant
/usr/local/cuda/include/cuda_runtime_api.h:203: error: expected identifier or 
‘(’ before string constant
/usr/local/cuda/include/cuda_runtime_api.h:227: error: expected identifier or 
‘(’ before string constant
/usr/local/cuda/include/cuda_runtime_api.h:257: error: expected identifier or 
‘(’ before string constant
/usr/local/cuda/include/cuda_runtime_api.h:298: error: expected identifier or 
‘(’ before string constant
/usr/local/cuda/include/cuda_runtime_api.h:332: error: expected identifier or 
‘(’ before string constant
/usr/local/cuda/include/cuda_runtime_api.h:356: error: expected identifier or 
‘(’ before string constant
/usr/local/cuda/include/cuda_runtime_api.h:415: error: expected identifier or 
‘(’ before string constant
.....





Has someone an idea what could cause this error?

Thank you,

Torben

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42989#42989





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to