incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ariel Constenla-Haile <arie...@apache.org>
Subject Re: [BUILD] atlthunk
Date Fri, 21 Sep 2012 18:43:41 GMT

Hi *,

On Tue, Sep 11, 2012 at 01:31:34PM +0200, Oliver-Rainer Wittmann wrote:
> I am aiming for something which enables building with VS 2008
> Express _and_ with VS 2008 Pro.
> And yes, VS 2008 Express should be the default assumed environment
> from my point of view.
> 
> As far as I know the above referenced code change is only one part
> of enabling the build of VS 2008 Express with ATL enabled - see
> issue 118821
> 
> [1] https://issues.apache.org/ooo/show_bug.cgi?id=118821

Revision 1388579 introduced HAVE_ATLTHUNK and 4 configure switches, only
needed when using the Express Edition. These 4 are needed because in the
WDK the libraries and includes for ATL and MFC are in different folders.

This is a hack, it rather "alpha", it doesn't take into account VS 2005
nor MINGW, so feel free to test it, and improve it :)

An example for VS 2008 Express:

--with-atl-include-dir="C:/WinDDK/7600.16385.1/inc/atl71" \
--with-atl-lib-dir="C:/WinDDK/7600.16385.1/lib/ATL/i386" \
--with-mfc-include-dir="C:/WinDDK/7600.16385.1/inc/mfc42" \
--with-mfc-lib-dir="C:/WinDDK/7600.16385.1/lib/Mfc/i386" \

will generate a winenv.set.sh with

ATL_LIB="C:/WinDDK/760016~1.1/lib/ATL/i386"
ATL_INCLUDE="C:/WinDDK/760016~1.1/inc/atl71"
HAVE_ATLTHUNK="YES"
MFC_LIB="C:/WinDDK/760016~1.1/lib/Mfc/i386"
MFC_INCLUDE="C:/WinDDK/760016~1.1/inc/mfc42"


Users of the Pro Edition don't need to do anything (supposing the fix
works).


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Mime
View raw message