ARM64 Compilation libs endianess error

I’m trying to compile a LOC sample app in a ARM64 host. The linker shows me the following error:

libslqsmi.a (qaSlqsLocInjectSensorData.o): compiled for a big endian system and target is little endian

Any ideas?
Thanks

I’m also encountering the same error, I’m using a jetson tx2 which is an aarch64 little endian machine, but all the samples provided are in the form of big endian 64. Would be possible to get support for the arm64 le ?

Just use libqmi, it works properly on all architectures, and has much better documentation.

@stefanbruens thnks, Do you know if libqmi has support for the GPS data?

https://www.freedesktop.org/software/libqmi/libqmi-glib/latest/ch13.html

There are also implementation examples for most of it in the qmicli source code:

bjorn@miraculix:~$ qmicli --help-loc
Usage:
  qmicli [OPTION…] - Control QMI devices

LOC options
  --loc-session-id=[ID]                                                                        Session ID for the LOC session
  --loc-start                                                                                  Start location gathering
  --loc-stop                                                                                   Stop location gathering
  --loc-get-position-report                                                                    Get position reported by the location module
  --loc-get-gnss-sv-info                                                                       Show GNSS space vehicle info
  --loc-timeout=[SECS]                                                                         Maximum time to wait for information in `--loc-get-position-report' and `--loc-get-gnss-sv-info' (default 30s)
  --loc-follow-position-report                                                                 Follow all position updates reported by the location module indefinitely
  --loc-follow-gnss-sv-info                                                                    Follow all GNSS space vehicle info updates reported by the location module indefinitely
  --loc-follow-nmea                                                                            Follow all NMEA trace updates reported by the location module indefinitely
  --loc-delete-assistance-data                                                                 Delete positioning assistance data
  --loc-noop                                                                                   Just allocate or release a LOC client. Use with `--client-no-release-cid' and/or `--client-cid'