noxrepo / nox

The NOX Controller
Other
139 stars 85 forks source link

PySwigObject and swigo #28

Closed ash27win closed 10 years ago

ash27win commented 10 years ago

Hello,

I followed the instruction on the webpage http://www.openflow.org/wk/index.php/MPLS-TE_Demo for Installation in my Ubuntu 10.10 Machine.

If your build fails due to a 'swigo' error, it's because you have a newer version of swig than what was used when NOX 0.4 was developed. To get around this, download [1] to you mnox/src directory and run

find -name .cc | xargs python pyname_patch.py find -name .hh | xargs python pyname_patch.py But it doesn't work. How can I install mnox on Ubuntu10.10

Following Errors are coming.

pyrt.cc:181: error: ‘PySwigObject’ was not declared in this scope pyrt.cc:181: error: ‘swigo’ was not declared in this scope pyrt.cc: In function ‘void convert_table_statsin(const vigil::Event&, PyObject)’: pyrt.cc:192: error: ‘PySwigObject’ was not declared in this scope pyrt.cc:192: error: ‘swigo’ was not declared in this scope pyrt.cc: In function ‘void convert_aggregate_statsin(const vigil::Event&, PyObject)’: pyrt.cc:205: error: ‘PySwigObject’ was not declared in this scope pyrt.cc:205: error: ‘swigo’ was not declared in this scope pyrt.cc: In function ‘void convert_desc_statsin(const vigil::Event&, PyObject)’: pyrt.cc:220: error: ‘PySwigObject’ was not declared in this scope pyrt.cc:220: error: ‘swigo’ was not declared in this scope pyrt.cc: In function ‘void convert_port_statsin(const vigil::Event&, PyObject)’: pyrt.cc:231: error: ‘PySwigObject’ was not declared in this scope pyrt.cc:231: error: ‘swigo’ was not declared in this scope pyrt.cc: In function ‘void convert_datapathleave(const vigil::Event&, PyObject)’: pyrt.cc:241: error: ‘PySwigObject’ was not declared in this scope pyrt.cc:241: error: ‘swigo’ was not declared in this scope pyrt.cc: In function ‘void convert_bootstrapcomplete(const vigil::Event&, PyObject)’: pyrt.cc:246: error: ‘PySwigObject’ was not declared in this scope pyrt.cc:246: error: ‘swigo’ was not declared in this scope pyrt.cc: In function ‘void convert_flowremoved(const vigil::Event&, PyObject)’: pyrt.cc:262: error: ‘PySwigObject’ was not declared in this scope pyrt.cc:262: error: ‘swigo’ was not declared in this scope pyrt.cc: In function ‘void convert_flowmod(const vigil::Event&, PyObject)’: pyrt.cc:272: error: ‘PySwigObject’ was not declared in this scope pyrt.cc:272: error: ‘swigo’ was not declared in this scope pyrt.cc: In function ‘void convert_packetin(const vigil::Event&, PyObject)’: pyrt.cc:287: error: ‘PySwigObject’ was not declared in this scope pyrt.cc:287: error: ‘swigo’ was not declared in this scope pyrt.cc: In function ‘void convert_portstatus(const vigil::Event&, PyObject)’: pyrt.cc:298: error: ‘PySwigObject’ was not declared in this scope pyrt.cc:298: error: ‘swigo’ was not declared in this scope pyrt.cc: In function ‘void convertshutdown(const vigil::Event&, PyObject)’: pyrt.cc:305: error: ‘PySwigObject’ was not declared in this scope pyrt.cc:305: error: ‘swigo’ was not declared in this scope pyrt.cc: In member function ‘virtual vigil::Disposition vigil::applications::Python_event_manager::call_python_handler(const vigil::Event&, boost::intrusive_ptr<_object>&)’: pyrt.cc:592: error: ‘PySwigObject’ was not declared in this scope pyrt.cc:592: error: ‘swigo’ was not declared in this scope pyrt.cc:593: error: expected primary-expression before ‘)’ token pyrt.cc:593: error: expected ‘)’ before ‘swigo’ pyrt.cc:772: error: expected ‘)’ at end of input pyrt.cc:772: error: expected statement at end of input pyrt.cc:772: error: expected ‘}’ at end of input pyrt.cc:772: error: expected ‘catch’ at end of input pyrt.cc:772: error: expected ‘(’ at end of input pyrt.cc:772: error: expected type-specifier at end of input pyrt.cc:772: error: expected ‘)’ at end of input pyrt.cc:772: error: expected ‘{’ at end of input pyrt.cc:772: error: expected ‘}’ at end of input make[7]: _\ [pyrt_la-pyrt.lo] Error 1 make[7]: Leaving directory /home/mnox/src/nox/coreapps/pyrt' make[6]: *** [all] Error 2 make[6]: Leaving directory/home/mnox/src/nox/coreapps/pyrt' make[5]: * [all-recursive] Error 1 make[5]: Leaving directory /home/mnox/src/nox/coreapps' make[4]: *** [all] Error 2 make[4]: Leaving directory/home/mnox/src/nox/coreapps' make[3]: * [all-recursive] Error 1 make[3]: Leaving directory `/home/mnox/src/nox' make[2]: * [all] Error 2 make[2]: Leaving directory/home/mnox/src/nox' make[1]: **\* [all-recursive] Error 1 make[1]: Leaving directory/home/mnox/src' make: * [all] Error 2

Would anybody give me some suggestion? Thank you.. Ashwin