Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


I finally became curious enough to install cygwin (so I can do Windows builds too) and see if there 
is an easier way to locate the Visual C++ Express Edition (or Visual Studio VC++ compiler).  Yes 
indeed.

I could get the batch script of my previous example to run under cygwin, but it couldn't change 
anything in the cygwin bash environment.  So instead, I made a copy of the cygwin.bat script and 
added "CALL MyVC++.bat" at the beginning.

The bash absorbs the path (rewritten) and environment variables left by my batch script into its 
environment.

The attached PNG file, if it comes through, demonstrates the result.

The appropriate environment is now set up for the entire run of the build beneath cygwin.

This sort of hack seems like a much-more direct way of hooking up not only to VC++ but also 
incorporating the environment for an SDK and also the WinDDK ATL headers and libraries.  It all 
bootstraps off of the environment variables that the Microsoft Developer tools bootstrap off of.

 - Dennis

-----Original Message-----
From: libreoffice-bounces+dennis.hamilton=acm.org@lists.freedesktop.org 
[mailto:libreoffice-bounces+dennis.hamilton=acm.org@lists.freedesktop.org] On Behalf Of Dennis E. 
Hamilton
Sent: Saturday, November 19, 2011 13:02
To: 'Jesús Corrius'; 'julien2412'
Cc: libreoffice@lists.freedesktop.org
Subject: Re: [Libreoffice] Registry keys for Windows compilation

I don't know how cygwin has access to environment variables from Windows, but there is a 
straightforward way to setup command-line execution of Visual C++ 2008 Express Edition (and a 
similar variation for 2005 and 2010).

The enclosed batch file (as a .txt for attachment safety) works on win32 systems when setting up 
for native command-line execution.  Maybe it will be customizable for cygwin-hosted build 
operations too.

 - Dennis

-----Original Message-----
From: libreoffice-bounces+dennis.hamilton=acm.org@lists.freedesktop.org 
[mailto:libreoffice-bounces+dennis.hamilton=acm.org@lists.freedesktop.org] On Behalf Of Jesús 
Corrius
Sent: Saturday, November 19, 2011 11:07
To: julien2412
Cc: libreoffice@lists.freedesktop.org
Subject: Re: [Libreoffice] Registry keys for Windows compilation

I'm on Windows Vista 32 and I use Cygwin 1.7 (last version installed today
after having removing previous one with cclean for registry cleaning).
Here are the directories for registry.
- /proc/registry
- /proc/registry32
- /proc/registry64
There's no subdirectory on VCExpress in any of these directories.

Can you try the "regedit" utility and see if you get the same results?

-- 
Jesús Corrius <jesus@softcatala.org>
Deputy of the Board of Directors of the Document Foundation
Mobile: +34 661 11 38 26
Skype: jcorrius | Twitter: @jcorrius
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Attachment: cygwin-setup-2.738-2011-11-19-2023-VCygwin-run.png
Description: PNG image


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.