Vampyre Imaging Library Forum

Imaging Category => Bugs And Other Insects => Topic started by: Windows User on 4 February 2018, 13:50:47

Title: Error: Can't open object file: libtiffpack-win32.a
Post by: Windows User on 4 February 2018, 13:50:47
I am using the newest version of Vampyre Imaging on Windows 7 with Lazarus 1.6.4. (32 bit).

When adding the package to my project and trying to compile, I get the following errors:

lazarus.pp(154,1) Warning: Library libtiffpack-win32.a not found, Linking may fail !
lazarus.pp(154,1) Error: Can't open object file: libtiffpack-win32.a

Obviously, Lazarus cannot find the libtiffpack-win32.a located in \Extras\Extensions\LibTiff\Compiled.

I have tried the LCLImager Demo and it is working there. I saw that there ";..\..\..\Extras\Extensions\LibTiff\Compiled" is added to the "Compiler Options > Libraries (-FI)" while the package itself has no link to the Compiled folder at this point. However, when adding ";..\..\..\Extras\Extensions\LibTiff\Compiled" to the package compiler options, it is not working, too. Or am I missing something at this point?

When creating a new project and adding ";..\..\..\Extras\Extensions\LibTiff\Compiled" to the project options, it is compiling and Lazarus finds libtiffpack-win32.a. When omitting this, I get the error. But also the IDE is not compiling anymore, there I get the same error "Can't open object file".

I think the package is missing a link or include to the Compiled folder at some point. However, I have not enough expertise to fix this on my own. Can you help me?
Title: Re: Error: Can't open object file: libtiffpack-win32.a
Post by: Mac User on 6 February 2018, 14:04:34
If you just add only the library file (lpk) to a blank Lazarus project as it is (without changing any library or unit paths), you get the following error:

ImagingTiff.pas(42,3) Fatal: Cannot find ImagingTiffLib used by ImagingTiff.

I think there is just missing a dependency within the package. But I cannot find where and how to fix it...
Title: Re: Error: Can't open object file: libtiffpack-win32.a
Post by: Galfar on 23 May 2018, 01:51:22
Could you check with the latest version of Imaging? There was a rework of the Lazarus packages in March 2018.
Title: Re: Error: Can't open object file: libtiffpack-win32.a
Post by: Arpisit1750 on 10 February 2021, 08:14:16
Now I have Windows 10, try it out.