Hi,

 

I am new to podofo and podofobrowser. I have checked out podofobrowser
RELEASE_0_5_0 on a Windows 7 machine. Podofo.lib compiles correctly but I
get these linker errors when compiling podofobrowser. Can anyone please tell
me what is missing? I am not an expert in build/Makefiles related things.

 

Any help in this regard is appreciated.

 

Regards,

--Ashish

 

This is the podofo build.cmd file in the "externals/podofo-build" directory.
I am able build podofo.lib successfully and install it.

del cmakecache.txt

set FTDIR=C:\MY\work\developer\freetype

set JPEGDIR=C:\Progra~1\GnuWin32

set ZLIBDIR=C:\MY\work\developer\zlib

set OPENSSLDIR=C:\Progra~1\OpenSSL

cmake -G "Visual Studio 9 2008" ..\required_libpodofo
-DCMAKE_INCLUDE_PATH="%FTDIR%\include;%JPEGDIR%\include;%JPEGDIR%;%ZLIBDIR%\
include"
-DCMAKE_LIBRARY_PATH="%FTDIR%\lib;%FTDIR%\objs;%JPEGDIR%\lib;%JPEGDIR%;%ZLIB
DIR%\lib" -DPODOFO_BUILD_SHARED:BOOL=FALSE
-DFREETYPE_LIBRARY_NAMES_DEBUG=freetype2311MT_D
-DFREETYPE_LIBRARY_NAMES_RELEASE=freetype2311MT 

 

The following is the build.cmd file for podofobrowser in podofobrowser-build

del cmakecache.txt

set QTDIR=C:\Qt\2010.01\qt

set FTDIR=C:\MY\work\developer\freetype

set JPEGDIR=C:\Progra~1\GnuWin32

set ZLIBDIR=C:\MY\work\developer\zlib

set PODOFO_SRC=c:\Progra~1\podofo

set STLPORTDIR=c:\MY\work\developer\STLport-5.2.1

cmake -G "Visual Studio 9 2008" ..\podofobrowser_0_5_0
-DLIBPODOFO_DIR=c:\mingw\bin
-DCMAKE_INCLUDE_PATH=c:\progra~1\gnuwin32\include;%FTDIR%\include;%JPEGDIR%\
include;%JPEGDIR%;%ZLIBDIR%\include;%PODOFO_SRC%;%PODOFO_SRC%\include;%PODOF
O_SRC%\lib;%STLPORTDIR%\stlport\stl;%STLPORTDIR%\stlport
-DCMAKE_LIBRARY_PATH=c:\progra~1\gnuwin32\lib;%FTDIR%\lib;%FTDIR%\objs;%JPEG
DIR%\lib;%JPEGDIR%;%ZLIBDIR%\lib;%ZLIBDIR%;%STLPORTDIR%\lib;%STLPORTDIR%\bin
;%PODOFO_SRC%\lib  -DFREETYPE_LIBRARY_NAMES_DEBUG=freetype2311MT_D
-DFREETYPE_LIBRARY_NAMES_RELEASE=freetype2311MT  -DLIBPODOFO_SHARED=1

 

I get these linker errors when podofobrowser is compiled

Error      16           error LNK2019: unresolved external symbol
"__declspec(dllimport) public: unsigned int __thiscall
PoDoFo::PdfVecObjects::GetSize(void)const "
(__imp_?gets...@pdfvecobjects@PoDoFo@@QBEIXZ) referenced in function
"public: __thiscall BackgroundLoader::BackgroundLoader(class
PoDoFo::PdfDocument *)" (??0BackgroundLoader@@q...@pavpdfdocument@PoDoFo@@@Z)
backgroundloader.obj   podofobrowser

Error      17           error LNK2001: unresolved external symbol
"__declspec(dllimport) public: unsigned int __thiscall
PoDoFo::PdfVecObjects::GetSize(void)const "
(__imp_?gets...@pdfvecobjects@PoDoFo@@QBEIXZ)
podofobrowser.obj        podofobrowser

Error      18           error LNK2019: unresolved external symbol
"__declspec(dllimport) public: class PoDoFo::PdfVecObjects & __thiscall
PoDoFo::PdfDocument::GetObjects(void)"
(__imp_?getobje...@pdfdocument@PoDoFo@@qaeaavpdfvecobje...@2@XZ) referenced
in function "public: __thiscall BackgroundLoader::BackgroundLoader(class
PoDoFo::PdfDocument *)" (??0BackgroundLoader@@q...@pavpdfdocument@PoDoFo@@@Z)
backgroundloader.obj   podofobrowser

Error      19           error LNK2001: unresolved external symbol
"__declspec(dllimport) public: class PoDoFo::PdfVecObjects & __thiscall
PoDoFo::PdfDocument::GetObjects(void)"
(__imp_?getobje...@pdfdocument@PoDoFo@@qaeaavpdfvecobje...@2@XZ)
pdfobjectmodel.obj       podofobrowser

Error      20           error LNK2001: unresolved external symbol
"__declspec(dllimport) public: class PoDoFo::PdfVecObjects & __thiscall
PoDoFo::PdfDocument::GetObjects(void)"
(__imp_?getobje...@pdfdocument@PoDoFo@@qaeaavpdfvecobje...@2@XZ)
podofobrowser.obj        podofobrowser

............

............

Error      113         error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
PoDoFo::PdfFilter::Decode(char const *,long,char * *,long *,class
PoDoFo::PdfDictionary const *)const "
(__imp_?dec...@pdffilter@PoDoFo@@qbexpbdjpapadpajpbvpdfdiction...@2@@Z)
referenced in function "private: void __thiscall
PoDoFoBrowser::toolsFromHex(void)" (?toolsfrom...@podofobrowser@@AAEXXZ)
podofobrowser.obj                podofobrowser

Error      114         fatal error LNK1120: 83 unresolved externals
C:\lal\work\RAC\PDF-Parse\podofobrowser-build\src\Debug\podofobrowser.exe
1              podofobrowser

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to