benjamimgois / goverlay

GOverlay is an opensource project that aims to create a Graphical UI to help manage Linux overlays.
GNU General Public License v3.0
562 stars 41 forks source link

Can't build from source #38

Open Faugus opened 1 year ago

Faugus commented 1 year ago

/home/faugus/goverlay/overlayunit.pas(9,44) Hint: (5023) Unit "ColorBox" not used in overlayunit /home/faugus/goverlay/overlayunit.pas(10,42) Hint: (5023) Unit "customeffectsunit" not used in overlayunit /home/faugus/goverlay/goverlay.lpr(10,34) Hint: (5023) Unit "crosshairUnit" not used in goverlay (9022) Compiling resource /home/faugus/goverlay/lib/x86_64-linux/goverlay.or (9015) Linking /home/faugus/goverlay/goverlay /usr/bin/ld.bfd: /usr/lib/lazarus/2.2.0/components/opengl/lib/x86_64-linux/qt5/qlclopenglwidget.o: in function CREATEWIDGET': /usr/lib/lazarus/2.2.0/components/opengl//qlclopenglwidget.pas:58: undefined reference toQLCLOpenGLWidget_Create' /usr/bin/ld.bfd: /usr/lib/lazarus/2.2.0/components/opengl/lib/x86_64-linux/qt5/qlclopenglwidget.o: in function PAINTGL': /usr/lib/lazarus/2.2.0/components/opengl//qlclopenglwidget.pas:65: undefined reference toQLCLOpenGLWidget_InheritedPaintGL' /usr/bin/ld.bfd: /usr/lib/lazarus/2.2.0/components/opengl/lib/x86_64-linux/qt5/qlclopenglwidget.o: in function ATTACHEVENTS': /usr/lib/lazarus/2.2.0/components/opengl//qlclopenglwidget.pas:75: undefined reference toQLCLOpenGLWidget_override_paintGL' /usr/bin/ld.bfd: /usr/lib/lazarus/2.2.0/components/opengl/lib/x86_64-linux/qt5/qlclopenglwidget.o: in function DETACHEVENTS': /usr/lib/lazarus/2.2.0/components/opengl//qlclopenglwidget.pas:83: undefined reference toQLCLOpenGLWidget_override_paintGL' /home/faugus/goverlay/goverlay.lpr(24,1) Error: (9013) Error while linking /home/faugus/goverlay/goverlay.lpr(24,1) Fatal: (10026) There were 1 errors compiling module, stopping Fatal: (1018) Compilation aborted Error: /usr/bin/ppcx64 returned an error exitcode Error: (lazarus) Compile Project, Mode: Release, Target: goverlay: stopped with exit code 1 Error: (lazbuild) failed compiling of project /home/faugus/goverlay/goverlay.lpi make: *** [Makefile:9: goverlay] Error 2

majesticslinky commented 1 year ago

Same exact issue here. I'm adding what I get at the start. After this, and after a wall of warnings, output is the same as @Faugus.

