Errors while running make in rp_sdk folder in Bazaar on PC

Applications, development tools, FPGA, C, WEB
Post Reply
sunil099
Posts: 2
Joined: Mon May 22, 2017 10:22 am

Errors while running make in rp_sdk folder in Bazaar on PC

Post by sunil099 » Fri Jun 30, 2017 12:13 pm

I am essentially trying to build redpitaya interface on PC,
so while trying to run Redpitaya nginx.conf with all html ,js files of Redpitaya included in my PC ,the nginx running on my PC didnt recognize the rp_module_cmd ,rp_bazaar_dir, rp_bazaar_server and rp_tmp_dir configuration directives of nginx.conf of redpitaya
so I tried installing nginx with the third party module given in the Bazaar/nginx folder in github so that nginx web-server would recognize the above mentioned configuration directives and handle the bazaar requests , but while adding the ngx_http_rp_module to nginx on my PC it was throwing me an error "cannot find -lws server",so i tried to run make in rp_sdk folder in /Bazaar/nginx/ngx_ext_modules/ws_server/rp_sdk so that librp_sdk.a could be generated and later running make in ws_server would generate the libws_server.a and this would solve the "cannot find -lws server",error,
but the problem is while running make in rp_sdk folder in /Bazaar/nginx/ngx_ext_modules/ws_server/rp_sdk
I am getting the following errors.

Code: Select all

mkdir -p objs/rp_sdk/
g++ -c -s -Wall -Os -static -std=c++11 -fPIC -I/home/intern/build/RedPitaya/tools/libjson -DNDEBUG -I../../../../tools -I../../../../../Applications/la_pro/src/ -I. DataManager.cpp -o objs/rp_sdk/DataManager.o
In file included from /home/intern/build/RedPitaya/tools/libjson/_internal/Source/JSONAllocator.h:11:0,
                 from /home/intern/build/RedPitaya/tools/libjson/_internal/Source/JSONDefs.h:34,
                 from /home/intern/build/RedPitaya/tools/libjson/libjson.h:4,
                 from BaseParameter.h:3,
                 from DataManager.h:5,
                 from DataManager.cpp:4:
/home/intern/build/RedPitaya/tools/libjson/_internal/Source/JSONDefs/GNU_C.h:26:0: warning: "json_write_priority" redefined [enabled by default]
     #define json_write_priority
 ^
In file included from /home/intern/build/RedPitaya/tools/libjson/_internal/Source/JSONDefs.h:12:0,
                 from /home/intern/build/RedPitaya/tools/libjson/libjson.h:4,
                 from BaseParameter.h:3,
                 from DataManager.h:5,
                 from DataManager.cpp:4:
/home/intern/build/RedPitaya/tools/libjson/_internal/Source/JSONDefs/GNU_C.h:22:0: note: this is the location of the previous definition
     #define json_write_priority __attribute__ ((hot))
 ^
In file included from /home/intern/build/RedPitaya/tools/libjson/libjson.h:4:0,
                 from BaseParameter.h:3,
                 from DataManager.h:5,
                 from DataManager.cpp:4:
/home/intern/build/RedPitaya/tools/libjson/_internal/Source/JSONDefs.h:73:6: warning: #warning , Using -ansi GCC option, but JSON_ISO_STRICT not on, turning it on for you [-Wcpp]
     #warning, Using -ansi GCC option, but JSON_ISO_STRICT not on, turning it on for you
      ^
In file included from DataManager.h:5:0,
                 from DataManager.cpp:4:
BaseParameter.h:23:10: error: ‘JSONNode’ does not name a type
  virtual JSONNode GetJSONObject() = 0; //get JSON-formatted string with parameters or signals
          ^
BaseParameter.h:24:32: error: ‘JSONNode’ has not been declared
  virtual void SetValueFromJSON(JSONNode _node) = 0; // set the m_TmpValue->value from JSON object
                                ^
In file included from Parameter.h:7:0,
                 from CustomParameters.h:6,
                 from DataManager.cpp:5:
misc.h:21:27: error: ‘GetValueFromJSON’ declared as an ‘inline’ variable
 inline T GetValueFromJSON(JSONNode _node, const char* _at)
                           ^
