转换向导2008到2010-找不到文件 [英] Conversion Wizard 2008 to 2010 - cannot find file

查看:76
本文介绍了转换向导2008到2010-找不到文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用转换向导将VC ++ 2008项目转换为VC ++ 2010后,当我尝试调试时出现错误:

After using the conversion wizard to convert a VC++ 2008 project to VC++ 2010, when I try to debug I get the error:

------------------------------
无法启动程序'C:\ Users \ Carl \ Documents \ My Dropbox \ Project \ OGLES20 \ OpenGL_ES_Programming_Guide_v1.0.2 \ Chapter_15 \ GeoLithKD \ Debug \ GeoLithKD.exe'.

---------------------------
Unable to start program 'C:\Users\Carl\Documents\My Dropbox\Project\OGLES20\OpenGL_ES_Programming_Guide_v1.0.2\Chapter_15\GeoLithKD\Debug\GeoLithKD.exe'.

系统找不到指定的文件.

The system cannot find the file specified.

-------------------------------

---------------------------

在转换过程中没有发出警告,但是从某些研究中,我相信某些复杂"的问题会引起警告.项目配置.

No warnings were issued during the conversion, but from some research I believe that there are issues with some "complex" project configurations.

该exe会在预期的位置构建,并且在我双击它时可以正确运行.

The exe is built where expected and runs corrctly when I double-click it.

该项目取自《 OpenGL ES编程指南v1.0.2.》.

The project is taken from the OpenGL ES Programming Guide v1.0.2.

该代码的2008年版本可以正常工作.

The 2008 version of the code works without any issues.

解决方案中有两个项目,设置为启动项目会得到相同的结果.

There are two projects in the solution and setting as startup project gave the same result.

我已经编辑了项目设置,并将输出目录从$(SolutionDir)$(Configuration)\更改为bin目录,类似地,我将Linker输出文件更改为.. \ .. \ Bin \的绝对路径. $(项目名称).exe.两种变化都没有帮助.

I've edited the project settings and changed the output directory from $(SolutionDir)$(Configuration)\ to the bin directory, similarly I changed the Linker output file to an absolute path from ..\..\Bin\$(ProjectName).exe. Neither change helped.

下面是vcproj文件的摘录(希望是显眼的部分).

Below is an extract (hopefully of the salient parts) from the vcproj file.

<?xml version ="1.0" encoding ="Windows-1252"?>
< VisualStudioProject
  ProjectType ="Visual C ++"
 版本="9.00"
 名称="GeoLithKD"
  ProjectGUID ="{6BE6BD94-F794-471D-9A9D-EFC01498D8B5}"
  RootNamespace ="GeoLithKD"
 关键字="Win32Proj"
  TargetFrameworkVersion ="131072"
  >
  <配置>
    <配置
    名称="Debug | Win32"
     OutputDirectory ="$(SolutionDir)$(ConfigurationName)"
     IntermediateDirectory ="$(ConfigurationName)"
     ConfigurationType ="1"
     CharacterSet ="1"
     >
     <工具
      名称="VCCLCompilerTool"
       AdditionalOptions ="/MP"
      优化="0"
       AdditionalIncludeDirectories =" .. \ .. \ Common \ Include"
       PreprocessorDefinitions ="WIN32; _DEBUG; _WINDOWS"
       MinimalRebuild =真"
       BasicRuntimeChecks ="3"
       RuntimeLibrary ="3"
       UsePrecompiledHeader ="0"
       WarningLevel ="3"
       Detect64BitPortabilityProblems ="true"
       DebugInformationFormat ="4"
     />
     <工具
      名称="VCLinkerTool"
       AdditionalDependencies ="libEGL.lib libKD.lib libGLESv2.lib esUtil.lib"
       OutputFile =" .. \ .. \ Bin \ $(ProjectName).exe"
       LinkIncremental ="1"
       AdditionalLibraryDirectories =" .. \ .. \ Common \ Lib; .. \ .. \ Lib"
       GenerateManifest ="true"
       GenerateDebugInformation ="true"
      子系统="2"
       RandomizedBaseAddress ="1"
       DataExecutionPrevention ="0"
       TargetMachine ="1"
     />
    </配置>
    <配置
    名称=发布| Win32"
     OutputDirectory ="$(SolutionDir)$(ConfigurationName)"
     IntermediateDirectory ="$(ConfigurationName)"
     ConfigurationType ="1"
     CharacterSet ="1"
     WholeProgramOptimization ="1"
     >
     <工具
      名称="VCCLCompilerTool"
       AdditionalIncludeDirectories =" .. \ .. \ Common \ Include"
       PreprocessorDefinitions ="WIN32; NDEBUG; _WINDOWS"
       RuntimeLibrary ="2"
       UsePrecompiledHeader ="0"
       WarningLevel ="3"
       Detect64BitPortabilityProblems ="true"
       DebugInformationFormat ="3"
     />
     <工具
      名称="VCLinkerTool"
       AdditionalDependencies ="libEGL.lib libKD.lib libGLESv2.lib"
       OutputFile =" .. \ .. \ Bin \ $(ProjectName).exe"
       LinkIncremental ="2"
       AdditionalLibraryDirectories =" .. \ .. \ Common \ Lib; .. \ .. \ Lib"
       GenerateManifest ="true"
       GenerateDebugInformation ="true"
      子系统="2"
       OptimizeReferences ="2"
       EnableCOMDATFolding ="2"
       RandomizedBaseAddress ="1"
       DataExecutionPrevention ="0"
       TargetMachine ="1"
     />

<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
  ProjectType="Visual C++"
  Version="9.00"
  Name="GeoLithKD"
  ProjectGUID="{6BE6BD94-F794-471D-9A9D-EFC01498D8B5}"
  RootNamespace="GeoLithKD"
  Keyword="Win32Proj"
  TargetFrameworkVersion="131072"
  >
  <Configurations>
    <Configuration
      Name="Debug|Win32"
      OutputDirectory="$(SolutionDir)$(ConfigurationName)"
      IntermediateDirectory="$(ConfigurationName)"
      ConfigurationType="1"
      CharacterSet="1"
      >
      <Tool
        Name="VCCLCompilerTool"
        AdditionalOptions="/MP"
        Optimization="0"
        AdditionalIncludeDirectories="..\..\Common\Include"
        PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
        MinimalRebuild="true"
        BasicRuntimeChecks="3"
        RuntimeLibrary="3"
        UsePrecompiledHeader="0"
        WarningLevel="3"
        Detect64BitPortabilityProblems="true"
        DebugInformationFormat="4"
      />
      <Tool
        Name="VCLinkerTool"
        AdditionalDependencies="libEGL.lib libKD.lib libGLESv2.lib esUtil.lib"
        OutputFile="..\..\Bin\$(ProjectName).exe"
        LinkIncremental="1"
        AdditionalLibraryDirectories="..\..\Common\Lib;..\..\Lib"
        GenerateManifest="true"
        GenerateDebugInformation="true"
        SubSystem="2"
        RandomizedBaseAddress="1"
        DataExecutionPrevention="0"
        TargetMachine="1"
      />
    </Configuration>
    <Configuration
      Name="Release|Win32"
      OutputDirectory="$(SolutionDir)$(ConfigurationName)"
      IntermediateDirectory="$(ConfigurationName)"
      ConfigurationType="1"
      CharacterSet="1"
      WholeProgramOptimization="1"
      >
      <Tool
        Name="VCCLCompilerTool"
        AdditionalIncludeDirectories="..\..\Common\Include"
        PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
        RuntimeLibrary="2"
        UsePrecompiledHeader="0"
        WarningLevel="3"
        Detect64BitPortabilityProblems="true"
        DebugInformationFormat="3"
      />
      <Tool
        Name="VCLinkerTool"
        AdditionalDependencies="libEGL.lib libKD.lib libGLESv2.lib"
        OutputFile="..\..\Bin\$(ProjectName).exe"
        LinkIncremental="2"
        AdditionalLibraryDirectories="..\..\Common\Lib;..\..\Lib"
        GenerateManifest="true"
        GenerateDebugInformation="true"
        SubSystem="2"
        OptimizeReferences="2"
        EnableCOMDATFolding="2"
        RandomizedBaseAddress="1"
        DataExecutionPrevention="0"
        TargetMachine="1"
      />

TIA

Carl Bateman

Carl Bateman

推荐答案

您的意思是当按F5键在VS2010中运行项目时发生错误吗?从您的帖子中,我了解到您正在使用VS开发openGL项目.经过一番研究,我发现了一个相关的 有关在VS 2010中使用OpenGL的主题.

Do you mean the error occurs when press F5 to run the project in VS2010? From your post, I learn you are developing openGL project in VS. After some research, I found a related topic about using OpenGL in VS 2010.

http://social.msdn.microsoft.com/Forums/en/vclanguage/thread/f565e675-db4c-4f3f-8d35-a5e5322bbaea

我不确定该线程是否包含您所寻求的有价值的信息.请随时告诉我您的关注.

I am not sure if that thread contains valuable information you seek. Please feel free to tell me your concern.

此致,

张倩倩

在论坛中


这篇关于转换向导2008到2010-找不到文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