lazbuild -B goverlay.lpi --bm=Release Hint: (lazarus) Missing state file of freetypelaz 1.0: /usr/lib/lazarus/2.2.0/components/freetype/lib/x86_64-linux/freetypelaz.compiled Error: (lazarus) unable to create package output directory "/usr/lib/lazarus/2.2.0/components/freetype/lib/x86_64-linux" of package "freetypelaz 1.0" Hint: (lazarus) normal output directory of package freetypelaz 1.0 is not writable: "/usr/lib/lazarus/2.2.0/components/freetype/lib/x86_64-linux/" TParsedCompilerOptions.SetOutputDirectoryOverride New=/home/majesticslinky/.lazarus/lib/freetypelaz/lib/x86_64-linux Hint: (lazarus) Compiler unit paths changed for LCLBase 2.2.0.4 Old="/usr/lib/lazarus/2.2.0/lcl/forms;/usr/lib/lazarus/2.2.0/lcl/widgetset;/usr/lib/lazarus/2.2.0/lcl/nonwin32;/usr/lib/lazarus/2.2.0/packager/units/x86_64-linux;/usr/lib/lazarus/2.2.0/components/lazutils/lib/x86_64-linux;/usr/lib/lazarus/2.2.0/components/freetype/lib/x86_64-linux;/usr/lib/lazarus/2.2.0/lcl" Now="/usr/lib/lazarus/2.2.0/lcl/forms;/usr/lib/lazarus/2.2.0/lcl/widgetset;/usr/lib/lazarus/2.2.0/lcl/nonwin32;/usr/lib/lazarus/2.2.0/packager/units/x86_64-linux;/usr/lib/lazarus/2.2.0/components/lazutils/lib/x86_64-linux;/home/majesticslinky/.lazarus/lib/freetypelaz/lib/x86_64-linux;/usr/lib/lazarus/2.2.0/lcl" State file="/usr/lib/lazarus/2.2.0/lcl/units/x86_64-linux/LCLBase.compiled" Hint: (lazarus) normal output directory of package LCLBase 2.2.0.4 is not writable: "/usr/lib/lazarus/2.2.0/lcl/units/x86_64-linux/" TParsedCompilerOptions.SetOutputDirectoryOverride New=/home/majesticslinky/.lazarus/lib/LCLBase/units/x86_64-linux Hint: (lazarus) Compiler unit paths changed for LCL 2.2.0.4 Old="/usr/lib/lazarus/2.2.0/lcl/interfaces/qt5;/usr/lib/lazarus/2.2.0/packager/units/x86_64-linux;/usr/lib/lazarus/2.2.0/components/lazutils/lib/x86_64-linux;/usr/lib/lazarus/2.2.0/components/freetype/lib/x86_64-linux;/usr/lib/lazarus/2.2.0/lcl/units/x86_64-linux;/usr/lib/lazarus/2.2.0/lcl/interfaces" Now="/usr/lib/lazarus/2.2.0/lcl/interfaces/qt5;/usr/lib/lazarus/2.2.0/packager/units/x86_64-linux;/usr/lib/lazarus/2.2.0/components/lazutils/lib/x86_64-linux;/home/majesticslinky/.lazarus/lib/freetypelaz/lib/x86_64-linux;/home/majesticslinky/.lazarus/lib/LCLBase/units/x86_64-linux;/usr/lib/lazarus/2.2.0/lcl/interfaces" State file="/usr/lib/lazarus/2.2.0/lcl/units/x86_64-linux/qt5/LCL.compiled" Hint: (lazarus) normal output directory of package LCL 2.2.0.4 is not writable: "/usr/lib/lazarus/2.2.0/lcl/units/x86_64-linux/qt5/" TParsedCompilerOptions.SetOutputDirectoryOverride New=/home/majesticslinky/.lazarus/lib/units/x86_64-linux/qt5 Hint: (lazarus) Missing state file of LazOpenGLContext 0.0.1: /usr/lib/lazarus/2.2.0/components/opengl/lib/x86_64-linux/qt5/LazOpenGLContext.compiled Error: (lazarus) unable to create package output directory "/usr/lib/lazarus/2.2.0/components/opengl/lib/x86_64-linux/qt5" of package "LazOpenGLContext 0.0.1" Hint: (lazarus) normal output directory of package LazOpenGLContext 0.0.1 is not writable: "/usr/lib/lazarus/2.2.0/components/opengl/lib/x86_64-linux/qt5/" TParsedCompilerOptions.SetOutputDirectoryOverride New=/home/majesticslinky/.lazarus/lib/LazOpenGLContext/lib/x86_64-linux/qt5 Hint: (11030) Start of reading config file /etc/fpc.cfg Hint: (11031) End of reading config file /etc/fpc.cfg Free Pascal Compiler version 3.2.2+dfsg-9ubuntu1 [2022/04/11] for x86_64 Copyright (c) 1993-2021 by Florian Klaempfl and others

benjamimgois commented 1 year ago

Dear @majesticslinky and @Faugus , you're probably missing the opengl component that renders the 3d cube on the interface. To fix that, just do the following:

Start Lazarus GUI > PACKAGE > INSTALL PACKAGE

On the Avaiable for installation field, search for opengl

image

Click on "lazopenglcontext" > INSTALL SELECTION > SAVE AND REBUILD IDE

After that, try to build goverlay from the CLI again.

Lau-San commented 1 year ago

Dear @majesticslinky and @Faugus , you're probably missing the opengl component that renders the 3d cube on the interface. To fix that, just do the following:

Start Lazarus GUI > PACKAGE > INSTALL PACKAGE

