Lazarus

Programming => Packages and Libraries => Topic started by: Tibb on March 03, 2016, 07:07:03 pm

Title: Cannot install lazvlc package on Rpi
Post by: Tibb on March 03, 2016, 07:07:03 pm
Lazarus 1.6RC2
fpc 3.0.0
raspberry Pi 2 / Raspbian v8 (Jessie)

Trying to install package lazvlc 1.0 //Save and rebuild IDE

Compile  package lazvlc 1.0: Exit code 256, Errors: 1
lclvlc.pp(90,47) Error: Identifier not found 'GetXHandle'

Thank You.
Title: Re: Cannot install lazvlc package
Post by: Jurassic Pork on March 03, 2016, 11:31:43 pm
hello,
getXHandle Function is in the include files vlcgtk2.inc or vlcqt.inc .
In the file lclvlc.pp you have
Code: Pascal  [Select][+][-]
  1. {$ifdef HasX}
  2. {$ifdef lclgtk2}
  3. {$I vlcgtk2.inc}
  4. {$endif}
  5. {$ifdef lclqt}
  6. {$I vlcqt.inc}
  7. {$endif}
  8. {$endif}

check why one of the two files isn't include when you compile (check your LCL_PLATFORM).

Quote
LCL_PLATFORM=%platform
%platform is the target widgetset. It can be win32,wince,gtk,gtk2,qt,carbon,cocoa,customdrawn.

Friendly, J.P
Title: Re: Cannot install lazvlc package
Post by: Tibb on March 04, 2016, 08:41:11 pm
Hello,

at 'Configure build Lazarus' i set LCL widget type to gtk2, target OS Linux and Target CPU to arm yet i cannot rebuild the IDE with lazvlc.

These are greyed out:

Code: Pascal  [Select][+][-]
  1. {$ifdef lclgtk2}
  2. {$I vlcgtk2.inc}
  3. {$endif}
  4. {$ifdef lclqt}
  5. {$I vlcqt.inc}
  6. {$endif}
  7.  

Thank You anyway.

t.
Title: Re: Cannot install lazvlc package
Post by: taazz on March 04, 2016, 10:30:04 pm
Hello,

at 'Configure build Lazarus' i set LCL widget type to gtk2, target OS Linux and Target CPU to arm yet i cannot rebuild the IDE with lazvlc.

These are greyed out:

Code: Pascal  [Select][+][-]
  1. {$ifdef lclgtk2}
  2. {$I vlcgtk2.inc}
  3. {$endif}
  4. {$ifdef lclqt}
  5. {$I vlcqt.inc}
  6. {$endif}
  7.  

Thank You anyway.

t.
does jessie support X Windows? Try to find why the HasX is not defined and if required install the x Windows library in jessie.
Title: Re: Cannot install lazvlc package on Rpi
Post by: Tibb on March 05, 2016, 09:44:22 am
I can start X Windows with startx on the Pi, i can run GUI apps on it. Im running Lazarus itself on the Pi 2 and trying to build lazvlc from there.
Title: Re: Cannot install lazvlc package on Rpi
Post by: Jurassic Pork on March 05, 2016, 10:58:58 am
hello,
try to remove the HasX condition :
Code: Pascal  [Select][+][-]
  1. //{$ifdef HasX}
  2. {$ifdef lclgtk2}
  3. {$I vlcgtk2.inc}
  4. {$endif}
  5. {$ifdef lclqt}
  6. {$I vlcqt.inc}
  7. {$endif}
  8. //{$endif}
  9.  
Title: Re: Cannot install lazvlc package on Rpi
Post by: Tibb on March 07, 2016, 09:06:31 pm
hello,
try to remove the HasX condition :
Code: Pascal  [Select][+][-]
  1. //{$ifdef HasX}
  2. {$ifdef lclgtk2}
  3. {$I vlcgtk2.inc}
  4. {$endif}
  5. {$ifdef lclqt}
  6. {$I vlcqt.inc}
  7. {$endif}
  8. //{$endif}
  9.  

Thank You, first im trying to get it work on windows.
TinyPortal © 2005-2018