Hood69
Hi!
Now OpenPLC is not working anymore...
Not even the exampels.
I now get:
OpenPLC support libraries are not installed in this system. Select “Install dependencies...” on build options to install required files - this requires internet connection".
Build phase <function build.<locals>.check_required_libraries at 0x000001A58DF3E790> failed

I have reistalled the"dependencies"-file 10 times and still get this error!!!
Reply 0 0
fg71
OpenPLC are forcing a user to install libraries that are used for all supported boards.
It doesn't matter if you do not have whose board or not, or use blocks that are only compatible to a specific hardware.
The maintainer of OpenPLC have sponsor agreements with some vendors that sell compatible hardware.
 
You as a user are forced to install it on your machine. 🙁
Reply 0 0
thiagoralves
OpenPLC are forcing a user to install libraries that are used for all supported boards.
It doesn't matter if you do not have whose board or not, or use blocks that are only compatible to a specific hardware.
The maintainer of OpenPLC have sponsor agreements with some vendors that sell compatible hardware.
 
You as a user are forced to install it on your machine. 🙁
This argument is completely incorrect. At first OpenPLC was installing all board files simply because it was easier to do it that way. There is no agreement with sponsors that forces us to install their stuff on other people's computers, I don't know where you got that from.
 
This was improved a couple versions ago thanks to @Joluxer code contributions. Now the editor only installs the board files for the platform the user is trying to compile for. In fact, that's exactly what is happening with @Hood69. It seems that the platform is not installed, so the code can't compile. As the error message suggests, you must select "Install dependencies" on the compile dropdown to tell the editor to install the board files. Make sure you have internet connection when you do so, otherwise the editor won't be able to download the support files and install the package.
Screenshot 2025-05-16 at 9.07.53 AM.png
Reply 0 0
fg71
This argument is completely incorrect.
I was not talking about package core, I was talking about this in the builder.py script
 
I do not have any board that use WiFiNINA, that library is specifict to some Arduino boards
I do not have 'Arduino_MachineControl' or 'Arduino_EdgeControl',
I do not have PIAM or CONTROLLINO
Or any board that use SAMD chip
 
Still its part of the check and get installed, and the reinstall of ESP-IDF Arduino core is still a problem.
I do check the log so its not I'm guessing.
 
Its fine if you believe something else but there is reason why I comment out thing bellow for compatible reasons or conflict.
I also develop in Arduino API and do not run everything in OpenPLC.
And OpenPLC have interfere with my ESP32 installation, that I have expressed here before.
OPLC_DEPS = [
    #'WiFiNINA',
    'Ethernet',
    #'Arduino_MachineControl',
    #'Arduino_EdgeControl',
    'OneWire',
    'DallasTemperature',
    #'P1AM',
    #'CONTROLLINO',
    'PubSubClient',
    'ArduinoJson',
    'ArduinoMqttClient',
    'RP2040_PWM',
    'AVR_PWM',
    'megaAVR_PWM',
    #'SAMD_PWM',
    #'SAMDUE_PWM',
    'Portenta_H7_PWM',
    'CAN'
    #'STM32_CAN',
    #'STM32_PWM'
]
 
Reply 0 0
thiagoralves
Sure, there is room for optimization on the library portion of the installer, but the reason for why it is the way it is has nothing to do with sponsors agreements! There has never been any agreement like that on the project.
 
As I said, I know that there is still room for improvement on the arduino compiler portion of the editor, but at least on the latest version of the editor, as long as you check the "use build cache" it won't touch on your arduino installation and just use whatever you have installed, and fail if you don't have the required platform installed as the OP mentioned.
Reply 0 0
fg71
Here is how I see it and maybe that does not apply to OpenPLC
 
  1. A user get Arduino compatible board
  2. To use the board the user need package core (Arduino API) and tool chain (to be able to compile, upload to the board) and maybe drivers (USB)
  3. Arduino IDE is the standard way to install package core and use admin privileges to install drivers (part of Windows environment)
If the user have not installed Arduino IDE they could use arduino-cli (other install) that allow a user to install package core in user space.
If that is the case they couldn't install drivers that maybe are needed for USB to be able to communicate with the board.
The package core contains the Arduino API and the standard library of Arduino API
 
If OpenPLC couldn't compile a project based in IEC-61131-3 programming language and need extended libraries.
In other words it use classes and function that is not part of package core. It would make sense to me a user would know before install what it is install. In Arduino IDE its the user who have control what is installed and not.
 
Arduino IDE is the recommended application for install package core and libraries and arduino-cli is the second. And I do think many people would agree with me on that regard. Python is a wonderful programming language to automate things but it could also be overkill to make it more complicated. and also slower.
 
OpenPLC IDE is running on Desktop computer on 3 platform, same as Arduino API could be installed. So the argument that a user do not like to install Arduino IDE and use arduino-cli instead and later have issues with drivers. And in that situation the user need to invest resources to solve a driver issue that Arduino IDE do not have. (This could happen on Windows platform)
Reply 0 0
Write a reply...
Reply