Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: [DCC Fatal Error] PdfiumCore.pas(9): F2613 Unit 'PdfiumLib' not found.



Permlink Replies: 4 - Last Post: Apr 25, 2017 5:33 AM Last Post By: Asger Joergensen
Asger Joergensen

Posts: 370
Registered: 11/18/08
[DCC Fatal Error] PdfiumCore.pas(9): F2613 Unit 'PdfiumLib' not found.
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 18, 2017 12:05 PM
Hi

I'm using some Delphi code that wrap pdfium and I get this message:
[DCC Fatal Error] PdfiumCore.pas(9): F2613 Unit 'PdfiumLib' not found.

uses
Windows, Types, SysUtils, Classes, Contnrs, PdfiumLib; // <<< on this line

I have added the PdfiumLib.pas to the project, but it is in a different
directory then the project, the path of that directory is in both the project
lib path and include path.

If I add the 3 Pdfium*.pas to the project directory instead everything compiles
just fine, but I would prefer to only have one set of pas files to maintain
and not one in every project where I use pdfium.

Any suggestions ?
Thanks in advance
Best regards
Asger

Bruce Salzman


Posts: 56
Registered: 8/23/02
Re: [DCC Fatal Error] PdfiumCore.pas(9): F2613 Unit 'PdfiumLib' not found.
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 24, 2017 8:39 AM   in response to: Asger Joergensen in response to: Asger Joergensen
Asger Joergensen wrote:

Hi

I'm using some Delphi code that wrap pdfium and I get this message:
[DCC Fatal Error] PdfiumCore.pas(9): F2613 Unit 'PdfiumLib' not found.

uses
Windows, Types, SysUtils, Classes, Contnrs, PdfiumLib; // <<< on
this line

I have added the PdfiumLib.pas to the project, but it is in a
different directory then the project, the path of that directory is
in both the project lib path and include path.

If I add the 3 Pdfium*.pas to the project directory instead
everything compiles just fine, but I would prefer to only have one
set of pas files to maintain and not one in every project where I use
pdfium.

Any suggestions ?
Thanks in advance
Best regards
Asger


Try adding the pdfium.lib file directly to your project.

--
Bruce
Asger Joergensen

Posts: 370
Registered: 11/18/08
Re: [DCC Fatal Error] PdfiumCore.pas(9): F2613 Unit 'PdfiumLib' not found.
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 24, 2017 1:09 PM   in response to: Bruce Salzman in response to: Bruce Salzman
Hi Bruce

Bruce Salzman wrote:


Try adding the pdfium.lib file directly to your project.

There is no lib file, only a dll and some pas files.

Best regards
Asger
Antonio Estevez

Posts: 665
Registered: 4/12/00
Re: [DCC Fatal Error] PdfiumCore.pas(9): F2613 Unit 'PdfiumLib' not found.
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 25, 2017 12:50 AM   in response to: Asger Joergensen in response to: Asger Joergensen
El 24/04/2017 a las 22:09, Asger Joergensen escribió:
Hi Bruce

Bruce Salzman wrote:


Try adding the pdfium.lib file directly to your project.

There is no lib file, only a dll and some pas files.

Best regards
Asger

You can use the implib and mkexp command line utilities to create the
.lib (Win32) and .a (Win64) library files respectively:

cd "Path where pdfium.dll file is"
 
implib -a pdfium.lib pdfium.dll
mkexp  -p pdfium.a   pdfium.dll
Asger Joergensen

Posts: 370
Registered: 11/18/08
Re: [DCC Fatal Error] PdfiumCore.pas(9): F2613 Unit 'PdfiumLib' not found.
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 25, 2017 5:33 AM   in response to: Antonio Estevez in response to: Antonio Estevez
Hi Antonio

Antonio Estevez wrote:

You can use the implib and mkexp command line utilities to create the
.lib (Win32) and .a (Win64) library files respectively:

cd "Path where pdfium.dll file is"
 
implib -a pdfium.lib pdfium.dll
mkexp  -p pdfium.a   pdfium.dll

Thanks Bruce and Antonio
Now everything works as I want.

Best regards
Asger
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02