Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
glmark2: Fix build errors by enabling c++ 11 features
Browse files Browse the repository at this point in the history
build was failing with errors:
| ../src/image-reader.cpp: In member function 'bool PNGReader::init(const
string&)':
| ../src/image-reader.cpp:123:16: error: 'unique_ptr' in namespace 'std' does
not name a template type
|      const std::unique_ptr<std::istream>
is_ptr(Util::get_resource(filename));
|                 ^
| ../src/image-reader.cpp:124:12: error: 'is_ptr' was not declared in this
scope
|      if (!(*is_ptr)) {
|             ^
| ../src/image-reader.cpp:149:57: error: 'is_ptr' was not declared in this
scope
|      png_set_read_fn(priv_->png, reinterpret_cast<void*>(is_ptr.get()),
|                                                          ^
| ../src/model.cpp: In member function 'bool Model::load_3ds(const string&)':
| ../src/model.cpp:364:16: error: 'unique_ptr' in namespace 'std' does not name
a template type
|      const std::unique_ptr<std::istream>
input_file_ptr(Util::get_resource(filename));
|                 ^
| ../src/model.cpp:365:31: error: 'input_file_ptr' was not declared in this
scope
|      std::istream& input_file(*input_file_ptr);
|                                ^
| ../src/model.cpp: In member function 'bool Model::load_obj(const string&)':
| ../src/model.cpp:684:16: error: 'unique_ptr' in namespace 'std' does not name
a template type
|      const std::unique_ptr<std::istream>
input_file_ptr(Util::get_resource(filename));
|                 ^
| ../src/model.cpp:685:30: error: 'input_file_ptr' was not declared in this
scope
|      std::istream& inputFile(*input_file_ptr);

Signed-off-by: Amarnath Valluri <[email protected]>
  • Loading branch information
avalluri committed Sep 16, 2016
1 parent 2021d9b commit 0543557
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions meta-ostro-xt/recipes-benchmark/glmark2/glmark2_%.bbappend
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Enable C++11 features
CXXFLAGS += "--std=c++11"

0 comments on commit 0543557

Please sign in to comment.