Jump to content
Charlie

Build GPIO_Lib_C fail

Recommended Posts

For example, the C code from : https://github.com/TinkerBoard/gpio_lib_c

but cannot build it on gpio_lib_c, my usage:

sudo ./build

the output is:


wiringPi Build script
=====================


WiringPi Library
[UnInstall]
ldconfig: file /usr/lib/mali/libmali-midgard-t86x-r18p0-x11.so is truncated

ldconfig: file /usr/lib/mali/libmali.so is truncated

ldconfig: file /usr/lib/mali/libmali.so.1.9.0 is truncated

ldconfig: file /usr/lib/mali/libmali.so.1 is truncated

ldconfig: file /usr/lib/libmali.so.1 is truncated

[Compile] wiringTB.c
{standard input}: Assembler messages:
{standard input}:1458: Error: operand 1 must be an integer register -- `ldr r0,[x2]'
{standard input}:1459: Error: operand 1 must be an integer register -- `ldr r1,[x3]'
{standard input}:1460: Error: operand 1 must be a SIMD vector register -- `orr r0,r1'
{standard input}:1461: Error: operand 1 must be an integer register -- `str r0,[x2]'
{standard input}:1488: Error: operand 1 must be an integer register -- `ldr r0,[x2]'
{standard input}:1489: Error: operand 1 must be an integer register -- `ldr r1,[x3]'
{standard input}:1490: Error: operand 1 must be an integer or stack pointer register -- `and r0,r1'
{standard input}:1491: Error: operand 1 must be an integer register -- `str r0,[x2]'
make: *** [Makefile:98: wiringTB.o] Error 1

003.jpg

Share this post


Link to post
Share on other sites

I do have the same problem. Did you find a solution? Is the Tinkerboard project dead? So many topics here do not have solutions/aswers.

Share this post


Link to post
Share on other sites

Hi @Charlie and @JulianR:

      The gpio_lib_c source path of TInker Board 2 locate /usr/local/share/gpio_lib_c_rk3399 in system.

We have prebuild and install the library in release image. And, you can include it directly

Did you have other requirements and need to rebuild the library?  

Thank a lot!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...