Go to advanced search

by Pavel_47
Tue Oct 29, 2019 12:58 pm
Forum: C/C++
Topic: Build Qt cross-compile toolchain on Ubuntu
Replies: 8
Views: 1208

Re: Build Qt cross-compile toolchain on Ubuntu

... features. Well ... I was in hurry, when I went through your post for the 1st time and missed this last detail and the fact that you use RPi for compiling. I've tried already entirely native Qt development on RPi: as for me RPi is too slow for it especially when using Qt Creator. So, your approach ...
by Heater
Tue Oct 29, 2019 12:05 pm
Forum: C/C++
Topic: Build Qt cross-compile toolchain on Ubuntu
Replies: 8
Views: 1208

Re: Build Qt cross-compile toolchain on Ubuntu

... I have build Qt 5 on the Pi itself. I hate messing around with building cross compilers and cross compiling libraries. I used the Qt build on Pi instructions: https://wiki.qt.io/Native_Build_of_Qt5_on_a_Raspberry_Pi ...
by a.rich
Mon Oct 28, 2019 1:27 pm
Forum: Troubleshooting
Topic: Apply overlay on pi4 only
Replies: 6
Views: 900

Re: Apply overlay on pi4 only

... an issue with the conditional parsing). Since it may be relevant, I'm cross-compiling the kernel myself, from ref "raspberrypi-kernel_1.20190925-1".
by SailAvid
Mon Oct 28, 2019 8:19 am
Forum: C/C++
Topic: Problems cross-compiling for Zero with gcc
Replies: 6
Views: 4873

Re: Problems cross-compiling for Zero with gcc

