Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Paul Smedley

Pages: 1 ... 57 58 [59] 60 61 ... 140
871
Programming / Re: Qt6
« on: November 20, 2022, 07:15:12 am »
Hey Dave,

For reference, to built the other qt modules, use a configure command like the below:
Code: [Select]
dash /qt6/bin/qt-configure-module .. 2>&1 | tee configure.log

Good to see your hello world worked. /qt6 is where you installed? Have to retry as I tried the latest beta and it wiped my ramdisk so have to reinstall.

Yeah I installed to /qt6. I also fixed the installer to install shell scripts vs .bat files :)

Edit: Current binaries are at https://smedley.id.au/tmp/qt6base-6.2.4-os2-20221120.zip - also includes my helloworldgui.exe example app.

872
Programming / Re: Qt6
« on: November 20, 2022, 06:41:37 am »
For reference, to built the other qt modules, use a configure command like the below:
Code: [Select]
dash /qt6/bin/qt-configure-module .. 2>&1 | tee configure.log

873
Programming / Re: Qt6
« on: November 20, 2022, 06:33:51 am »
Well my SIGSEGV was due to the versions of freetype and/or fontconfig on my laptop.

Building on my Thinkcentre M93P which in a pure RPM environment, the screenshot shows the first ever Qt6 gui app running on ArcaOS :)

Admittedly, it's a simple hello world, but I'm still pretty pumped!

874
Programming / Re: Qt6
« on: November 20, 2022, 05:39:16 am »
I updated the testcase to link against cx, I'm now getting a more informative file too :)

https://smedley.id.au/tmp/qt6helloworld.zip

Exceptq attached with the latest fixes - bit different to yours as mine is now using dlopen :P

Looks to be a fontconfig issue - on this machine, I'm using an old self built version - I'll try with rpm libs once the build on the other machine finishes.

875
Programming / Re: Qt6
« on: November 20, 2022, 03:20:52 am »
Unfortunately this didn't change anything :( Back to looking for solutions...

Edit: noticed dlopen wasn't being detected/used  :o rebuilding now after https://github.com/psmedley/qt6-os2/commit/282683051960ddf5c870c23d466a707490c4c0e3

876
Programming / Re: Qt6
« on: November 20, 2022, 12:23:34 am »
OK... I think I know the problem....
qtcore-config.h has:

#define QT_FEATURE_library -1

So the code that's wrapped around:
#if QT_CONFIG(library)

doesn't get executed. Off to work out why configure things we don't support libraries now :)

Likely fix checked in, rebuilding now...

877
Programming / Re: Qt6
« on: November 19, 2022, 03:54:20 pm »
Interesting.... I'll aim to investigate later today (1:23am now, just got home from work Christmas party) as to why we're having issues loading qos2.dll - hopefully it's a misapplied patch.

878
Programming / Re: Qt6
« on: November 19, 2022, 07:19:06 am »
Were you able to try my helloworld's with your installed qt6? I had to do a full rebuild and am at 80%, but heading out in an our for my work's Christmas party.

879
Programming / Re: Qt6
« on: November 19, 2022, 06:39:35 am »
Cool, I guess that script should work for building qtdeclarative

880
Programming / Re: Qt6
« on: November 19, 2022, 06:07:21 am »
Hey Dave,

Yes, I got to 100% and make install succeeded, wonder how to compile the examples?
Of course the hard part might be compiling qtwebengine now.

Woohoo! That's encouraging! Once I've installed, my next step is to try build qtdeclarative - once I figure out how to point it at the installed qt6. I've already setup https://github.com/psmedley/qt6-declarative-os2 and tried to apply patches from the bww github

re: examples, not sure how to build them, but I compiled a console and gui helloworld at https://smedley.id.au/tmp/qt6helloworld.zip

881
Programming / Re: Qt6
« on: November 19, 2022, 05:21:53 am »
I am so close... got to 92% complete and got a missing symbol from sqlite - so now switched to rpm sqlite3 rather than my local build.

I compiled a console helloworld and it works, tried a gui one, and i'm getting:
Code: [Select]
qt.qpa.plugin: Could not find the Qt platform plugin "os2" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Probably/hopefully as I haven't 'installed' it yet, so it can't find qos2.dll...

882
Programming / Re: Qt6
« on: November 19, 2022, 01:10:48 am »
Fixed the src\plugins\platforms\offscreen\qoffscreenintegration.cpp issue, that's what I get for committing something untested :/

