Re: [Interest] Conflicting libjpeg versions

2016-03-29 Thread Thiago Macieira
On terça-feira, 29 de março de 2016 22:44:26 PDT Etienne Sandré-Chardonnal wrote: > nm --demangle libQt5Gui.a : > > Output: > ... > U jpeg_calc_output_dimensions > U jpeg_CreateCompress > U jpeg_CreateDecompress > U jpeg_destroy_

Re: [Interest] Conflicting libjpeg versions

2016-03-29 Thread Etienne Sandré-Chardonnal
nm --demangle libQt5Gui.a : Output: ... U jpeg_calc_output_dimensions U jpeg_CreateCompress U jpeg_CreateDecompress U jpeg_destroy_compress U jpeg_destroy_decompress U jpeg_finish_compress

Re: [Interest] Conflicting libjpeg versions

2016-03-29 Thread Thiago Macieira
On terça-feira, 29 de março de 2016 18:57:45 PDT Etienne Sandré-Chardonnal wrote: > My conclusion : With -system-libjpeg, Qt is set to link to the system > library, but no symbols from it are effectively linked with the > application. It seems that the linker finds libjpeg symbols exported by Qt >

Re: [Interest] Conflicting libjpeg versions

2016-03-29 Thread Etienne Sandré-Chardonnal
Thiago, I do not use these, I was just checking the different libjpeg versions shipped with Qt Updated status : I have another system where Qt was built with -qt-libjpeg - Everything works fine and I can use my own libjpeg library in the application without any issue. On the system with -system-

Re: [Interest] Conflicting libjpeg versions

2016-03-29 Thread Thiago Macieira
On terça-feira, 29 de março de 2016 18:20:21 PDT Etienne Sandré-Chardonnal wrote: > I have looked into Qt sources, and three different libjpeg are shipped : > one with webkit, one with qtwebengine, and one with qtbase. The first one > is libjpeg-turbo 62, the two other are libjpeg 80 webkit and w

Re: [Interest] Conflicting libjpeg versions

2016-03-29 Thread Etienne Sandré-Chardonnal
I just recompiled Qt with -system-libjpeg, but the problem persists. It seems impossible not to link my application with a qt-bundled libjpeg That's strange... Which Qt version are you using? I have looked into Qt sources, and three different libjpeg are shipped : one with webkit, one with qtwebe

Re: [Interest] Conflicting libjpeg versions

2016-03-29 Thread Olivier B.
In that case it's at your app's link time that you have to make sure you link to the same libjpeg qt used. If both Qt and your app use a static libjpeg in the same executable, it must be the same 2016-03-29 17:00 GMT+02:00 Etienne Sandré-Chardonnal : > I will try recompiling Qt. Is there any way

Re: [Interest] Conflicting libjpeg versions

2016-03-29 Thread Olivier B.
oops, ignore my 2nd sentence, i mixed up png and jpeg 2016-03-29 16:51 GMT+02:00 Olivier B. : > I do -system-libjpeg -I ${ENV_LIBJPEG_PATH}/include -L > ${ENV_LIBJPEG_PATH}/lib on my configure line to use my own libjpeg > version. > I also sed in qtbase/src/3rdparty/png_dependency.pri between de

Re: [Interest] Conflicting libjpeg versions

2016-03-29 Thread Olivier B.
I do -system-libjpeg -I ${ENV_LIBJPEG_PATH}/include -L ${ENV_LIBJPEG_PATH}/lib on my configure line to use my own libjpeg version. I also sed in qtbase/src/3rdparty/png_dependency.pri between debug and release build, in order to use a debug libjpeg in my debug qt and a release libjpeg in my releas

Re: [Interest] Conflicting libjpeg versions

2016-03-29 Thread Etienne Sandré-Chardonnal
Hi, There is no dependency to any libjpeg DLL, as checked with dependency walker. And I have searched for any libjpeg*.dll in my system, none of them are inside the PATH. The libjpeg is linked statically. Which options do I have for configuring Qt? I only know the option which switches between em

Re: [Interest] Conflicting libjpeg versions

2016-03-29 Thread Olivier B.
Either your PATH is set so the wrong libjpeg dll is found first, or qt found the wrong jpeg include first. If you don't care which version is used, set your PATH so that your system libjpeg 6.2 is found first at runtime (or place the libjpeg dll of the version that was detected beside your executab

[Interest] Conflicting libjpeg versions

2016-03-29 Thread Etienne Sandré-Chardonnal
Dear all, I am compiling under windows with MinGW (64-bit) I compiled Qt for static linking. I let the default options for configure regarding jpeg support, and it seems that it choose using the system libjpeg (as seen in config.summary), probably because it detected it. My system libjpeg is the