Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cross-compilation]

Questions about cross compilation - creating executable code for a platform different than the one on which compiler is running.

0
votes
0answers
12 views

how to cross compile a .deb package with a custom toolchain

I am running Ubuntu Bionic Beaver and have a toolchain from Linaro (gcc-linaro-7.3.1-2018.05-i686_aarch64-linux-gnu) that I need to use to cross compile my kernel (4.9.140) for the nvidia jetson TX2 ...
0
votes
0answers
43 views

Error when mounting .img device on ubuntu 18.10 [duplicate]

I am trying to cross-compile a 64 bit kernel for a raspberry pi image (raspian). So far everything has worked up to mounting the raspbian image. I running my ubuntu through VM player. Im following ...
5
votes
1answer
177 views

How do I create a DMG file on linux Ubuntu for MacOS

I cross compiled a program on linux for MacOS and now I want that MacOS binary to convert to DMG file for MacOS. Is there a way to convert a MacOS binary on Linux (Ubuntu) into DMG file for MacOS?
0
votes
0answers
83 views

Cross Compilation for Raspberry — No rule to make target

I am trying to cross-compile my project on Ubuntu16.04 LTS for Raspberry PI. I am using QT for development and CMake. I have configured the toolchain. When I build my project I get following error: ...
0
votes
0answers
494 views

libc.so.6: cannot open shared object file: No such file or directory

I want to cross compile the C code from Linux Ubuntu PC to Beagle Bone Black using "arm-cortexa8-linux-gnueabihf-gcc compiler. But I face following error: root@ubuntu:/home/teqlinux/HMI_SCADA/...
0
votes
0answers
62 views

Archiving the sysroot

I need to make an archive of my ARM device's sysroot (Ubuntu 16.04) for cross-compilation. By sysroot I mean /usr/lib, /usr/include, and the other needed dirs. What would be the best way to do this?...
2
votes
1answer
981 views

Cross-compile for armhf and install a static library

I have set up a cross-compile docker instance. In a nutshell I started setting up the apt-get update apt-get install binutils-multiarch dpkg --add-architecture armhf # Manually add correct armhf ...
2
votes
1answer
206 views

Install Python2.7 and 3 arm headers in a amd64 architecture machine

I've been struggling around because I want to cross-compile an application which needs the Python to compile. Just in case you are curious the case is that when it goes to the pyconfig.h it tries to ...
0
votes
0answers
421 views

Is there a package with the aarch64 version of gcc-arm-none-eabi for bare metal Newlib?

On Ubuntu 18.04, I was able to use gcc-arm-none-eabi successfully with Newlib as described at: https://github.com/cirosantilli2/gem5-bare-metal-examples/tree/994a4b5085bba62331704889b9689c7b261c289d ...
0
votes
0answers
65 views

rebuild ubuntu from source, is it possible? How?

I want to rebuild Ubuntu for another hardware. So I'm wondering if there is any way to get the current stable source code for all software locally installed on my computer and recompiled them with ...
1
vote
0answers
24 views

What are the officially supported cross compilers for Ubuntu server alternative architectures like ARM?

I'm interested in the official Ubuntu server ARM image: https://www.ubuntu.com/download/server/arm How to properly cross compile for it from my x86_64 host? While a gcc-5-aarch64-linux-gnu C hello ...
1
vote
1answer
327 views

How to compile and integrate ffmpeg with openssl support?

How can I cross-compile FFMPEG for ARM with openssl support? I have tried normal compilation of FFMPEG, but I need openssl support also.
0
votes
1answer
288 views

Exec format error on node-v8.11.1/out/Release/icupkg while cross compiling Nodejs for ARM7

