thiagoralves / OpenPLC_Editor

OpenPLC Editor - IDE capable of creating programs for the OpenPLC Runtime
GNU General Public License v2.0
389 stars 192 forks source link

Install compile errors, application won't successfully start #11

Open rdingham opened 4 years ago

rdingham commented 4 years ago

when running install.sh, on Raspberry Pi 4, I get a lot of compiler warnings like:

array_range_check.cc:202:36: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] STAGE3_ERROR(0, symbol, symbol, "Subrange has lower limit (%"PRId64") larger than upper limit (%"PRId64").", GET_CVALUE( int64, symbol->lower_limit), GET_CVALUE( int64, symbol->upper_limit)); ^ array_range_check.cc:202:71: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] STAGE3_ERROR(0, symbol, symbol, "Subrange has lower limit (%"PRId64") larger than upper limit (%"PRId64").", GET_CVALUE( int64, symbol->lower_limit), GET_CVALUE( int64, symbol->upper_limit)); ^ array_range_check.cc:212:36: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] STAGE3_ERROR(0, symbol, symbol, "Subrange has lower limit (%"PRIu64") larger than upper limit (%"PRIu64").", GET_CVALUE(uint64, symbol->lower_limit), GET_CVALUE(uint64, symbol->upper_limit)); ^ array_range_check.cc:212:71: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] STAGE3_ERROR(0, symbol, symbol, "Subrange has lower limit (%"PRIu64") larger than upper limit (%"PRIu64").", GET_CVALUE(uint64, symbol->lower_limit), GET_CVALUE(uint64, symbol->upper_limit)); ^ ar: u' modifier ignored sinceD' is the default (see U') Making all in stage4 Making all in generate_c In file included from generate_c.cc:525: generate_c_il.cc: In member function ‘virtual void* generate_c_il_c::visit(il_function_call_c*)’: generate_c_il.cc:957:11: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (nb_param > 0) ^~ generate_c_il.cc:959:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ if (param_value == NULL) { ^~ ar:u' modifier ignored since D' is the default (seeU') Making all in generate_iec ar: u' modifier ignored sinceD' is the default (see `U') config.status: creating config/config.h config.status: config/config.h is unchanged

When I try to run OpenPLC Editor I get:

No module named 'lxml'

thiagoralves commented 4 years ago

That’s because the editor was never meant to be run on a Pi. It should run on your desktop. Now, if you can figure out a way to install lxml on the Pi then it might work

On Apr 9, 2020, at 4:31 PM, rdingham notifications@github.com wrote:

 when running install.sh, on Raspberry Pi 4, I get a lot of compiler warnings like:

array_range_check.cc:202:36: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] STAGE3_ERROR(0, symbol, symbol, "Subrange has lower limit (%"PRId64") larger than upper limit (%"PRId64").", GET_CVALUE( int64, symbol->lower_limit), GET_CVALUE( int64, symbol->upper_limit)); ^ array_range_check.cc:202:71: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] STAGE3_ERROR(0, symbol, symbol, "Subrange has lower limit (%"PRId64") larger than upper limit (%"PRId64").", GET_CVALUE( int64, symbol->lower_limit), GET_CVALUE( int64, symbol->upper_limit)); ^ array_range_check.cc:212:36: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] STAGE3_ERROR(0, symbol, symbol, "Subrange has lower limit (%"PRIu64") larger than upper limit (%"PRIu64").", GET_CVALUE(uint64, symbol->lower_limit), GET_CVALUE(uint64, symbol->upper_limit)); ^ array_range_check.cc:212:71: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] STAGE3_ERROR(0, symbol, symbol, "Subrange has lower limit (%"PRIu64") larger than upper limit (%"PRIu64").", GET_CVALUE(uint64, symbol->lower_limit), GET_CVALUE(uint64, symbol->upper_limit)); ^ ar: u' modifier ignored sinceD' is the default (see U') Making all in stage4 Making all in generate_c In file included from generate_c.cc:525: generate_c_il.cc: In member function �virtual void* generate_c_il_c::visit(il_function_call_c*)�: generate_c_il.cc:957:11: warning: this �if� clause does not guard... [-Wmisleading-indentation] if (nb_param > 0) ^~ generate_c_il.cc:959:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the �if� if (param_value == NULL) { ^~ ar:u' modifier ignored since D' is the default (seeU') Making all in generate_iec ar: u' modifier ignored sinceD' is the default (see `U') config.status: creating config/config.h config.status: config/config.h is unchanged When I try to run OpenPLC Editor I get:

No module named 'lxml' — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

jaketho commented 4 years ago

It looks like you should be able to install lxml on the pi, not sure if this will enable you to run the editor though. Stack Exchange Link

sudo apt-get install python3-lxml python-lxml

sudo apt-get install libxml2-dev libxslt-dev python-dev

pip install lxml --user