Hi Max,
what exactly the errors where I don't recall (problems because of ifdefs
using WIN32, some functions not available (fseek for large file systems,
etc.) Some headers not being included... I also had to install zlib and
update freetype as already discussed. Otherwise no big issues.
I'm attaching a patch with VERY-dirty-hack-modifications (TM), that I made
in order to get it compile. They are not solutions, just "get-out-my-way"
fixes, but they may still be used as a guide to actually solve the issues,
which in any case won't be that hard.
Best,
--
Miguel de Benito.
On Tue, Jan 7, 2014 at 9:04 AM, Massimiliano Gubinelli <
[email protected]> wrote:
> Miguel,
> could you remind me which kind of other problems you experience in the
> windows build?
> max
>
Index: src/Plugins/Pdf/PDFWriter/Trace.h
===================================================================
--- src/Plugins/Pdf/PDFWriter/Trace.h (revision 8131)
+++ src/Plugins/Pdf/PDFWriter/Trace.h (working copy)
@@ -25,9 +25,9 @@
#include <string.h>
#include <string>
+#include <stdarg.h>
-
// good for tracing upto 5K wide chars messages
class Log;
Index: src/Plugins/Pdf/PDFWriter/PDFDate.cpp
===================================================================
--- src/Plugins/Pdf/PDFWriter/PDFDate.cpp (revision 8131)
+++ src/Plugins/Pdf/PDFWriter/PDFDate.cpp (working copy)
@@ -196,7 +196,7 @@
// if unsuccesful or method unknown don't provide UTC info (currently
only knows for WIN32 and OSX
#if defined (__MWERKS__) || defined (__GNUC__) || defined(WIN32)
int status;
-#if defined(WIN32) // (using MS methods)
+#if defined(WIN32) && !defined(__MINGW32__) // (using MS methods)
status = _get_timezone(&timeZoneSecondsDifference);
#elif defined (__GNUC__)
struct tm *gmTime;
Index: src/Plugins/Pdf/PDFWriter/AbstractContentContext.cpp
===================================================================
--- src/Plugins/Pdf/PDFWriter/AbstractContentContext.cpp (revision 8131)
+++ src/Plugins/Pdf/PDFWriter/AbstractContentContext.cpp (working copy)
@@ -30,6 +30,8 @@
#include "OutputStreamTraits.h"
#include "IContentContextListener.h"
+#include <stdio.h>
+
using namespace PDFHummus;
AbstractContentContext::AbstractContentContext(void)
Index: src/Plugins/Pdf/PDFWriter/SafeBufferMacrosDefs.h
===================================================================
--- src/Plugins/Pdf/PDFWriter/SafeBufferMacrosDefs.h (revision 8131)
+++ src/Plugins/Pdf/PDFWriter/SafeBufferMacrosDefs.h (working copy)
@@ -20,7 +20,7 @@
*/
#pragma once
-#ifdef WIN32
+#if defined (WIN32) && !defined(__MINGW32__)
#include "UnicodeString.h"
#include <string>
#include <sstream>
@@ -84,7 +84,7 @@
#define SAFE_VSPRINTF(BUFFER,BUFFER_SIZE,FORMAT,ARGLIST)
vsprintf(BUFFER,FORMAT,ARGLIST)
#define SAFE_FOPEN(FILESTREAM_P,FILE_PATH,MODE) {FILESTREAM_P =
fopen(FILE_PATH,MODE);}
#define SAFE_SGETN(BUFFER,BUFFER_SIZE,READ_COUNT)
sgetn(BUFFER,READ_COUNT)
- #define SAFE_FSEEK64(FILESTREAM_P,SEEK,SEEK_DIRECTION)
fseeko(FILESTREAM_P,SEEK,SEEK_DIRECTION)
- #define SAFE_FTELL64(FILESTREAM_P) ftello(FILESTREAM_P)
+ #define SAFE_FSEEK64(FILESTREAM_P,SEEK,SEEK_DIRECTION)
fseek(FILESTREAM_P,SEEK,SEEK_DIRECTION)
+ #define SAFE_FTELL64(FILESTREAM_P) ftell(FILESTREAM_P)
#endif
Index: src/Plugins/Pdf/PDFWriter/CFFFileInput.h
===================================================================
--- src/Plugins/Pdf/PDFWriter/CFFFileInput.h (revision 8131)
+++ src/Plugins/Pdf/PDFWriter/CFFFileInput.h (working copy)
@@ -33,9 +33,9 @@
#include <set>
#include <utility>
#include <vector>
+#include <string.h>
-
struct CFFHeader
{
Byte major;
Index: src/Plugins/Pdf/PDFWriter/ANSIFontWriter.cpp
===================================================================
--- src/Plugins/Pdf/PDFWriter/ANSIFontWriter.cpp (revision 8131)
+++ src/Plugins/Pdf/PDFWriter/ANSIFontWriter.cpp (working copy)
@@ -36,9 +36,9 @@
#include FT_FREETYPE_H
#include <algorithm>
+#include <stdio.h>
-
using namespace PDFHummus;
ANSIFontWriter::ANSIFontWriter(void)
_______________________________________________
Texmacs-dev mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/texmacs-dev