VS2010 DSOFrame 编译遇到的问题总结

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/autopine1/article/details/49359785

这两天学习了一下DSOFrame,但是用VS2010一直编译不过,通过一天的调试,最后还是搞定了,以下是一些总结,共享一下,希望对你有所帮助。

下载资源:http://download.csdn.net/detail/autopine1/9206147

1.      dsoframedemo\ms_dsoframer\XMLHttpClient.h(42):error C4430: missing type specifier - int assumed. Note: C++ does not supportdefault-int

解决方法:

打开:项目----项目属性----配置属性----C/C++----命令行,在附加选项那里添加/wd4430这个选项。

2.      把msoffice.h 中的using namespace放到#import之后

3.      在dsoframer.h中加入头文件#include <Mshtmlc.h>注意顺序,要放到msoffice.h之前

4.      错误:(64位的Win7)

1>C:\Program Files (x86)\Microsoft VisualStudio 10.0\VC\atlmfc\include\atlbase.h(2867): error C2065: 'CLSID_StdGlobalInterfaceTable': undeclared identifier

1>C:\Program Files (x86)\Microsoft VisualStudio 10.0\VC\atlmfc\include\atlbase.h(3060): error C2065:'CLSID_StdGlobalInterfaceTable' : undeclared identifier

解决方法:

atlbase.h    Line33 加上头文件

#include <CGuid.h>

5.      (32位的Win7)

C:\Program Files \MicrosoftSDKs\Windows\v7.0A\Include\atlcomcli.h-àLine88

添加:

extern const IID GUID_NULL;

6.      把msword9.cpp中的引用位置转换一下

#include "msword9.h"

#include "utilities.h"

7.      把msword9.h中的CWindow0(const Window& dispatchSrc) : COleDispatchDriver(dispatchSrc){}

改成

CWindow0(const CWindow0& dispatchSrc): COleDispatchDriver(dispatchSrc){}

 

8.      错误:LINK : fatal error LNK1104: cannot open file 'libc.lib'

解决办法,在Project-->Setting-->Linker-->Command Line-->Additionaloptions中加入:  

/Nodefaultlib:libc

/Nodefaultlib:libcp

9.      别忘了把名称修改一致:

10.  Configuration PropertiesàGeneralàTarget Extensionà.ocx

以上完成后,就可以用VS2010把这个ocx编译通过了

展开阅读全文

VS2010 C++编译问题

11-20

rn template class static_assert ;rn template<> class static_assert ;rnrn好像就是上边2句的问题,请问这是什么错误啊rnrnrnError 1 error C2332: 'class' : missing tag name c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 89 1 pfcrnError 2 error C3306: 'pfc::': unnamed class template is not allowed c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 89 1 pfcrnError 3 error C2143: syntax error : missing ';' before 'static_assert' c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 89 1 pfcrnError 4 error C2059: syntax error : ';' c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 89 1 pfcrnError 5 error C2332: 'class' : missing tag name c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 1 pfcrnError 6 error C2143: syntax error : missing ';' before 'static_assert' c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 1 pfcrnError 7 error C2913: explicit specialization; 'pfc::' is not a specialization of a class template c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 1 pfcrnError 8 error C2059: syntax error : '<' c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 1 pfcrnError 9 error C2143: syntax error : missing ';' before '' c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 1 pfcrnError 10 error C2447: '' : missing function header (old-style formal list?) c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 1 pfcrnError 11 error C2332: 'class' : missing tag name c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 89 1 foobar2000_SDKrnError 12 error C3306: 'pfc::': unnamed class template is not allowed c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 89 1 foobar2000_SDKrnError 13 error C2143: syntax error : missing ';' before 'static_assert' c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 89 1 foobar2000_SDKrnError 14 error C2059: syntax error : ';' c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 89 1 foobar2000_SDKrnError 15 error C2332: 'class' : missing tag name c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 1 foobar2000_SDKrnError 16 error C2143: syntax error : missing ';' before 'static_assert' c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 1 foobar2000_SDKrnError 17 error C2913: explicit specialization; 'pfc::' is not a specialization of a class template c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 1 foobar2000_SDKrnError 18 error C2059: syntax error : '<' c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 1 foobar2000_SDKrnError 19 error C2143: syntax error : missing ';' before '' c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 1 foobar2000_SDKrnError 20 error C2447: '' : missing function header (old-style formal list?) c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 1 foobar2000_SDKrn 21 IntelliSense: expected either a definition or a tag name c:\users\zhenguo\desktop\sdk-2008-11-29\pfc\primitives.h 90 19 pfcrn 论坛

