OpenGL "make"-error 255
-
( @8Observer8 )
the solution might be as given in https://stackoverflow.com/a/34701180/5588495 :
use
QOpenGLFunctions *f = QOpenGLContext::currentContext()->functions(); f->glFunctionCall(); // FunctionCall being something like ClearColor
(1)
However I receive a "make"-error using
- Qt 6.4.0 MingW 64-bit 11.2.0
- Qt 5.15.2 MingW 32-bit 8.1.0
on
- Windows 11 (x64)
for the project
with "shared" as well as "shared_and_static" set for CONFIG,
namely :
:-1: Fehler: [Makefile.Release:71: ../../qt3d-widget/lib/qt3dwidget2.dll] Error 255
Note: for Qt 6.4.0 I had to replace opengl by openglwidgets for QT in the .pro file
(2)
Help appreciated for this issue as well as if there is an alternative for the aim of that GitHub project (layering QWidgets above a Qt3D window in a Qt Desktop application).
(3)
I am trying to build that project anew because in my Qt 6.4.0 64-bit MingW project where i want to use it i receive an error about the lib:
:-1: Fehler: cannot find -l/libqt3dwidget.a
:-1: Fehler: collect2.exe: error: ld returned 1 exit statusalthough the library is present at the location
LIBS += \ lib/libqt3dwidget.a
relative to my project file. I thought the cause might be it's a linux format or it's 32-bit.
(4)
-
@uani said in OpenGL "make"-error 255:
:-1: Fehler: [Makefile.Release:71: ../../qt3d-widget/lib/qt3dwidget2.dll] Error 255
this is an error in the Makefile in the build folder QT creates and in particular in the file named
Makefle.Release
on line 71.That line corresponds to a line in the .pro file of the project. I figured out it does something wrong and worked around it.
Now the project compiles.
Thank you very much for everyone taking their time.
-
@uani said in OpenGL "make"-error 255:
LIBS +=
lib/libqt3dwidget.aThis is wrong
LIBS += -Llib -lqt3dwidget
-
@Christian-Ehrlicher said in OpenGL "make"-error 255:
LIBS += -Llib -lqt3dwidget
doesn't solve it, but i thank you. I also tried -Llib -llibqt3widget to no avail (can you point me to a doc about the rules?):
-
Then pass the full path of the library and not the relativ 'lib'.
-
like
? (same error as expanding $PWD explicitly)because I now do not receive the "cannot find" error anymore but an "undefined reference" error but I use Qt3DWidget as documented. Is this perhaps an architecture (x86 vs x64 or linux? lib vs windows lib) issue? If yes i would be glad to still find out about a solution to the thread title error.
-
I infer from https://forum.qt.io/topic/46613/solved-undefined-reference-to-qwidget-stylechange/3 the app must be build using the same version of Qt like used to build the library which is not the case here why i wanted to build the library using the same version like I want to use to build my app but which stops at the error in the thread title.
-
@uani said in OpenGL "make"-error 255:
:-1: Fehler: [Makefile.Release:71: ../../qt3d-widget/lib/qt3dwidget2.dll] Error 255
this is an error in the Makefile in the build folder QT creates and in particular in the file named
Makefle.Release
on line 71.That line corresponds to a line in the .pro file of the project. I figured out it does something wrong and worked around it.
Now the project compiles.
Thank you very much for everyone taking their time.