mayingzhen / nvidia-texture-tools

Automatically exported from code.google.com/p/nvidia-texture-tools
Other
0 stars 0 forks source link

compiler errors of nvidia-texture-tools 2.0.8 with CUDA on LINUX #133

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

$ ./configure
$ make
with CUDA (3.0) installed on Ubuntu 10.04 LTS, gcc 4.4

What is the expected output? What do you see instead?
make fails, with compiler errors

What version of the product are you using? On what operating system?
texture-tools 2.0.8, Linux, Ubuntu 10.04 LTS, CUDA 3.0

Please provide any additional information below.

the building fails if the CUDA (3.0) is installed.
it seems that the CMake-File for the CUDA support contains a minor error;
instead of compiling the files with C++ it uses the C-compiler
I could fix the problem (for me) by changing the following line in
"cmake/FindCUDA.cmake":

--- FindCUDA.cmake_orig 2010-05-14 19:59:29.000000000 +0200
+++ FindCUDA.cmake  2010-08-26 12:37:13.000000000 +0200
@@ -120,7 +120,7 @@
    FOREACH (CUFILE ${ARGN})
        GET_FILENAME_COMPONENT (CUFILE ${CUFILE} ABSOLUTE)
        GET_FILENAME_COMPONENT (CFILE ${CUFILE} NAME_WE)
-       SET (CFILE ${CMAKE_CURRENT_BINARY_DIR}/${CFILE}.gen.c)
+       SET (CFILE ${CMAKE_CURRENT_BINARY_DIR}/${CFILE}.gen.cpp)

        GET_CUFILE_DEPENDENCIES(CUDEPS ${CUFILE})
        #MESSAGE("${CUDEPS}")

Original issue reported on code.google.com by mernschm...@googlemail.com on 26 Aug 2010 at 12:08

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r1157.

Original comment by cast...@gmail.com on 20 Sep 2010 at 6:18