[texworks] Building TeXworks on WinXP

Alain Delmotte esperanto at swing.be
Tue Jan 13 18:20:08 CET 2009


Hi again!

Stefan Löffler a écrit :
> Hi,
>
> Ah, we're getting closer ;).
>
> On 2009-01-13 15:41, Alain Delmotte wrote:
>   
>> I realized that I had 2 qmake,... one in c:\programmes\QT\bin (this
>> was for Linguist) and one in c:\program files\KDE\bin.
>> After checking and finding Linguist in KDE, I uninstalled QT (and mingw).
>>     
>
> Yeah, that can confuse Qt, especially when programs/libraries of
> different versions are used. You may want to try running qmake without
> the "-specs" option, if everything is set up correctly it _should_ work.
>   
Indeed now that there is only one (in KDE) "qmake -t vcapp" works
>>> 1) Confirm that you have set KDEDIRS and PATH according to
>>>
>>>       
> http://techbase.kde.org/Projects/KDE_on_Windows/Installation#Summary_of_Steps
>   
>> I also modified the path, not using %KDEDIRS% but the real c:\program
>>     
> files\KDE, and qmake was fount.
>
> Did you define KDEDIRS? It may be required by (some parts of) KDE on
> Windows/Qt.
>   
Yes I did, but it didn't work.
>>> 3) Depending on which directories you find in (2), run qmake in the
>>> TeXworks source directory with the command (adjust paths as necessary)
>>>   qmake -tp vc -spec C:\Program Files\KDE\mkspecs\win32-msvc2008
>>>   
>>>       
>> Here I modified as:
>>
>> qmake -tp vc -spec C:\Progra~1\KDE\mkspecs\win32-msvc2008
>>
>> for the name problem inherited from DOS (space in "program files".)
>>
>> I could create the .vcproj file.
>> But compilation in msvc crashed with (sorry I use French):
>>     
.../... cut
> I recognize this problem. I had it in a different context once. The
> problem is that MSVC doesn't find the Qt resource compiler. I can offer
> a few possible solutions:
> 1) Install KDE on Windows to a location that doesn't contain spaces
> (from what you wrote I take it that the natural place in French Windows
> would be C:\Programmes"? The installation notes on the web also give an
> example without spaces: C:\KDE) Maybe simply moving the directory (and
> adjusting KDEDIRS/PATH) does the trick.
>   
OK that's what I did: KDE in c:\programmes\ and KDEDIRS and path 
adjusted (this last still with the full path to KDE and not %KDEDIRS%.

"C:\programmes" is not the official name for Windows (I am under XP), it 
is still "C:\Program Files"; "C:\Programmes" is a folder I use to avoid 
spreading many folders under "C:\" (I did that already before for 
miktex: ghostScript, gnuplot,... were grouped in c:\texplus)
(note even under Vista, where the name which appears is Programmes for 
your personal account but everything is still in Program Files)
> 2) Try
>    qmake -tp vc -spec "C:\Program Files\KDE\mkspecs\win32-msvc2008"
>   
This I tried before changing "Program Files" to "Progra~1"
> 3) Manually alter the created .vcproj file (it's a text file). I
> wouldn't actually recommend this for permanent use but if everything
> else fails replacing all instances of the wrong path with the right one
> should do the trick at least for figuring out if the rest of the
> building process succeeds.
>   
This perhaps later!

In msvc I could generate but there were errors (see the attached file); 
but before this one msvc was complaining that he didn't find the 
poppler-qt4.h file (and the others) I copied the files to texworks\src 
and the compilation went on to the problem listed in the BuildLog.htm file.

We are moving, I hope in the right direction.

Alain

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/texworks/attachments/20090113/14d0fa29/attachment-0001.htm 


More information about the texworks mailing list