Questions tagged [cross-compiling]
For general cross compiling issues, where a separate 'hosting' environment is used to build for the 'target' platform.
4,488
questions
0
votes
0
answers
14
views
Failure to cross-compile Rust programs on Arch Linux
$ cargo build --target aarch64-unknown-linux-gnu --release
Compiling libc v0.2.148
Compiling pkg-config v0.3.27
Compiling bitflags v1.3.2
Compiling cfg-if v1.0.0
Compiling scopeguard v1....
0
votes
1
answer
62
views
x86_64-w64-mingw32-g++ doesn't link GLFW on Ubuntu 22.04
I'm doing some stuff with OpenGL and I wanted to compile an exe for Windows with x86_64-w64-mingw32-g++ but it doesn't link GLFW. When trying to compile it says:
main.cpp:4:10: fatal error: GLFW/glfw3....
0
votes
0
answers
10
views
How to build Memgraph for ARM on Debian?
I want to build Memgraph for ARM on Debian. I see that the documentation has been revamped and that there is a whole new section about installing using Docker but I can't find info on building in docs ...
0
votes
0
answers
15
views
Linking error when compiling Rust crate tinyaudio for Android
I'm trying to compile a library that uses a Rust crate tinyaudio, and I'm getting a linking error:
ld: error: unable to find library -laaudio
I have Android studio installed and:
Android SDK ...
0
votes
0
answers
13
views
Ubuntu cross compiling: install host or target dependencies in sysroot?
I'm trying to cross-compile an application for arm64 on Ubuntu 20.04 that depends on 3rd-party libraries like grpc. I think I need to install those dependency libraries in my cross-compiler's sysroot, ...
0
votes
0
answers
4
views
ops-class.org setup error: 'mips-harvard-os161-gcc: not found'
I'm trying to set up the kernal for ops-class.org course. After configuring DUMBVM kernel, when I run 'bmake depend', I get this error. I've installed all the tools from here- http://www.os161.org/...
0
votes
0
answers
16
views
Porting of Linux library to Android
I have a rather complex project that needs to be ported to android. Parts of it use libraries such as Apache Runtime Library. I tried my luck with the cross-compiler, but the configuration step throws ...
0
votes
1
answer
19
views
How can I install glibc in raspberry pi 3 model B+?
I'm trying to cross compile with Debian 12(host) and a raspberry pi(target). When I run the configuration of a file on Eclipse on host with SSH to the pi, I get an error message of GLIBC 2.34 not ...
0
votes
0
answers
15
views
boost-locale can't find icu/iconv
I'm crossbuilding boost-locale 1.71.0 for powerpc-aix target
crosscompiler powerpc-ibm-aix7.1.0.0-g++ (GCC) 4.8.3
Build machine x64-linux
libiconv lib is located at /opt/crossaix/usr/lib/libiconv.a
...
0
votes
1
answer
14
views
Cross compile Qt6 with yocto sdk - QWayland is missing requirements
I want to cross compile Qt6.5 with a yocto SDK.
First I compile a Qt host build without problems.
qt-host -> installation folder of host-build
qt-hostbuild -> build folder of host build
qt6-...
-2
votes
0
answers
13
views
"ld: symbol(s) not found for architecture x86_64" while installing Sextractor on a M1 Mac running on Monterey [duplicate]
I've been trying to install Sextractor, a commonly-used astronomy tool for source detection. I've configured it with the following settings:
./configure --enable-icc --enable-mkl --disable-model-...
1
vote
1
answer
19
views
CMAKE <LINK_LIBRARIES> separated by spaces not commas in linker command
I'm trying to get CMake to use a custom compiler to build some code. I've setup a cmake toolchain file that works great for everything besides linking in static libraries.
The linker requires all ...
0
votes
0
answers
25
views
In Gradle, how to publish for multiple Java versions?
Here is a simple example: a project is using a compiler plugin "io.tryp:splain_2.13.12:1.0.2", which is compiled with Java 11 but doesn't specify Java version compatibility matrix.
When the ...
1
vote
1
answer
23
views
boost-iostreams 1.59 sparc-solaris crosscompilation fails
boost sources: sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.gz
host machine x64-linux, ubuntu 20
crosscompiler sparc-sun-solaris2.10-g++ (GCC) 4.9.3
steps, based on this ...
1
vote
0
answers
16
views
Could NOT find CURL (missing: CURL_INCLUDE_DIR) (found suitable version "7.74.0", minimum required is "7.74.0")
I'm using CLion to do cross compilation (to armhf) on virtual machine (Linux Debian).
Packages were added through
CC_GetFile: Downloading 'liba52-0.7.4_0.7.4-20_armhf.deb' to '/home/debian/cc_armhf/...
-1
votes
0
answers
11
views
Undefined Refrence whiel cross compiling > GLIBCXX_3.4.9'
Hello everybody i am currently trying to cross compile an OpenCV applciation for a ARMs target running Linux. My host machine is running linux 20.
I cross compiled all the libraries and linked them in ...
-2
votes
1
answer
41
views
Gstreamer -l flag error with cmake and pkg-config when cross compiling for arm64
I am using g-streamer with pkg-config on ubuntu 18. I am cross compiling for aarch64 and facing a following error.
/usr/lib/gcc-cross/aarch64-linux-gnu/7/../../../../aarch64-linux-gnu/bin/ld: skipping ...
0
votes
0
answers
20
views
libpthread.so.0: error adding symbols: DSO missing from command line even after providing -lpthreads in cmake file
I am trying to cross compile libwebsocket for arm-oe-linux-gnueabi but getting the error
/opt/arm-oe-linux-gnueabi-generic/bin/../lib/gcc/arm-oe-linux-gnueabi/4.9.4/../../../../arm-oe-linux-gnueabi/...
0
votes
0
answers
18
views
Overwrite default system include directories using sysroot
I'm trying to cross compile for AArch64 aarch64-linux-gnu-g++. I specified sysroot using --sysroot=/home/aaron/Sysroot_Debian-Buster. However, when trying to #include <signal.h>, gcc is still ...
0
votes
1
answer
30
views
Cross compiling for armv7l
I am trying to cross-compiling tsocks for armv7l arachitecture. I installed arm-linux-gnueabi package and tried to compile a simple hello world program, it is working great.
For some reason I can't ...
0
votes
0
answers
22
views
My cygwin gcc report conflicting types error when building dynamic link library using JNI
I was using cygwin gcc (7.4.0-x64) on windows to build dynamic link library for java.
Here reports the error:
H:\ddlog/java/ddlogapi.c:1057:28: error: conflicting types for '...
1
vote
0
answers
53
views
Error C1189 when compiling OpenCV for arm64 at amd64
I am trying to compile OpenCV with MS Visual Studio C++ (17) for arm64 on a windows x64 host and constantly getting, whatever I try, this:
fatal error C1189: #error: This header is specific to X86, ...
0
votes
0
answers
50
views
Cross-compile Rust for Raspberry Pi 1 Model B
I'm trying to cross-compile a program written in Rust using the libudev-sys for my Raspberry Pi Model B on my Ubuntu machine.
I have downloaded the appropriate GNU Toolchain (from https://developer....
0
votes
0
answers
17
views
update my libc.so in my armv7l but nothing work
I'm cross compile snort from host x86 to target v7l.
So I need to use higher version,2.34 glibc,which on my armv7 is 2.31.
I try to up the so file to replace them in the /lib,but they have the same ...
0
votes
0
answers
55
views
How load rust code STM32F4 BlackPill stm32f411ceu6
I have a simple program on Rust which should print "hello world" using semihosting.
#![no_std]
#![no_main]
use panic_halt as _;
use cortex_m_rt::entry;
use cortex_m_semihosting::hprintln;
...
0
votes
1
answer
14
views
How to get a arm version libcheck_pic?
I am trying to cross compile snort2.9 to target arm,and I need libcheck_pic.a or .so.
if I "apt-get install check",I would acquire libcheck_pic.a in host's version,if I cross compile check's ...
1
vote
0
answers
35
views
cross compile clone syscall to aarch64
I have tried to cross compile clone syscall and run with qemu-aarch64
here is the assembly:
#include <sys/syscall.h>
.section .text
.global _start
_start:
bl main
b .
.global main
main:
mov ...
1
vote
0
answers
31
views
failed to cross compile QT using arm-linux-gnueabihf-gcc
My platform is windows, using mingw. When cross-compiling the arm version of qt, if configure does not add -sysroot, it will report "ERROR: Cannot compile a minimal program. The toolchain or ...
0
votes
2
answers
64
views
undefined reference to symbol 'clock_gettime@@GLIBC_2.4 In rust static library for musl target
I'm trying to use a second rust library ( via cbindgen ) with my cpp program on a musl target. I use cross to crosscompile. The exact error is:
/mnt/HDD/Project/inkbox-build/inkbox/compiled-binaries/...
0
votes
0
answers
43
views
Cross compiling rust project on armv7 using docker
I am trying to build my project for armv7 on a Mac (M1). The project uses openssl and declares it as dependency like this:
openssl = { version = "0.10", features = ["vendored"] }
...
0
votes
1
answer
46
views
Error when cross-compiling ROS2 from source for CHERI arm64
I'm trying to cross-compile ROS2 Humble for Morello arm64. This architecture is near identical to standard arm64 but uses CHERI capability flags, which requires me to build everything from source.
I'm ...
0
votes
0
answers
51
views
Cannot compile simple program which uses ARM Neon for Cortex A53
I am trying to cross compile a large project (XNNPACK at this specific commit) for an ARM Cortex A53 based linux system. This project uses ARMs arm_neon.h header and functions. While compiling, I get ...
0
votes
0
answers
75
views
ROS2 cross compile colcon build: Could NOT find Python3 (missing: Python3_NumPy_INCLUDE_DIRS NumPy) (found version "3.8.10")
cross compile question
Host: ubuntu20.04 x86_64
target: ubuntu20.04 aarch64
toolchain: gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu
sysroot: sysroot-glibc-linaro-2.25-2019.12-aarch64-linux-gnu
...
0
votes
0
answers
42
views
Cross Compilation of Graphical Applications from WSL2
My app compiles with the 32-bit version of mingw inside of Windows. I've been trying to cross compile from WSL2 using the 64-bit version of mingw.
Both apps compile, but only the 32-bit version works. ...
0
votes
0
answers
14
views
build python c extension for android
I am trying to build a C++ module for Python on Android. My host system is Ubuntu 22.04 on x64. The issue I am running into is that it is unable to use the host python headers when I am targeting ...
0
votes
0
answers
33
views
How do I compile from C++ to Java with NestedVM?
I finally figured out how to build NestedVM. It's a C++ to Java compiler. You pretty much have to use CentOS to build it. The only thing now is I don't know how to use it from there. There isn't much ...
0
votes
1
answer
45
views
What is the diffrecne between -mfloat-abi=softfp and -mfloat-abi=hard flags? [duplicate]
What is the difference between -mfloat-abi=softfp and -mfloat-abi=hard cross compiler flags?
I am working on an embedded Linux project and below is some info that you might need to answer my question ...
0
votes
0
answers
61
views
arm64-w64-mingw32-gcc: command not found
I've followed some guide, claiming that mingw-w64 can be used, to compile an exe on Linux. I've installed it with sudo apt install mingw-w64. I doesn't seem to work.
┌──(parallels㉿kali-linux-2022-2)-[~...
0
votes
0
answers
40
views
Cross-compiling a loadable kernel module for Android
I'm trying to install the LiME tool for memory dumps in Android. LiME is implemented through a loadable kernel module, which, as I understand, forces me to prepare and compile the kernel for it. Their ...
0
votes
0
answers
13
views
libapr compilation fails when compiled through the Dockerfile, but works in an interactive session, why?
I'm trying to modify a dockcross image to include the Apache Portable Runtime lib inside of the Docker image for a riscv64 linux dockcross image. Here's the relevant command I've appended to the end ...
0
votes
0
answers
18
views
LIBCURL compilation failure on ARM 64 machine using cross compiler arm-octasic-linux-gnueabi
I am trying to install compile & install LibCurl on ARM 64 machine.
Cross compiler used is octasic/01.09.04/sysroots/x86_64-octasicsdk-linux/usr/bin/arm-octasic-linux-gnueabi/arm-octasic-linux-...
0
votes
0
answers
31
views
Building NodeJs with Cross-Compiling Toolchain - icupkg: /usr/lib/libm.so.6: version `GLIBC_2.29' not found
I'm barely new with compiling NodeJs from sources but I really need to do it to build a custom package for the Synology package store.
They've got a chrooted environnement with a dedicated toolchain ...
0
votes
0
answers
29
views
How to prevent specific Yocto recipes from being installed into eSDK?
Is there a way to prevent specific Yocto recipes (the recipe's headers, libs, etc.) from being installed into the eSDK?
I am fairly new to Yocto and am trying to build an eSDK of SDK_EXT_TYPE = "...
0
votes
0
answers
29
views
gtkmm.h cannot open source file (Cross Compiling in Visual Studio for RaspberryPI)
I am currently using Visual Studio 2019 in Windows to develop an application that should run on a Raspberry PI.
I didn't have problems setting up other libraries (Like wiringPi or jsoncpp) but the ...
0
votes
0
answers
32
views
linker error in Android NDK r25c when cross-compiling FFmpeg
I am cross compiling FFmpeg for Android(aarch64) using Android NDK r25c on Linux x86_64 platform. The errors generated by the linker are because of enabling the LTO option.
On disabling the LTO ...
1
vote
1
answer
124
views
Cross-Compiling from macOS to Raspberry Pi 4 with Clang and CMake
Hoping a CMake/Clang guru can help out here! I'm trying to setup cross compiling from macOS (13.4.1) to Raspberry Pi 4B running Raspberry Pi OS 64-bit full version. The overall goal is to use clang ...
0
votes
1
answer
33
views
How do I build librevenge static libraries (*.lib) for use in Windows?
I am unable to find a working solution for building the librevenge static libs for Windows.
For wider context, I need to build the librevenge static libraries because this is a dependancy for the ...
0
votes
0
answers
79
views
How to write a linker script to place variables in specific segment in shared object?
I have thousands of global variables of type struct My_Str_A and another thousands of global variables of type struct My_Str_B. They are partly initialized. By 'partly', I mean for everyone of the ...
0
votes
0
answers
35
views
TensorFlow Lite C++ API for RaspberryPI 4
I have to build a program running on Raspberry PI that uses TensorFlow Lite to run inference. The program must be written in C++, so I have to build TensorFlow Lite C++ API from source. I am referring ...
0
votes
1
answer
123
views
Issues with cross compilation C to MIPS
I'm having an issue implementing Dijkstra's algorithm in MIPS (more specifically what I presume to be MIPS R10000 given that I've been told to use the RSIM built into our servers).
Because this is ...