S
S
Sepera-okeq2020-07-01 00:21:29
Qt
Sepera-okeq, 2020-07-01 00:21:29

When Qt is statically assembled, an error occurs with lib tiff, how to solve?

With any static build, it gives an error with tiff, although I do not use it.
How to solve this problem? Even when I create a purely empty project and write

QMAKE_LFLAGS_RELEASE += -static -static-libgcc
still can't compile. I do it on release.

Collected the assembly without problems. Used everything you need. Compiled without any problems. (About building QT 5.15.0 MinGWx64)

Using Qt 5.15.0 on Windows

Log:

:-1: error: cannot find -ltiff
:-1: error: collect2.exe: error: ld returned 1 exit status

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sepera-okeq, 2021-02-23
@Sepera-okeq

Rebuilding qt binaries from sources with the -qt-tiff parameter helped
(5.15.2) https://github.com/Sepera-okeq/Qt-Static-MinGW

A
Alexander Ananiev, 2020-07-01
@SaNNy32

You need to specify the path where tiff.lib is located (option -L)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question