Просмотр исходного кода

Added a readme for building the PDFHummus library.
Added notes about what work was done today.

wes 4 лет назад
Родитель
Сommit
a5c9c2702f
2 измененных файлов с 27 добавлено и 1 удалено
  1. 17 0
      PDFHummus-minGW-tools/README.txt
  2. 10 1
      PDFHummus-minGW-tools/notes.txt

+ 17 - 0
PDFHummus-minGW-tools/README.txt

@@ -0,0 +1,17 @@
+1. Download the PDFHummus/PDFWriter source code: https://github.com/galkahana/PDF-Writer
+   This library only has build instructions for MSVC toolchains within Visual Studio 2017/2019.
+   create folders PDFWriter\dependencies\lib\ and PDFWriter\dependencies\include
+2. Use VCPKG to install the following libraries necessary for PDFHummus:
+   libtiff, libjpeg, libpng, and zlib
+3. Download freetype from: git://git.savannah.gnu.org/freetype/freetype2.git
+   From the freetype2 source code root directory use Msys and run the following commands:
+   mingw32-make setup mingw32 
+   mingw32-make
+   cp -r  include\* ..\PDFHummus\PDFWriter\dependencies\include\
+   cp objs\libfreetype.a ..\PDFHummus\PDFWriter\dependencies\lib\
+4. The PDFHummus/PDFWriter source code includes a copy of the source code for LibAesgm in a folder with the same name.
+   Go into this folder and run the following commands to generate the library:
+   // fpermissive is needed because the author chose to implicitly switch between pointers of uint_8 and char.
+   g++ -c -fpermissive *.o
+   ar -cvq aesgm.lib *.o
+   g++ -I "C:\Users\bad-p\Downloads\PDFHummus-build\PDFHummus\LibAesgm"

+ 10 - 1
PDFHummus-minGW-tools/notes.txt

@@ -8,4 +8,13 @@ that also handled these problems. We found that nearly all (127) out of 152 sour
 could be compiled without any dependency problems but that left 25 files to hunt down.
 Each of the files was put into a Makefile along with special compile flags to get them to 
 compile successfully. 
-At this point freetype2 has been compiled, but the other external libraries(e.g. libpng, zlib, libjpg, tiff, etc) need to be compiled so that we can link together an executable.
+At this point freetype2 has been compiled, but the other external libraries(e.g. libpng, zlib, libjpg, tiff, etc) need to be compiled so that we can link together an executable.
+
+
+9 April 2020
+Libaesgm had no instructions for putting together the library.
+we made object files from the source files and used an archiver to put them together.
+we put together a strategy on where to put the unsupported (vcpkg) libraries that are needed by PDFWriter.
+Next time, we will use the previous created makefile as well as these libraries to compile PDFHummus.
+We dumped all of the steps to get to this point into a file so we can clean up these build instructions:
+README.txt