Hi, from the image attachment to your post I can see that Windows searched for podofo.dll in a completely different directory from where the freshly-built podofo.dll is (supposed to be) located (you did build it from within Visual Studio opening the sln file generated by cmake with it, right?). So I assume the podofo.dll found by Windows just isn't fully compatible with the freshly-built PoDoFo 0.9.3 (release version?) tools. To make Windows find the podofo.dll from the same build (which should really be fully compatible) first, I'd add the directory it's in to the PATH environment variable in the first position, in your case "set PATH=E:\Work\podofo-0.9.3\src\Debug;%PATH%" (without quotes, to be executed directly before invoking a tool from the same console for the first time).
By the way, the general solution isn't PoDoFo-specific. It may be necessary (I'm not sure, I rarely use Windows) to remove that directory from PATH to get that other utility mentioned in the error message to work again (that is, if the set command changes the machine-wide or per-user global environment, that's what I'm unsure about) because otherwise it could find the new podofo.dll which would probably be incompatible (just the opposite situation from your problem). I hope this helps you. Please don't post the same e-mail multiple times, and please also don't post e-mails with abridgements which make it harder to help (e.g. omitting the directory path from the error, crucial info especially for this case) like you did today. Best regards, mabri ________________________________ From: Siddharth Srivastava <sidd.pro...@gmail.com> To: Podofo-users@lists.sourceforge.net Sent: 15:25 Tuesday, 22 December 2015 Subject: [Podofo-users] Ordinal 54 Error with VS2010 Express Build for Podofo Hello, I have been trying to build Podofo using VS2010 Express edition. After using following script to generate sln file - del cmakecache.txt set FTDIR=C:\Program Files (x86)\GnuWin32\ set FTLIBDIR=C:\Program Files (x86)\GnuWin32\lib set JPEGDIR=C:\Program Files (x86)\GnuWin32\ set ZLIBDIR=C:\Program Files (x86)\GnuWin32\ cmake -G "Visual Studio 10 2010" -DCMAKE_INCLUDE_PATH="%FTDIR%\include;%JPEGDIR%\include;%JPEGDIR%;%ZLIBDIR%\include" -DCMAKE_LIBRARY_PATH="%FTLIBDIR%;%FTDIR%\lib;%JPEGDIR%\lib;%JPEGDIR%;%ZLIBDIR%\lib" -DPODOFO_BUILD_SHARED:BOOL=FALSE -DFREETYPE_LIBRARY_NAMES_DEBUG=freetype6 -DFREETYPE_LIBRARY_NAMES_RELEASE=freetype6 I have installed pre-compiled zlib , freetype2,openssl and all for my Windows 8 machine. SLN file got generated properly. Here is the output of build.cmd E:\Work\podofo-0.9.3>build.cmd E:\Work\podofo-0.9.3>del cmakecache.txt Could Not Find E:\Work\podofo-0.9.3\cmakecache.txt E:\Work\podofo-0.9.3>set FTDIR=C:\Program Files (x86)\GnuWin32\ E:\Work\podofo-0.9.3>set FTLIBDIR=C:\Program Files (x86)\GnuWin32\lib E:\Work\podofo-0.9.3>set JPEGDIR=C:\Program Files (x86)\GnuWin32\ E:\Work\podofo-0.9.3>set ZLIBDIR=C:\Program Files (x86)\GnuWin32\ E:\Work\podofo-0.9.3>cmake -G "Visual Studio 10 2010" -DCMAKE_INCLUDE_PATH="C:\ Program Files (x86)\GnuWin32\\include;C:\Program Files (x86)\GnuWin32\\include;C :\Program Files (x86)\GnuWin32\;C:\Program Files (x86)\GnuWin32\\include" -DCMAK E_LIBRARY_PATH="C:\Program Files (x86)\GnuWin32\lib;C:\Program Files (x86)\GnuWi n32\\lib;C:\Program Files (x86)\GnuWin32\\lib;C:\Program Files (x86)\GnuWin32\;C :\Program Files (x86)\GnuWin32\\lib" -DPODOFO_BUILD_SHARED:BOOL=FALSE -DFREETYPE _LIBRARY_NAMES_DEBUG=freetype6 -DFREETYPE_LIBRARY_NAMES_RELEASE=freetype6 -- The C compiler identification is MSVC 16.0.30319.1 -- The CXX compiler identification is MSVC 16.0.30319.1 -- Check for working C compiler using: Visual Studio 10 2010 -- Check for working C compiler using: Visual Studio 10 2010 -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler using: Visual Studio 10 2010 -- Check for working CXX compiler using: Visual Studio 10 2010 -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done WANT_LIB64 unset; assuming normal library directory names Will install libraries to C:/Program Files (x86)/PoDoFo/lib -- Looking for strings.h -- Looking for strings.h - not found -- Looking for arpa/inet.h -- Looking for arpa/inet.h - not found -- Looking for winsock2.h -- Looking for winsock2.h - found -- Looking for mem.h -- Looking for mem.h - not found -- Looking for ctype.h -- Looking for ctype.h - found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for BaseTsd.h -- Looking for BaseTsd.h - found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of long int -- Check size of long int - done -- Check size of int64_t -- Check size of int64_t - done -- Check if the system is big endian -- Searching 16 bit integer -- Check size of unsigned short -- Check size of unsigned short - done -- Using unsigned short -- Check if the system is big endian - little endian -- Found ZLIB: C:/Program Files (x86)/GnuWin32/lib/zlib.lib Found zlib headers in C:/Program Files (x86)/GnuWin32/include, library at C:/Pro gram Files (x86)/GnuWin32/lib/zlib.lib -- Could NOT find LIBCRYPTO (missing: LIBCRYPTO_LIBRARY) OpenSSL's libCrypto not found. Encryption support will be disabled -- Could NOT find LIBIDN (missing: LIBIDN_LIBRARY LIBIDN_INCLUDE_DIR) Libidn not found. AES-256 Encryption support will be disabled -- Found LIBJPEG: C:/Program Files (x86)/GnuWin32/lib/jpeg.lib Found libjpeg headers in C:/Program Files (x86)/GnuWin32/include, library at C:/ Program Files (x86)/GnuWin32/lib/jpeg.lib -- Found TIFF: C:/Program Files (x86)/GnuWin32/lib/libtiff.lib Found libtiff headers in C:/Program Files (x86)/GnuWin32/include, library at C:/ Program Files (x86)/GnuWin32/lib/libtiff.lib CMake Warning (dev) at C:/Program Files (x86)/CMake/share/cmake-3.4/Modules/Find PNG.cmake:52 (find_package): File C:/Program Files (x86)/CMake/share/cmake-3.4/Modules/FindPNG.cmake includes E:/Work/podofo-0.9.3/cmake/modules/FindZLIB.cmake (found via CMAKE_MODULE_PATH) which shadows C:/Program Files (x86)/CMake/share/cmake-3.4/Modules/FindZLIB.cmake. This may cause errors later on . Policy CMP0017 is not set: Prefer files from the CMake module directory when including from there. Run "cmake --help-policy CMP0017" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): CMakeLists.txt:363 (FIND_PACKAGE) This warning is for project developers. Use -Wno-dev to suppress it. -- Found PNG: C:/Program Files (x86)/GnuWin32/lib/libpng.lib (found version "1.2 .37") Found LibPng headers in C:/Program Files (x86)/GnuWin32/include;C:/Program Files (x86)/GnuWin32/include, library at C:/Program Files (x86)/GnuWin32/lib/libpng.l ib;C:/Program Files (x86)/GnuWin32/lib/zlib.lib -- Ensure you cppunit installed version is at least 1.12.0 Cppunit not found. No unit tests will be built. -- Found OpenSSL: optimized;C:/Build-openssl-VC-32/lib/ssleay32.lib;debug;C:/Bui ld-openssl-VC-32/lib/ssleay32.lib Found freetype library at C:/Program Files (x86)/GnuWin32/lib/freetype.lib, head ers E:/Siddharth/PDF 2 Excel Convertor/freetype-2.5.1/include;C:/Program Files ( x86)/GnuWin32/include -- Could NOT find Fontconfig (missing: FONTCONFIG_LIBRARIES FONTCONFIG_INCLUDE_ DIR) -- Found Lua50: C:/Program Files (x86)/Lua/5.1/lib/lua51.lib -- Found Lua: C:/Program Files (x86)/Lua/5.1/lib/lua51.lib Lua found - PoDoFoImpose and PoDoFoColor will be built with Lua support * Lua include directory: C:/Program Files (x86)/Lua/5.1/include * Lua libraries: C:/Program Files (x86)/Lua/5.1/lib/lua51.lib Building multithreaded version of PoDoFo. -- Looking for pthread.h -- Looking for pthread.h - not found -- Found Threads: TRUE Building shared PoDoFo library CMake Warning (dev) at CMakeLists.txt:558 (EXPORT_LIBRARY_DEPENDENCIES): Policy CMP0033 is not set: The export_library_dependencies command should not be called. Run "cmake --help-policy CMP0033" for policy details. Use the cmake_policy command to set the policy and suppress this warning. This warning is for project developers. Use -Wno-dev to suppress it. -- Configuring done -- Generating done -- Build files have been written to: E:/Work/podofo-0.9.3 Now when i am trying to run the podofotxtextractor.exe with sample.pdf its giving following error - Please help me understand what is wrong here and how can i fix it. Any help will be much appreciated. Thanks for help. Regards, Siddharth Srivastava Software Engineer ------------------------------------------------------------------------------ _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users ------------------------------------------------------------------------------ _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users