Re: [Interest] Undefined symbols when porting from Qt5 to Qt6

2024-05-23 Thread Thiago Macieira
On Thursday 23 May 2024 19:06:59 GMT-3 Corentin Bacqué-cazenave via Interest 
wrote:
> So I probably have to link LibX11 in CmakeList.txt, not sure how however 
> 
> Thanks for the help 

https://cmake.org/cmake/help/latest/module/FindX11.html

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Principal Engineer - Intel DCAI Fleet Engineering and Quality


smime.p7s
Description: S/MIME cryptographic signature
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Undefined symbols when porting from Qt5 to Qt6

2024-05-23 Thread Corentin Bacqué-cazenave via Interest

Hi,

yes, it's from my application.

So I probably have to link LibX11 in CmakeList.txt, not sure how however :(

Thanks for the help :)

Corentin : expert certifié 2022 et Sponsor 
 NVDA, Référent commission 
Cécité & Co et Mandataire CNCPH à la commission Accessibilité 
Universelle - Fédé 100% Handinamique 


Le 24/05/2024 à 00:01, Thiago Macieira a écrit :

On Thursday 23 May 2024 18:14:01 GMT-3 Corentin Bacqué-cazenave via Interest
wrote:

Hi,

I'm trying to port an application from Qt5 to Qt6.

I get a lot of errors regarding undefined symbols reference like
XUngrabKey, XFree, XStringToKeysym, XFlush...

All symbols related to X11 seam to be missing.

Does anyone have an idea?

Hello Corentin

Where are those symbols being used? Is it from your application or is it from
some Qt code? If it's from your application, then you probably forgot to link
to the X11 library. Something in the buildsystem changed and your indirect
dependency is not there any more.

Qt5's GUI libraries, unlike Qt 4 and Qt 6, did not link to libX11. Qt 4 did
because it did not have the feature as a plugin; Qt 6 has to do it because of
OpenGL. But because of this, I wouldn't expect to see this problem at all:
libX11 is in use.
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Undefined symbols when porting from Qt5 to Qt6

2024-05-23 Thread Thiago Macieira
On Thursday 23 May 2024 18:14:01 GMT-3 Corentin Bacqué-cazenave via Interest 
wrote:
> Hi,
> 
> I'm trying to port an application from Qt5 to Qt6.
> 
> I get a lot of errors regarding undefined symbols reference like
> XUngrabKey, XFree, XStringToKeysym, XFlush...
> 
> All symbols related to X11 seam to be missing.
> 
> Does anyone have an idea?

Hello Corentin

Where are those symbols being used? Is it from your application or is it from 
some Qt code? If it's from your application, then you probably forgot to link 
to the X11 library. Something in the buildsystem changed and your indirect 
dependency is not there any more.

Qt5's GUI libraries, unlike Qt 4 and Qt 6, did not link to libX11. Qt 4 did 
because it did not have the feature as a plugin; Qt 6 has to do it because of 
OpenGL. But because of this, I wouldn't expect to see this problem at all: 
libX11 is in use.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Principal Engineer - Intel DCAI Fleet Engineering and Quality


smime.p7s
Description: S/MIME cryptographic signature
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Undefined symbols when porting from Qt5 to Qt6

2024-05-23 Thread Corentin Bacqué-cazenave via Interest

Hi,

I'm trying to port an application from Qt5 to Qt6.

I get a lot of errors regarding undefined symbols reference like 
XUngrabKey, XFree, XStringToKeysym, XFlush...


All symbols related to X11 seam to be missing.

Does anyone have an idea?

Thanks

--

Corentin : expert certifié 2022 et Sponsor 
 NVDA, Référent commission 
Cécité & Co et Mandataire CNCPH à la commission Accessibilité 
Universelle - Fédé 100% Handinamique 
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest