Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source code error within ofxCsv.cpp #119

Open
sorlax2410 opened this issue Nov 8, 2018 · 10 comments
Open

Source code error within ofxCsv.cpp #119

sorlax2410 opened this issue Nov 8, 2018 · 10 comments

Comments

@sorlax2410
Copy link

errors.txt

@sorlax2410
Copy link
Author

I am using OpenFramework v0.10.0_linuxarmv6l_release. RPI version 4.9, armv6L

@sorlax2410
Copy link
Author

The error of version 0.9.8 is cannot find ofVideoBaseTypes.h in ofxCv

@sorlax2410
Copy link
Author

During the use of OpenFrameworks v0.9.8, the same errors occurred just like issue below:
kylemcdonald/ofxFaceTracker-iOS#1

Now trying OF nightly build as the suggested solution

@sorlax2410
Copy link
Author

Met the same error as the v0.10.0

@prisikarm
Copy link

prisikarm commented Feb 21, 2019

having the same ofxCsv.cpp compilation error (PI3B, of0.10.0, jessie)
any ideas?

In file included from /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:33:0, from /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:31: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:45:19: error: ‘string’ does not name a type ofxCsvRow(const string &cols, const string &separator=","); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:45:39: error: ‘string’ does not name a type ofxCsvRow(const string &cols, const string &separator=","); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:48:19: error: ‘vector’ does not name a type ofxCsvRow(const vector<string> &cols); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:48:25: error: expected ‘,’ or ‘...’ before ‘<’ token ofxCsvRow(const vector<string> &cols); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:64:19: error: ‘string’ does not name a type void load(const string &cols, const string &separator=","); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:64:39: error: ‘string’ does not name a type void load(const string &cols, const string &separator=","); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:71:19: error: ‘vector’ does not name a type void load(const vector<string> &cols); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:71:25: error: expected ‘,’ or ‘...’ before ‘<’ token void load(const vector<string> &cols); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:88:3: error: ‘string’ does not name a type string toString(bool quote=false, const string &separator=","); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:91:10: error: ‘ostream’ does not name a type friend ostream& operator<<(ostream &ostr, const ofxCsvRow &row); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:116:3: error: ‘string’ does not name a type string getString(int col) const; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:139:18: error: ‘string’ has not been declared void addString(string what); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:173:27: error: ‘string’ has not been declared void setString(int col, string what); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:208:30: error: ‘string’ has not been declared void insertString(int col, string what); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:228:3: error: ‘vector’ does not name a type vector<string>& getData(); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:237:3: error: ‘vector’ does not name a type vector<string>::iterator begin(); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:238:3: error: ‘vector’ does not name a type vector<string>::iterator end(); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:239:3: error: ‘vector’ does not name a type vector<string>::const_iterator begin() const; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:240:3: error: ‘vector’ does not name a type vector<string>::const_iterator end() const; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:241:3: error: ‘vector’ does not name a type vector<string>::reverse_iterator rbegin(); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:242:3: error: ‘vector’ does not name a type vector<string>::reverse_iterator rend(); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:243:3: error: ‘vector’ does not name a type vector<string>::const_reverse_iterator rbegin() const; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:244:3: error: ‘vector’ does not name a type vector<string>::const_reverse_iterator rend() const; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:247:12: error: ‘vector’ does not name a type operator vector<string>() const; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:250:3: error: ‘string’ does not name a type string& operator[](size_t index); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:253:3: error: ‘string’ does not name a type string& at(size_t index); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:256:3: error: ‘string’ does not name a type string& front(); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:259:3: error: ‘string’ does not name a type string& back(); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:275:10: error: ‘string’ does not name a type static string trimString(const string &s); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:282:10: error: ‘vector’ does not name a type static vector<string> fromString(const string &row, const string &separator); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:290:10: error: ‘string’ does not name a type static string toString(const vector<string> &row, bool quote, const string &separator); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:295:3: error: ‘vector’ does not name a type vector<string> data; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:45:57: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive] ofxCsvRow(const string &cols, const string &separator=","); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:64:57: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive] void load(const string &cols, const string &separator=","); ^ In file included from /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:31:0: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:68:19: error: ‘string’ does not name a type bool load(const string &path, const string &separator, const string &comment); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:68:39: error: ‘string’ does not name a type bool load(const string &path, const string &separator, const string &comment); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:68:64: error: ‘string’ does not name a type bool load(const string &path, const string &separator, const string &comment); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:80:19: error: ‘string’ does not name a type bool load(const string &path, const string &separator); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:80:39: error: ‘string’ does not name a type bool load(const string &path, const string &separator); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:90:19: error: ‘string’ does not name a type bool load(const string &path=""); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:100:19: error: ‘string’ does not name a type bool save(const string &path, bool quote, const string &separator); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:100:51: error: ‘string’ does not name a type bool save(const string &path, bool quote, const string &separator); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:110:19: error: ‘string’ does not name a type bool save(const string &path="", bool quote=false); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:118:25: error: ‘string’ does not name a type bool createFile(const string &path); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:127:19: error: ‘vector’ does not name a type void load(const vector<ofxCsvRow> &rows); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:127:25: error: expected ‘,’ or ‘...’ before ‘<’ token void load(const vector<ofxCsvRow> &rows); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:134:19: error: ‘vector’ does not name a type void load(const vector<vector<string>> &rows); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:134:25: error: expected ‘,’ or ‘...’ before ‘<’ token void load(const vector<vector<string>> &rows); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:134:8: error: ‘void ofxCsv::load(int)’ cannot be overloaded void load(const vector<vector<string>> &rows); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:127:8: error: with ‘void ofxCsv::load(int)’ void load(const vector<ofxCsvRow> &rows); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:202:3: error: ‘vector’ does not name a type vector<ofxCsvRow>& getData(); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:212:3: error: ‘vector’ does not name a type vector<ofxCsvRow>::iterator begin(); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:213:3: error: ‘vector’ does not name a type vector<ofxCsvRow>::iterator end(); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:214:3: error: ‘vector’ does not name a type vector<ofxCsvRow>::const_iterator begin() const; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:215:3: error: ‘vector’ does not name a type vector<ofxCsvRow>::const_iterator end() const; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:216:3: error: ‘vector’ does not name a type vector<ofxCsvRow>::reverse_iterator rbegin(); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:217:3: error: ‘vector’ does not name a type vector<ofxCsvRow>::reverse_iterator rend(); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:218:3: error: ‘vector’ does not name a type vector<ofxCsvRow>::const_reverse_iterator rbegin() const; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:219:3: error: ‘vector’ does not name a type vector<ofxCsvRow>::const_reverse_iterator rend() const; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:222:12: error: ‘vector’ does not name a type operator vector<ofxCsvRow>() const; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:254:3: error: ‘vector’ does not name a type vector<string> fromRowString(const string &row); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:263:3: error: ‘string’ does not name a type string toRowString(const vector<string> &row, bool quote); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:271:3: error: ‘string’ does not name a type string toRowString(const vector<string> &cols); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:274:3: error: ‘string’ does not name a type string getPath() const; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:277:3: error: ‘string’ does not name a type string getSeparator() const; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:280:3: error: ‘string’ does not name a type string getComment() const; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:293:3: error: ‘vector’ does not name a type vector<ofxCsvRow> data; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:295:3: error: ‘string’ does not name a type string filePath; //< Current file path ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:296:3: error: ‘string’ does not name a type string fieldSeparator; //< Field separator, default: comma "," ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:297:3: error: ‘string’ does not name a type string commentPrefix; //< Comment line prefix, default: "#" ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:90:32: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive] bool load(const string &path=""); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:110:32: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive] bool save(const string &path="", bool quote=false); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In constructor ‘ofxCsv::ofxCsv()’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:39:2: error: ‘fieldSeparator’ was not declared in this scope fieldSeparator = ","; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:40:2: error: ‘commentPrefix’ was not declared in this scope commentPrefix = "#"; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: At global scope: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:44:25: error: ‘string’ does not name a type bool ofxCsv::load(const string &path, const string &separator, const string &comment) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:44:45: error: ‘string’ does not name a type bool ofxCsv::load(const string &path, const string &separator, const string &comment) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:44:70: error: ‘string’ does not name a type bool ofxCsv::load(const string &path, const string &separator, const string &comment) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘bool ofxCsv::load(const int&, const int&, const int&)’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:48:13: warning: comparison with string literal results in unspecified behaviour [-Waddress] if(path != "") { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:48:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:49:3: error: ‘filePath’ was not declared in this scope filePath = path; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:51:2: error: ‘fieldSeparator’ was not declared in this scope fieldSeparator = separator; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:52:2: error: ‘commentPrefix’ was not declared in this scope commentPrefix = comment; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:55:42: error: ‘filePath’ was not declared in this scope ofLogVerbose("ofxCsv") << "Loading " << filePath; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:96:3: error: ‘vector’ was not declared in this scope vector<string> cols = fromRowString(line); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:96:3: note: suggested alternative: In file included from /usr/include/c++/4.9/vector:64:0, from /home/pi/openFrameworks/libs/openFrameworks/utils/ofConstants.h:277, from /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:33, from /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:33, from /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:31: /usr/include/c++/4.9/bits/stl_vector.h:214:11: note: ‘std::vector’ class vector : protected _Vector_base<_Tp, _Alloc> ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:96:10: error: ‘string’ was not declared in this scope vector<string> cols = fromRowString(line); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:96:10: note: suggested alternative: In file included from /usr/include/c++/4.9/string:39:0, from /home/pi/openFrameworks/libs/openFrameworks/utils/ofConstants.h:274, from /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsvRow.h:33, from /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.h:33, from /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:31: /usr/include/c++/4.9/bits/stringfwd.h:62:33: note: ‘std::string’ typedef basic_string<char> string; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:96:18: error: ‘cols’ was not declared in this scope vector<string> cols = fromRowString(line); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:96:43: error: ‘fromRowString’ was not declared in this scope vector<string> cols = fromRowString(line); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:97:3: error: ‘data’ was not declared in this scope data.push_back(cols); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:108:9: error: ‘data’ was not declared in this scope expand(data.size(), maxCols); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: At global scope: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:117:25: error: ‘string’ does not name a type bool ofxCsv::load(const string &path, const string &separator) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:117:45: error: ‘string’ does not name a type bool ofxCsv::load(const string &path, const string &separator) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘bool ofxCsv::load(const int&, const int&)’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:118:31: error: ‘commentPrefix’ was not declared in this scope return load(path, separator, commentPrefix); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: At global scope: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:122:25: error: ‘string’ does not name a type bool ofxCsv::load(const string &path) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘bool ofxCsv::load(const int&)’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:123:20: error: ‘fieldSeparator’ was not declared in this scope return load(path, fieldSeparator); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: At global scope: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:127:25: error: ‘string’ does not name a type bool ofxCsv::save(const string &path, bool quote, const string &separator) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:127:57: error: ‘string’ does not name a type bool ofxCsv::save(const string &path, bool quote, const string &separator) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘bool ofxCsv::save(const int&, bool, const int&)’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:129:13: warning: comparison with string literal results in unspecified behaviour [-Waddress] if(path != "") { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:129:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:130:3: error: ‘filePath’ was not declared in this scope filePath = path; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:132:2: error: ‘fieldSeparator’ was not declared in this scope fieldSeparator = separator; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:135:42: error: ‘filePath’ was not declared in this scope ofLogVerbose("ofxCsv") << "Saving " << filePath; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:140:5: error: ‘data’ was not declared in this scope if(data.empty()) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:163:17: error: ‘data’ was not declared in this scope for(auto row : data) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:164:39: error: ‘toRowString’ was not declared in this scope buffer.append(toRowString(row, quote)+"\n"); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: At global scope: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:179:25: error: ‘string’ does not name a type bool ofxCsv::save(const string &path, bool quote) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘bool ofxCsv::save(const int&, bool)’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:180:27: error: ‘fieldSeparator’ was not declared in this scope return save(path, quote, fieldSeparator); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: At global scope: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:184:31: error: ‘string’ does not name a type bool ofxCsv::createFile(const string &path) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘bool ofxCsv::createFile(const int&)’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:186:31: error: invalid user-defined conversion from ‘const int’ to ‘const boost::filesystem::path&’ [-fpermissive] ofFile file(ofToDataPath(path), ofFile::WriteOnly, false); ^ In file included from /usr/include/boost/filesystem.hpp:16:0, from /home/pi/openFrameworks/libs/openFrameworks/utils/ofFileUtils.h:20, from /home/pi/openFrameworks/libs/openFrameworks/utils/ofLog.h:4, from /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:33: /usr/include/boost/filesystem/path.hpp:150:5: note: candidate is: boost::filesystem::path::path(const value_type*) <near match> path(const value_type* s) : m_pathname(s) {} ^ /usr/include/boost/filesystem/path.hpp:150:5: note: no known conversion for argument 1 from ‘const int’ to ‘const value_type* {aka const char*}’ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:186:31: error: invalid conversion from ‘int’ to ‘const value_type* {aka const char*}’ [-fpermissive] ofFile file(ofToDataPath(path), ofFile::WriteOnly, false); ^ In file included from /usr/include/boost/filesystem.hpp:16:0, from /home/pi/openFrameworks/libs/openFrameworks/utils/ofFileUtils.h:20, from /home/pi/openFrameworks/libs/openFrameworks/utils/ofLog.h:4, from /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:33: /usr/include/boost/filesystem/path.hpp:150:5: note: initializing argument 1 of ‘boost::filesystem::path::path(const value_type*)’ path(const value_type* s) : m_pathname(s) {} ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: At global scope: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:193:25: error: ‘vector’ does not name a type void ofxCsv::load(const vector<ofxCsvRow> &rows) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:193:31: error: expected ‘,’ or ‘...’ before ‘<’ token void ofxCsv::load(const vector<ofxCsvRow> &rows) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘void ofxCsv::load(int)’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:195:2: error: ‘data’ was not declared in this scope data = rows; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:195:9: error: ‘rows’ was not declared in this scope data = rows; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: At global scope: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:199:25: error: ‘vector’ does not name a type void ofxCsv::load(const vector<vector<string>> &rows) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:199:31: error: expected ‘,’ or ‘...’ before ‘<’ token void ofxCsv::load(const vector<vector<string>> &rows) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:199:6: error: redefinition of ‘void ofxCsv::load(int)’ void ofxCsv::load(const vector<vector<string>> &rows) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:193:6: note: ‘void ofxCsv::load(int)’ previously defined here void ofxCsv::load(const vector<ofxCsvRow> &rows) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘void ofxCsv::expand(int, int)’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:208:20: error: ‘MAX’ was not declared in this scope rows = MAX(rows, 0); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:209:5: error: ‘data’ was not declared in this scope if(data.empty()) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:213:8: error: ‘data’ was not declared in this scope while(data.size() < rows) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:216:18: error: ‘data’ was not declared in this scope for(auto &row : data) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘void ofxCsv::clear()’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:223:18: error: ‘data’ was not declared in this scope for(auto &row : data) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:226:2: error: ‘data’ was not declared in this scope data.clear(); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘unsigned int ofxCsv::getNumRows() const’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:233:9: error: ‘data’ was not declared in this scope return data.size(); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘unsigned int ofxCsv::getNumCols(int) const’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:238:23: error: ‘data’ was not declared in this scope if(row > -1 && row < data.size()) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘ofxCsvRow& ofxCsv::getRow(int)’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:247:9: error: ‘data’ was not declared in this scope return data[index]; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘void ofxCsv::addRow(ofxCsvRow&)’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:252:2: error: ‘data’ was not declared in this scope data.push_back(row); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘void ofxCsv::addRow()’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:257:2: error: ‘data’ was not declared in this scope data.push_back(ofxCsvRow()); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘void ofxCsv::setRow(int, ofxCsvRow&)’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:263:5: error: ‘data’ was not declared in this scope if(data.empty() && index == 0) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:269:2: error: ‘data’ was not declared in this scope data[index] = row; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘void ofxCsv::insertRow(int, ofxCsvRow&)’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:275:5: error: ‘data’ was not declared in this scope if(data.empty() && index == 0) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:282:2: error: ‘data’ was not declared in this scope data[index].expand(c); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘void ofxCsv::removeRow(int)’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:287:13: error: ‘data’ was not declared in this scope if(index < data.size()) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘void ofxCsv::print() const’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:294:18: error: ‘data’ was not declared in this scope for(auto &row : data) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: At global scope: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:302:1: error: ‘vector’ does not name a type vector<ofxCsvRow>& ofxCsv::getData() { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:307:1: error: ‘vector’ does not name a type vector<ofxCsvRow>::iterator ofxCsv::begin() { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:312:1: error: ‘vector’ does not name a type vector<ofxCsvRow>::iterator ofxCsv::end() { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:317:1: error: ‘vector’ does not name a type vector<ofxCsvRow>::const_iterator ofxCsv::begin() const{ ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:322:1: error: ‘vector’ does not name a type vector<ofxCsvRow>::const_iterator ofxCsv::end() const{ ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:327:1: error: ‘vector’ does not name a type vector<ofxCsvRow>::reverse_iterator ofxCsv::rbegin() { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:332:1: error: ‘vector’ does not name a type vector<ofxCsvRow>::reverse_iterator ofxCsv::rend() { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:337:1: error: ‘vector’ does not name a type vector<ofxCsvRow>::const_reverse_iterator ofxCsv::rbegin() const{ ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:342:1: error: ‘vector’ does not name a type vector<ofxCsvRow>::const_reverse_iterator ofxCsv::rend() const{ ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:347:18: error: ‘vector’ does not name a type ofxCsv::operator vector<ofxCsvRow>() const { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘ofxCsvRow& ofxCsv::operator[](size_t)’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:353:9: error: ‘data’ was not declared in this scope return data[index]; ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘ofxCsvRow& ofxCsv::at(size_t)’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:358:9: error: ‘data’ was not declared in this scope return data.at(index); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘ofxCsvRow& ofxCsv::front()’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:363:9: error: ‘data’ was not declared in this scope return data.front(); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘ofxCsvRow& ofxCsv::back()’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:368:9: error: ‘data’ was not declared in this scope return data.back(); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘size_t ofxCsv::size() const’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:373:9: error: ‘data’ was not declared in this scope return data.size(); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘bool ofxCsv::empty() const’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:378:9: error: ‘data’ was not declared in this scope return data.empty(); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘void ofxCsv::trim()’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:385:25: error: ‘data’ was not declared in this scope for(int row = 0; row < data.size(); row++) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: At global scope: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:391:1: error: ‘vector’ does not name a type vector<string> ofxCsv::fromRowString(const string &row) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:396:1: error: ‘string’ does not name a type string ofxCsv::toRowString(const vector<string> &row, bool quote) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:401:1: error: ‘string’ does not name a type string ofxCsv::toRowString(const vector<string> &row) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:406:1: error: ‘string’ does not name a type string ofxCsv::getPath() const { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:411:1: error: ‘string’ does not name a type string ofxCsv::getSeparator() const { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:416:1: error: ‘string’ does not name a type string ofxCsv::getComment() const { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘void ofxCsv::expandRow(int, int)’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:424:8: error: ‘data’ was not declared in this scope while(data.size() <= row) { ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:427:2: error: ‘data’ was not declared in this scope data[row].expand(cols); ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘bool ofxCsv::load(const int&, const int&)’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:119:1: error: control reaches end of non-void function [-Werror=return-type] } ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘bool ofxCsv::load(const int&)’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:124:1: error: control reaches end of non-void function [-Werror=return-type] } ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘bool ofxCsv::save(const int&, bool)’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:181:1: error: control reaches end of non-void function [-Werror=return-type] } ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘unsigned int ofxCsv::getNumRows() const’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:234:1: error: control reaches end of non-void function [-Werror=return-type] } ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘ofxCsvRow& ofxCsv::getRow(int)’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:248:1: error: control reaches end of non-void function [-Werror=return-type] } ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘ofxCsvRow& ofxCsv::operator[](size_t)’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:354:1: error: control reaches end of non-void function [-Werror=return-type] } ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘ofxCsvRow& ofxCsv::at(size_t)’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:359:1: error: control reaches end of non-void function [-Werror=return-type] } ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘ofxCsvRow& ofxCsv::front()’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:364:1: error: control reaches end of non-void function [-Werror=return-type] } ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘ofxCsvRow& ofxCsv::back()’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:369:1: error: control reaches end of non-void function [-Werror=return-type] } ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘size_t ofxCsv::size() const’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:374:1: error: control reaches end of non-void function [-Werror=return-type] } ^ /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp: In member function ‘bool ofxCsv::empty() const’: /home/pi/openFrameworks/addons/ofxCsv/src/ofxCsv.cpp:379:1: error: control reaches end of non-void function [-Werror=return-type] } ^ cc1plus: some warnings being treated as errors /home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:358: recipe for target '/home/pi/openFrameworks/addons/obj/linuxarmv6l/Release/ofxCsv/src/ofxCsv.o' failed make[1]: *** [/home/pi/openFrameworks/addons/obj/linuxarmv6l/Release/ofxCsv/src/ofxCsv.o] Error 1 make[1]: Leaving directory '/home/pi/openFrameworks/apps/myApps/Footfall' /home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:124: recipe for target 'Release' failed make: *** [Release] Error 2

