Forum > Other

Problem with cross-compiling for arm (armv6, armv7)

(1/1)

svd71:
Hallo all,

I have Lazarus 3.2 and fpc 3.2.2 on the board. thes things are installed with fpcupdelux under Windows 10.

If I do little project for test with only one 'writeln('start');' in code, it works for "Target CPU family" "aarch64".
The command
--- Code: Bash  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---$>ldd ./project1 shows many depended libraries and application run without problem.

But if I set up the "Target CPU family" as "arm", does not meter "Target processor" (I had tried to do with armv6*, armv7*, Default and soon) - the application run with message:

--- Code: Bash  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---bash: ./project1: cannot execute: required file not found

the command ldd shows:

--- Code: Bash  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---not a dynamic executable 

Can somebody check it?
and how can I fix it?

What about compilation for "Raspberry Pi Zero W" version 1.1 with "armv6l"?

Navigation

[0] Message Index

Go to full version