misc.h:21:27: error: template declaration of ‘T GetValueFromJSON’
misc.h:21:27: error: ‘JSONNode’ was not declared in this scope
misc.h:21:43: error: expected primary-expression before ‘const’
 inline T GetValueFromJSON(JSONNode _node, const char* _at)
                                           ^
misc.h:27:28: error: expected initializer before ‘<’ token
 inline int GetValueFromJSON<int>(JSONNode _node, const char* _at)
                            ^
misc.h:35:30: error: expected initializer before ‘<’ token
 inline float GetValueFromJSON<float>(JSONNode _node, const char* _at)
                              ^
misc.h:43:31: error: expected initializer before ‘<’ token
 inline double GetValueFromJSON<double>(JSONNode _node, const char* _at)
                               ^
misc.h:52:29: error: expected initializer before ‘<’ token
 inline bool GetValueFromJSON<bool>(JSONNode _node, const char* _at)
                             ^
misc.h:60:36: error: expected initializer before ‘<’ token
 inline std::string GetValueFromJSON<std::string>(JSONNode _node, const char* _at)
                                    ^
misc.h:68:41: error: expected initializer before ‘<’ token
 inline std::vector<int> GetValueFromJSON<std::vector<int> >(JSONNode _node, const char* _at)
                                         ^
misc.h:83:43: error: expected initializer before ‘<’ token
 inline std::vector<float> GetValueFromJSON<std::vector<float> >(JSONNode _node, const char* _at)
                                           ^
misc.h:98:44: error: expected initializer before ‘<’ token
 inline std::vector<double> GetValueFromJSON<std::vector<double> >(JSONNode _node, const char* _at)
                                            ^
In file included from CustomParameters.h:6:0,
                 from DataManager.cpp:5:
Parameter.h:25:10: error: ‘JSONNode’ does not name a type
  virtual JSONNode GetJSONObject() = 0; //get JSON-formatted string with parameters or signals
          ^
Parameter.h:26:24: error: ‘JSONNode’ has not been declared
  void SetValueFromJSON(JSONNode _node);// set the m_TmpValue->value from JSON object
                        ^
Parameter.h:112:53: error: variable or field ‘SetValueFromJSON’ declared void
 inline void CParameter<T, ValueT>::SetValueFromJSON(JSONNode _node)
                                                     ^
Parameter.h:112:53: error: ‘JSONNode’ was not declared in this scope
In file included from DataManager.cpp:5:0:
CustomParameters.h:28:10: error: ‘JSONNode’ does not name a type
  virtual JSONNode GetJSONObject()
          ^
CustomParameters.h:64:2: error: ‘JSONNode’ does not name a type
  JSONNode GetJSONObject()
  ^
CustomParameters.h:161:2: error: ‘JSONNode’ does not name a type
  JSONNode GetJSONObject()
  ^
CustomParameters.h: In member function ‘bool CCustomSignal<Type>::ForceSend()’:
CustomParameters.h:230:2: warning: no return statement in function returning non-void [-Wreturn-type]
  }
  ^
DataManager.cpp: In function ‘int dbg_printf(const char*, ...)’:
DataManager.cpp:19:22: error: ‘va_start’ was not declared in this scope
   va_start(va, format);
                      ^
DataManager.cpp:21:12: error: ‘va_end’ was not declared in this scope
   va_end(va);
            ^
DataManager.cpp: In member function ‘std::string CDataManager::GetParamsJson()’:
DataManager.cpp:109:2: error: ‘JSONNode’ was not declared in this scope
  JSONNode params(JSON_NODE);
  ^
DataManager.cpp:109:11: error: expected ‘;’ before ‘params’
  JSONNode params(JSON_NODE);
           ^
DataManager.cpp:110:2: error: ‘params’ was not declared in this scope
  params.set_name("parameters");
  ^
DataManager.cpp:113:13: error: expected ‘;’ before ‘n’
    JSONNode n(JSON_NODE);
             ^
DataManager.cpp:114:4: error: ‘n’ was not declared in this scope
    n = m_params[i]->GetJSONObject();
    ^
