1
1
فهرست منبع

day 1 - today we attempted to change the compiling methods for PDFHummus.
to remind ourselves why we are doing this? He does not have makefile and it is
hardcoded to MSVC <- bad IDE. minGW cant link against MSVC compiled code.

first we installed library, freetype2 and also had to figure out how to compile.
then we were able to go through PDFHummus bad code, and learn to include other files,
undefined data types (that were hidden in his library, files).

in short, maybe learned how to use command line switches a little bit better.
major difference of today? -I vs -include. one for directory, one for files.

wes 5 سال پیش
والد
کامیت
a312ed0392
2فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 1 0
      pdfHummusTest1.cpp
  2. 5 0
      pdfhummus-buildNotes.txt

+ 1 - 0
pdfHummusTest1.cpp

@@ -1,5 +1,6 @@
 /*  Found that previous library was complied with the MSVC compiler and not compatible with GNU toolchain. Tried to use Msys with PDFHummus Cmake build tools and it was hard-coded
 /*  Found that previous library was complied with the MSVC compiler and not compatible with GNU toolchain. Tried to use Msys with PDFHummus Cmake build tools and it was hard-coded
  *  to MSVC. So building for GNU compiler will take some modification of Cmake.
  *  to MSVC. So building for GNU compiler will take some modification of Cmake.
+ *  
  */
  */
 
 
 #include <stdlib.h>
 #include <stdlib.h>

+ 5 - 0
pdfhummus-buildNotes.txt

@@ -0,0 +1,5 @@
+for freetype2 that is required by PDFHummmus, ran into an issue where a newer build of Windows includes LoW (linux on windows) which caused the freetype2 build script think that it 
+was building for Unix using GCC. When in fact, minGW was supposed to be used targeting Windows. The solution was to use msys and run the following commands:
+"mingw32-make setup mingw32" followed with "mingw32-make" 
+
+*  this is as far as we got -  g++ PDFWriter.cpp -I * -I "C:\Users\bad-p\Downloads\freetype2\include" -include "string" -include "ObjectsBasicTypes.h" -I "..\Zlib" -I "..\LibJpeg" -I "../LibAesgm"  -w