Welcome, Guest
Username: Password: Remember me

TOPIC: ProviewR on Raspberry Pi

ProviewR on Raspberry Pi 1 year 5 months ago #11958

  • Maverick
  • Maverick's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 64
  • Karma: 0
Hi Claes,

It has been a while since I last experimented with the Raspberry Pi. I am now trying to experiment with it again, but this time, I'm using the more recent Proview V5.9
On the development station (Ubuntu 20.04), I made sure to follow what is written in the "man_rpi" documentation but while I'm trying to build associated to the Raspberry Pi on bus Prd1 (Operating system: CustomBuild, ARM on Linux...), I get the following errors:

%GSX-F-CCERROR, Error from c compiler or linker /usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/bin/ldÂ: /usr/local/pwrp/(myproject)/bld/arm_linux/obj/plc_raspberrypi_0001_plc.o: in function "plc_p1_init":
plc_raspberrypi_0001_plc.gc:(.text+0x0): undefined reference to "M000_001_001_015_00000022_init"

/usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/bin/ldÂ: /usr/local/pwrp/(myproject)/bld/arm_linux/obj/plc_raspberrypi_0001_plc.o: in function "plc_p1_exec":
plc_raspberrypi_0001_plc.gc:(.text+0x6): undefined reference to "M000_001_001_015_00000022_exec"

collect2: error: ld returned 1 exit status

And when I try to run the "custom_build.sh" script, I get such outputs:

./custom_build.sh: line 8: /pwra_env.sh: No such file or directory
mkdir: cannot create directory «/bld/arm_linux»: No such file or directory
mkdir: cannot create directory «/bld/arm_linux/obj»: No such file or directory
mkdir: cannot create directory «/bld/arm_linux/lib»: No such file or directory
mkdir: cannot create directory «/bld/arm_linux/lis»: No such file or directory
mkdir: cannot create directory «/bld/arm_linux/exe»: No such file or directory
./custom_build.sh: line 34: /os_linux/hw_arm/exp/exe/wb_gcg.sh: No such file or directory

So what could be wrong?

/Maverick
Last Edit: 1 year 5 months ago by Maverick.
The administrator has disabled public write access.

ProviewR on Raspberry Pi 1 year 5 months ago #11960

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3219
  • Thank you received: 515
  • Karma: 134
Hi Maverick,

There is some PlcPgm that is not compiled with CustomBuild. Check that you have set OperatingSystem to CustomBuild in File/VolumeAttributes in the root volume. Compile with Force to make sure everything is compiled.

/Claes
The administrator has disabled public write access.
The following user(s) said Thank You: Maverick

ProviewR on Raspberry Pi 1 year 5 months ago #11963

  • Maverick
  • Maverick's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 64
  • Karma: 0
Hi Claes,

Thank you for your help. It works. But one more thing, after successfully distributing to the Raspberry Pi, I encounter such error when running the command systemctl enable pwr on the Raspberry Pi:

Synchronizing state of pwr.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable pwr
update-rc.d: error: no runlevel symlinks to modify, aborting!

and whenever I attempt to run the command pwr start, I have:

Job for pwr.service failed because the service did not take the steps required by its unit configuration.
See "systemctl status pwr.service" and "journalctl -xe" for details.

/Maverick
The administrator has disabled public write access.

ProviewR on Raspberry Pi 5 months 3 weeks ago #12344

  • Snarf77
  • Snarf77's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 860
  • Thank you received: 2
  • Karma: 5
Hello Proview team,

I just wanted to give a try to pwr613 on my rpi4 and got into some already encountered issues but can t remember what s wrong.

I m using the dev station 613 on ubuntu 22.04 x64 and I want to cross compile for rpi x64

I've created a new project with a single volume inside to host my pi program.
This volume attribute - Operating system has been set to Custom Build
The NodeConfig for the pi also is set to Custom Build and a CustomBuild object has been added in the NodeConfig hierarchy.

I have installed the cross compiler recommended by rpi (aarch64-rpi3-linux-gnu-gcc) and have configured the path for cc/cpp/ar accordingly

the custom build platform is set to arm64_linux ; the release name is v6.1 ; operating system is Linux on ARM64


When I try to build the program in force, I got the following:
/usr/local/pwrp/simbl/bld/x86_64_linux/exe/custom_build.sh: line 34: /usr/pwr61/os_linux/hw_arm64/exp/exe/wb_gcg.sh: No such file or directory
%GSX-F-CCERROR, Error from c compiler or linker
-- Plc window generated            PROG-O24-W
Not a base directory: /usr/pwr61
/usr/local/pwrp/simbl/bld/x86_64_linux/exe/custom_build.sh: line 34: /usr/pwr61/os_linux/hw_arm64/exp/exe/wb_gcg.sh: No such file or directory

of course I don t have any /usr/pwr61/os_linux/hw_arm64 directory because only hw_x86_64 directory is available on my dev station.

Which settings is wrong or what is missing to make it point to the right directory but asking to compile for amr64 ?

Thanks for you help
Snarf
The administrator has disabled public write access.

ProviewR on Raspberry Pi 5 months 2 weeks ago #12346

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3219
  • Thank you received: 515
  • Karma: 134
Hi Snarf,

The /usr/pwr61/os_linux/hw_arm64 directory should be present after installing the pwrrpi6461 package.

/Claes
The administrator has disabled public write access.

ProviewR on Raspberry Pi 5 months 2 weeks ago #12347

  • Snarf77
  • Snarf77's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 860
  • Thank you received: 2
  • Karma: 5
Thanks Claes for your answer
On my development station (running ubuntu 22.04) you mean I must also install the pwrppi package for dev station ?
(pwr61_6.1.3-1_arm64.deb ?)

Wasnt it a deb package for rpi format (arm64 deb file ?)

It won t interfere with my previous install (pwr61_6.1.3-1_amd64.deb) ?

Thanks for confirmation before I try to install
Snarf
The administrator has disabled public write access.
Time to create page: 7.586 seconds