Welcome, Guest
Username: Password: Remember me

TOPIC: compile for Raspberry Pi

compile for Raspberry Pi 11 years 9 months ago #3985

  • siamect
  • siamect's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 116
  • Thank you received: 1
  • Karma: 1
trying to compile for Raspberry Pi...
getting error when I do "pwre ebuild rt"
/home/martin/pwrsrc_4.8.5-1/bcomp/lib/rt/src/.os_linux/.hw_arm
../../rt_plc_bcomp.c:45:38: fatal error: pwr_basecomponentclasses.h: No such file or directory
compilation terminated.
Compiling ../../rt_plc_bcomp.c
../../rt_plc_bcomp.c:45:38: fatal error: pwr_basecomponentclasses.h: No such file or directory
compilation terminated.
make: *** [/home/martin/pwrsrc_4.8.5-1/rls_dbg/os_linux/hw_arm/bld/lib/rt/rt_plc_bcomp.o] Error 1
himBH
The administrator has disabled public write access.

Re: compile for Raspberry Pi 11 years 9 months ago #3986

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

pwr_basecomponentclasses.h should be copied from the import root to $pwr_inc by the command 'pwre import rt'.

/Claes
The administrator has disabled public write access.

Re: compile for Raspberry Pi 11 years 9 months ago #3987

  • siamect
  • siamect's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 116
  • Thank you received: 1
  • Karma: 1
Thanks Claes
I do that but I missed an error message:
martin@martin-laptop:~/pwrsrc_4.8.5-1$ pwre import rt
--
-- Copy file from Import root
-- Import root: ""
--
make: *** No rule to make target `/home/martin/pwrsrc_4.8.5-1/rls_dbg/os_linux/hw_arm/exp/load/pwrs.dbs', needed by `rt'.  Stop.
make: Nothing to be done for `rt_gtk'.

I get a similar message when I import java...
The administrator has disabled public write access.

Re: compile for Raspberry Pi 11 years 9 months ago #3988

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3177
  • Thank you received: 502
  • Karma: 133
I think you should check the import root. You can set it with 'pwre modify 'env''.

/Claes
The administrator has disabled public write access.

Re: compile for Raspberry Pi 11 years 9 months ago #3990

  • siamect
  • siamect's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 116
  • Thank you received: 1
  • Karma: 1
Thanks a million Clas, du är en klippa!
The import root did not point to the right place...
Now it looks like this and it compiles. :)

Source root [/home/martin/pwrsrc_4.8.5-1/src]?
Import root [/usr/pwr48/os_linux/hw_x86]?
Build root [/home/martin/pwrsrc_4.8.5-1/rls_dbg]?
Build type [dbg]?
OS [linux]?
Hardware [arm]?
Description [martin's environment]?

I don't know if the Build root is correct though?

I have not loaded it into the Raspberry Pi yet. First i will go back in the history file and make a bash script that goes through the process from start to end... so I can recompile it effortlessly again...

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

Re: compile for Raspberry Pi 11 years 9 months ago #3991

  • ivo1204
  • ivo1204's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 44
  • Karma: 2
Hi siamect,

Which software You use for build root ?
github.com/nezticle/RaspberryPi-BuildRoot
The administrator has disabled public write access.
Time to create page: 8.686 seconds