Author Topic: opencv sous code::blocks  (Read 8113 times)

Offline faiza

  • Single posting newcomer
  • *
  • Posts: 2
opencv sous code::blocks
« on: October 29, 2009, 09:11:00 am »
i tested this wikiihttp://opencv.willowgarage.com/wiki/CodeBlocks and ihave this message
Quote


C:\Program Files\OpenCV\cxcore\include\cxtypes.h|145|error: ISO C++ does not support `long long'|
C:\Program Files\OpenCV\cxcore\include\cxtypes.h|146|error: ISO C++ does not support `long long'|
C:\Program Files\OpenCV\cxcore\include\cxtypes.h|169|error: `int64' does not name a type|
C:\Program Files\OpenCV\cxcore\include\cxtypes.h|169|error: extra semicolon|
C:\Program Files\OpenCV\cxcore\include\cxtypes.h|299|error: `cvRNG' declared as an `inline' variable|
C:\Program Files\OpenCV\cxcore\include\cxtypes.h|299|error: `int64' was not declared in this scope|
C:\Program Files\OpenCV\cxcore\include\cxtypes.h|300|error: expected `,' or `;' before '{' token|
C:\Program Files\OpenCV\cxcore\include\cxcore.h|1733|error: `int64' does not name a type|
C:\Program Files\OpenCV\cxcore\include\cxcore.h|1733|error: extra `;'|
C:\Users\.........k\Desktop\1\test_oepncv\test_oepncv\main.cpp|4|cvaux.h: No such file or directory|
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\include\c++\3.4.5\cwchar|161|error: `::swprintf' has not been declared|
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\include\c++\3.4.5\cwchar|168|error: `::vswprintf' has not been declared|
||=== Build finished: 12 errors, 0 warnings ===|

[/quote
please help me

i have juste this error
C:\Program Files\OpenCV1\cxcore\include\cxtypes.h|144|error: ISO C++ does not support `long long'|
C:\Program Files\OpenCV1\cxcore\include\cxtypes.h|145|error: ISO C++ does not support `long long'|
||=== Build finished: 2 errors, 0 warnings ===|
il suffi juste d'ajouter
-Wno-long-long a other option
merci
« Last Edit: October 29, 2009, 10:46:58 am by faiza »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: opencv sous code::blocks
« Reply #1 on: October 29, 2009, 09:50:37 am »
C:\Users\.........k\Desktop\1\test_oepncv\test_oepncv\main.cpp|4|cvaux.h: No such file or directory|
The compiler tells you what's wrong. Check if you really have that file, where it is and adjust your (compiler/linker) include path's setup. Notice that this is not a C::B issue, so your topic might get locked sooner or later.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: opencv sous code::blocks
« Reply #2 on: October 29, 2009, 10:13:13 am »
i tested this wikiihttp://opencv.willowgarage.com/wiki/CodeBlocks and ihave
haha, that wiki page of codeblocks was created by me. :D

It seems you have the wrong include file path setting.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline faiza

  • Single posting newcomer
  • *
  • Posts: 2
Re: opencv sous code::blocks
« Reply #3 on: October 29, 2009, 04:29:28 pm »
but now i have nother type of
Quote
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp||In member function `CvDefParam* CvVSModule::NewParam(char*)':|
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp|123|error: `strdup' was not declared in this scope|
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp||In member function `CvDefParam* CvVSModule::GetParamPtr(char*)':|
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp|148|error: `strcasecmp' was not declared in this scope|
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp||In member function `void CvVSModule::AddParam(char*, char**)':|
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp|176|error: `strdup' was not declared in this scope|
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp||In member function `void CvVSModule::CommentParam(char*, char*)':|
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp|188|error: `strdup' was not declared in this scope|
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp||In member function `void CvVSModule::SetTypeName(char*)':|
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp|190|error: `strdup' was not declared in this scope|
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp||In member function `void CvVSModule::SetModuleName(char*)':|
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp|191|error: `strdup' was not declared in this scope|
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp||In member function `void CvVSModule::DelParam(char*)':|
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp|198|error: `strcasecmp' was not declared in this scope|
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp||In member function `void CvVSModule::SetParam(char*, double)':|
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp|249|error: `strcasecmp' was not declared in this scope|
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp||In member function `void CvVSModule::SetParamStr(char*, char*)':|
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp|260|error: `strcasecmp' was not declared in this scope|
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp|265|error: `strdup' was not declared in this scope|
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp||In member function `int CvVSModule::IsModuleTypeName(char*)':|
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp|351|error: `strcasecmp' was not declared in this scope|
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp||In member function `int CvVSModule::IsModuleName(char*)':|
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp|359|error: `strcasecmp' was not declared in this scope|
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp||In member function `void CvVSModule::SetNickName(char*)':|
C:\Program Files\OpenCV1\cvaux\include\cvvidsurv.hpp|368|error: `strdup' was not declared in this scope|
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\include\c++\3.4.5\cwchar|161|error: `::swprintf' has not been declared|
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\include\c++\3.4.5\cwchar|168|error: `::vswprintf' has not been declared|

||=== Build finished: 15 errors, 18 warnings ===|


Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: opencv sous code::blocks
« Reply #4 on: October 29, 2009, 04:37:06 pm »
use a more recent MinGW package. such as MinGW 4.4.0 or TDM GCC 4.4.1.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.