883
Programming / Re: Qt6
« on: November 18, 2022, 11:49:07 pm »
I'm now dying here:
Code: [Select]
[ 90%] Building CXX object src/printsupport/CMakeFiles/PrintSupport.dir/PrintSupport_autogen/mocs_compilation.cpp.o
In file included from U:/DEV/qtbase-everywhere-src-6.2.4/build/src/printsupport/PrintSupport_autogen/mocs_compilation.cpp:4:
U:/DEV/qtbase-everywhere-src-6.2.4/build/src/printsupport/PrintSupport_autogen/2NRMJ5X7RK/moc_qprintdialog.cpp: In static member function 'static void QPrintDialog::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)':
U:/DEV/qtbase-everywhere-src-6.2.4/build/src/printsupport/PrintSupport_autogen/2NRMJ5X7RK/moc_qprintdialog.cpp:93:29: error: invalid use of incomplete type 'class QPrintDialogPrivate'
   93 |         case 1: _t->d_func()->_q_togglePageSetCombo((*reinterpret_cast< std::add_pointer_t<bool>>(_a[1]))); break;
      |                             ^~
In file included from U:/DEV/qtbase-everywhere-src-6.2.4/build/src/printsupport/PrintSupport_autogen/2NRMJ5X7RK/moc_qprintdialog.cpp:10,
                 from U:/DEV/qtbase-everywhere-src-6.2.4/build/src/printsupport/PrintSupport_autogen/mocs_compilation.cpp:4:
U:/dev/qtbase-everywhere-src-6.2.4/src/printsupport/dialogs/qprintdialog.h:51:7: note: forward declaration of 'class QPrintDialogPrivate'
   51 | class QPrintDialogPrivate;
      |       ^~~~~~~~~~~~~~~~~~~
In file included from U:/DEV/qtbase-everywhere-src-6.2.4/build/src/printsupport/PrintSupport_autogen/mocs_compilation.cpp:4:
U:/DEV/qtbase-everywhere-src-6.2.4/build/src/printsupport/PrintSupport_autogen/2NRMJ5X7RK/moc_qprintdialog.cpp:94:29: error: invalid use of incomplete type 'class QPrintDialogPrivate'
   94 |         case 2: _t->d_func()->_q_collapseOrExpandDialog(); break;
      |                             ^~
In file included from U:/DEV/qtbase-everywhere-src-6.2.4/build/src/printsupport/PrintSupport_autogen/2NRMJ5X7RK/moc_qprintdialog.cpp:10,
                 from U:/DEV/qtbase-everywhere-src-6.2.4/build/src/printsupport/PrintSupport_autogen/mocs_compilation.cpp:4:
U:/dev/qtbase-everywhere-src-6.2.4/src/printsupport/dialogs/qprintdialog.h:51:7: note: forward declaration of 'class QPrintDialogPrivate'
   51 | class QPrintDialogPrivate;
      |       ^~~~~~~~~~~~~~~~~~~
In file included from U:/DEV/qtbase-everywhere-src-6.2.4/build/src/printsupport/PrintSupport_autogen/mocs_compilation.cpp:4:
U:/DEV/qtbase-everywhere-src-6.2.4/build/src/printsupport/PrintSupport_autogen/2NRMJ5X7RK/moc_qprintdialog.cpp:95:29: error: invalid use of incomplete type 'class QPrintDialogPrivate'
   95 |         case 3: _t->d_func()->_q_checkFields(); break;
      |                             ^~
In file included from U:/DEV/qtbase-everywhere-src-6.2.4/build/src/printsupport/PrintSupport_autogen/2NRMJ5X7RK/moc_qprintdialog.cpp:10,
                 from U:/DEV/qtbase-everywhere-src-6.2.4/build/src/printsupport/PrintSupport_autogen/mocs_compilation.cpp:4:
U:/dev/qtbase-everywhere-src-6.2.4/src/printsupport/dialogs/qprintdialog.h:51:7: note: forward declaration of 'class QPrintDialogPrivate'
   51 | class QPrintDialogPrivate;
      |       ^~~~~~~~~~~~~~~~~~~
make[1]: *** [src/printsupport/CMakeFiles/PrintSupport.dir/PrintSupport_autogen/mocs_compilation.cpp.o] Error 1
make: *** [PrintSupport_autogen/mocs_compilation.cpp.o] Error 2

884
Programming / Re: Qt6
« on: November 18, 2022, 09:31:14 pm »
Hey Tellie,

Hi
After set beginpath i see now this error:
I have notting in popup.log