On the Avaiable for installation field, search for opengl

image

Click on "lazopenglcontext" > INSTALL SELECTION > SAVE AND REBUILD IDE

After that, try to build goverlay from the CLI again.

I have this same issue, and after following these steps, nothing changes.

benjamimgois commented 1 year ago

Dear @majesticslinky and @Faugus , you're probably missing the opengl component that renders the 3d cube on the interface. To fix that, just do the following: Start Lazarus GUI > PACKAGE > INSTALL PACKAGE On the Avaiable for installation field, search for opengl image Click on "lazopenglcontext" > INSTALL SELECTION > SAVE AND REBUILD IDE After that, try to build goverlay from the CLI again.

I have this same issue, and after following these steps, nothing changes.

Please, post error messages.

Lau-San commented 1 year ago

Dear @majesticslinky and @Faugus , you're probably missing the opengl component that renders the 3d cube on the interface. To fix that, just do the following: Start Lazarus GUI > PACKAGE > INSTALL PACKAGE On the Avaiable for installation field, search for opengl image Click on "lazopenglcontext" > INSTALL SELECTION > SAVE AND REBUILD IDE After that, try to build goverlay from the CLI again.

I have this same issue, and after following these steps, nothing changes.

Please, post error messages.

I get this error when trying to build both before and after I followed the steps in Lazarus IDE.

/home/laura/.app-repos/goverlay/goverlay.lpr(10,34) Hint: (5023) Unit "crosshairUnit" not used in goverlay
(9022) Compiling resource /home/laura/.app-repos/goverlay/lib/x86_64-linux/goverlay.or
(9015) Linking /home/laura/.app-repos/goverlay/goverlay
/usr/bin/ld.bfd: /home/laura/.lazarus/lib/LazOpenGLContext/lib/x86_64-linux/qt5/qlclopenglwidget.o: in function `CREATEWIDGET':
/usr/lib/lazarus/2.2.0/components/opengl//qlclopenglwidget.pas:58: undefined reference to `QLCLOpenGLWidget_Create'
/usr/bin/ld.bfd: /home/laura/.lazarus/lib/LazOpenGLContext/lib/x86_64-linux/qt5/qlclopenglwidget.o: in function `PAINTGL':
/usr/lib/lazarus/2.2.0/components/opengl//qlclopenglwidget.pas:65: undefined reference to `QLCLOpenGLWidget_InheritedPaintGL'
/usr/bin/ld.bfd: /home/laura/.lazarus/lib/LazOpenGLContext/lib/x86_64-linux/qt5/qlclopenglwidget.o: in function `ATTACHEVENTS':
/usr/lib/lazarus/2.2.0/components/opengl//qlclopenglwidget.pas:75: undefined reference to `QLCLOpenGLWidget_override_paintGL'
/usr/bin/ld.bfd: /home/laura/.lazarus/lib/LazOpenGLContext/lib/x86_64-linux/qt5/qlclopenglwidget.o: in function `DETACHEVENTS':
/usr/lib/lazarus/2.2.0/components/opengl//qlclopenglwidget.pas:83: undefined reference to `QLCLOpenGLWidget_override_paintGL'
/home/laura/.app-repos/goverlay/goverlay.lpr(24,1) Error: (9013) Error while linking
/home/laura/.app-repos/goverlay/goverlay.lpr(24,1) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
Error: (lazarus) Compile Project, Mode: Release, Target: goverlay: stopped with exit code 1
Error: (lazbuild) failed compiling of project /home/laura/.app-repos/goverlay/goverlay.lpi
make: *** [Makefile:9: goverlay] Error 2

And I get these errors when pressing build IDE on lazarus:

Compile package LazControls 1.0.1: Aborted
Compile package LazOpenGLContext 0.0.1: Aborted
Compile package lclextensions_package 0.6.1: Exit code 1, Errors: 1
Fatal: Cannot find qt5 used by DelphiCompat. Enable flag "Use Unit" of unit qt5 in package LCL.
Compile package lhelpcontrolpkg 0.2: Aborted
Compile package SynEdit 1.0: Aborted
Compile package Printer4Lazarus 0.5: Aborted
augustoicaro commented 1 year ago

Same error here. I was able to install lazopenglcontext and rebuild the IDE, but when I try build using the IDE or using the CLI i got the same linking error.