Welcome, Guest
Username: Password: Remember me

TOPIC: compile for Raspberry Pi

Re: compile for Raspberry Pi 11 years 8 months ago #4101

  • deiKruve
  • deiKruve's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 65
  • Karma: 0
Martin, good morning.

This might well be totally of the mark, but then maybe it helps:

Is the compiler optimization (-O3) not in the way of breakpoints etc?

Cheers,

Jan.
The administrator has disabled public write access.

Re: compile for Raspberry Pi 11 years 8 months ago #4102

  • siamect
  • siamect's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 116
  • Thank you received: 1
  • Karma: 1
Thanks Claes
Thanks Jan

I tested to remove the -lrpcsvc from the wb_gcg.sh and the linking without any problems.
I will test to run it in the Raspberry Pi later today (sitting in a coffee shop right now) and I will find out if it is possible to run debug with or without the compiler optimization.

I cannot express how much I apreciate all support I get from this forum...

Thanks again
Martin
The administrator has disabled public write access.

Re: compile for Raspberry Pi 11 years 8 months ago #4103

  • siamect
  • siamect's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 116
  • Thank you received: 1
  • Karma: 1
Thanks everybody...

Finally the Raspberry Pi is running Proview.se
The rt_rtt seems to work as far as I can understand.
The PLC program is just an inverter with a feedback to itself and no IO so far.
I have not recompiled the rest of the files to see if the optimization will make debug impossible. The optimization that was discussed was only the PLC program and it is easy to force debug in the options menu.

Thanks again
Martin
Last Edit: 11 years 8 months ago by siamect.
The administrator has disabled public write access.

Re: compile for Raspberry Pi 11 years 8 months ago #4120

  • siamect
  • siamect's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 116
  • Thank you received: 1
  • Karma: 1
Now that the rt is running... I wonder if it is possible to run the Raspberry Pi as an operators station...
When I try to compile the relevant proview sources it is complaining about a missing xlib...
Martin
The administrator has disabled public write access.

Re: compile for Raspberry Pi 11 years 8 months ago #4121

  • siamect
  • siamect's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 116
  • Thank you received: 1
  • Karma: 1
I'm trying to compile proview for the Raspberry Pi and use not only the runtime plc functionality but also use the Raspberry Pi as an operator's station to display graphics etc. I get errors during compilation from missing X11/Xlib.h file. This is ofcource depending on the fact that the location of the X11 libs for the Raspberry Pi is not known.

So I guess I need to find out where the include paths are specified so i can include the paths where the X11 libs for the Raspberry pi are located.

I have installed the dev packs for X11 on the Raspberry pi and copied the files from the Raspberry Pi into the host where the crosscompiler runs. They are located in these locations:
/opt/rp/usr/bin
/opt/rp/usr/include
/opt/rp/usr/lib
/opt/rp/usr/share

/opt/rp/usr/includeX11/Xlib.h is there...

Here is the last messages from the "pwre build_all_modules" command
/home/martin/pwrsrc_git/xtt/lib/ge/src/.os_linux/.hw_arm
Compiling ../../ge.cpp
In file included from /home/martin/pwrsrc_git/rls_dbg/os_linux/hw_arm/xtt/inc/glow_growctx.h:46:0,
                 from /home/martin/pwrsrc_git/rls_dbg/os_linux/hw_arm/xtt/inc/glow_colpalctx.h:44,
                 from ../../ge.cpp:65:
/home/martin/pwrsrc_git/rls_dbg/os_linux/hw_arm/xtt/inc/glow_exportjbean.h:43:22: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
make: *** [/home/martin/pwrsrc_git/rls_dbg/os_linux/hw_arm/bld/lib/ge/ge.o] Error 1
himBH

Just can't wait go get this working... :woohoo:
:)
The administrator has disabled public write access.

Re: compile for Raspberry Pi 11 years 7 months ago #4126

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3178
  • Thank you received: 502
  • Karma: 133
Hi Martin,

I think the include of <X11/Xlib.h> in glow_exportjbean.h is a relict from the motif version, and you could try to just remove it.

/Claes
The administrator has disabled public write access.
Time to create page: 8.576 seconds