[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-source-highlight] Compilation failures using qmake + mingw / m

From: Lorenzo Bettini
Subject: Re: [Help-source-highlight] Compilation failures using qmake + mingw / msvc
Date: Wed, 18 Nov 2009 18:36:23 +0100
User-agent: Thunderbird (Windows/20090812)

Matthias Pospiech wrote:
Lorenzo Bettini schrieb:
Lorenzo Bettini wrote:

I'm working on this, and solving the autoconf generated files and defines in the .pro files, it's taking me some time.

Hope to have something ready soon :)

OK, I made it, at least I can successfully build both source-highlight and source-highlight-qt under Linux with qmake, you can find these source tar balls here:

I still haven't tried that on windows 'cause I need some sleep now :)

I have not included the regex libs, since they have a very long and compiler specific name which is not included in your .pro file so far.
However I tried to compile it to see if it finishes that step:

Here the errors that come with msvc: (I leave out the warnings)

.\ : fatal error C1083: Datei (Include) kann nicht geƶffnet werden: "unistd.h": No such file or directory

by looking at that file (which is automatically generated by flex) I see

#ifndef YY_NO_UNISTD_H
/* Special case for "unistd.h", since it is non-ANSI. We include it way
* down here because we want the user's section 1 to have been scanned first.
 * The user has a chance to override it with an option.
#include <unistd.h>

thus it's possible to avoid to include unistd.h by adding


either in the .pro file, or, better to qmake command line; would you please try this?


P.S. it looks like building boost with msvc is fully supported:

Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134     (GNU/Linux User # 158233)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]