DataManager.cpp:114:21: error: ‘class CBaseParameter’ has no member named ‘GetJSONObject’
    n = m_params[i]->GetJSONObject();
                     ^
DataManager.cpp:120:11: error: expected ‘;’ before ‘data_node’
  JSONNode data_node(JSON_NODE);
           ^
DataManager.cpp:121:2: error: ‘data_node’ was not declared in this scope
  data_node.set_name("data");
  ^
DataManager.cpp: In member function ‘std::string CDataManager::GetSignalsJson()’:
DataManager.cpp:130:2: error: ‘JSONNode’ was not declared in this scope
  JSONNode signals(JSON_NODE);
  ^
DataManager.cpp:130:11: error: expected ‘;’ before ‘signals’
  JSONNode signals(JSON_NODE);
           ^
DataManager.cpp:131:2: error: ‘signals’ was not declared in this scope
  signals.set_name("signals");
  ^
DataManager.cpp:134:13: error: expected ‘;’ before ‘n’
    JSONNode n(JSON_NODE);
             ^
DataManager.cpp:135:4: error: ‘n’ was not declared in this scope
    n = m_signals[i]->GetJSONObject();
    ^
DataManager.cpp:135:22: error: ‘class CBaseParameter’ has no member named ‘GetJSONObject’
    n = m_signals[i]->GetJSONObject();
                      ^
DataManager.cpp:141:11: error: expected ‘;’ before ‘data_node’
  JSONNode data_node(JSON_NODE);
           ^
DataManager.cpp:142:2: error: ‘data_node’ was not declared in this scope
  data_node.set_name("data");
  ^
DataManager.cpp: In member function ‘void CDataManager::OnNewParams(std::string)’:
DataManager.cpp:150:2: error: ‘JSONNode’ was not declared in this scope
  JSONNode n(JSON_NODE);
  ^
DataManager.cpp:150:11: error: expected ‘;’ before ‘n’
  JSONNode n(JSON_NODE);
           ^
DataManager.cpp:151:2: error: ‘n’ was not declared in this scope
  n = libjson::parse(_params);
  ^
DataManager.cpp:151:6: error: ‘libjson’ has not been declared
  n = libjson::parse(_params);
      ^
DataManager.cpp:152:11: error: expected ‘;’ before ‘m’
  JSONNode m(JSON_NODE);
           ^
DataManager.cpp:159:3: error: ‘m’ was not declared in this scope
   m = n.at(i);
   ^
DataManager.cpp: In member function ‘void CDataManager::OnNewSignals(std::string)’:
DataManager.cpp:182:2: error: ‘JSONNode’ was not declared in this scope
  JSONNode n(JSON_NODE);
  ^
DataManager.cpp:182:11: error: expected ‘;’ before ‘n’
  JSONNode n(JSON_NODE);
           ^
DataManager.cpp:183:2: error: ‘n’ was not declared in this scope
  n = libjson::parse(_signals);
  ^
DataManager.cpp:183:6: error: ‘libjson’ has not been declared
  n = libjson::parse(_signals);
      ^
DataManager.cpp:184:11: error: expected ‘;’ before ‘m’
  JSONNode m(JSON_NODE);
           ^
DataManager.cpp:190:3: error: ‘m’ was not declared in this scope
   m = n.at(i);
   ^
In file included from DataManager.cpp:5:0:
CustomParameters.h: In instantiation of ‘CCustomParameter<Type>::CCustomParameter(std::string, CBaseParameter::AccessMode, Type, int, Type, Type) [with Type = int; std::string = std::basic_string<char>]’:
CustomParameters.h:240:74:   required from here
CustomParameters.h:137:7: warning: ‘CCustomParameter<int>::m_NeedUnregister’ will be initialized after [-Wreorder]
  bool m_NeedUnregister;
       ^
CustomParameters.h:136:15: warning:   ‘bool CCustomParameter<int>::m_Dirty’ [-Wreorder]
  mutable bool m_Dirty;
               ^
