Commit ffa8abdc authored by Dimitri van Heesch's avatar Dimitri van Heesch

Bug 704971 - Can't build with MinGW

parent fe44a7f4
...@@ -29,3 +29,4 @@ sunos-g++ ...@@ -29,3 +29,4 @@ sunos-g++
ultrix-g++ ultrix-g++
unixware-g++ unixware-g++
win32-g++ win32-g++
win32-mingw
...@@ -525,7 +525,7 @@ void MainWindow::showHtmlOutput() ...@@ -525,7 +525,7 @@ void MainWindow::showHtmlOutput()
// TODO: the following doesn't seem to work with IE // TODO: the following doesn't seem to work with IE
#ifdef WIN32 #ifdef WIN32
//QString indexUrl(QString::fromAscii("file:///")); //QString indexUrl(QString::fromAscii("file:///"));
ShellExecute(NULL, L"open", fi.absoluteFilePath().utf16(), NULL, NULL, SW_SHOWNORMAL); ShellExecute(NULL, L"open", (LPCWSTR)fi.absoluteFilePath().utf16(), NULL, NULL, SW_SHOWNORMAL);
#else #else
QString indexUrl(QString::fromAscii("file://")); QString indexUrl(QString::fromAscii("file://"));
indexUrl+=fi.absoluteFilePath(); indexUrl+=fi.absoluteFilePath();
......
...@@ -266,6 +266,9 @@ if test -z "$f_platform"; then ...@@ -266,6 +266,9 @@ if test -z "$f_platform"; then
Cygwin:*|CYGWIN*) Cygwin:*|CYGWIN*)
f_platform=win32-g++ f_platform=win32-g++
;; ;;
MINGW32_NT*)
f_platform=win32-mingw
;;
*MiNT:*) *MiNT:*)
f_platform=m68k-atari-mint-g++ f_platform=m68k-atari-mint-g++
;; ;;
......
...@@ -29,9 +29,10 @@ If you downloaded the source distribution, you need at least the ...@@ -29,9 +29,10 @@ If you downloaded the source distribution, you need at least the
following to build the executable: following to build the executable:
<ul> <ul>
<li>The <a href="ftp://prep.ai.mit.edu/pub/gnu/">GNU</a> tools <li>The <a href="ftp://prep.ai.mit.edu/pub/gnu/">GNU</a> tools
\c flex, \c bison and <code>GNU make</code>, and \c strip \c flex, \c bison, \c libiconv and <code>GNU make</code>, and \c strip
\addindex flex \addindex flex
\addindex bison \addindex bison
\addindex libiconv
\addindex make \addindex make
\addindex strip \addindex strip
<li>In order to generate a \c Makefile for your platform, you need <li>In order to generate a \c Makefile for your platform, you need
...@@ -48,7 +49,7 @@ tools should be installed. ...@@ -48,7 +49,7 @@ tools should be installed.
<li>Qt Software's GUI toolkit <li>Qt Software's GUI toolkit
<a href="http://qt-project.org/">Qt</A> <a href="http://qt-project.org/">Qt</A>
\addindex Qt \addindex Qt
version 4.3 or higher. version 4.3 or higher (but currently, Qt 5.x is not supported).
This is needed to build the GUI front-end doxywizard. This is needed to build the GUI front-end doxywizard.
<li>A \f$\mbox{\LaTeX}\f$ distribution: for instance <li>A \f$\mbox{\LaTeX}\f$ distribution: for instance
<a href="http://www.tug.org/interest.html#free">TeX Live</a> <a href="http://www.tug.org/interest.html#free">TeX Live</a>
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#if !defined(_OS_WIN32_) #if !defined(_OS_WIN32_) || defined(__MINGW32__)
#include <stdint.h> #include <stdint.h>
#endif #endif
......
...@@ -266,7 +266,8 @@ void QFileInfo::doStat() const ...@@ -266,7 +266,8 @@ void QFileInfo::doStat() const
} }
#else #else
QString file = fn; QString file = fn;
reslashify(QDir::cleanDirPath(file)); file = QDir::cleanDirPath(file);
reslashify(file);
#ifdef QT_LARGEFILE_SUPPORT #ifdef QT_LARGEFILE_SUPPORT
if ( _wstati64( (wchar_t*) file.ucs2(), b ) == -1 ) { if ( _wstati64( (wchar_t*) file.ucs2(), b ) == -1 ) {
#else #else
......
...@@ -20,7 +20,7 @@ HEADERS = doxygen.h ...@@ -20,7 +20,7 @@ HEADERS = doxygen.h
SOURCES = main.cpp SOURCES = main.cpp
unix:LIBS += -L../lib -ldoxygen -ldoxycfg -lqtools -lmd5 -lpthread %%SQLITE3_LIBS%% %%LIBCLANG_LIBS%% unix:LIBS += -L../lib -ldoxygen -ldoxycfg -lqtools -lmd5 -lpthread %%SQLITE3_LIBS%% %%LIBCLANG_LIBS%%
win32:INCLUDEPATH += . win32:INCLUDEPATH += .
win32-mingw:LIBS += -L../lib -ldoxygen -ldoxycfg -lqtools -lmd5 -lpthread %%SQLITE3_LIBS%% %%LIBCLANG_LIBS%% win32-mingw:LIBS += -L../lib -ldoxygen -ldoxycfg -lqtools -lmd5 -lpthread -llibiconv -lole32 %%SQLITE3_LIBS%% %%LIBCLANG_LIBS%%
win32-msvc:LIBS += qtools.lib md5.lib doxygen.lib doxycfg.lib shell32.lib iconv.lib win32-msvc:LIBS += qtools.lib md5.lib doxygen.lib doxycfg.lib shell32.lib iconv.lib
win32-msvc:TMAKE_LFLAGS += /LIBPATH:..\lib win32-msvc:TMAKE_LFLAGS += /LIBPATH:..\lib
win32-borland:LIBS += qtools.lib md5.lib doxygen.lib doxycfg.lib shell32.lib iconv.lib win32-borland:LIBS += qtools.lib md5.lib doxygen.lib doxycfg.lib shell32.lib iconv.lib
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include <assert.h> #include <assert.h>
#include <qglobal.h> #include <qglobal.h>
#include "objcache.h" #include "objcache.h"
#if !defined(_OS_WIN32_) #if !defined(_OS_WIN32_) || defined(__MINGW32__)
#include <stdint.h> #include <stdint.h>
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment