Recent

Author Topic: Unable to install GLScene components!  (Read 21406 times)

mbnoimi

  • New Member
  • *
  • Posts: 34
Unable to install GLScene components!
« on: December 31, 2010, 04:52:29 pm »
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

  • New Member
  • *
  • Posts: 34
Re: Unable to install GLScene components!
« Reply #1 on: January 08, 2011, 10:47:27 am »
guys, any response! I couldn't  find any doc talking about this issue!

mbnoimi

  • New Member
  • *
  • Posts: 34
Re: Unable to install GLScene components!
« Reply #2 on: January 08, 2011, 02:10:01 pm »
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

  • New Member
  • *
  • Posts: 34
Re: Unable to install GLScene components!
« Reply #3 on: January 08, 2011, 02:58:52 pm »
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/glscene/Source/platform/gllingtkcontext.pas(1,1) Fatal: Can't find unit GTKProc used by GLLinGTKContext

Laksen

  • Hero Member
  • *****
  • Posts: 802
    • J-Software
Re: Unable to install GLScene components!
« Reply #4 on: January 08, 2011, 04:51:40 pm »
Try rebuilding the entire IDE. Under Tools->Build all.. and then try installing the package again

pch

  • Jr. Member
  • **
  • Posts: 51
    • http://ap-i.net
Re: Unable to install GLScene components!
« Reply #5 on: January 08, 2011, 07:12:03 pm »
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

  • New Member
  • *
  • Posts: 34
Re: Unable to install GLScene components!
« Reply #6 on: January 08, 2011, 09:45:18 pm »
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/glscene/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

  • New Member
  • *
  • Posts: 34
Re: Unable to install GLScene components!
« Reply #7 on: January 08, 2011, 09:47:54 pm »
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/lib/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/glscene/Source/fileformats/tga.pas(1,1) Fatal: Can't find unit LazTGA used by TGA
^C
admino-mbnoimi 0.9.29 #

pch

  • Jr. Member
  • **
  • Posts: 51
    • http://ap-i.net
Re: Unable to install GLScene components!
« Reply #8 on: January 09, 2011, 11:16:03 am »
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

  • New Member
  • *
  • Posts: 34
Re: Unable to install GLScene components!
« Reply #9 on: January 09, 2011, 06:49:00 pm »
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

  • Jr. Member
  • **
  • Posts: 51
    • http://ap-i.net
Re: Unable to install GLScene components!
« Reply #10 on: January 09, 2011, 07:42:22 pm »
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

  • New Member
  • *
  • Posts: 34
Re: Unable to install GLScene components!
« Reply #11 on: January 12, 2011, 06:32:45 pm »
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/glscene/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
« Last Edit: January 12, 2011, 07:06:53 pm by mbnoimi »

BlueIcaro

  • Hero Member
  • *****
  • Posts: 832
    • Blog personal
Re: Unable to install GLScene components!
« Reply #12 on: January 12, 2011, 08:47:06 pm »
Did you test if this missed file it's on your harddisk?

/BlueIcaro

mbnoimi

  • New Member
  • *
  • Posts: 34
Re: Unable to install GLScene components!
« Reply #13 on: January 13, 2011, 06:08:53 am »
Did 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/glscene/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 ?
« Last Edit: January 13, 2011, 06:11:58 am by mbnoimi »

mbnoimi

  • New Member
  • *
  • Posts: 34
Re: Unable to install GLScene components!
« Reply #14 on: January 13, 2011, 06:19:37 am »
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 !

 

TinyPortal © 2005-2018