Hey all
Is there an easy way to use the pd-lib-builder Makefile to compile externals for Linux i386 on Linux amd64? Currently, I'm using a Debian Stretch i386 KVM VM specifically for this purpose. But since I am successfully cross-compiling for Windows 32bit and 64bit targets with mingw compiler, I was wondering if it was as easy to cross-compile for Linux as easily.
Roman
Hi,
On 29.04.19 13:44, Roman Haefeli wrote:
Hey all
Is there an easy way to use the pd-lib-builder Makefile to compile externals for Linux i386 on Linux amd64? Currently, I'm using a Debian Stretch i386 KVM VM specifically for this purpose. But since I am successfully cross-compiling for Windows 32bit and 64bit targets with mingw compiler, I was wondering if it was as easy to cross-compile for Linux as easily.
You can use debootstrap for cross-compilation. A simple implementation is outlined in the documentation for purest_json: https://github.com/residuum/PuRestJson/wiki/Compilation#building-for-differe...
Hth, Thomas
On Mon, 2019-04-29 at 23:55 +0200, Thomas Mayer wrote:
Hi,
On 29.04.19 13:44, Roman Haefeli wrote:
Hey all
Is there an easy way to use the pd-lib-builder Makefile to compile externals for Linux i386 on Linux amd64? Currently, I'm using a Debian Stretch i386 KVM VM specifically for this purpose. But since I am successfully cross-compiling for Windows 32bit and 64bit targets with mingw compiler, I was wondering if it was as easy to cross-compile for Linux as easily.
You can use debootstrap for cross-compilation. A simple implementation is outlined in the documentation for purest_json:
https://github.com/residuum/PuRestJson/wiki/Compilation#building-for-differe...
Thanks for the hint. This is already somewhat slicker than using a whole KVM vm.
Roman
On 29.04.19 13:44, Roman Haefeli wrote:
Hey all
Is there an easy way to use the pd-lib-builder Makefile to compile externals for Linux i386 on Linux amd64? Currently, I'm using a Debian Stretch i386 KVM VM specifically for this purpose. But since I am successfully cross-compiling for Windows 32bit and 64bit targets with mingw compiler, I was wondering if it was as easy to cross-compile for Linux as easily.
- read the pd-lib-builder documentation on cross-compiling (you already have done that :-)) - install a cross-compiler for the i686-linux-gnu architecture.
this boils down to:
# apt-get install gcc-multilib-i686-linux-gnu $ make CC=i686-linux-gnu-gcc
(you might also have to enable multiarch:i386 on your target system; i have this enabled on virtually all desktop machines, so i couldn't tell the difference)
fgmasdr IOhannes
On Tue, 2019-04-30 at 09:39 +0200, IOhannes m zmoelnig wrote:
[...] this boils down to:
# apt-get install gcc-multilib-i686-linux-gnu $ make CC=i686-linux-gnu-gcc
(you might also have to enable multiarch:i386 on your target system; i have this enabled on virtually all desktop machines, so i couldn't tell the difference)
Cool. It seems for the stuff with little dependencies this works fine, even without multiarch:i386.
Thanks for your help.
Roman