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

learn more… | top users | synonyms

0
votes
0answers
33 views

Use gcc-4.6-arm-linux-gnueabihf to compile .c file, What is the command?

I am doing cross compiling. I install the gcc-4.6-arm-linux-gnueabihf and want to use it to compile the .c file(example of hello world) and then run it on ARM. I don't know what is the exact command. ...
0
votes
1answer
16 views

What is the /opt/mingw64 /opt/mingw32 equivalent for Ubuntu

Many manuals and tutorials about cross compiling windows binaries with the MinGW toolchain pointing out /opt/mingw64 or /opt/mingw32. E.g. like this $ sudo PATH=$PATH:/opt/mingw64/bin make install ...
0
votes
1answer
63 views

I want to compile a .c file

export CROSS_COMPILE=~/gcc-linaro/bin/arm-linux-gnueabihf- ${CROSS_COMPILE}gcc -o mblast mblast.c When I tried the above commands after the following command: gksudo ...
0
votes
1answer
29 views

How to use apt-get to download multi-arch library?

Is it possible to force apt-get to download a multi-architecture binary of the library I want to install? Or is apt-get not the right tool for this?
0
votes
0answers
24 views

ARM Compiling on Ubuntu 12.04

I'm trying at the moment to compile a SDK with menuconfig for an arm processor, which is built on a raspberry pi. I have already configured the .config file, but I have come across these errors: ...
3
votes
0answers
35 views

Cross compile for ARM using gcc-multilibs

There are various questions available in AskUbuntu related to Cross compiling. They were not of much help to me. I used to work on gcc-4.5/4.6 for ARM. It was available in Ubuntu repo under the name ...
1
vote
0answers
245 views

Problems installing gcc for cross compiling for ARM

I've been trying to install the gcc-arm-linux-fnueabi package, and I've done it a few times by a few different methods but I always seem to be missing the c++ folder in the includes directory. To ...
0
votes
0answers
115 views

How to: Install Arm cross compilation for GCC4.8 in Ubuntu 12.04

First off, I'm new to Linux and have installed ubuntu 12.04 as a VM to compile code to an ARM dev. kit. Since only the 12.04 version is supported on the dev. kit I'm unable to install e.g. latest ...
1
vote
0answers
309 views

HOSTCC scripts/basic/fixdep gcc: error trying to exec 'cc1': execvp: No such file or directory

hardik@ubuntu:~/ti-sdk-beagleboard-05.07.00.00/board-support/linux-3.3.7$ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage HOSTCC scripts/basic/fixdep gcc: error trying to exec 'cc1': ...
0
votes
0answers
48 views

Compile multiarch packages for some mingw architecture

I want to install some generally used cross compilation libraries (iconv, boost, …) on my Ubuntu system using multiarch. I remember that I saw a tutorial for that but I cannot find it at the moment ...
1
vote
1answer
75 views

cross compiling error for helloworld program

I have already created the amhello-1.0.tar.gz using this tutorial click to open now am trying to make cross compiling but error occurs. i am following this tutorial click to open after entering ...
-1
votes
1answer
63 views

please tell me how i can create .exe files for windows . my code is in C language gtk+

i want to create a .exe file which can run on windows. i have written a simple code to generate a window with a button in gtk. i have compiled this code and it is working properly using the command ...
1
vote
0answers
97 views

Installing GCC Cross-Compiler for i586-elf

I was following a tutorial http://wiki.osdev.org/Main_Page to build an OS. I needed to install a cross compiler for i586-elf (Executable and Linkable Format). How to install it on ubuntu 12.04 ?
0
votes
0answers
115 views

Cross-compile to 32-bit with bfd support

Is there any method to cross-compile application for 32-bit (under 64-bit host) with bfd support. # compiles fine for host $ g++ -m64 test.cpp -liberty -lbfd # can't find 32-bit iberty and bfd $ g++ ...
0
votes
2answers
278 views

Cross compiling, library gmp not found

I'm trying to cross compile StrongSwan package on Ubuntu for Synology NAS using official Synology toolchain. Host: hostname = ubuntu uname -m = i686 uname -r = 3.8.0-32-generic uname -s = Linux ...
0
votes
0answers
48 views

Cross compilation of udns for power pc

I have libraries of x86 architecture that I want to cross compile for power pc. I have already cross compiled different libraries for power pc by setting environment variables for powerpc and using ...
0
votes
0answers
65 views

Native compile Ubuntu-12.04 on Powerpc-64bit

I have a Freescale T4240QDS PowerPC-64bit board and i have ported embedded linux on the board provided from Freescale. Now i need to download the Ubuntu source on the Freescale T4240QDS PowerPC and do ...
0
votes
1answer
277 views

Trying to compile powertop for arm using cross compile in Ubuntu with malloc issue

I have been trying to compile powertop for an arm device. I saw powertop talked about here quite a bit and I am using Ubuntu to cross compile for the armv7l. The configure goes through checking ...
1
vote
0answers
265 views

QT5.0 Cross compile for AM1808

I have a requirement to implement the JSON for file transfer. I found that QJsonDocument is only supported to the QT5.0. So that I am trying to Cross compile the QT5.0 for my processor(AM1808 ARM9). ...
0
votes
0answers
136 views

Cross compiler from Ubuntu 12.04 to a Windows

I have a program that run greats in Ubuntu 12.04, I'm using g++ to compile and it's written in C++ but how would i compile the program to work in a windows ? I've been for an answer but I keep ...
0
votes
1answer
131 views

How to compile git for solaris under ubuntu? (cross compile git)

I'm renting webspace with SSH access and I want to host a git repository on it. I can log in using SSH and put websites up. However, git is not installed on the server. Unfortunately, GCC is also not ...
1
vote
1answer
580 views