G:/qt6-os2/src/plugins/platforms/offscreen/qoffscreenintegration.cpp: In constructor 'QOffscreenIntegration::QOffscreenIntegration()':
G:/qt6-os2/src/plugins/platforms/offscreen/qoffscreenintegration.cpp:102:30: error: expected type-specifier before 'QGenericUnixFontDatabase'
  102 |     m_fontDatabase.reset(new QGenericUnixFontDatabase());
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~
G:/qt6-os2/src/plugins/platforms/offscreen/qoffscreenintegration.cpp: In member function 'virtual QAbstractEventDispatcher* QOffscreenIntegration::createEventDispatcher() const':
G:/qt6-os2/src/plugins/platforms/offscreen/qoffscreenintegration.cpp:243:42: error: 'QEventDispatcherOS2' was not declared in this scope
  243 |     return new QOffscreenEventDispatcher<QEventDispatcherOS2>();
      |                                          ^~~~~~~~~~~~~~~~~~~
G:/qt6-os2/src/plugins/platforms/offscreen/qoffscreenintegration.cpp:243:61: error: template argument 1 is invalid
  243 |     return new QOffscreenEventDispatcher<QEventDispatcherOS2>();
      |                                                             ^
G:/qt6-os2/src/plugins/platforms/offscreen/qoffscreenintegration.cpp: In member function 'virtual const QFont* OffscreenTheme::font(QPlatformTheme::Font) const':
G:/qt6-os2/src/plugins/platforms/offscreen/qoffscreenintegration.cpp:288:46: error: variable 'QFont systemFont' has initializer but incomplete type
  288 |         static QFont systemFont(QLatin1String("Sans Serif"), 9);
      |                                              ^
G:/qt6-os2/src/plugins/platforms/offscreen/qoffscreenintegration.cpp:289:45: error: variable 'QFont fixedFont' has initializer but incomplete type
  289 |         static QFont fixedFont(QLatin1String("monospace"), 9);
      |                                             ^
In file included from G:/qt6-dev/include/QtCore/qscopedpointer.h:1,
                 from G:/qt6-os2/src/corelib/serialization/qdatastream.h:43,
                 from G:/qt6-dev/include/QtCore/qdatastream.h:1,
                 from G:/qt6-os2/src/corelib/kernel/qmetatype.h:52,
                 from G:/qt6-dev/include/QtCore/qmetatype.h:1,
                 from G:/qt6-os2/src/gui/kernel/qplatformscreen.h:53,
                 from G:/qt6-dev/include/QtGui/6.2.4/QtGui/qpa/qplatformscreen.h:1,
                 from G:/qt6-os2/src/gui/kernel/qplatformintegration.h:54,
                 from G:/qt6-dev/include/QtGui/6.2.4/QtGui/qpa/qplatformintegration.h:1,
                 from G:/qt6-os2/src/plugins/platforms/offscreen/qoffscreenintegration.h:43,
                 from G:/qt6-os2/src/plugins/platforms/offscreen/qoffscreenintegration.cpp:40:
G:/qt6-os2/src/corelib/tools/qscopedpointer.h: In instantiation of 'static void QScopedPointerDeleter<T>::cleanup(T*) [with T = QPlatformFontDatabase]':
G:/qt6-os2/src/corelib/tools/qscopedpointer.h:116:25:   required from 'QScopedPointer<T, Cleanup>::~QScopedPointer() [with T = QPlatformFontDatabase; Cleanup = QScopedPointerDeleter<QPlatformFontDatabase>]'
G:/qt6-os2/src/plugins/platforms/offscreen/qoffscreenintegration.cpp:96:46:   required from here
G:/qt6-os2/src/corelib/tools/qscopedpointer.h:57:40: error: invalid application of 'sizeof' to incomplete type 'QPlatformFontDatabase'
   57 |         typedef char IsIncompleteType[ sizeof(T) ? 1 : -1 ];
      |                                        ^~~~~~~~~
G:/qt6-os2/src/corelib/tools/qscopedpointer.h:60:9: warning: possible problem detected in invocation of 'operator delete' [-Wdelete-incomplete]
   60 |         delete pointer;
      |         ^~~~~~~~~~~~~~

Not sure if this same as Paul mention before about fontconfig....

I think you're back to getting further than me now, so you'll have to either fix it yourself or wait for me to catch up :)

My GCC 9.5.0 build failed as I didn't clear cmakecache.txt - so it tried to compile with gcc 12 and link with gcc 9 libs, which not surprisingly failed :P

More later...

Edit: I just pushed a probable fix for this...

885
Programming / Re: Qt6
« on: November 18, 2022, 09:29:09 pm »
Yes, I'm now getting the same error. Still had to patch for the TLS plugin to compile here.
Weird, no patching for the TLS plugin here.....

Pages: 1 ... 57 58 [59] 60 61 ... 140