Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: move project from arm_linux to x86_linux

move project from arm_linux to x86_linux 6 years 7 months ago #9158

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3177
  • Thank you received: 502
  • Karma: 133
You probably have to create the arm_linux directories bld/arm_linux/obj, lib, lis and exe.

/Claes
The administrator has disabled public write access.

move project from arm_linux to x86_linux 6 years 7 months ago #9160

  • seec
  • seec's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 78
  • Karma: 0
Hi
Claes

I execute the makefile via terminal:
sdf evoproj
cd $pwrp_appl
make

Do i have to change the "makefile" so
that the ####.o modules are created in /usr/local/pwrp/evoproj/bld/arm_linux/obj.


@pwrp_obj --> /usr/local/pwrp/evoproj/bld/x86_linux/obj
CHANGE TO:
/usr/local/pwrp/evoproj/bld/arm_linux/obj


include $(pwr_exe)/pwrp_rules.mk -->>/usr/pwr55/os_linux/hw_x86/exp/exe/pwrp_rules.mk

CHANGE TO:
include /usr/pwr55/os_linux/hw_arm/exp/exe/pwrp_rules.mk

Cees
The administrator has disabled public write access.

move project from arm_linux to x86_linux 6 years 7 months ago #9161

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

Yes, the object module should be generated on bld/arm_linux/obj and the executables on bld/arm_linux/exe.

But I'm afraid there is no pwrp_rules.mk for ARM. What you can do is to take a copy of pwrp_rules and modify it for ARM and cross compilation. Specify the cross compiler in cc, cxx, ld and ldxx, and change x86 in csetos to ARM.

/Claes
The administrator has disabled public write access.

move project from arm_linux to x86_linux 6 years 7 months ago #9163

  • seec
  • seec's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 78
  • Karma: 0
Hi Claes

So far i have change:

the pwrp_rules.mk in pwrp_arm_cross_rules.mk
and copied to $pwrp_appl

and change the makefile:

An other thing, I used zlib in my application
so the compiler ask for

make: *** No rule to make target 'usr/include/i386-linux-gnu/zconf.h', needed by '/usr/local/pwrp/evoproj/bld/arm_linux/obj/rt_io_m_evo_data_encode.o'. Stop.

I already add some lines in my make file:

$(pwrp_root)/bld/arm_linux/obj/rt_io_m_evo_data_encode.o : \
$(pwrp_root)/src/appl/rt_io_m_evo_data_encode.c \
usr/include/i386-linux-gnu/zconf.h \
usr/include/zlib.h \pwrp_arm_cross_rules.mk

$(pwrp_root)/bld/common/inc/rt_io_m_evo_data_encode.h \
$(pwrp_root)/bld/common/inc/rt_io_m_tools.h \
$(pwrp_root)/bld/common/inc/rt_io_m_evo.h \
$(pwrp_root)/bld/common/inc/rt_io_m_ascii.h

I think i have to add some lines in the pwrp_arm_cross_rules.mk file

can you give me some tips

cees
The administrator has disabled public write access.

move project from arm_linux to x86_linux 6 years 7 months ago #9164

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

You can't link an ARM executable with any archives built for x86. If you have to use zlib you have to download the source code and crosscompile it for RPI, or copy the archive with include files from an RPI.

/Claes
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 8.305 seconds