@bgmario
Copy link

bgmario commented Mar 5, 2019

You need to add this line :
using namespace std;
At the beginning of each file in the folder "/openFrameworks/addons/ofxCsv/src"
And then you also have to change the function "MAX" to "max" in lowercase in every file that uses that function.

@kushalembsys
Copy link

kushalembsys commented Mar 13, 2019

There are more compilation errors. Seems like mmal_clock.h not included.

cc1: warning: command line option ‘-std=c++1y’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-std=c++1y’ is valid for C++/ObjC++ but not for C
In file included from /home/pi/openFrameworks/addons/ofxCvPiCam/libs/mmal/src/interface/mmal/util/mmal_graph.c:32:0:
/home/pi/openFrameworks/addons/ofxCvPiCam/libs/mmal/src/interface/mmal/core/mmal_port_private.h:93:67: error: unknown type name ‘MMAL_CLOCK_PAYLOAD_T’
typedef void (*MMAL_PORT_CLOCK_EVENT_CB)(MMAL_PORT_T *port, const MMAL_CLOCK_PAYLOAD_T *event);
^
make[1]: *** [/home/pi/openFrameworks/addons/obj/linuxarmv6l/Release/ofxCvPiCam/libs/mmal/src/interface/mmal/util/mmal_graph.o] Error 1
make[1]: *** Waiting for unfinished jobs....
/home/pi/openFrameworks/addons/ofxHttpUtils/src/ofxHttpUtils.cpp: In constructor ‘ofxHttpUtils::ofxHttpUtils()’:
/home/pi/openFrameworks/addons/ofxHttpUtils/src/ofxHttpUtils.cpp:50:87: error: no matching function for call to ‘Poco::Net::Context::Context(Poco::Net::Context::Usage, const char [1], Poco::Net::Context::VerificationMode)’
Context::Ptr pContext = new Context(Context::CLIENT_USE, "", Context::VERIFY_NONE);
^
/home/pi/openFrameworks/addons/ofxHttpUtils/src/ofxHttpUtils.cpp:50:87: note: candidate is:
In file included from /usr/include/Poco/Net/SSLManager.h:45:0,
from /home/pi/openFrameworks/addons/ofxHttpUtils/src/ofxHttpUtils.cpp:12:
/usr/include/Poco/Net/Context.h:106:2: note: Poco::Net::Context::Context(Poco::Net::Context::Usage, const string&, const string&, const string&, Poco::Net::Context::VerificationMode, int, bool, const string&)
Context(
^
/usr/include/Poco/Net/Context.h:106:2: note: candidate expects 8 arguments, 3 provided
make[1]: *** [/home/pi/openFrameworks/addons/obj/linuxarmv6l/Release/ofxHttpUtils/src/ofxHttpUtils.o] Error 1
make: *** [Release] Error 2

@bgmario
Copy link

bgmario commented Mar 13, 2019

You need ofxPoco addon
Try this:
Edit the file addons.make (openFrameworks/apps/Footfall/Footfall/addons.make) by adding this line before ofxHttpUtils: ofxPoco

@kushalembsys
Copy link

You need ofxPoco addon
Try this:
Edit the file addons.make (openFrameworks/apps/Footfall/Footfall/addons.make) by adding this line before ofxHttpUtils: ofxPoco

Still same compile errors with your above suggested fix. I see the issue is with version of Poco.
Same compilation error also occurs in 'develop' branch.
Please send me the hardware and software information on which this footfall repo compiles fine. So that I can replicate same over here.

Below is software and hardware information that I am using for footfall:
1] RPi3 B with Raspbian jessie (tried with Raspbian Stretch too)
2] PiCam v2
3] openFramework v0.10.0 (arm6 version)
4] All other addons are as per latest release.

@bgmario
Copy link

bgmario commented Mar 14, 2019

The hardware and software I use is:

  1. RPi3 B+ with Raspbian Stretch
  2. PiCam v2
  3. openFramework v0.10.1 (arm6 version)

The mistake you have, I had it and is because it does not compile ofxHttpUtils(in this project) in version 0.10.X of OF and therefore you need to use ofxPoco, what I see is that you use Jessie and the recommended version of OF is 0.9.8 (with which it is not necessary to have ofxPoco).
Have you tried OF version 0.9.8?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants