ycwn / nvidia-texture-tools

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

nvcore will not compile in visual studio 2010 #202

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Build the solution following the steps on the wiki:
https://code.google.com/p/nvidia-texture-tools/wiki/CompilationInstructions#CMak
e_and_Visual_Studio_10

Here is my configuration:
G:\TMP\nvidia-texture-tools\vc10>cmake .. -DNVTT_SHARED=1 -G "Visual Studio 10"
-- Setting optimal options
--   Processor: x86
--   Compiler Flags:  /DWIN32 /D_WINDOWS /W3 /GR /EHsc
-- Looking for OpenGL - found
-- Looking for GLUT - not found
-- Looking for DirectX - found
-- Looking for GLEW - not found
-- Looking for Cg - found
-- Looking for CUDA - found
-- Looking for Maya - not found
-- Looking for JPEG - found
-- Looking for PNG - found
-- Looking for TIFF - found
-- Looking for OpenEXR - not found
-- Found unsuitable Qt version "" from NOTFOUND
-- Use thread library:
-- Configuring done
-- Generating done
-- Build files have been written to: G:/TMP/nvidia-texture-tools/vc10

2. Open the vc10.sln
3. Attempt to compile the solution. In particular the nvcore project.

What is the expected output? What do you see instead?
Expect to see build successful for nvcore.vcxproj

What version of the product are you using? On what operating system?
- Windows 7 64bit
- Visual Studio 2010 Pro with SP1
- Fails to compile with debug/release win32 configurations.

Please provide any additional information below.
The output below is the compiler output for building nvcore.
2>------ Build started: Project: nvcore, Configuration: Release Win32 ------
2>Build started 9/18/2013 9:47:38 AM.
2>InitializeBuildStatus:
2>  Touching "nvcore.dir\Release\nvcore.unsuccessfulbuild".
2>CustomBuild:
2>  All outputs are up-to-date.
2>ClCompile:
2>  Debug.cpp
2>G:/TMP/nvidia-texture-tools/src\nvcore/StrLib.h(140): error C2487: 
'separator' : member of dll interface class may not be declared with dll 
interface
2>G:/TMP/nvidia-texture-tools/src\nvcore/StrLib.h(141): error C2487: 'fileName' 
: member of dll interface class may not be declared with dll interface
2>G:/TMP/nvidia-texture-tools/src\nvcore/StrLib.h(142): error C2487: 
'extension' : member of dll interface class may not be declared with dll 
interface
2>  StrLib.cpp
2>G:/TMP/nvidia-texture-tools/src\nvcore/StrLib.h(140): error C2487: 
'separator' : member of dll interface class may not be declared with dll 
interface
2>G:/TMP/nvidia-texture-tools/src\nvcore/StrLib.h(141): error C2487: 'fileName' 
: member of dll interface class may not be declared with dll interface
2>G:/TMP/nvidia-texture-tools/src\nvcore/StrLib.h(142): error C2487: 
'extension' : member of dll interface class may not be declared with dll 
interface
2>  TextWriter.cpp
2>G:/TMP/nvidia-texture-tools/src\nvcore/StrLib.h(140): error C2487: 
'separator' : member of dll interface class may not be declared with dll 
interface
2>G:/TMP/nvidia-texture-tools/src\nvcore/StrLib.h(141): error C2487: 'fileName' 
: member of dll interface class may not be declared with dll interface
2>G:/TMP/nvidia-texture-tools/src\nvcore/StrLib.h(142): error C2487: 
'extension' : member of dll interface class may not be declared with dll 
interface
2>
2>Build FAILED.

Original issue reported on code.google.com by michael....@gmail.com on 18 Sep 2013 at 1:56

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1385.

Original comment by cast...@gmail.com on 21 May 2014 at 6:09

GoogleCodeExporter commented 9 years ago
I do not have visual studio 10 available, but I've submitted a fix that I hope 
works for you.

Original comment by cast...@gmail.com on 21 May 2014 at 6:12

GoogleCodeExporter commented 9 years ago
I can confirm that the changes fixed the same errors I had in Visual Studio 
2012. Many thanks!

Original comment by d...@playmechanix.com on 21 May 2014 at 6:14