Recent

Author Topic: newbie q: install BGRABitmap package  (Read 6754 times)

twixtfanatic

  • Newbie
  • Posts: 2
newbie q: install BGRABitmap package
« on: March 10, 2014, 12:36:04 am »
I am using Lazarus 1.2.0 installed by GDebi under Linux Mint Debian UP8 for amd64 with Mate.

The tutorial page at http://wiki.freepascal.org/BGRABitmap_tutorial_1 tells me,

Quote
... Then you need to make the project aware of BGRABitmap units. There are two ways.
By installing BGRABitmap package

Open bgrabitmappack.lpk and click on install. A dialog pops up, asking if the package must be added to Lazarus and if it needs to be compiled again. Choose Yes twice.

If everything is fine, Lazarus restarts and BGRABitmap units are available.
I cannot find this package. Attached is a screen shot of the packages window.

Any clue would be appreciated.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: newbie q: install BGRABitmap package
« Reply #1 on: March 10, 2014, 09:10:39 am »
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

twixtfanatic

  • Newbie
  • Posts: 2
Re: newbie q: install BGRABitmap package
« Reply #2 on: March 10, 2014, 02:25:51 pm »
Okay, I downloaded the zip file. I extracted it to the subdirectory Pascal, in my home directory. There are 70 small files there, including bgrabitmappack.lpk and lots of .pas and .inc files. It looks like I need to copy these files somewhere, perhaps into some subdirectory or subdirectories of /usr/lib/lazarus/ ?

Why didn't Gdebi automatically install BGRABitmap with Lazarus 1.2.0?
Where am I supposed to extract the BGRABitmap package to, so that it shows up in the package install list?
Why doesn't the tutorial page mention these details?

TIA

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: newbie q: install BGRABitmap package
« Reply #3 on: March 10, 2014, 02:36:29 pm »
Gdebi is not a package manager for your IDE. Lazarus does not use .deb packages for its packages but .lpk packages

Just make sure the bgra files are in a folder whose name makes sense (for your own sanity) -  if you're the only user on your machine, something like ~/lazpackages/bgra could work though I'm sure experienced Lazarus Linux will have their own preferences.

Then start Lazarus, and follow
http://wiki.lazarus.freepascal.org/Install_Packages#Adding_new_packages

This is not in the bgra tutorial because package management in Lazarus is a general thing (just like there's no tutorial about how to compile; you should know how to press the compile button).

See the wiki for lots, and lots, and lots of documentation... e.g.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

 

TinyPortal © 2005-2018