params.h error (Bug #2370)


Added by Eguo Wang over 12 years ago. Updated over 11 years ago.


Status:Cancelled Start date:2012-09-19
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:build/install
Target version:2.4.6
Affected version:2.4.0 - 2.4.4 Operating System:
Difficulty: HW Platform:
Pull request:

Description

ENV
OpenCV 2.4.2
Mac OS X 10.8.1
Qt 4.8.1
gcc -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
OUTPUT
g++ -c -pipe -g -gdwarf-2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/macx-g++ -I../QtOpenCV\ 2 -I../../QtSDK/Desktop/Qt/4.8.1/gcc/lib/QtCore.framework/Versions/4/Headers -I../../QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore -I../../QtSDK/Desktop/Qt/4.8.1/gcc/lib/QtGui.framework/Versions/4/Headers -I../../QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui -I../../QtSDK/Desktop/Qt/4.8.1/gcc/include -I. -I../QtOpenCV\ 2 -I. -F/Users/wangeguo/QtSDK/Desktop/Qt/4.8.1/gcc/lib -o main.o ../QtOpenCV\ 2/main.cpp
In file included from ../../QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qnamespace.h:45,
                 from ../../QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qobjectdefs.h:45,
                 from ../../QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qobject.h:47,
                 from ../../QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qcoreapplication.h:45,
                 from ../../QtSDK/Desktop/Qt/4.8.1/gcc/lib/QtGui.framework/Versions/4/Headers/qapplication.h:45,
                 from ../../QtSDK/Desktop/Qt/4.8.1/gcc/lib/QtGui.framework/Versions/4/Headers/QApplication:1,
                 from ../QtOpenCV 2/main.cpp:5:
../../QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qglobal.h:328:6: warning: #warning "This version of Mac OS X is unsupported" 
/usr/local/include/opencv2/flann/params.h: In instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’:
/usr/local/include/opencv2/flann/params.h:87:   instantiated from here
/usr/local/include/opencv2/flann/params.h:87: error: explicit instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’ but no definition available
/usr/local/include/opencv2/flann/params.h: In instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’:
/usr/local/include/opencv2/flann/params.h:87:   instantiated from here
/usr/local/include/opencv2/flann/params.h:87: error: explicit instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’ but no definition available
/usr/local/include/opencv2/flann/params.h: In instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’:
/usr/local/include/opencv2/flann/params.h:87:   instantiated from here
/usr/local/include/opencv2/flann/params.h:87: error: explicit instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’ but no definition available
/usr/local/include/opencv2/flann/params.h: In instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’:
/usr/local/include/opencv2/flann/params.h:87:   instantiated from here
/usr/local/include/opencv2/flann/params.h:87: error: explicit instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’ but no definition available
/usr/local/include/opencv2/flann/params.h: In instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’:
/usr/local/include/opencv2/flann/params.h:87:   instantiated from here
/usr/local/include/opencv2/flann/params.h:87: error: explicit instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’ but no definition available
make: *** [main.o] Error 1

Associated revisions

Revision af9368d3
Added by Roman Donchenko about 11 years ago

Merge pull request #2370 from ilya-lavrenov:cuda_nlm_typo

History

Updated by Vadim Pisarevsky over 12 years ago

I suspect, there is some conflict between Qt and FLANN. I see that <iostream> is included in params.h, so in theory it should not produce that error message. Try to exchange Qt and flann includes in your source files.

  • Target version set to 2.4.3

Updated by Eguo Wang over 12 years ago

I tried, but still wrong. you can see the source code here: http://qt-apps.org/content/show.php/Qt+Opencv+webcam+viewer?content=89995

Vadim Pisarevsky wrote:

I suspect, there is some conflict between Qt and FLANN. I see that <iostream> is included in params.h, so in theory it should not produce that error message. Try to exchange Qt and flann includes in your source files.

Updated by stella podgornik over 12 years ago

i got the same error. same environment. not using Qt

Updated by Vadim Pisarevsky over 12 years ago

  • Target version deleted (2.4.3)
  • Assignee deleted (Marius Muja)

Updated by Kirill Kornyakov over 12 years ago

  • Target version set to Next Hackathon

Updated by Kirill Kornyakov over 11 years ago

  • Description changed from == ENV == OpenCV 2.4.2 Mac OS X 10.8.1 Qt 4.8.1 gcc -v Using built-in sp... to == ENV == <pre> OpenCV 2.4.2 Mac OS X 10.8.1 Qt 4.8.1 gcc -v Usin... More
  • Affected version set to 2.4.0 - 2.4.4

Updated by Kirill Kornyakov over 11 years ago

Eguo, Stella,

Could you please create a repro sample? Currently it is almost impossible to reproduce your issue, since we don't have your sources and build scripts. It is even hard to understand that you're trying to build some other application, not the OpenCV itself... Finally, you should try with the latest version of OpenCV. It could either resolve the issue, or to loose compatibility with your sources at all =)

  • Status changed from Open to Cancelled
  • Category changed from flann to build/install
  • Target version changed from Next Hackathon to 2.4.6

Also available in: Atom PDF