Cross compile GTK+ application from Linux to Windows?

How can I cross compile my GTK+ app (written in C) from Linux to Windows? Could I just replace the "gcc" command with "mingw32"?

How to redirect qDebug, qWarning, qCritical etc output?

I'm using a lot of qDebug() << statements for debug output. Is there any cross-platform way I can redirect that debug output to a file, without resorting to shell scripts? I'm guessing that open()...

How to stop MinGW and MSYS from mangling path names given at the command line

On Windows, I'm cross-compiling a program for ARM/Linux using CodeSourcery's cross-compiler suite. I use MinGW MSYS as my command interpreter, and very often it will mangle my paths and pathnames....

How can I get edge events via GPIO on Linux without a busy-loop?

I'm working an a system with embedded Linux (Kernel 2.6.31). It is a AT91SAM9G20 chip inside, and some of the Pins are forwarded to the outside. Now I want to use them as GPIO Inputs. I read the...

GCC: sorry, unimplemented: 64-bit mode not compiled in

I have built GCC 4.7 on my x86 32-bit linux system. When I try to cross-compile with the -m64 flag I get the following: sorry, unimplemented: 64-bit mode not compiled in while the compiler...

Cross-thread violation on rb_gc()

The codebase I'm working on was recently upgraded from Ruby 1.9.2 to Ruby 1.9.3 and from Rails 3.1 to Rails 3.2.2. Since I'm using RVM I simply did rvm install 1.9.3 which I would have expected...

Using openssl with FFmpeg on Android with NDK

I cross compiled FFmpeg with openssl support using the scripts from the Guardian project however my code crashes whenever I execute the following: System.loadLibrary("crypto"); // loads...

What is the use of various Qt platform plugins?

I was doing some cross compiling of a Qt5.2 application for an ARM based target (TI AM335x EVM) and it was failing to display anything on my platform. After doing some google’ing I found that if...

How to setup i686-elf cross-compiler on linux?

When I was following the Bare Bones tutorial on the OSDev Wiki. I got the error: i686-elf-as: command not found I tried following the GCC Cross-compiler instructions when I run the...

How to resolve "ERROR: libx264 not found"?

I needed to install ffmpeg with libx264 support for enabling H.264 encoding . I installed libx264 successfully using the below script with toolchains available in android-ndk-r9d . #!/bin/bash ...

GCC: Building cross-compiler for ARM - pthread.h not found

Using a Ubuntu 12.04 host, I carefully followed this SO answer here (Recipe for Compiling Binutils and GCC Together) to build GCC and binutils in one tree with all of their dependencies. Here is...

Can GCC compile and run a source code without generating object or executable files?

Can GCC compile and run a source code without generating any output file (neither object nor executable), in a manner that is supported cross-platform? Especially, a solution supported by GCC...

"Narrowing conversion from 'int' to 'char' inside { }" for legal values when cross compiling

I have a C++ project that I compile both using g++ on my machine (compiling to "host") and to an ARM processor using a cross compiler (in my case arm-cortex_a8-linux-gnueabi-g++). I am in the...

meson cross-file for different platforms

In meson you specify a cross-compiler in a cross-file like: [binaries] c = '/opt/yada-yada/gcc/bin/powerpc-yada-yada-gcc' This is great if you know exactly where your compiler is going to live. ...

Cross-compile extension on Linux for Windows

I've managed to build some DLLs on Linux that are necessary for my Python extension using MinGW. Something along these lines: from setuptools.command.build_py import build_py class...

Pyside2 32 bit arm Linux

I am trying to cross compile Qt for Python(PySide2) for my 32-bit ARM Linux system(target) from my Ubuntu 16.04 PC(host). I have built Qt 5.12 for the target and using the tool chain for...

Create standalone Java executable for different platforms without installation

I have created a Java application runtime image using jlink. I would like to be able to ship the software as an executable to different platforms. (Preferably by building on one platform, like...

MacOS Mojave: ./configure script fails when checking the archiver (ar) interface

I am running the ./configure command before building the OpenFST package, which uses autoconf. The script fails when checking for the ar interface: $ ./configure checking for a BSD-compatible...

How to fix "FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory" error

I'm trying to deploy a reactjs application to heroku. While compiling assets, the build fails and produces this error: -----> Ruby app detected -----> Compiling Ruby/Rails -----> Using Ruby...

Failed sanity check at LFS 5.7.Glibc-2.29

I want to cross-compile LFS on CentOS v. 7.6.1810 with no sudo rights (I want to customize my environment on server). One problem is that globally a lot of packages are outdated (for instance,...

What is Haskell's grammar and which type of parser can parse it?

I'm trying to make a parsing library for JDK 11.x that reads Haskell code as input, then translates it into Java to be executed by the JVM. I'm calling it Jaskell, but I need to know Haskell's...

Laravel, Vue - "You may need an appropriate loader" for template tags

I am currently building a web application using Laravel and Vue. The error that I am getting is for all the components that I have. ERROR in ./resources/assets/js/components/App 1:0 Module parse...

Trouble compiling rust crates that include C libraries for aarch64

I am trying to compile a rust app in an aarch64 linux docker container to run on raspberry pi 4. I have things working except when a package is not pure rust and utilizes c libraries. The ring...

PHP oci8 installation fails on Ubuntu 18

I'm trying to install oci8 through pecl, following this link. I successfully installed oci8 following these steps last year, before the release of php8.0. This is my configuration: Ubuntu...

shaderc IncluderInterface, include fails?

I am trying to support #include directives for glsl in a Vulkan project. To my understanding all that is required is to properly implement the IncluderInterface and set it, which I did like...

wxPython not installing via PIP on Apple Silicon M1 Max

Have a project that is written in Python 3.8.x and wxPython. It was developed on an Apple MacBookPro (Intel-based). wxPython installed via PIP inside a virtual environment without problems. Life...

C portable shared library interface: best practice on primitive types

Problem: Recently we've encountered the following problem with our C shared library. The library defines a method like this one: typedef enum {A, B, C} some_enum; typedef struct {some_enum e;...

Avoid memory fragmentation when memory pools are a bad idea

I am developing a C++ application, where the program run endlessly, allocating and freeing millions of strings (char*) over time. And RAM usage is a serious consideration in the program. This...

How can files be opened by name in shared storage with native libraries without all files permission?

We are writing a C++ app that is cross compiled for Android. This app uses native libraries (namely gdal and Qt) to read and write files. These files often have references to each other (e.g. a...

Abort in glibc while trying to use sbrk to reduce the size of the data segment

While working with glibc I tried to reduce the data segment using sbrk using a negative parameter, and found a most strange behaviour. I first malloc, then free it, then reduce data segment with...