CustomParameters.h:43:2: warning:   when initialized here [-Wreorder]
  CCustomParameter(std::string _name, CBaseParameter::AccessMode _access_mode, Type _value, int _fpga_update, Type _min, Type _max)
  ^
CustomParameters.h: In instantiation of ‘CCustomParameter<Type>::CCustomParameter(std::string, CBaseParameter::AccessMode, Type, int, Type, Type) [with Type = float; std::string = std::basic_string<char>]’:
CustomParameters.h:248:74:   required from here
CustomParameters.h:137:7: warning: ‘CCustomParameter<float>::m_NeedUnregister’ will be initialized after [-Wreorder]
  bool m_NeedUnregister;
       ^
CustomParameters.h:136:15: warning:   ‘bool CCustomParameter<float>::m_Dirty’ [-Wreorder]
  mutable bool m_Dirty;
               ^
CustomParameters.h:43:2: warning:   when initialized here [-Wreorder]
  CCustomParameter(std::string _name, CBaseParameter::AccessMode _access_mode, Type _value, int _fpga_update, Type _min, Type _max)
  ^
CustomParameters.h: In instantiation of ‘CCustomParameter<Type>::CCustomParameter(std::string, CBaseParameter::AccessMode, Type, int, Type, Type) [with Type = double; std::string = std::basic_string<char>]’:
CustomParameters.h:256:74:   required from here
CustomParameters.h:137:7: warning: ‘CCustomParameter<double>::m_NeedUnregister’ will be initialized after [-Wreorder]
  bool m_NeedUnregister;
       ^
CustomParameters.h:136:15: warning:   ‘bool CCustomParameter<double>::m_Dirty’ [-Wreorder]
  mutable bool m_Dirty;
               ^
CustomParameters.h:43:2: warning:   when initialized here [-Wreorder]
  CCustomParameter(std::string _name, CBaseParameter::AccessMode _access_mode, Type _value, int _fpga_update, Type _min, Type _max)
  ^
CustomParameters.h: In instantiation of ‘CCustomParameter<Type>::CCustomParameter(std::string, CBaseParameter::AccessMode, Type, int, Type, Type) [with Type = bool; std::string = std::basic_string<char>]’:
CustomParameters.h:264:75:   required from here
CustomParameters.h:137:7: warning: ‘CCustomParameter<bool>::m_NeedUnregister’ will be initialized after [-Wreorder]
  bool m_NeedUnregister;
       ^
CustomParameters.h:136:15: warning:   ‘bool CCustomParameter<bool>::m_Dirty’ [-Wreorder]
  mutable bool m_Dirty;
               ^
CustomParameters.h:43:2: warning:   when initialized here [-Wreorder]
  CCustomParameter(std::string _name, CBaseParameter::AccessMode _access_mode, Type _value, int _fpga_update, Type _min, Type _max)
  ^
CustomParameters.h: In instantiation of ‘CCustomParameter<Type>::CCustomParameter(std::string, CBaseParameter::AccessMode, Type, int, Type, Type) [with Type = std::basic_string<char>; std::string = std::basic_string<char>]’:
CustomParameters.h:272:70:   required from here
CustomParameters.h:137:7: warning: ‘CCustomParameter<std::basic_string<char> >::m_NeedUnregister’ will be initialized after [-Wreorder]
  bool m_NeedUnregister;
       ^
CustomParameters.h:136:15: warning:   ‘bool CCustomParameter<std::basic_string<char> >::m_Dirty’ [-Wreorder]
  mutable bool m_Dirty;
               ^
CustomParameters.h:43:2: warning:   when initialized here [-Wreorder]
  CCustomParameter(std::string _name, CBaseParameter::AccessMode _access_mode, Type _value, int _fpga_update, Type _min, Type _max)
  ^
DataManager.cpp: In member function ‘std::string CDataManager::GetParamsJson()’:
DataManager.cpp:125:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
DataManager.cpp: In member function ‘std::string CDataManager::GetSignalsJson()’:
DataManager.cpp:146:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
make: *** [objs/rp_sdk/DataManager.o] Error 1

Any help would be greatly appreciated as i have no clue how to solve these errors.

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 21 guests