Recent

Author Topic: Library path  (Read 16030 times)

classic12

  • New Member
  • *
  • Posts: 19
Library path
« on: February 23, 2010, 11:49:17 am »
I am trying to add Vampyre image library. How do I add the path to the lazarus library path please. (Idiot level instructions would be nice)

User137

  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
Re: Library path
« Reply #1 on: February 23, 2010, 01:07:09 pm »
I don't think it's supported by Lazarus (yet?).

You can put the files in [YourPath]\lazarus\fpc\2.2.4\units\i386-win32\
This should make compiler find them always. But you likely want to also make Lazarus IDE find them so you can actually jump in code...

...and then in Environment options -> CodeTools -> General - Source search path. Now, i don't know exactly how to use this editbox because it doesn't have hints in it, can you separate paths with ";", and how to make it work with sub dirs? It seemed to dislike "D:\" etc, but i tried like:
$(LazarusDir)\fpc\2.2.4\units\i386-win32\MyLibrary\
This does not work always and i end up copy-pasting the same thing in Compiler options -> Other unit files... of every project.
« Last Edit: February 23, 2010, 01:10:15 pm by User137 »

Leledumbo

  • Hero Member
  • *****
  • Posts: 8114
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Library path
« Reply #2 on: February 23, 2010, 02:19:00 pm »
Just compile the .lpk and when you create a project that requires it, add the dependency from Project Inspector.