You need to make sure that your toolchain was built with the flag --with-arch=armv6 This is normally not the case. And as plugwash mentioned, this will lead to wrong startup code. I created a github repository which contains a toolchain that is working for Raspi Zero with Raspbian Buster. (Tested on...
by ALIBERAL
Sun Oct 27, 2019 9:51 pm
Forum: Advanced users
Topic: Develop new kernel modules on Raspberry Pi4. Problems updating to a new kernel
Replies: 0
Views: 286

Develop new kernel modules on Raspberry Pi4. Problems updating to a new kernel

... --depth=1 --branch rpi-4.19.y https://github.com/raspberrypi/linux I am cross-compiling and installing the new kernel, modules, and Device Tree blobs on the SD card. Then ...
by Heater
Thu Oct 24, 2019 9:36 am
Forum: C/C++
Topic: Cross Compiling C code from Windows with OpenSSL
Replies: 3
Views: 1045

Re: Cross Compiling C code from Windows with OpenSSL

Excellent!
by ashwinnat
Thu Oct 24, 2019 9:32 am
Forum: C/C++
Topic: Cross Compiling C code from Windows with OpenSSL
Replies: 3
Views: 1045

Re: Cross Compiling C code from Windows with OpenSSL

Thanks for the help. This solved my linker error. The steps I followed are
  1. I downloaded and built the source files of openSSL (on my raspberry Pi).
  2. Copied all the libcrytpo files into the directory where my program was saved
  3. Compile and link the code using gcc test.c -o test -lcrypto -L .
by Heater
Thu Oct 24, 2019 8:29 am
Forum: C/C++
Topic: Cross Compiling C code from Windows with OpenSSL
Replies: 3
Views: 1045

Re: Cross Compiling C code from Windows with OpenSSL

Assuming you have openssl source code on your system somewhere you will need the -I option to gcc so that it can find where the openssl header files are. See internet for examples: https://www.rapidtables.com/code/linux/gcc/gcc-i.html You will also need -l and -L to specify the library files used an...
by ashwinnat
Thu Oct 24, 2019 7:31 am
Forum: C/C++
Topic: Cross Compiling C code from Windows with OpenSSL
Replies: 3
Views: 1045

Cross Compiling C code from Windows with OpenSSL

Hi, I write my C application on my windows computer and cross compile it for the Raspberry Pi platform using the Raspberry Pi Toolchain for Windows. I am currently writing a module for my application that uses the OpenSSL libraries to compute the SHA-256 ...
by jayben
Wed Oct 23, 2019 8:41 am
Forum: C/C++
Topic: GCC compiler for SAMD21
Replies: 5
Views: 1928

Re: GCC compiler for SAMD21

Raspbian Buster does include the 'arm-none-eabi' compiler, see my blog on cross-compiling and debugging the NRF52:
https://iosoft.blog/arm-gcc-lean-nordic-nrf52/
I haven't used it on SAM processors, but if you have the necessary startup code, the build process should be similar.
by Schnoogle
Mon Oct 21, 2019 8:37 am
Forum: Bare metal, Assembly language
Topic: [SLOVED] Aarch64 - "stp q0, q0, [x8, #224]" hangs my Pi3
Replies: 6
Views: 2230

Re: Aarch64 - "stp q0, q0, [x8, #224]" hangs my Pi3

... nor is it a mixture of 32bit and 64bit. I'm using ARM's Aarch64-elf cross compiler toolchain to build the RasPi bare metal kernel on my Windows machine. The only "speciality" might be, that I'm not compiling from C but rather using Rust and I'm not sure whether I could pass ...
by Gavinmc42
Sun Oct 20, 2019 1:21 am
Forum: Raspberry Pi OS
Topic: experimental support for multiarch with Raspbian and Debian arm64
Replies: 44
Views: 11833

Re: experimental support for multiarch with Raspbian and Debian arm64

... as not everything is 64bit yet and some probably won't ever be. Cross compiling is a bit of a pain at the moment, but native compiling just works most of the time. ...
by Rahul Patel
Fri Oct 18, 2019 8:32 am
Forum: Raspberry Pi OS
Topic: Raspbian cross toolchain
Replies: 8
Views: 1256

Re: Raspbian cross toolchain

No other OS/hardware platform involved in this development environment.

No we are not compiling on the RPi for deployment to some other platform.

Just we need cross environment in my host pc (opensus leap13, 64bit) for bulding my application code for rpi3+.
by B.Goode
Thu Oct 17, 2019 2:16 pm
Forum: Raspberry Pi OS
Topic: Raspbian cross toolchain
Replies: 8
Views: 1256

Re: Raspbian cross toolchain

... am using raspberry pi 3 b+ with running on raspbian-stretch. I need to cross compile my application and several third party packages for that I ... OS/hardware platform involved in this development environment? Are you compiling on the RPi for deployment to some other platform? Or the opposite: ...
by rish11
Wed Oct 16, 2019 3:44 pm
Forum: Advanced users
Topic: Kernel Building -- Patches?
Replies: 3
Views: 433

Kernel Building -- Patches?

I am working on cross compiling the kernel at https://github.com/raspberrypi/linux/tree/rpi-4.19.y-rt . It is my understanding that ...
by MikeDB
Mon Oct 14, 2019 10:23 am
Forum: Advanced users
Topic: Pi4 64-bit raspbian kernel for testing - Focus on Pi4
Replies: 355
Views: 140861

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

... look to be clear, thorough and plausible, so I just you give them a go. Cross-compilation on the pi (armv7-> armv8) is possibly another option - ... hundred of times an hour or more as I optimise the algorithms so cross-compiling from another machine becomes a no-go. I wasn't aware of an armv8 ...
by ShiftPlusOne
Mon Oct 14, 2019 7:36 am
Forum: Raspberry Pi OS
Topic: Two new kernels, firmware etc. within two days?
Replies: 7
Views: 1124

Re: Two new kernels, firmware etc. within two days?

... was added, I moved the build over to aarch64, not realising that cross-compiling leaves native binaries that break out-of-tree module builds on the target. I moved ...
by ilovemiso
Thu Oct 10, 2019 5:36 pm
Forum: Advanced users
Topic: How are the firmware binary blobs injected into the kernel?
Replies: 2
Views: 426

How are the firmware binary blobs injected into the kernel?

Hello, Recently, I've got myself into the fun of compiling my own kernel. Before receiving my new RPi4, I thought of trying a few ... kernel beforehand on my (AArch64) phone (since I had a few problems with the cross-compiling tools), but things got me wondering; the kernel compiled successfully, ...
by phofman
Wed Oct 09, 2019 12:17 pm
Forum: Advanced users
Topic: Cross-Compiling Kernel 5.3 - recipe for target 'scripts' failed
Replies: 3
Views: 605

Re: Cross-Compiling Kernel 5.3 - recipe for target 'scripts' failed

... 4.9.3 toolchain arm-rpi-4.9.3-linux-gnueabihf echo PATH=\$PATH:~/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/ >> ~/.bashrc the kernel 5.3 cross-compiled flawless. Not tested running yet (no RPi on hand now), but I believe it will be OK.
by Kendek
Wed Oct 09, 2019 5:30 am
Forum: Advanced users
Topic: Cross-Compiling Kernel 5.3 - recipe for target 'scripts' failed
Replies: 3
Views: 605

Re: Cross-Compiling Kernel 5.3 - recipe for target 'scripts' failed

I don't know, but I'm using this kernel with some minor modifications, compiled directly on Pi, under Ubuntu 19.10. > uname -a Linux RPI4 5.3.3-v8 #1 SMP PREEMPT Fri Oct 4 15:52:50 CEST 2019 aarch64 aarch64 aarch64 GNU/Linux > dmesg | head -n 3 [ 0.000000] Booting Linux on physical CPU 0x0000000000 ...
by phofman
Tue Oct 08, 2019 7:42 pm
Forum: Advanced users
Topic: Cross-Compiling Kernel 5.3 - recipe for target 'scripts' failed
Replies: 3
Views: 605

Cross-Compiling Kernel 5.3 - recipe for target 'scripts' failed

... all (most) latest patches so that testing/patching makes sense. I am cross-compiling branch 5.3.y using steps in https://www.raspberrypi.org/documentation/linux/kernel/building.md ...
by jahboater
Sat Sep 21, 2019 6:00 pm
Forum: C/C++
Topic: Raspberry Pi project in c++ build on Windows
Replies: 4
Views: 749

Re: Raspberry Pi project in c++ build on Windows

I am building an C++ application for RPi but the problem is tha compiling takes too long and it is slowing me down. I am using a RPi 1. My ... running at 1.5GHz by default. Compiling native is always easier than cross compiling.
by Heater
Sat Sep 21, 2019 2:58 am
Forum: C/C++
Topic: Raspberry Pi project in c++ build on Windows
Replies: 4
Views: 749

Re: Raspberry Pi project in c++ build on Windows

... luxury of whatever IDE and other tools one may need. However I do not cross compile for the Pi, I build it as a program for Linux or Windows. I ... to do unit testing of code on the PC. I try to stay away from cross-compiling as much as possible. It's a pain to set up and work with. Also ...
by Gavinmc42
Fri Sep 13, 2019 12:30 pm
Forum: Gentoo
Topic: D language
Replies: 5
Views: 2632

Re: D language

Time to relearn GCC compiling ;) I will need to install the armhf cross compiler for those old dinosaurs 32bit Pi's. I had no luck with DMD and LDC. But Nim did build and Zig ...
by Gavinmc42
Fri Sep 13, 2019 3:00 am
Forum: Gentoo
Topic: D language
Replies: 5
Views: 2632

Re: D language

... think I can figure it out now. Really need that 4GB Pi4 before I start compiling cross compilers.

Go to advanced search