I forked Nodejs-ARM-builder repository and update Vagrant box to Ubuntu 18.04 (here's my repo: https://github.com/lbrutti/Nodejs-ARM-builder ). When trying to cross compile NodeJS for ARM Cortex (I ...
0
votes
1answer
962 views

fatal error: netlink/genl/genl.h: No such file or directory during cross compile [closed]

I need to cross compile hostapd, even after editing makefile to do cross compilation,am getting the above error
2
votes
0answers
191 views

obtain gcc-6-cross for u-boot making on ubuntu 16.04

Try to build RPi 3 u-boot, but it required cross compiler aarch64-linux-gun-gcc to be version 6 or later. On Ubuntu 16.04, it's version 5. Find gcc-6-cross source but has not much knowledge or ...
1
vote
0answers
124 views

How to cross compile Aircrack-ng for windows from linux? [closed]

I have built aircrack-ng for linux successfully, Now i'm trying to cross-compile it for Windows from linux system i have installed mingw compilers on linux using package manager how to configure mingw ...
0
votes
0answers
800 views

Ubuntu Cross-compile for ARM - PATH variable - bash error

I have downloaded CodeSourcery Toolchain tools located to the following path: root@ab-pc:~/arm-2009q1/bin# arm-none-linux-gnueabi-ar arm-none-linux-gnueabi-ld arm-none-linux-gnueabi-as arm-none-...
1
vote
1answer
757 views

Cross-compiling to ARM: error trying to exec 'cc1': No such file or directory

I am trying to compile for my target machine which uses the arm-none-gnueabi-gcc compiler. But when I try to cross-compile I get the error in my Ubuntu machine as: arm-none-linux-gnueabi-gcc: error ...
-1
votes
1answer
85 views

Which package contains libstdc++ mips cross n32?

I'm looking for the package that contains libstdc++ for mips cross compile, n32 alignment. Ubuntu 16.04 host.
1
vote
1answer
128 views

I'm looking for materials or links about cross-compiling, like eabi, etc

I'm looking for materials or links about cross-compiling, like eabi, etc. I'm new to Linux-based cross-compiling, and I want to develop my knowledge.
3
votes
1answer
2k views

How to compile C GTK3+ program in Ubuntu for windows?

I am using and gcc-7 and mingw-w64.I want to compile a c gtk3+ program in Linux using mingw so that it will produce .exe file which can be run in windows.I am able to Compile normal c programs using ...
0
votes
0answers
51 views

Errors in update after adding architecture with dpkg [duplicate]

I'm performing the preparation of the development environment for cross-compilation. And I have a question about errors when running sudo apt-get update. I have a ubuntu 16.04 64 bit system. My ...
0
votes
0answers
228 views

pam_authenticate return's PAM_MODULE_UNKNOWN ( returns 28 ), how to resolve?

Downloaded the source Linux-PAM-1.3.0.tar.gz version then, configured and compiled using command ./configure --prefix=/u02/tasks/linux-pam/Linux-PAM-1.3.0/output/pre --exec-prefix=/u02/tasks/linux-...
2
votes
1answer
3k views

cross compilation for ARM: error no such file or directory

I have written simple Hello world program and compiled it with gcc-arm-linux-gnueabi compiler. It compiles well but when i try to execute it on ARM machine it complains "no such file or directory". I ...
0
votes
1answer
420 views

linaro cross compiling with .deb dependency

I can't find the answers so I am asking here. I use Linaro 64bit ARM cross compiler to compile my code on a local Ubuntu 14.04 64bit Linux on Intel (gcc-linaro-5.3-2016.02-x86_64_aarch64-linux-gnu/...
0
votes
1answer
3k views

cannot find crt1.o No such file or directory

I am trying to compile and link a 32 bit version of a program because the language does not have 64 bit libraries. My ubuntu is 14.04 64 bit. When I try to link the program it complains cannot find ...
3
votes
2answers
731 views

snapcraft crosscompile

I am on a x86_64-linux-gnu machine and trying to build a snap from source for arm-linux-gnueabihf (Raspberry Pi3) using autotools. I manage to build the snap but after I upload to the store it always ...
2
votes
0answers
351 views

Updating Ubuntu's ARM64 toolchain

I was trying to compile an ARM64 linux kernel with CONFIG_KASAN and CONFIG_KCOV and it seems that the compiler toolchain I have is too old. I get an error message stating Cannot use ...
1
vote
0answers
499 views

Get and manage dev lib packages for arm on x86 host?

Is there a proper way to maintain packages for architectures other than the host? I need a bunch of libraries for a project I am porting to android, and I notice that all of them are available for ...
2
votes
0answers
1k views

Despite Multiarch settings, Ubuntu 16.04 fails to keeping both 32 bit and 64 bit libraries installed in OS

I need to compile/link 32 bit and 64 bit C/C++ executables on Ubuntu 16.04 (64 bit). I executed the following commandlines: sudo apt-get install build-essential sudo apt-get install automake libtool ...
1
vote
0answers
878 views

mingw-64 GCC is broken under Ubuntu

I'm trying to cross-compile SFML from Linux to Windows for a project of mine. Prebuilt SFML packages are not an option. So, I installed the mingw-w64 package,and set up a toolchain file, and went ...
4
votes
1answer
621 views

When cross-compiling the kernel, how can I stop it making from clean every time when I just want to modify one file?

I'm doing a cross-compile Ubuntu kernel build. I am following instructions for building Ubuntu for omap: fakeroot debian/rules clean do_tools=false skipabi=true skipmodule=true dpkg-buildpackage -B -...
1
vote
1answer
2k views

How can I learn all the options I can pass to DEB_BUILD_OPTIONS?

I'm compiling debian packages with xdeb, and I'm trying to understand how this variable DEB_BUILD_OPTIONS works and I might be able to specify 32-bit over 64-bit for a userspace app. The best way I'...
1
vote
0answers
178 views

Is libffi.pc broken on Ubuntu?

I'm trying to cross-compile wayland (from freedesktop.org) for a Trusty Tahr armhf environment. To set up the cross-compile I have an arm pkg-config script that properly sets PKG_CONFIG_LIBDIR and ...
2
votes
2answers
13k views

How do I create a Windows executable with PyInstaller on Ubuntu?

I created a game using pygame, and I wish to export it to a .exe file. I've used pyinstaller for this, as it is available for Ubuntu. When I run the --onefile game, it works perfectly fine (on my ...
0
votes
1answer
550 views

Linking IDE with right compiler for ARM cross compiling

I have installed Eclipse as IDE and gcc-4.7-arm-linux-gnueabihf: sudo apt-get install gcc-4.7-arm-linux-gnueabihf to be able to develop code for ARM and cross compile it on my Ubuntu. But I don't ...
3
votes
1answer
1k views

GCC --disable-nls, --enable-languages, --without-headers Unrecognized

I'm trying to make a bash script that will install a gcc cross-compiler for i686-elf on a Debian computer, but I keep getting the same error: configure: creating ./config.status config.status: ...
1
vote
0answers
209 views

Building Ubuntu for ARM TI AM437x

The following wiki shows how to compile the Ubuntu kernel for arm : https://wiki.ubuntu.com/KernelTeam/ARMKernelCrossCompile. Here, ti-omap4 configuration has been used. I would like to build the ...
3
votes
1answer
183 views

Compile or Cross-compile open source driver for Aquaris E4.5 Ubuntu Phone

I am trying to connect an OTG USB-Ethernet adapter on the Aquaris E4.5 running kernel 3.4.67. The adapter is Cable Matters AX88179 which has open source drivers available for linux. The installation ...
8
votes
1answer
12k views

14.04.01 32-bit: Missing g++ 64-bit include files when cross-compiling

So, I've got 32-bit Xubuntu 14.04.1 installed. We have some interface code where we intend to release SOs for the various platforms we support, and Windows DLLs. (Yes I know, binary release bad, but ...
1
vote
0answers
425 views

How to cross compile to an old i486/i586 architecture (Vortex86DX)

I need to cross compile to Vortex86DX. It seens to have a i486/i586 architecure. What packages is needed to install on Ubuntu ? As stated here, just asking the compiler to -match=i586 doesn´t work ...
2
votes
2answers
1k views

Why a single cross compiling doesnt work? Error: bash: ./test1: No such file or directory

I'm using my Ubuntu 14.10 x64 PC to cross compile to run my programs in my Beaglebone Black but I'm getting a strange error when I try to run the compiled program in my BBB. The command lines bellow ...
2
votes
1answer
1k views

Solving the package dependency list automatically for building ubuntu touch

I'm following the guide in XDA Link to install nexus 9 device with Ubuntu touch. But I'm stuck in the installation of tool-chain and cross compiler. I am stuck in the following sudo apt-get install ...
4
votes
2answers
24k views

Error while loading shared library libz.so.1 while cross compiling for arm-linux

I'm trying to cross compile an opencv app on Ubuntu 14.04 to run on an ARM core. I can compile the open cv app fine on Ubuntu with g++ test.c -o test -I /usr/include/opencv -I /usr/include/opencv2 -L ...
6
votes
1answer
16k views

Building a windows executable in qt on a Linux system

I have been having the hardest time trying to compile a .pro file in Linux to make a windows executable. I have read all the links in the world on using mingw and nothing has worked as of yet. Is ...
1
vote
1answer
2k views

Cross compling Gstreamer for ARM

Hi i was trying to compile Gstreamer for ARM platform. I am facing some issues as followed i have set INSTALL_PATH installed glib at INSTALL_PATH ./configure --prefix=$INSTALL_PATH CC=arm-poky-linux-...
10
votes
2answers
32k views

fatal error: netlink/genl/genl.h: No such file or directory

I am cross-compiling hostapd for openwrt. I am getting fatal error: netlink/genl/genl.h: No such file or directory. I already have libnl-3.2.24 installed. If i directly compile (not cross-compile) ...
2
votes
3answers
2k views

Raspberry Pi C++11 std::thread: pure virtual method called

Ubuntu 14.04. I've installed gcc-arm-linux-gnueabihf, g++-arm-linux-gnueabihf (tried 4.8 and 4.9 from utopic). Code that uses std::thread: #include <iostream> #include <chrono> #include &...
4
votes
2answers
7k views

Help with cross-compiling for ARM

I have recently been trying to cross-compile programs for ARM. However, when I run make, I always get an error within a minute or less that says something like /usr/lib/gcc-cross/arm-linux-gnueabihf/...
1
vote
0answers
296 views

How to cross compile the qtmultimedia-opensource-src for armhf?

Repost from https://answers.launchpad.net/ubuntu/+source/qtmultimedia-opensource-src/+question/264619 Cross I can't figure out how to build it with cross compiler (on trusty-amd64 for utopic-armhf):...