Re: Compilation failures using qmake + mingw / msvc

Matthias Pospiech <[email protected]> Wed, 18 Nov 2009 16:55:22 +0100
Newsgroups gmane.comp.gnu.source-highlight.general
Message-ID <[email protected]>
Lorenzo Bettini schrieb:
> Lorenzo Bettini wrote:
>> Hi
>>
>> 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:
>
> http://gdn.dsi.unifi.it/~bettini/binaries/source-highlight-qmake-3.1.2.tar.gz 
>
> http://gdn.dsi.unifi.it/~bettini/binaries/source-highlight-qt-qmake-0.2.tar.gz 
>
>
> 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)

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

This is a Unix only file which is is emulated by mingw, but not existend 
in other compilers which means that it is not available for msvc.

With mingw it compiles until it complains that boost is not found. This 
is something I have to solve before.