Hi Ariel,
Ariel Constenla-Haile schrieb:
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).
That does not work for me. Configure accepts the switches, but the
generated winenv.set.sh has no ATL_LIB, ATL_INCLUDE, MFC_LIB, and
MFC_INCLUDE at all (and build fails because of missing 'atlbase.h').
(I know, that I can add the lines manually to winenv.set.sh, that is not
the problem.)
Kind regards
Regina