Using a 32-bit file in a 64-bit environment

I am using Ubuntu 12.04 64bit and I get the following errors when compiling a Qt project that needs a 32-bit file.

error: skip incompatible /opt/lib/libEposCmd.so when searching for -lEposCmd

I want to compile this project with the -m32 option, but I don’t know where I should paste this option.

+4
source share
2 answers

Problem Solved through the instructions below the first step: installing g ++ - multilib, libstdC ++. i386, libgcc.i386, glibc-devel.i386, gcc-C ++ - 32bit

second step: make edite file and configure below config:

cc = add -m32
CFLAGS = add -m32
INCPATH = linux-g++-32
LFALGS = -m32 -w1, -o1
LIBS = i386-linux-gnu

third step:
make softlink of /usr/lib/i386-GNU-linux/libQtCore.so.4.1
                                        libQtGui.....
                                        libQtXmlPattern..
                                        libQtXml.....

in lib ..... so.o then in lib ..... so make clean and compile

+1
source

string, .so .

, /opt/lib/libEposCmd.so

0

Source: https://habr.com/ru/post/1529430/


All Articles