Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QtJambi 6.8.1 RC1 does not build from sources against Qt 6.8.1 #214

Closed
wolfseifert opened this issue Dec 3, 2024 · 7 comments
Closed

QtJambi 6.8.1 RC1 does not build from sources against Qt 6.8.1 #214

wolfseifert opened this issue Dec 3, 2024 · 7 comments
Assignees
Labels

Comments

@wolfseifert
Copy link

Describe the bug
When building QtJambi 6.8.1 RC1 against Qt 6.8.1 I get the following errors:

[make] /home/wolfgang/qtjambi/src/cpp/QtJambi/fileengine.cpp:926:17: Fehler: »QClassPathEngine::IteratorPtr QClassPathEngine::beginEntryList(const QString&, QDir::Filters, const QStringList&)« als »override« markiert, überschreibt aber nicht
[make]   926 |     IteratorPtr beginEntryList(const QString &path, QDir::Filters filters, const QStringList& nameFilters) override;
[make]       |                 ^~~~~~~~~~~~~~
[make] make[1]: *** [Makefile:5735: fileengine.o] Fehler 1
[make] /home/wolfgang/qtjambi/src/cpp/QtJambiHttpServer/impl.cpp:179:51: Fehler: »struct HttpServer« hat kein Element namens »sendResponse«
[make]   179 |         reinterpret_cast(__qt_this)->sendResponse(std::move(*response), *request, std::move(argX));
[make]       |                                                   ^~~~~~~~~~~~
[make] /home/wolfgang/qtjambi/src/cpp/QtJambiHttpServer/impl.cpp: In Funktion »void Java_io_qt_httpserver_QHttpServer_sendResponseFuture(JNIEnv*, jobject, QtJambiNativeID, jobject, QtJambiNativeID, QtJambiNativeID)«:
     [make] /home/wolfgang/qtjambi/src/cpp/QtJambiHttpServer/impl.cpp:204:51: Fehler: »struct HttpServer« hat kein Element namens »sendResponse«
 [make]   204 |         reinterpret_cast(__qt_this)->sendResponse(std::move(response), *request, std::move(argX));
[make]       |                                                   ^~~~~~~~~~~~
[make] /home/wolfgang/qtjambi/src/cpp/QtJambiHttpServer/impl.cpp: In Funktion »void Java_io_qt_httpserver_QHttpServer_afterRequest(JNIEnv*, jobject, QtJambiNativeID, jboolean, jobject)«:
     [make] /home/wolfgang/qtjambi/src/cpp/QtJambiHttpServer/impl.cpp:224:24: Fehler: »class QHttpServer« hat kein Element namens »afterRequest«
[make]   224 |             __qt_this->afterRequest([action = JObjectWrapper(__jni_env, _action)](QHttpServerResponse &&resp, const QHttpServerRequest &request){
[make]       |                        ^~~~~~~~~~~~
[make] /home/wolfgang/qtjambi/src/cpp/QtJambiHttpServer/impl.cpp:238:24: Fehler: »class QHttpServer« hat kein Element namens »afterRequest«
[make]   238 |             __qt_this->afterRequest([action = JObjectWrapper(__jni_env, _action)](QHttpServerResponse &&resp){
[make]       |                        ^~~~~~~~~~~~
[make] make[2]: *** [Makefile:3708: impl.o] Fehler 1

I was able to fix the build on ArchLinux using the following patch.txt.

On Windows I get yet another error which I was not able to fix:

[make] jom: C:\Users\wolfgang\qtjambi\6.8.1\build\windows-x64\qtjambi\Makefile.modules [sub-QtJambiGraphs-make_first] Error 2
[make] jom: C:\Users\wolfgang\qtjambi\6.8.1\build\windows-x64\qtjambi\Makefile [sub-modules-pro-make_first] Error 2
library.native.make-impl:  duration 19 minutes 15 seconds
  [antcall] Exiting C:\Users\wolfgang\qtjambi\build.xml.
targetproxy:  duration 19 minutes 15 seconds
all:  duration 19 minutes 15 seconds

BUILD FAILED

C:\Users\wolfgang\qtjambi\build.xml:294: The following error occurred while executing this line:
C:\Users\wolfgang\qtjambi\antfiles\native.xml:54: Running: '[C:\Users\wolfgang\qt\Tools\QtCreator\bin\jom\jom.exe]' in C:\Users\wolfgang\qtjambi\6.8.1\build\windows-x64\qtjambi failed.  exitStatus=2 (0x00000002)
	at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:582)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440)
	at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
	at org.apache.tools.ant.Task.perform(Task.java:350)
	at org.apache.tools.ant.Target.execute(Target.java:449)
	at org.apache.tools.ant.Target.performTasks(Target.java:470)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1374)
	at io.qt.tools.ant.ForeachVersionTask.execute(ForeachVersionTask.java:75)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
	at org.apache.tools.ant.Task.perform(Task.java:350)
	at org.apache.tools.ant.Target.execute(Target.java:449)
	at org.apache.tools.ant.Target.performTasks(Target.java:470)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1374)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
	at org.apache.tools.ant.Main.runBuild(Main.java:818)
	at org.apache.tools.ant.Main.startAnt(Main.java:223)
	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
Caused by: C:\Users\wolfgang\qtjambi\antfiles\native.xml:54: Running: '[C:\Users\wolfgang\qt\Tools\QtCreator\bin\jom\jom.exe]' in C:\Users\wolfgang\qtjambi\6.8.1\build\windows-x64\qtjambi failed.  exitStatus=2 (0x00000002)
	at io.qt.tools.ant.Exec.execute(Exec.java:225)
	at io.qt.tools.ant.MakeTask.execute(MakeTask.java:224)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
	at org.apache.tools.ant.Task.perform(Task.java:350)
	at org.apache.tools.ant.Target.execute(Target.java:449)
	at org.apache.tools.ant.Target.performTasks(Target.java:470)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
	... 26 more

I suppose that upgrading to Qt 6.8.1 (which was just released yesterday, but is already part of testing-ArchLinux) is an ongoing activity (which will result in QtJambi 6.8.1), but wanted to share my fixes to (hopefully) ease this process.

System (please complete the following information):

  • OS: ArchLinux, Windows
  • Java version: 23
  • QtJambi version: 6.8.1 RC1
  • Qt version: 6.8.1
@omix
Copy link
Contributor

omix commented Dec 3, 2024

Thank you so much! I also began testing it and will fix the remaining issues today.

@omix
Copy link
Contributor

omix commented Dec 3, 2024

@wolfseifert, could you please attach the corresponding buildlog of the failed windows build?
This would be very helpful, because the plain console output does not reveil the problem.

@wolfseifert
Copy link
Author

Here it comes...
build_2024-12-03_08-07-11.log

@omix
Copy link
Contributor

omix commented Dec 3, 2024

Oh, yes. This error depends on QTBUG-127106 which is fixed right now in 6.8.1.

@wolfseifert
Copy link
Author

If you would upload QtJambi 6.8.1 to Github I could test again against ArchLinux (with its native Qt 6.8.1) and also against Windows (it seems that the upgrade to Qt 6.8.1 is done as you already started uploading to maven central :-).

@omix
Copy link
Contributor

omix commented Dec 4, 2024

so done

@wolfseifert
Copy link
Author

I built now QtJambi 6.8.1 Release successfully against ArchLinux (with its native Qt 6.8.1) and against Windows (with "Qt-online-installed" Qt 6.8.1). Therefore I will close this issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants