PLCnext / MqttGdsConnector

This Repository provides a Component for configuration and GDS bindings for the MqttClient Component.
MIT License
5 stars 3 forks source link

Add instructions how to build on windows OS #2

Open OWarneke opened 5 years ago

OWarneke commented 5 years ago

Building locally with the shell scripts written for Linux on a windows system might be troublesome.

  1. you will need git to clone the dependencies
  2. You need a bash to execute the scripts
  3. You need symlink support.
  4. you need the plcncli. (PLCnCLI_Win64_2019.0) phoenixcontact.com -> AXCF2152 -> Downloads -> Software
  5. you need the SDK (SDK_WIN64_2019.3) phoenixcontact.com -> AXCF2152 -> Downloads -> Software
gideonmay commented 4 years ago

With the latest Windows 10 version it is very easy to run a linux distribution, I have very good experiences developing my applications this way. Check Windows subsystem for Linux: https://docs.microsoft.com/en-us/windows/wsl/install-win10 .

Charkrit-orion commented 3 years ago

@gideonmay, I am attempting this now and am running into issues installing the SDK on the linux environment. Running command: plcncli install sdk -d /opt/SDK_AXC_F_2152_2021-6 -p /opt/pxc-glibc-x86_64-axcf2152-image-sdk-cortexa9t2hf-neon-axcf2152-toolchain-2021.6.sh

Returns an error:

The format of the file '/opt/pxc-glibc-x86_64-axcf2152-image-sdk-cortexa9t2hf-neon-axcf2152-toolchain-2021.6.sh' is not supported. Please proceed manually.
-> An error occured while executing the script.
xargs: file: No such file or directory
sed: no input files
find: ‘standard output’: Broken pipe
find: write error
martinboers commented 3 years ago

Is it possible to execute the script itself on the command line? e.g.

$ ./pxc-glibc-x86_64-axcf2152-image-sdk-cortexa9t2hf-neon-axcf2152-toolchain-2021.6.sh 
PLCnext Linux SDK installer version 2021.6
==========================================
Enter target directory for SDK (default: /opt/pxc/2021.6): ^C
$

Do you have execute permission for the script?

219M -rwxrwxrwx   1 user group 219M Jun 26 06:01 pxc-glibc-x86_64-axcf2152-image-sdk-cortexa9t2hf-neon-axcf2152-toolchain-2021.6.sh