How to cross compile latest mono-3.2.0 for arm (hard float) platform on ubuntu 13.04?

I have a Beagle Bone Black board. I have prepared a sd card for board. On sd card is prepared with Ubuntu-13.04-console-armhf-2013-07-22. My booard is booting form sd card succesfully. Now I want to ...
0
votes
0answers
53 views

Cross compile LibzDb from ARM A9 based Micro processor

I am using AM1808 ARM9 based micro processor for my project on ubuntu v10.04 using G++ compiler. I am using sqlite3 database for data management. My application needs to multiple access to database ...
1
vote
1answer
444 views

Reading an object file

I have installed a gcc compiler that is compatible another processor(not the one I am using). When i use the objdump command to read the object file i get the following, objdump -d one.o one.o: ...
0
votes
0answers
82 views

crosstool-nc install failure

I am trying to install crosstool-nc in order to generate a cross compiler for the ARM processor. I am able to run configure successfully, but make fails. It appears that when bison is trying to create ...
0
votes
1answer
366 views

Compiling a DLL project written in c++

I am new to Linux, but I have tried Ubuntu for basic stuff and I really like it. I want to explore the possibility to switch from Windows. However, at the moment I am working with Microsoft Visual ...
2
votes
0answers
131 views

Cross-compiler for Darwin X?

Is there a way to cross compile for Mac OS X and iOS on Ubuntu? I found mingw-w64 packages and they work well for Windows and it seems I can cross compile for Android as well with gcc-arm-linux ...
2
votes
1answer
1k views

Cross compile SQLite for ARM

I am using SQLite 3 for Database management in my ARM9 based microprocessor. I want to cross compile the latest version of the SQLite 3 for my project in Linux (Ubuntu 10.04). I am using the ...
8
votes
3answers
3k views

Is there way to compile Qt5 programs, written with c++, to Ubuntu Touch?

I'm creating a program with Qt5 and C++, and I would like to compile my program for Ubuntu Touch Preview or Ubuntu desktop arm. I'm running those systems on Nexus 7. I have found the right C++ ...
4
votes
3answers
5k views

Cross-compilation issues with GCC/G++

I am using gcc to compile a C++ application on my CI server (http://ci.berboe.co.uk) and as the vps that it is compiled on has the x86-64 architecture I need to cross-compile to get the compiled ...
1
vote
0answers
167 views

cross compiling for m68000 (embedded system)

How do I cross-compile for a Motorola 68000? The GCC main pages list gcc -m68000 as an option http://gcc.gnu.org/onlinedocs/gcc-4.0.4/gcc/M680x0-Options.html#M680x0-Options, but when I do gcc -m68000 ...
1
vote
2answers
4k views

How to cross-compile programs for the Raspberry Pi with gcc?

I am fond of using gcc to compile small little C and C++ programs on my main computer. However, I also have a Raspberry Pi, and, being a 700-MHz single-core computer, I would prefer to not have to do ...
2
votes
3answers
15k views

How do I install drivers for the Atheros AR8161 Ethernet controller on 64-bit 12.10 using an Internet-connected 32-bit 12.04 PC and a USB flash drive?

How do I install drivers for the Atheros AR8161 Ethernet controller on 64-bit 12.10 using an Internet-connected 32-bit 12.04 PC and a USB flash drive? Having bought a new HP Elite desktop PC and ...
2
votes
1answer
485 views

Is it possible to cross-compile .deb files using debhelper? How?

I have a package (Dymo CUPS drivers in this instance) that I need to compile to a .deb file to include in a private network's repositories. The source itself is sufficiently architecture independent ...
1
vote
1answer
1k views

/bin/sh: 1: arm-linux-gnueabi-gcc: not found

I'm working on eclipse indigo on Ubuntu 12.04. And I'm trying to cross compile so I downloaded gcc-4.4-arm-linux-gnueabiarm-linux-gnueabi-4.4 and I changed the C/C++ Build setting and I added includes ...
0
votes
1answer
545 views

Cross compile packages, question regarding armhf dependencies

I'm attempting to cross compile a couple Ubuntu Precise Packages, My current arch is amd64 my target is armhf. I have the correct cross compile GCC toolchain installed, I have correctly utilized the ...
14
votes
1answer
7k views

How do I cross-compile my application for Ubuntu 12.04 armhf architecture on a Ubuntu 12.04 i386 host?

I have a large application I have written. I can successfully compile the application in the following scenarios: in a native compilation for the i386 host running Ubuntu 12.04 natively on a ...
2
votes
1answer
209 views

Compiling on Ubuntu (10 or 11) 32 bits for Debian 6 64 bits

Does a program compiled on Ubuntu 32 bits work on Debian 6 64 bits? I went googling and found: "Normally a program compiled on a 32bit system works on a 64 also, but not the other way." So the 32 ...
2
votes
0answers
436 views

make fails because it doesn't know “headers_install”

I'm trying to setup buildroot for cross-compiling a custom app. / # uname -a Linux Venus 2.6.12.6-VENUS #323634 Wed May 25 13:40:36 CST 2011 mips unknown So far I chose kernel version 2.6.12.6 in ...
1
vote
0answers
236 views

How do I install QtSdk for Harmattan target development? [closed]

I want to make development targeting Harmattan (aka Meego / Meamo6 / N9). My first try was to install QtSdk directly from Nokia installer. This works. But I would rather install thinks using ...
0
votes
0answers
84 views

How do I build Qt4 for Windows so I can compile a Windows application? [duplicate]

Possible Duplicate: How to setup Qt Creator to compile Windows executables? I would like to know how to build QT4 for Windows so I can build the latest Warzone 2100 master on my computer. ...