Recent

Author Topic: libqt6pas on Windows  (Read 1694 times)

El Salvador

  • Full Member
  • ***
  • Posts: 134
libqt6pas on Windows
« on: December 19, 2022, 12:32:52 pm »
Hi @zeljko,

I'm trying to build libqt6pas on Windows (https://github.com/salvadorbs/libqt6pas/actions/runs/3730818553/jobs/6328315324), but I have this error:
Quote
src/qabstracteventdispatcher_c.cpp:97:61: error: 'class QAbstractEventDispatcher' has no member named 'registerEventNotifier'; did you mean 'registerSocketNotifier'?
   97 |         return (bool) ((QAbstractEventDispatcher *)handle)->registerEventNotifier((QWinEventNotifier*)notifier);
Indeed it seems that that method is not there in https://doc.qt.io/qt-6/qabstracteventdispatcher.html. Am I missing something? Gitlab CI build libqt6pas on windows?

zeljko

  • Hero Member
  • *****
  • Posts: 1596
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: libqt6pas on Windows
« Reply #1 on: December 19, 2022, 01:20:37 pm »
hm...registerEventNotifier() is not mentioned in obsoleted functions, it seem that they removed it in Qt6 without notice.
Just comment QAbstractEventDispatcher_registerEventNotifier and QAbstractEventDispatcher_unRegisterEventNotifier in qabstracteventdispatcher_c.cpp and qabstracteventdispatcher_c.h. I haven't tried build Qt6Pas.dll for windows yet, so pls if you spot any other errors beside this just let me know. If it builds w/o problems, I'll comment those routines and commit.

El Salvador

  • Full Member
  • ***
  • Posts: 134
Re: libqt6pas on Windows
« Reply #2 on: December 19, 2022, 03:01:56 pm »
I also had to comment out QPrinter_setWinPageSize and QPrinter_winPageSize to compile correctly on Windows. Now I'll try compiling Lazarus qt6 on windows and I'll let you know if everything is ok. Thanks a lot in the meantime.

zeljko

  • Hero Member
  • *****
  • Posts: 1596
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: libqt6pas on Windows
« Reply #3 on: December 19, 2022, 04:56:35 pm »
Thanks :)

zeljko

  • Hero Member
  • *****
  • Posts: 1596
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: libqt6pas on Windows
« Reply #4 on: December 20, 2022, 08:40:40 pm »
Any news ?

El Salvador

  • Full Member
  • ***
  • Posts: 134
Re: libqt6pas on Windows
« Reply #5 on: December 20, 2022, 10:54:24 pm »
It works for now. Do you need a merge request in gitlab?


zeljko

  • Hero Member
  • *****
  • Posts: 1596
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: libqt6pas on Windows
« Reply #6 on: December 20, 2022, 10:56:25 pm »
I've already changed CBindings (but did not commit). If you have more changes then add merge request please.

zeljko

  • Hero Member
  • *****
  • Posts: 1596
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: libqt6pas on Windows
« Reply #7 on: December 21, 2022, 01:57:58 pm »
I've commited changes in cbindings, hope that win32/win64 Qt6Pas is buildable now.

AlexTP

  • Hero Member
  • *****
  • Posts: 2401
    • UVviewsoft
Re: libqt6pas on Windows
« Reply #8 on: December 21, 2022, 02:08:36 pm »
Thanks for your support (qt6 on windows is exotic, but anyway).

El Salvador

  • Full Member
  • ***
  • Posts: 134
Re: libqt6pas on Windows
« Reply #9 on: December 21, 2022, 09:29:10 pm »
I've commited changes in cbindings, hope that win32/win64 Qt6Pas is buildable now.
Now I can build Lazarus with qt6 and libqt6pas on Windows. Thanks so much!

 

TinyPortal © 2005-2018