win7 64位+vs2008下调试Fluids v2.0(SPH)程序调试过程记录

    技术2022-05-19  19

    环境:win7 64+vs2008  Fluidv2.0程序调试

     

    fluid_v2.0原地址:http://www.rchoetzlein.com/eng/graphics/fluids.htm

     

    第一个错误

    1>------ Build started: Project: fluids, Configuration: Debug Win32 ------

    1>Compiling...

    1>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release

    1>image.cpp

    1>c:/users/mac/desktop/fluids_v2/common/common_defs.h(20) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory

    1>Build log was saved at "file://c:/Users/mac/Desktop/fluids_v2/Debug/BuildLog.htm"

    1>fluids - 1 error(s), 1 warning(s)

    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

     

    解决办法:vs2008 Tools——Options——Projects and Solutions——VC++ Directories——Show directories for:下拉选Include files

    添加新路径,将windows sdkinclude目录加进去就ok

     

     

     

     

    第二个错误:GL/gl.h

    解决办法:vc6.0GL文件夹拷到vc下即可

     

      

    第三个错误:

    1>------ Build started: Project: fluids, Configuration: Debug Win32 ------

    1>Compiling...

    1>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release

    1>image.cpp

    1>c:/users/mac/desktop/fluids_v2/common/mtime.h : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss

    1>c:/users/mac/desktop/fluids_v2/common/image.cpp(13) : fatal error C1083: Cannot open include file: 'jpeglib.h': No such file or directory

    1>Build log was saved at "file://c:/Users/mac/Desktop/fluids_v2/Debug/BuildLog.htm"

    1>fluids - 1 error(s), 2 warning(s)

    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    解决办法:

    http://www.ijg.org/

    下载jpegsr8c.zip 解压到vcinclude下建立一个jpeg目录放到里面,代码改成#include”jpeg/jpeglib.h”

     

    错误:无jconfig.h

    解决办法:将jconfig.vcvs打开新建一个jconfig.h文件并拷贝里面的文本即可

     

    错误:PRJ0003: error spawning 'rc.exe'

    解决办法:打开vs2008安装盘,更新加上“x64编译器与工具”

     

     

     

    错误:无法打开jpegd.lib

    解决办法:到网上下载了一个jpegd.lib拷到vclib目录下

     

     

    错误:无法打开LIBCD.lib

    解决办法:到vc6.0盘里面把vcliblibcd.lib拷过去就完了

     

     

    至此,搞定!!

    截图留念:

     

     


    最新回复(0)