c++ - Podofo build errors -


i want build solution visual studio.
know, minumum cmake, zlib, jpeg , freetype.
build freetype(debug , relise).
downloaded compiled zlib dll.
(for visual studio need build libjpeg version of visual studio. download libjpeg sources here , unpack them working directory. i'll assume you've used c:\developer\jpeg. once sources unpacked, start visual studio command prompt , cd c:\developer\jpeg run copy jconfig.vc jconfig.h nmake /f makefile.vc /a)
jpeg done, or need more it?

then make cmd file:

del cmakecache.txt set ftdir=c:\dev\freetype-2.4.5 set ftlibdir=c:\dev\freetype-2.4.5\objs\win32\vc2010 set jpegdir=c:\dev\jpeg set zlibdir=c:\developer\zlib128-dll cmake -g "visual studio 10" c:\dev\podofo-0.9.2\  -dcmake_include_path="%ftdir%\include;%jpegdir%\include;%jpegdir%;%zlibdir%\include" -dcmake_library_path="%ftlibdir%;%ftdir%\lib;%jpegdir%;%jpegdir%;%zlibdir%\lib" -dpodofo_build_shared:bool=false -dfreetype_library_names_debug=freetype245mt_d -dfreetype_library_names_release=freetype245mt -dcmake_build_type=debug 

then can see that:

-- looking strings.h -- looking strings.h - not found -- looking arpa/inet.h -- looking arpa/inet.h - not found -- looking winsock2.h -- looking winsock2.h - found -- looking mem.h -- looking mem.h - not found -- looking ctype.h -- looking ctype.h - found 

maybe problem or maybe in jpeg lib.

instead of using nmake directly, i'd recommend use cmake-gui building podofo. don't write own build.cmd doesn't work in cases. note : method described below uses method, don't follow it. use cmake-gui (if don't know how cmake or nmake works).

well recommend go site , find references: building static podofo msvs 2012 guess should work visual studio 2010. remember :

  1. building prerequisite libraries - site has links how go on building these libraries. however, assume have built them. recommend building them again according tutorial.

  2. instructions : says. don't miss options regarding preprocessor definitions, runtime libraries , parameters same. if miss or wrong force restart started.

  3. errors : myself experienced many errors while following same procedure , site provides no explanation. common errors include:

    • unresolved externals (either msvcrt.lib or libcmt.lib). in case, go linker>input>ignore specific libraries , name library there ignore it.
    • there random errors sometimes. suggest looking stack overflow or msdn or google, because after starting off >2500 errors able build static library.
  4. last resort: if fails, contact me (if still interested!).


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -