Issue with building 32 bit Qt 5.2.1 applications in 64 bit operating system (centos with gcc 4.8.2)

StackOverflow https://stackoverflow.com/questions/21970298

  •  15-10-2022
  •  | 
  •  

Pergunta

During building Qt 5.2.1 applications (32 bit) in CentOS (64 bit with gcc 4.8.2), I got following error:

main.o: could not read symbols: File in wrong format
collect2: error: ld returned 1 exit status

Note that I have inserted following statement in the qt project file (Pro file):

QMAKE_CXXFLAGS +=-m32
Foi útil?

Solução

QMAKE_LDFLAGS=-m32 solved my problem. Thank you guys

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top