Solved 32bit on 64bit

is there any way to install packages with 32bit pkg on freebsd 64
for example qt5 32bit
I have lib32 installed
tks but the software I need comes in 32bit
and I am missing several libraries of 32

or some url to download the required package by hand
and install it!!?

./linbpq_FreeBSD32
ld-elf32.so.1: Shared object "libiconv.so.2" not found, required by "linbpq_FreeBSD32"

./QtSoundModem_FreeBSD32 1
ld-elf32.so.1: /usr/local/lib/qt5/libQt5Widgets.so.5: unsupported file layou

./QtTermTCP_FreeBSD32 1
ld-elf32.so.1: /usr/local/lib/qt5/libQt5Widgets.so.5: unsupported file layout
 
It is possible to download packages from i386 repositories and maintain them with pkg and custom scripts. It will need to set also some environment variables with proper paths to your libraries. The command could be: pkg -o ABI="i386" --rootdir "wheretoinstall" install qt5 and run the executable with set at least LD_LIBRARIES_PATH environment variable.

Probably the best way to get some information, is to look how are 32-bit Windows programs installed via Wine. The most interesting part is two files: https://cgit.freebsd.org/ports/tree/emulators/wine-proton/files/wine-wow64.sh and https://cgit.freebsd.org/ports/tree/emulators/wine-proton/files/pkg32.sh.
The first file is for running wine 64-bit and wine 32-bit executables inside a 64-bit environment. The second is for downloading packages for the selected architecture.
 
Back
Top