[OS X TeX] Compiling MikTex tools for Unix

Benoit RIVET benoit.rivet at free.fr
Sat Jan 9 09:17:23 EST 2010

I'm trying to compile the latest version of miktex tools (with MiKTeX 2.8.3541 Source Code as found on http://miktex.org/unx/) on a brand new Mac OS X.6 (Snow Leopard) system. I stumbled on a first bug about malloc (while about 31% of compiling was finished) :

error: malloc.h: No such file or directory

which the log file said was related to line 26 of gram.y (in Build Utilities/c4p).

Googling this error gave me a simple fix : changing line 26 of gram.y (in Build Utilities/c4p) from

#include <malloc.h>


#include <malloc/malloc.h>

apparently solved the problem. Compiling again gives another challenging problem. Here is the relevant part of the compilation log :

Scanning dependencies of target ui-Qt-static
[ 56%] Building CXX object Libraries/MiKTeX/UI/Qt-static/CMakeFiles/ui-Qt-static.dir/__/Qt/ConnectionSettingsDialog.cpp.o
In file included from /Library/Frameworks/QtCore.framework/Headers/qnamespace.h:45,
                from /Library/Frameworks/QtCore.framework/Headers/qobjectdefs.h:45,
                from /Library/Frameworks/QtCore.framework/Headers/qobject.h:47,
                from /Library/Frameworks/QtCore.framework/Headers/qiodevice.h:46,
                from /Library/Frameworks/QtCore.framework/Headers/qxmlstream.h:45,
                from /Library/Frameworks/QtCore.framework/Headers/QtCore:3,
                from /Library/Frameworks/QtGui.framework/Headers/QtGui:3,
                from /Users/benoit/Downloads/miktex/Libraries/MiKTeX/UI/Qt/StdAfx.h:22,
                from /Users/benoit/Downloads/miktex/Libraries/MiKTeX/UI/Qt/ConnectionSettingsDialog.cpp:22:
/Library/Frameworks/QtCore.framework/Headers/qglobal.h:288:2: error: #error "You are building a 64-bit application, but using a 32-bit version of Qt. Check your build configuration."
In file included from /Library/Frameworks/QtGui.framework/Headers/qmatrix.h:46,
                from /Library/Frameworks/QtGui.framework/Headers/qtransform.h:44,
                from /Library/Frameworks/QtGui.framework/Headers/qimage.h:45,
                from /Library/Frameworks/QtGui.framework/Headers/qpixmap.h:50,
                from /Library/Frameworks/QtGui.framework/Headers/qbitmap.h:45,
                from /Library/Frameworks/QtGui.framework/Headers/QtGui:4,
                from /Users/benoit/Downloads/miktex/Libraries/MiKTeX/UI/Qt/StdAfx.h:22,
                from /Users/benoit/Downloads/miktex/Libraries/MiKTeX/UI/Qt/ConnectionSettingsDialog.cpp:22:
/Library/Frameworks/QtGui.framework/Headers/qregion.h: In member function ‘OpaqueRgnHandle* QRegion::handle(bool) const’:
/Library/Frameworks/QtGui.framework/Headers/qregion.h:160: error: ‘toQDRgn’ was not declared in this scope
make[2]: *** [Libraries/MiKTeX/UI/Qt-static/CMakeFiles/ui-Qt-static.dir/__/Qt/ConnectionSettingsDialog.cpp.o] Error 1
make[1]: *** [Libraries/MiKTeX/UI/Qt-static/CMakeFiles/ui-Qt-static.dir/all] Error 2
make: *** [all] Error 2

I'm really unable to overcome this error all by myself. Did anybody try and compile this version of miktex tools ?

Thank you in advance,

Benoît RIVET

PS: I asked the same question on the Miktex User list, and I'll let you know if MikTex Users help me finish compile MikTex Tools.

More information about the MacOSX-TeX mailing list