Cximage 在VS2010下的编译问题

09-10

[color=#FF0000]错误如下,网上蛮多方法都试了,就是给不了,希望哪位大哥帮帮忙,解决哈[/color]rnrntif_xfile.obj : error LNK2019: 无法解析的外部符号 _TIFFClientOpen,该符号在函数 "struct tiff * __cdecl _TIFFFdOpen(void *,char const *,char const *)" (?_TIFFFdOpen@@YAPAUtiff@@PAXPBD1@Z) 中被引用rn1>ximajas.obj : error LNK2019: 无法解析的外部符号 _jas_stream_close,该符号在函数 __catch$?Decode@CxImageJAS@@QAE_NPAVCxFile@@K@Z$0 中被引用rn1>ximajas.obj : error LNK2019: 无法解析的外部符号 _jas_cleanup,该符号在函数 __catch$?Decode@CxImageJAS@@QAE_NPAVCxFile@@K@Z$0 中被引用rn1>ximajas.obj : error LNK2019: 无法解析的外部符号 _jas_matrix_destroy,该符号在函数 __catch$?Decode@CxImageJAS@@QAE_NPAVCxFile@@K@Z$0 中被引用rn1>ximajas.obj : error LNK2019: 无法解析的外部符号 _jas_image_readcmpt,该符号在函数 "public: bool __thiscall CxImageJAS::Decode(class CxFile *,unsigned long)" (?Decode@CxImageJAS@@QAE_NPAVCxFile@@K@Z) 中被引用rn1>ximajas.obj : error LNK2019: 无法解析的外部符号 _jas_matrix_create,该符号在函数 "public: bool __thiscall CxImageJAS::Decode(class CxFile *,unsigned long)" (?Decode@CxImageJAS@@QAE_NPAVCxFile@@K@Z) 中被引用rn1>ximajas.obj : error LNK2019: 无法解析的外部符号 _jas_image_destroy,该符号在函数 "public: bool __thiscall CxImageJAS::Decode(class CxFile *,unsigned long)" (?Decode@CxImageJAS@@QAE_NPAVCxFile@@K@Z) 中被引用rn1>ximajas.obj : error LNK2019: 无法解析的外部符号 _jas_cmprof_destroy,该符号在函数 "public: bool __thiscall CxImageJAS::Decode(class CxFile *,unsigned long)" (?Decode@CxImageJAS@@QAE_NPAVCxFile@@K@Z) 中被引用rn1>ximajas.obj : error LNK2019: 无法解析的外部符号 _jas_image_chclrspc,该符号在函数 "public: bool __thiscall CxImageJAS::Decode(class CxFile *,unsigned long)" (?Decode@CxImageJAS@@QAE_NPAVCxFile@@K@Z) 中被引用rn1>ximajas.obj : error LNK2019: 无法解析的外部符号 _jas_cmprof_createfromclrspc,该符号在函数 "public: bool __thiscall CxImageJAS::Decode(class CxFile *,unsigned long)" (?Decode@CxImageJAS@@QAE_NPAVCxFile@@K@Z) 中被引用rn1>ximajas.obj : error LNK2019: 无法解析的外部符号 _jas_image_fmttostr,该符号在函数 "public: bool __thiscall CxImageJAS::Decode(class CxFile *,unsigned long)" (?Decode@CxImageJAS@@QAE_NPAVCxFile@@K@Z) 中被引用rn1>ximajas.obj : error LNK2019: 无法解析的外部符号 _jas_image_decode,该符号在函数 "public: bool __thiscall CxImageJAS::Decode(class CxFile *,unsigned long)" (?Decode@CxImageJAS@@QAE_NPAVCxFile@@K@Z) 中被引用rn1>ximajas.obj : error LNK2019: 无法解析的外部符号 _jas_image_getfmt,该符号在函数 "public: bool __thiscall CxImageJAS::Decode(class CxFile *,unsigned long)" (?Decode@CxImageJAS@@QAE_NPAVCxFile@@K@Z) 中被引用rn1>ximajas.obj : error LNK2019: 无法解析的外部符号 _jas_stream_fdopen,该符号在函数 "public: bool __thiscall CxImageJAS::Decode(class CxFile *,unsigned long)" (?Decode@CxImageJAS@@QAE_NPAVCxFile@@K@Z) 中被引用rn1>ximajas.obj : error LNK2019: 无法解析的外部符号 _jas_init,该符号在函数 "public: bool __thiscall CxImageJAS::Decode(class CxFile *,unsigned long)" (?Decode@CxImageJAS@@QAE_NPAVCxFile@@K@Z) 中被引用rn1>ximajas.obj : error LNK2019: 无法解析的外部符号 _jas_free,该符号在函数 "public: __thiscall CxImageJAS::CxFileJas::CxFileJas(class CxFile *,struct jas_stream_t *)" (??0CxFileJas@CxImageJAS@@QAE@PAVCxFile@@PAUjas_stream_t@@@Z) 中被引用rn1>ximajas.obj : error LNK2019: 无法解析的外部符号 _jas_stream_flush,该符号在函数 "public: bool __thiscall CxImageJAS::Encode(class CxFile *,unsigned long)" (?Encode@CxImageJAS@@QAE_NPAVCxFile@@K@Z) 中被引用rn1>ximajas.obj : error LNK2019: 无法解析的外部符号 _jas_image_encode,该符号在函数 "public: bool __thiscall CxImageJAS::Encode(class CxFile *,unsigned long)" (?Encode@CxImageJAS@@QAE_NPAVCxFile@@K@Z) 中被引用rn1>ximajas.obj : error LNK2019: 无法解析的外部符号 _jas_image_strtofmt,该符号在函数 "public: bool __thiscall CxImageJAS::Encode(class CxFile *,unsigned long)" (?Encode@CxImageJAS@@QAE_NPAVCxFile@@K@Z) 中被引用rn1>ximajas.obj : error LNK2019: 无法解析的外部符号 _jas_image_writecmpt,该符号在函数 "public: bool __thiscall CxImageJAS::Encode(class CxFile *,unsigned long)" (?Encode@CxImageJAS@@QAE_NPAVCxFile@@K@Z) 中被引用rn1>ximajas.obj : error LNK2019: 无法解析的外部符号 _jas_image_create,该符号在函数 "public: bool __thiscall CxImageJAS::Encode(class CxFile *,unsigned long)" (?Encode@CxImageJAS@@QAE_NPAVCxFile@@K@Z) 中被引用rn1>ximajpg.obj : error LNK2019: 无法解析的外部符号 _jpeg_finish_decompress,该符号在函数 "public: bool __thiscall CxImageJPG::Decode(class CxFile *)" (?Decode@CxImageJPG@@QAE_NPAVCxFile@@@Z) 中被引用rn1>ximajpg.obj : error LNK2019: 无法解析的外部符号 _jpeg_read_scanlines,该符号在函数 "public: bool __thiscall CxImageJPG::Decode(class CxFile *)" (?Decode@CxImageJPG@@QAE_NPAVCxFile@@@Z) 中被引用rn1>ximajpg.obj : error LNK2019: 无法解析的外部符号 _jpeg_start_decompress,该符号在函数 "public: bool __thiscall CxImageJPG::Decode(class CxFile *)" (?Decode@CxImageJPG@@QAE_NPAVCxFile@@@Z) 中被引用rn1>ximajpg.obj : error LNK2019: 无法解析的外部符号 _jpeg_calc_output_dimensions,该符号在函数 "public: bool __thiscall CxImageJPG::Decode(class CxFile *)" (?Decode@CxImageJPG@@QAE_NPAVCxFile@@@Z) 中被引用rn1>ximajpg.obj : error LNK2019: 无法解析的外部符号 _jpeg_read_header,该符号在函数 "public: bool __thiscall CxImageJPG::Decode(class CxFile *)" (?Decode@CxImageJPG@@QAE_NPAVCxFile@@@Z) 中被引用rn1>ximajpg.obj : error LNK2019: 无法解析的外部符号 _jpeg_CreateDecompress,该符号在函数 "public: bool __thiscall CxImageJPG::Decode(class CxFile *)" (?Decode@CxImageJPG@@QAE_NPAVCxFile@@@Z) 中被引用rn1>ximajpg.obj : error LNK2019: 无法解析的外部符号 _jpeg_destroy_decompress,该符号在函数 "public: bool __thiscall CxImageJPG::Decode(class CxFile *)" (?Decode@CxImageJPG@@QAE_NPAVCxFile@@@Z) 中被引用rn1>ximajpg.obj : error LNK2019: 无法解析的外部符号 _jpeg_std_error,该符号在函数 "public: bool __thiscall CxImageJPG::Decode(class CxFile *)" (?Decode@CxImageJPG@@QAE_NPAVCxFile@@@Z) 中被引用rn1>ximajpg.obj : error LNK2019: 无法解析的外部符号 _jpeg_resync_to_restart,该符号在函数 "public: __thiscall CxImageJPG::CxFileJpg::CxFileJpg(class CxFile *)" (??0CxFileJpg@CxImageJPG@@QAE@PAVCxFile@@@Z) 中被引用rn1>ximajpg.obj : error LNK2019: 无法解析的外部符号 _jpeg_finish_compress,该符号在函数 "public: bool __thiscall CxImageJPG::Encode(class CxFile *)" (?Encode@CxImageJPG@@QAE_NPAVCxFile@@@Z) 中被引用rn1>ximajpg.obj : error LNK2019: 无法解析的外部符号 _jpeg_write_scanlines,该符号在函数 "public: bool __thiscall CxImageJPG::Encode(class CxFile *)" (?Encode@CxImageJPG@@QAE_NPAVCxFile@@@Z) 中被引用rn1>ximajpg.obj : error LNK2019: 无法解析的外部符号 _jpeg_start_compress,该符号在函数 "public: bool __thiscall CxImageJPG::Encode(class CxFile *)" (?Encode@CxImageJPG@@QAE_NPAVCxFile@@@Z) 中被引用rn1>ximajpg.obj : error LNK2019: 无法解析的外部符号 _jpeg_simple_progression,该符号在函数 "public: bool __thiscall CxImageJPG::Encode(class CxFile *)" (?Encode@CxImageJPG@@QAE_NPAVCxFile@@@Z) 中被引用rn1>ximajpg.obj : error LNK2019: 无法解析的外部符号 _jpeg_set_quality,该符号在函数 "public: bool __thiscall CxImageJPG::Encode(class CxFile *)" (?Encode@CxImageJPG@@QAE_NPAVCxFile@@@Z) 中被引用rn1>ximajpg.obj : error LNK2019: 无法解析的外部符号 _jpeg_set_colorspace,该符号在函数 "public: bool __thiscall CxImageJPG::Encode(class CxFile *)" (?Encode@CxImageJPG@@QAE_NPAVCxFile@@@Z) 中被引用rn1>ximajpg.obj : error LNK2019: 无法解析的外部符号 _jpeg_set_defaults,该符号在函数 "public: bool __thiscall CxImageJPG::Encode(class CxFile *)" (?Encode@CxImageJPG@@QAE_NPAVCxFile@@@Z) 中被引用rn1>ximajpg.obj : error LNK2019: 无法解析的外部符号 _jpeg_CreateCompress,该符号在函数 "public: bool __thiscall CxImageJPG::Encode(class CxFile *)" (?Encode@CxImageJPG@@QAE_NPAVCxFile@@@Z) 中被引用rn1>ximajpg.obj : error LNK2019: 无法解析的外部符号 _jpeg_destroy_compress,该符号在函数 "public: bool __thiscall CxImageJPG::Encode(class CxFile *)" (?Encode@CxImageJPG@@QAE_NPAVCxFile@@@Z) 中被引用rn1>ximamng.obj : error LNK2019: 无法解析的外部符号 _mng_cleanup,该符号在函数 "public: virtual __thiscall CxImageMNG::~CxImageMNG(void)" (??1CxImageMNG@@UAE@XZ) 中被引用rn1>ximamng.obj : error LNK2019: 无法解析的外部符号 _mng_setcb_getalphaline,该符号在函数 "protected: void __thiscall CxImageMNG::SetCallbacks(struct mng_data_struct *)" (?SetCallbacks@CxImageMNG@@IAEXPAUmng_data_struct@@@Z) 中被引用rn1>ximamng.obj : error LNK2019: 无法解析的外部符号 _mng_setcb_settimer,该符号在函数 "protected: void __thiscall CxImageMNG::SetCallbacks(struct mng_data_struct *)" (?SetCallbacks@CxImageMNG@@IAEXPAUmng_data_struct@@@Z) 中被引用rn1>ximamng.obj : error LNK2019: 无法解析的外部符号 _mng_setcb_gettickcount,该符号在函数 "protected: void __thiscall CxImageMNG::SetCallbacks(struct mng_data_struct *)" (?SetCallbacks@CxImageMNG@@IAEXPAUmng_data_struct@@@Z) 中被引用rn1>ximamng.obj : error LNK2019: 无法解析的外部符号 _mng_setcb_refresh,该符号在函数 "protected: void __thiscall CxImageMNG::SetCallbacks(struct mng_data_struct *)" (?SetCallbacks@CxImageMNG@@IAEXPAUmng_data_struct@@@Z) 中被引用rn1>ximamng.obj : error LNK2019: 无法解析的外部符号 _mng_setcb_getcanvasline,该符号在函数 "protected: void __thiscall CxImageMNG::SetCallbacks(struct mng_data_struct *)" (?SetCallbacks@CxImageMNG@@IAEXPAUmng_data_struct@@@Z) 中被引用rn1>ximamng.obj : error LNK2019: 无法解析的外部符号 _mng_setcb_processheader,该符号在函数 "protected: void __thiscall CxImageMNG::SetCallbacks(struct mng_data_struct *)" (?SetCallbacks@CxImageMNG@@IAEXPAUmng_data_struct@@@Z) 中被引用rn1>ximamng.obj : error LNK2019: 无法解析的外部符号 _mng_setcb_readdata,该符号在函数 "protected: void __thiscall CxImageMNG::SetCallbacks(struct mng_data_struct *)" (?SetCallbacks@CxImageMNG@@IAEXPAUmng_data_struct@@@Z) 中被引用rn1>ximamng.obj : error LNK2019: 无法解析的外部符号 _mng_setcb_closestream,该符号在函数 "protected: void __thiscall CxImageMNG::SetCallbacks(struct mng_data_struct *)" (?SetCallbacks@CxImageMNG@@IAEXPAUmng_data_struct@@@Z) 中被引用rn1>ximamng.obj : error LNK2019: 无法解析的外部符号 _mng_setcb_openstream,该符号在函数 "protected: void __thiscall CxImageMNG::SetCallbacks(struct mng_data_struct *)" (?SetCallbacks@CxImageMNG@@IAEXPAUmng_data_struct@@@Z) 中被引用rn1>ximamng.obj : error LNK2019: 无法解析的外部符号 _mng_setcb_errorproc,该符号在函数 "protected: void __thiscall CxImageMNG::SetCallbacks(struct mng_data_struct *)" (?SetCallbacks@CxImageMNG@@IAEXPAUmng_data_struct@@@Z) 中被引用rn1>ximamng.obj : error LNK2019: 无法解析的外部符号 _mng_get_userdata,该符号在函数 "signed char __cdecl mymngreadstream(struct mng_data_struct *,void *,unsigned int,unsigned int *)" (?mymngreadstream@@YACPAUmng_data_struct@@PAXIPAI@Z) 中被引用rn1>ximamng.obj : error LNK2019: 无法解析的外部符号 _mng_set_canvasstyle,该符号在函数 "signed char __cdecl mymngprocessheader(struct mng_data_struct *,unsigned int,unsigned int)" (?mymngprocessheader@@YACPAUmng_data_struct@@II@Z) 中被引用rn1>ximamng.obj : error LNK2019: 无法解析的外部符号 _mng_display_resume,该符号在函数 "public: bool __thiscall CxImageMNG::Decode(class CxFile *)" (?Decode@CxImageMNG@@QAE_NPAVCxFile@@@Z) 中被引用rn 论坛

opencv2.1 + vs2010 编译问题

10-27

我按照网上的方法安装了CMAKE,opencv2.1,TBB3.0,可是在用CMAKE配置TBB的时候会报错,错误如下:rn[color=#800000]CMake Warning (dev) at apps/haartraining/CMakeLists.txt:4 (link_directories):rn This command specifies the relative pathrnrn .rnrn as a link directory.rnrn Policy CMP0015 is not set: link_directories() treats paths relative to thern source dir. Run "cmake --help-policy CMP0015" for policy details. Use thern cmake_policy command to set the policy and suppress this warning.rnThis warning is for project developers. Use -Wno-dev to suppress it.rnrnCMake Warning (dev) at tests/cv/CMakeLists.txt:47 (get_target_property):rn Policy CMP0026 is not set: Disallow use of the LOCATION target property.rn Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policyrn command to set the policy and suppress this warning.rnrn The LOCATION property should not be read from target "cvtest". Use thern target name directly with add_custom_command, or use the generatorrn expression $, as appropriate.rnrnThis warning is for project developers. Use -Wno-dev to suppress it.rnrnCMake Warning (dev) in src/highgui/CMakeLists.txt:rn Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the linkrn interface. Run "cmake --help-policy CMP0022" for policy details. Use thern cmake_policy command to set the policy and suppress this warning.rnrn Target "highgui" has an INTERFACE_LINK_LIBRARIES property which differsrn from its LINK_INTERFACE_LIBRARIES properties.rnrn INTERFACE_LINK_LIBRARIES:rnrn cxcore;cv;libjasper;libjpeg;libpng;zlib;libtiff;comctl32;gdi32;ole32;vfw32rnrn LINK_INTERFACE_LIBRARIES:rnrn rnrnThis warning is for project developers. Use -Wno-dev to suppress it.rnrnCMake Warning (dev) at tests/cxcore/CMakeLists.txt:47 (get_target_property):rn Policy CMP0026 is not set: Disallow use of the LOCATION target property.rn Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policyrn command to set the policy and suppress this warning.rnrn The LOCATION property should not be read from target "cxcoretest". Use thern target name directly with add_custom_command, or use the generatorrn expression $, as appropriate.rnrnThis warning is for project developers. Use -Wno-dev to suppress it.rnrnCMake Warning (dev) at tests/ml/CMakeLists.txt:53 (get_target_property):rn Policy CMP0026 is not set: Disallow use of the LOCATION target property.rn Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policyrn command to set the policy and suppress this warning.rnrn The LOCATION property should not be read from target "mltest". Use thern target name directly with add_custom_command, or use the generatorrn expression $, as appropriate.rnrnThis warning is for project developers. Use -Wno-dev to suppress it.[/color]rn------------------------------------------------------------------------------------------------------------rnGeneral configuration for opencv 2.1.0 =====================================rnrn Built as dynamic libs?: ONrn Compiler: rn C++ flags (Release): /DWIN32 /D_WINDOWS /W4 /GR /EHsc- /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /MD /O2 /Ob2 /D NDEBUG /Zi rn C++ flags (Debug): /DWIN32 /D_WINDOWS /W4 /GR /EHsc- /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 rn Linker flags (Release): /machine:X86 /INCREMENTAL:NO /debug rn Linker flags (Debug): /machine:X86 /debug /INCREMENTAL rn Image I/O: rn JPEG: buildrn PNG: buildrn TIFF: buildrn JPEG 2000: buildrnrn Interfaces: rn Old Python: 0rn Python: OFFrn Python interpreter: PYTHON_EXECUTABLE-NOTFOUNDrn Python numpy: rn Use IPP: NOrn Use TBB: YESrn Build Documentation 0rnrn Install path: D:/Program Files/opencv2.1/vs2010rnrn cvconfig.h is in: D:/Program Files/opencv2.1/vs2010rn-----------------------------------------------------------------rnrnConfiguring donern然后我编译opencv的时候就不成功,错误诸如:rn错误 56 error C1189: #error : TBB is unable to run on old Windows versions;rn我觉得应该是cmake那里就有问题,所以vs无法编译。。请各位大神帮忙解决啊。。。 论坛

没有更多推荐了,返回首页