Forum > Packages and Libraries
[SOLVED] Undefined reference QTLCL
SKBotNL:
Hello,
When trying to compile BGRABitmap (With the online package manager) I get multiple linker errors:
--- Code: Text [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---Warning: linker: /usr/bin/ld: /home/user/fpcupdeluxe/lazarus/components/opengl/lib/x86_64-linux/qt5/qlclopenglwidget.o: in function `CREATEWIDGET':Error: /home/user/fpcupdeluxe/lazarus/components/opengl//qlclopenglwidget.pas:58: undefined reference to `QLCLOpenGLWidget_Create'Warning: linker: /usr/bin/ld: /home/user/fpcupdeluxe/lazarus/components/opengl/lib/x86_64-linux/qt5/qlclopenglwidget.o: in function `PAINTGL':Error: /home/user/fpcupdeluxe/lazarus/components/opengl//qlclopenglwidget.pas:65: undefined reference to `QLCLOpenGLWidget_InheritedPaintGL'Warning: linker: /usr/bin/ld: /home/user/fpcupdeluxe/lazarus/components/opengl/lib/x86_64-linux/qt5/qlclopenglwidget.o: in function `ATTACHEVENTS':Error: /home/user/fpcupdeluxe/lazarus/components/opengl//qlclopenglwidget.pas:75: undefined reference to `QLCLOpenGLWidget_override_paintGL'Warning: linker: /usr/bin/ld: /home/user/fpcupdeluxe/lazarus/components/opengl/lib/x86_64-linux/qt5/qlclopenglwidget.o: in function `DETACHEVENTS':Error: /home/user/fpcupdeluxe/lazarus/components/opengl//qlclopenglwidget.pas:83: undefined reference to `QLCLOpenGLWidget_override_paintGL'
Am I missing some packages on my system?
I'm using Void Linux
Also, sorry if I put this in the wrong forum, I'm new here.
zeljko:
Lazarus version ? IMO, you're missing correct libQt5Pas
SKBotNL:
--- Quote from: zeljko on May 11, 2023, 08:49:35 pm ---Lazarus version ? IMO, you're missing correct libQt5Pas
--- End quote ---
My Lazarus version is the latest stable release (I think it's 2.2.6), I'm using qt5pas version "2.6~beta"
zeljko:
Ah now I see that it's fpcdeluxe, it should work. What OS is that ? Maybe you don't have proper Qt5 libs installed. Minimum version is 5.6, so maybe you have 5.5 or similar ?
dbannon:
Well, Lazarus 2.2.6 uses libqt5Pas1 version 1.2.9. So, "2.6~beta" is not going to work.
My guess is that "2.6~beta" has been installed from your distro's repo but is not suitable for use with Lazarus 2.2.6 that you have installed directly.
A possible solution is https://github.com/davidbannon/libqt5pas (and looks like I need up date the test there if Lazarus 2.2.6 also requires it.) Alternativly, you can build the appropriate library yourself using the code down in lcl/interfaces/qt5/cbindings
Davo
Navigation
[0] Message Index
[#] Next page