Skip to content
Advertisement

Tag: cross-compiling

How to cross-compile Qt6 on Linux for Windows?

I’m trying to cross-compile Qt 6.2.1. Target – Windows, my machine OS – Linux (Mint 20.2) (both 64bit). Unfortunately I can’t compile it on Windows, so I have to do this cross-compilation. My configure cmd: At the end of CMake work I’m getting this: And then, after cmake –build . –parallel: I have checked (this is also visible in log

Error: “linker ‘cc’ not found” when cross compiling a rust project from windows to linux using cargo

I have a basic rust/cargo project with a single main file and some basic dependencies. The cargo build command works fine when the target is not specified (I am using windows so it builds to windows), but when I try to cross compile the program to linux using cargo build –target=x86_64-unknown-linux-gnu or cargo build –target=x86_64-unknown-linux-musl, the process fails with the

Errors occurs while the final step of gcc make

I build gcc for arm from scratch. In the final step of building gcc occur errors. I’m counting on your help. make Update Solution: bogdan@bogdan-VirtualBox:~/xtools/build2/final-gcc-2$ $gcc_src/configure –build=$buildmach –target=$targetmach –prefix=$installdir CC=gcc –with-sysroot=$sysrootdir –enable-languages=c –with-gnu-as –with-gnu-ld –disable-multilib –with-float=soft –disable-sjlj-exceptions –disable-nls –enable-threads=posix –disable-libmudflap –disable-libssp –enable-long-longx –with-shared –with-gmp=$installdir –with-mpfr=$installdir With that another errors appeared: Answer Solution: bogdan@bogdan-VirtualBox:~/xtools/build2/final-gcc-2$ $gcc_src/configure –build=$buildmach –target=$targetmach –prefix=$installdir CC=gcc –with-sysroot=$sysrootdir –enable-languages=c

How to cross-compile DLL with exported functions

I’m working through a DLL hijacking exercise, and have a DLL written which works as expected when compiled in Visual Studio. Essentially, when the DLL is loaded, it executes a shell command and passes off legitimate functionality (in this example, the CheckEvenOdd and PrintAMessage functions) to the originally intended DLL (in this example, GetEvenOdd.dll). The working code is as follows;

Jlibfprint cross compilation

I’m trying to cross-compile the JNI Bridge Jlibfprint using buildroot. This is the source code. Here is the .mk file: Extract, Patch, Update, Configure, Autoreconfiguring, Patching libtool run without problem. Then it failed at Building stage with this: Then I added, these includes to the /JlibFprint_jni/src/Makefile.am And now it fails with: Answer I downloaded JDK for ARM 32 bits and

Relocations in generic ELF (EM: 183)

This used to work before. I don’t know what changed, the thing is I can’t run anymore. I’m cross-compiling for an aarch64 architecture with ARM cpu’s, using Ubuntu 16.04 x86-64. This is what I’m running to configure: ./configure –host=aarch64-linux-gnu –prefix=/data/data/papi/independent –exec-prefix=/data/data/papi/dependent –with-static-lib=yes –with-shared-lib=no –with-static-tools –with-arch=aarch64 –with-CPU=arm –with-ffsll –with-walltimer=cycle –with-tls=__thread –with-virtualtimer=clock_cputime_id –with-perf-events Logs from running configure: After running make: (…) file

Advertisement