Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

OF on ubuntu, Poco throwing error while compiling

$
0
0

I recently installed OF latest build on Ubuntu 15.10 64 bit. I followed all the steps displayed in guide for installation. All the dependencies and libraries are installed correctly using given scripts. I am using CodeBlock as IDE. Now, when I tried to compile one of the example I got several errors related to Poco. I trie to compile using IDE and command line too, just to make sure CodeBlocks is not creating any problems. Error reads like this:

"/media/rikil/Data/of_v0.8.4_linux64_release/libs/openFrameworksCompiled/project/../../../libs/openFrameworks/utils/ofFileUtils.cpp:1429: undefined reference to `Poco::Path::Path(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'"

There are another 50 similar errors related to undefined reference to Poco .

Also, when I try to compile Project Generator, Is also shows error.

    In file included from src/projects/CBLinuxProject.h:12:0,
                 from src/testApp.h:6,
                 from src/main.cpp:2:
src/pugixmlLib/src/pugixml.hpp:97:10: error: reference to 'basic_string' is ambiguous
  typedef std::basic_string<PUGIXML_CHAR, std::char_traits<PUGIXML_CHAR>, std::a
          ^
In file included from src/projects/CBLinuxProject.h:12:0,
                 from src/testApp.h:6,
                 from src/main.cpp:2:
src/pugixmlLib/src/pugixml.hpp:37:57: note: candidates are: template<class _Elem, class _Traits, class _Ax> class std::basic_string
  template <class _Elem, class _Traits, class _Ax> class basic_string;
                                                         ^
In file included from /usr/include/c++/5/string:39:0,
                 from ../../../libs/openFrameworks/utils/ofConstants.h:347,
                 from ../../../libs/openFrameworks/ofMain.h:5,
                 from src/main.cpp:1:
/usr/include/c++/5/bits/stringfwd.h:71:11: note:                 template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string
     class basic_string;
           ^
In file included from src/projects/CBLinuxProject.h:12:0,
                 from src/testApp.h:6,
                 from src/main.cpp:2:
src/pugixmlLib/src/pugixml.hpp:505:3: error: 'string_t' does not name a type
   string_t path(char_t delimiter = '/') const;
   ^
src/pugixmlLib/src/pugixml.hpp:918:3: error: 'string_t' does not name a type
   string_t evaluate_string(const xpath_node& n) const;
   ^
src/pugixmlLib/src/pugixml.hpp:1066:2: error: reference to 'basic_string' is ambiguous
  std::basic_string<char, std::char_traits<char>, std::allocator<char> > PUGIXML
  ^
In file included from src/projects/CBLinuxProject.h:12:0,
                 from src/testApp.h:6,
                 from src/main.cpp:2:
src/pugixmlLib/src/pugixml.hpp:37:57: note: candidates are: template<class _Elem, class _Traits, class _Ax> class std::basic_string
  template <class _Elem, class _Traits, class _Ax> class basic_string;
                                                         ^
In file included from /usr/include/c++/5/string:39:0,
                 from ../../../libs/openFrameworks/utils/ofConstants.h:347,
                 from ../../../libs/openFrameworks/ofMain.h:5,
                 from src/main.cpp:1:
/usr/include/c++/5/bits/stringfwd.h:71:11: note:                 template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string
     class basic_string;
           ^
In file included from src/projects/CBLinuxProject.h:12:0,
                 from src/testApp.h:6,
                 from src/main.cpp:2:
src/pugixmlLib/src/pugixml.hpp:1067:2: error: reference to 'basic_string' is ambiguous
  std::basic_string<char, std::char_traits<char>, std::allocator<char> > PUGIXML
  ^
In file included from src/projects/CBLinuxProject.h:12:0,
                 from src/testApp.h:6,
                 from src/main.cpp:2:
src/pugixmlLib/src/pugixml.hpp:37:57: note: candidates are: template<class _Elem, class _Traits, class _Ax> class std::basic_string
  template <class _Elem, class _Traits, class _Ax> class basic_string;
                                                         ^
In file included from /usr/include/c++/5/string:39:0,
                 from ../../../libs/openFrameworks/utils/ofConstants.h:347,
                 from ../../../libs/openFrameworks/ofMain.h:5,
                 from src/main.cpp:1:
/usr/include/c++/5/bits/stringfwd.h:71:11: note:                 template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string
     class basic_string;
           ^
In file included from src/projects/CBLinuxProject.h:12:0,
                 from src/testApp.h:6,
                 from src/main.cpp:2:
src/pugixmlLib/src/pugixml.hpp:1070:2: error: reference to 'basic_string' is ambiguous
  std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> 
  ^
In file included from src/projects/CBLinuxProject.h:12:0,
                 from src/testApp.h:6,
                 from src/main.cpp:2:
src/pugixmlLib/src/pugixml.hpp:37:57: note: candidates are: template<class _Elem, class _Traits, class _Ax> class std::basic_string
  template <class _Elem, class _Traits, class _Ax> class basic_string;
                                                         ^
In file included from /usr/include/c++/5/string:39:0,
                 from ../../../libs/openFrameworks/utils/ofConstants.h:347,
                 from ../../../libs/openFrameworks/ofMain.h:5,
                 from src/main.cpp:1:
/usr/include/c++/5/bits/stringfwd.h:71:11: note:                 template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string
     class basic_string;
           ^
In file included from src/projects/CBLinuxProject.h:12:0,
                 from src/testApp.h:6,
                 from src/main.cpp:2:
src/pugixmlLib/src/pugixml.hpp:1071:2: error: reference to 'basic_string' is ambiguous
  std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> 
  ^
In file included from src/projects/CBLinuxProject.h:12:0,
                 from src/testApp.h:6,
                 from src/main.cpp:2:
src/pugixmlLib/src/pugixml.hpp:37:57: note: candidates are: template<class _Elem, class _Traits, class _Ax> class std::basic_string
  template <class _Elem, class _Traits, class _Ax> class basic_string;
                                                         ^
In file included from /usr/include/c++/5/string:39:0,
                 from ../../../libs/openFrameworks/utils/ofConstants.h:347,
                 from ../../../libs/openFrameworks/ofMain.h:5,
                 from src/main.cpp:1:
/usr/include/c++/5/bits/stringfwd.h:71:11: note:                 template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string
     class basic_string;
           ^
In file included from src/testApp.h:15:0,
                 from src/main.cpp:2:
src/textButton.h: In member function 'void textButton::setText(std::__cxx11::string)':
src/textButton.h:52:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < breakUp.size(); i++){
                           ^
src/textButton.h:54:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (i != breakUp.size() -1) text += deliminater;
                   ^
src/textButton.h: In member function 'void textButton::draw()':
src/textButton.h:133:23: warning: unused variable 'h' [-Wunused-variable]
                 float h = rectString.height;
                       ^
../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:191: recipe for target 'obj/linux64/Release/src/main.o' failed
make[1]: *** [obj/linux64/Release/src/main.o] Error 1
make[1]: Leaving directory '/media/rikil/Data/of_v0.8.4_linux64_release/apps/projectGenerator/projectGeneratorSimple'
../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:126: recipe for target 'Release' failed
make: *** [Release] Error 2
there has been a problem compiling the projectGenerator
please report this problem in the forums

Viewing all articles
Browse latest Browse all 40524

Trending Articles