Unable to install GLScene components! lazarus / 1-Linux ---------------------------------------------------------------------- mbnoimi · 2010-12-31 15:52 Hi All. For installing GLScene I tried to get latest version of it from svn repository but I noticed that current trunk doesn't contain on /glscene/globallinks/*.lpl (as mentioned in this wiki page) so I created a new folder at /usr/lib/lazarus/0.9.29/components/GLScene/ then run Lazarus and selected all .lpk files (except GLS_WinOnly.lpk) and clicked on 'compile' for glscene_runtime, but it gave me error message "A required packages was not found. See package graph." for ImagesForLazarus package! How can I install GLScene smoothly in Lazarus? Notes: I've kubuntu 10.10 amd 64x Wiki page didn't talk about installing process in Linux. I could successfully install GLScene in Windows. ---------------------------------------------------------------------- mbnoimi · 2011-01-08 09:47 guys, any response! I couldn't  find any doc talking about this issue! ---------------------------------------------------------------------- mbnoimi · 2011-01-08 13:10 I tried to use freepascal repository instead of sourceforge repos. freepascal has /glscene/globallinks/*.lpl but it gave same error messages as shown in the following screenshots: http://img338.imageshack.us/img338/1751/shot2k.png http://img407.imageshack.us/img407/1600/shot3.png could anyone help me? ---------------------------------------------------------------------- mbnoimi · 2011-01-08 13:58 as trial for fixing this issue, I tried to remove ImagesForLazarus dependency but it didn't fix it because when I clicked on "save & rebuild" I got this fatal error during compiling Lazarus: Code: [Select]Fatal: Can't find unit GTKProc used by GLLinGTKContext QuickFixUnitNotFoundPosition unit not found: GLLinGTKContext TExternalToolList.Run Exception: /usr/lib/lazarus/0.9.29/components/gl scene/Source/platform/gllingtkcontext.pas(1,1) Fatal: Can't find unit GTKProc used by GLLinGTKContext ---------------------------------------------------------------------- Laksen · 2011-01-08 15:51 Try rebuilding the entire IDE. Under Tools->Build all.. and then try installing the package again ---------------------------------------------------------------------- pch · 2011-01-08 18:12 At the moment get glscene from http://svn.freepascal.org/svn/fpcprojects/glscene/trunk I don't know which version of fpc is require for the sourceforge version, for me with 2.4.3 it complain about the generics. To make it work with Gtk2 read this report: http://bugs.freepascal.org/view.php?id=16890 And reinstall Imageforlazarus, it is realy required. ---------------------------------------------------------------------- mbnoimi · 2011-01-08 20:45 I did as you said guys but once again I got new error message when I tried to rebuild entire Lazarus Code: [Select]Compiling /usr/lib/lazarus/0.9.29/components/glscene/Source/fileformats/tga.pas Fatal: Can't find unit LazTGA used by TGA QuickFixUnitNotFoundPosition unit not found: TGA TExternalToolList.Run Exception: /usr/lib/lazarus/0.9.29/components/gl scene/Source/fileformats/tga.pas(1,1) Fatal: Can't find unit LazTGA used by TGA What I've to do now?! I've latest Lazarus with latest glscene but both of them I've many troubles !! ---------------------------------------------------------------------- mbnoimi · 2011-01-08 20:47 here is the complete log of building process: Code: [Select]admino-mbnoimi 0.9.29 # cd /usr/lib/lazarus/0.9.29 admino-mbnoimi 0.9.29 # clear admino-mbnoimi 0.9.29 # ./lazarus TMainIDE.ParseCmdLineOptions:   PrimaryConfigPath="/root/.lazarus"   SecondaryConfigPath="/etc/lazarus" WARNING: suspicious pkg link file found (name): /usr/lib/lazarus/0.9.29/packager/globallinks/ide.lpl TMainIDE.DoNewProject A TBuildManager.SetBuildTargetIDE OS=linux CPU=x86_64 WS=gtk2 [TExternalToolList.Run] CmdLine="/usr/bin/make all -w" WorkDir="/usr/lib/lazarus/0.9.29/lcl" make: Entering directory `/usr/lib/lazarus/0.9.29/lcl' /bin/rm -f units/x86_64-linux/alllclunits.ppu /usr/bin/fpc -gl  -Fu. -Funonwin32 -Fuforms -Fuwidgetset -Fu/usr/lib/fpc/2.4.2/units/x86_64-linux/rtl -Fiinclude -FE. -FUunits/x86_64-linux -Cg -dx86_64 alllclunits.pp Free Pascal Compiler version 2.4.2-0 [2010/11/20] for x86_64 Copyright (c) 1993-2010 by Florian Klaempfl Target OS: Linux for x86-64 Compiling alllclunits.pp 79 lines compiled, 1.8 sec /usr/bin/make -C interfaces all make[1]: Entering directory `/usr/lib/lazarus/0.9.29/lcl/interfaces' /usr/bin/make -C gtk2 all make[2]: Entering directory `/usr/lib/lazarus/0.9.29/lcl/interfaces/gtk2' /bin/rm -f ../../units/x86_64-linux/gtk2/interfaces.ppu \                 ../../units/x86_64-linux/gtk2/interfaces.o /usr/bin/fpc -gl -dgtk2 -Fu../../units/x86_64-linux -Fu. -Fu/usr/lib/fpc/2.4.2/units/x86_64-linux/rtl -Fi. -FE. -FU../../units/x86_64-linux/gtk2 -Cg -dx86_64 interfaces.pas Free Pascal Compiler version 2.4.2-0 [2010/11/20] for x86_64 Copyright (c) 1993-2010 by Florian Klaempfl Target OS: Linux for x86-64 Compiling interfaces.pas 44 lines compiled, 0.9 sec make[2]: Leaving directory `/usr/lib/lazarus/0.9.29/lcl/interfaces/gtk2' make[1]: Leaving directory `/usr/lib/lazarus/0.9.29/lcl/interfaces' make: Leaving directory `/usr/lib/lazarus/0.9.29/lcl' "LCL" completed [TExternalToolList.Run] CmdLine="/usr/bin/make all -w" WorkDir="/usr/lib/lazarus/0.9.29/packager/registration" make: Entering directory `/usr/lib/lazarus/0.9.29/packager/registration' /bin/rm -f ../units/x86_64-linux/lazaruspackageintf.ppu /usr/bin/fpc -gl -Fu. -Fu/usr/lib/fpc/2.4.2/units/x86_64-linux/rtl -FE. -FU../units/x86_64-linux -Cg -dx86_64 lazaruspackageintf.pas Free Pascal Compiler version 2.4.2-0 [2010/11/20] for x86_64 Copyright (c) 1993-2010 by Florian Klaempfl Target OS: Linux for x86-64 Compiling lazaruspackageintf.pas 109 lines compiled, 0.1 sec make: Leaving directory `/usr/lib/lazarus/0.9.29/packager/registration' "Package Registration" completed [TExternalToolList.Run] CmdLine="/usr/bin/make all -w" WorkDir="/usr/lib/lazarus/0.9.29/ideintf" make: Entering directory `/usr/lib/lazarus/0.9.29/ideintf' /bin/rm -f units/x86_64-linux/allideintf.ppu /usr/bin/fpc -gl -dlclgtk2 -Fu../lcl/units/x86_64-linux -Fu../components/codetools/x86_64-linux -Fu../packager/units/x86_64-linux -Fu. -Fu/usr/lib/fpc/2.4.2/units/x86_64-linux/rtl -FE. -FUunits/x86_64-linux -Cg -dx86_64 allideintf.pas Free Pascal Compiler version 2.4.2-0 [2010/11/20] for x86_64 Copyright (c) 1993-2010 by Florian Klaempfl Target OS: Linux for x86-64 Compiling allideintf.pas 70 lines compiled, 0.8 sec make: Leaving directory `/usr/lib/lazarus/0.9.29/ideintf' "IDE Interface" completed [TExternalToolList.Run] CmdLine="/usr/bin/make all -w" WorkDir="/usr/lib/lazarus/0.9.29/components/synedit" make: Entering directory `/usr/lib/lazarus/0.9.29/components/synedit' /bin/rm -f units/x86_64-linux/allsyneditunits.ppu /usr/bin/fpc -gl -dlclgtk2 -Fu../../lcl/units/x86_64-linux -Fu../../ideintf/units/x86_64-linux -Fu. -Fu/usr/lib/fpc/2.4.2/units/x86_64-linux/rtl -Fu/usr/lib/fpc/2.4.2/units/x86_64-linux/regexpr -FE. -FUunits/x86_64-linux -Cg -dx86_64 allsyneditunits.pp Free Pascal Compiler version 2.4.2-0 [2010/11/20] for x86_64 Copyright (c) 1993-2010 by Florian Klaempfl Target OS: Linux for x86-64 Compiling allsyneditunits.pp 56 lines compiled, 0.7 sec make: Leaving directory `/usr/lib/lazarus/0.9.29/components/synedit' "SynEdit" completed TPkgManager.SaveAutoInstallDependencies A SDFLaz TPkgManager.SaveAutoInstallDependencies A Printer4Lazarus TPkgManager.SaveAutoInstallDependencies A glscenelazarus TPkgManager.SaveAutoInstallDependencies A DBFLaz TPkgManager.SaveAutoInstallDependencies A TAChartLazarusPkg TPkgManager.SaveAutoInstallDependencies A ProjTemplates TPkgManager.SaveAutoInstallDependencies A fpcunitide TPkgManager.SaveAutoInstallDependencies A jcfidelazarus TPkgManager.SaveAutoInstallDependencies A TurboPowerIPro TPkgManager.SaveAutoInstallDependencies A MemDSLaz TPkgManager.SaveAutoInstallDependencies A printers4lazide TPkgManager.SaveAutoInstallDependencies A RunTimeTypeInfoControls TPkgManager.SaveAutoInstallDependencies A SQLDBLaz TPkgManager.CheckCompileNeedDueToDependencies  Required LCL 1.0 OtherState file "/usr/lib/lazarus/0.9.29//lcl/units/x86_64-linux/alllclunits.o" is newer than State file Package: SDFLaz 0.1.1 [TExternalToolList.Run] CmdLine="/usr/bin/fpc  -MObjFPC -Scgi -O1 -gl -vewnhi -l -Fu/usr/lib/lazarus/0.9.29/lcl/units/x86_64-linux -Fu/usr/lib/lazarus/0.9.29/lcl/units/x86_64-linux/gtk2 -Fu/usr/lib/lazarus/0.9.29/packager/units/x86_64-linux -Fu/usr/lib/lazarus/0.9.29/components/sdf/ -Fu. -FU/usr/lib/lazarus/0.9.29/components/sdf/lib/x86_64-linux/gtk2/ -dLCL -dLCLgtk2 sdflaz.pas" WorkDir="/usr/lib/lazarus/0.9.29/components/sdf/" Hint: Start of reading config file /etc/fpc.cfg Hint: End of reading config file /etc/fpc.cfg Free Pascal Compiler version 2.4.2-0 [2010/11/20] for x86_64 Copyright (c) 1993-2010 by Florian Klaempfl Target OS: Linux for x86-64 Compiling sdflaz.pas sdflaz.pas(10,23) Hint: Unit "SdfData" not used in SDFLaz 21 lines compiled, 0.2 sec 3 hint(s) issued "Compiling package SDFLaz 0.1.1" completed TPkgManager.CheckCompileNeedDueToDependencies  Required LCL 1.0 OtherState file "/usr/lib/lazarus/0.9.29//lcl/units/x86_64-linux/alllclunits.o" is newer than State file Package: Printer4Lazarus 0.5 [TExternalToolList.Run] CmdLine="/usr/bin/fpc  -MObjFPC -Scgi -O1 -gl -vewnhi -l -Fi/usr/lib/lazarus/0.9.29/components/printers/unix -Fi/usr/lib/lazarus/0.9.29/components/printers/win32 -Fi/usr/lib/lazarus/0.9.29/components/printers/carbon -Fi/usr/lib/lazarus/0.9.29/components/printers/qt -Fu/usr/lib/lazarus/0.9.29/components/printers/unix -Fu/usr/lib/lazarus/0.9.29/components/printers/win32 -Fu/usr/lib/lazarus/0.9.29/components/printers/carbon -Fu/usr/lib/lazarus/0.9.29/components/printers/qt -Fu/usr/lib/lazarus/0.9.29/lcl/units/x86_64-linux -Fu/usr/lib/lazarus/0.9.29/lcl/units/x86_64-linux/gtk2 -Fu/usr/lib/lazarus/0.9.29/packager/units/x86_64-linux -Fu/usr/lib/lazarus/0.9.29/components/printers/ -Fu. -FU/usr/lib/lazarus/0.9.29/components/printers/lib/x86_64-linux/gtk2/ -dUseCache -dNativePrint -dLCL -dLCLgtk2 printer4lazarus.pas" WorkDir="/usr/lib/lazarus/0.9.29/components/printers/" Hint: Start of reading config file /etc/fpc.cfg Hint: End of reading config file /etc/fpc.cfg Free Pascal Compiler version 2.4.2-0 [2010/11/20] for x86_64 Copyright (c) 1993-2010 by Florian Klaempfl Target OS: Linux for x86-64 Compiling printer4lazarus.pas 21 lines compiled, 0.4 sec 2 hint(s) issued "Compiling package Printer4Lazarus 0.5" completed TPkgManager.CheckCompileNeedDueToDependencies  Required LCL 1.0 OtherState file "/usr/lib/lazarus/0.9.29//lcl/units/x86_64-linux/alllclunits.o" is newer than State file Package: LazControls 0.0 [TExternalToolList.Run] CmdLine="/usr/bin/fpc  -MObjFPC -Scghi -O1 -gl -vewnhi -l -Fu/usr/lib/lazarus/0.9.29/lcl/units/x86_64-linux -Fu/usr/lib/lazarus/0.9.29/lcl/units/x86_64-linux/gtk2 -Fu/usr/lib/lazarus/0.9.29/packager/units/x86_64-linux -Fu/usr/lib/lazarus/0.9.29/components/lazcontrols/ -Fu. -FU/usr/lib/lazarus/0.9.29/components/lazcontrols/lib/x86_64-linux/ -dLCL -dLCLgtk2 lazcontrols.pas" WorkDir="/usr/lib/lazarus/0.9.29/components/lazcontrols/" Hint: Start of reading config file /etc/fpc.cfg Hint: End of reading config file /etc/fpc.cfg Free Pascal Compiler version 2.4.2-0 [2010/11/20] for x86_64 Copyright (c) 1993-2010 by Florian Klaempfl Target OS: Linux for x86-64 Compiling lazcontrols.pas 22 lines compiled, 0.4 sec 2 hint(s) issued "Compiling package LazControls 0.0" completed TLazPackageGraph.CheckIfPackageNeedsCompilation  Compile was incomplete for glscenelazarus 1.0.0.3 [TExternalToolList.Run] CmdLine="/usr/bin/fpc  -MDelphi -Scgi -CX -O1 -g -gl -vewni -l -Fi/usr/lib/lazarus/0.9.29/components/glscene/Source -Fu/usr/lib/lazarus/0.9.29/components/glscene/Source -Fu/usr/lib/lazarus/0.9.29/components/glscene/Source/base -Fu/usr/lib/lazarus/0.9.29/components/glscene/Source/platform -Fu/usr/lib/lazarus/0.9.29/components/glscene/Source/designtime -Fu/usr/lib/lazarus/0.9.29/components/glscene/Source/propertyeditors -Fu/usr/lib/lazarus/0.9.29/components/glscene/Source/fileformats -Fu/usr/lib/lazarus/0.9.29/components/glscene/Source/shaders -Fu/usr/lib/lazarus/0.9.29/components/glscene/Source/physicsapis -Fu/usr/lib/lazarus/0.9.29/components/glscene/Source/soundapis -Fu/usr/lib/lazarus/0.9.29/components/glscene/Source/videoapis -Fu/usr/lib/lazarus/0.9.29/components/glscene/Source/cgshaders -Fu/usr/lib/lazarus/0.9.29/components/glscene/Source/glslshaders -Fu/usr/lib/lazarus/0.9.29/ideintf/units/x86_64-linux -Fu/usr/lib/lazarus/0.9.29/lcl/units/x86_64-linux -Fu/usr/lib/lazarus/0.9.29/lcl/units/x86_64-linux/gtk2 -Fu/usr/lib/lazarus/0.9.29/packager/units/x86_64-linux -Fu/usr/lib/lazarus/0.9.29/components/glscene/Lazarus/ -Fu. -FU/usr/li b/lazarus/0.9.29/components/glscene/Lazarus/lib/x86_64-linux/ -dLCL -dLCLgtk2 glscenelazarus.pas" WorkDir="/usr/lib/lazarus/0.9.29/components/glscene/Lazarus/" Free Pascal Compiler version 2.4.2-0 [2010/11/20] for x86_64 Copyright (c) 1993-2010 by Florian Klaempfl Target OS: Linux for x86-64 Compiling glscenelazarus.pas Compiling /usr/lib/lazarus/0.9.29/components/glscene/Source/designtime /glsceneregister.pas Compiling /usr/lib/lazarus/0.9.29/components/glscene/Source/fileformats/tga.pas Fatal: Can't find unit LazTGA used by TGA QuickFixUnitNotFoundPosition unit not found: TGA TExternalToolList.Run Exception: /usr/lib/lazarus/0.9.29/components/gl scene/Source/fileformats/tga.pas(1,1) Fatal: Can't find unit LazTGA used by TGA ^C admino-mbnoimi 0.9.29 # ---------------------------------------------------------------------- pch · 2011-01-09 10:16 Try the following: Code: [Select]cd lazarus/components/images ../../lazbuild --os=linux --widgetset=gtk2 --cpu=x86_64 imagesforlazarus.lpk Then rebuild lazarus from the ide. ---------------------------------------------------------------------- mbnoimi · 2011-01-09 17:49 Code: [Select]ERROR: File not found: /usr/lib/lazarus/0.9.29/components/images/imagesforlazarus.lpk do you suggest to fetch Lazarus trunk, or nightly build enough?! ---------------------------------------------------------------------- pch · 2011-01-09 18:42 Strange ... this must be in the snapshot too. I just checked in lazarus-0.9.29-28909-20110109-src.zip and it's OK. But I always use subversion because this is much quicker to update. At the moment I use the branch  http://svn.freepascal.org/svn/lazarus/branches/fixes_0_9_30 ---------------------------------------------------------------------- mbnoimi · 2011-01-12 17:32 I still get same error message! Code: [Select]Fatal: Can't find unit LazTGA used by TGA QuickFixUnitNotFoundPosition unit not found: TGA TExternalToolList.Run Exception: /usr/lib/lazarus/0.9.31/components/gl scene/Source/fileformats/tga.pas(1,1) Fatal: Can't find unit LazTGA used by TGA although I downloaded latest daily snapshot once again! fpc-2.4.2-0.amd64.deb.tar lazarus-0.9.31.28968-20110112.amd64.deb.tar and glscene from: http://svn.freepascal.org/svn/fpcprojects/glscene/trunk svn revision 2443 What I've to do now? I'm unable to make my open source project (Ensala(Robots simulator)) truly cross-platform! I didn't face any problem in Windows where in Linux I faced ton of issues ---------------------------------------------------------------------- BlueIcaro · 2011-01-12 19:47 Did you test if this missed file it's on your harddisk? /BlueIcaro ---------------------------------------------------------------------- mbnoimi · 2011-01-13 05:08 Quote from: BlueIcaro on January 12, 2011, 08:47:06 pmDid you test if this missed file it's on your harddisk? for imagesforlazarus.lpk I couldn't find it at all for laztga.pas I found it at components/images/ but I don't know why Lazarus unable to find it and shows error message for it! Code: [Select]Fatal: Can't find unit LazTGA used by TGA QuickFixUnitNotFoundPosition unit not found: TGA TExternalToolList.Run Exception: /usr/lib/lazarus/0.9.31/components/gl scene/Source/fileformats/tga.pas(1,1) Fatal: Can't find unit LazTGA used by TGA I still believe that all errors come from missed package ImagesForLazarus, do you think that too ? ---------------------------------------------------------------------- mbnoimi · 2011-01-13 05:19 it's important to say that I found: components/images/imagesforlazarus.pas packager/globallinks/imagesforlazarus-1.0.1.lpl but I didn't find imagesforlazarus.lpk ! ---------------------------------------------------------------------- avra · 2011-01-13 10:52 Uninstall everything related to FPC/Lazarus, then install CodeTyphon from http://www.pilotlogic.com/sitejoom/index.php?option=com_content&v iew=article&id=96&Itemid=147. It has GLScene and some other components fully integrated, plus it gives you cross compilers out of the box. Installation is very simple. Someone nice has already done the hard work for you ---------------------------------------------------------------------- mbnoimi · 2011-01-17 17:15 Quote from: avra on January 13, 2011, 11:52:29 amUninstall everything related to FPC/Lazarus, then install CodeTyphon from http://www.pilotl ogic.com/sitejoom/index.php?option=com_content&view=article&id=96&Item id=147. It has GLScene and some other components fully integrated, plus it gives you cross compilers out of the box. Installation is very simple. Someone nice has already done the hard work for you Thanks a lot I'm working on using it although it couldn't compile any GLScene project yet even it couldn't compile standard glscene demos!!!... any way this issue related to CodeTyphon. I'll post my issues at CodeTyphon community forum and if I couldn't fix that issues I'll come back here and retry with Lazarus and GLScene for Lazarus. ---------------------------------------------------------------------- mbnoimi · 2011-01-29 16:08 Code: [Select]Uninstall everything related to FPC/Lazarus, then install CodeTyphon from http://www.pilotlogic.com/sitejoom/index.php?o ption=com_content&view=article&id=96&Itemid=147. It has GLScene and some other components fully integrated, plus it gives you cross compilers out of the box. Installation is very simple.CodeTyphon doesn't support x64 architecture, could anyone help me? ---------------------------------------------------------------------- YarUnderoaker · 2011-01-29 17:27 Current revision of SVN GLScene support x64 architecture. But it have a problem with keyboard in Linux http://forum.lazarus.free pascal.org/index.php/topic,11962.msg60602/topicseen.html#new ---------------------------------------------------------------------- YarUnderoaker · 2011-02-16 21:44 Now problem fixed. Also revived Mac OS support.