Alex Wade
2001-Feb-22 00:44 UTC
afx.h... configure: error: Could not find the MFC includes
This is driving me nuts. I'm trying to compile an MFC application using WINE. I can specify the location of the ATL includes and configure is quite happy but it chokes when I give it the MFC includes in the same way: ./configure --with-atl-includes=/home/wade/VC98/atl/Include --with-mfc-includes=/home/wade/VC98/mfc/Include Wassup? I'm using Winemaker 0.5.5 And wine codeweavers-wine-20010112.tar.gz And I've tried all possible variations of --with-mfc-includes (upper/lower case on everything, with and without running winmaker --lower-uppercase on the whole MFC directory etc etc.) The MFC, ATL stuff is all copied verbatim from an MSVC installation on another computer. (c:/program files/Visual Studio/VC98) Any takers? Thanks al A.R. Wade Ph.D. 420 Jordan Hall Psychology Stanford CA 94305 MC 2130 http://white.stanford.edu/~wade/
lawson_whitney@juno.com
2001-Feb-22 10:03 UTC
afx.h... configure: error: Could not find the MFC includes
On Wed, 21 Feb 2001, Alex Wade wrote:> This is driving me nuts. I'm trying to compile an MFC application using > WINE. I can specify the location of the ATL includes and configure is > quite happy but it chokes when I give it the MFC includes in the same way: > > ./configure --with-atl-includes=/home/wade/VC98/atl/Include > --with-mfc-includes=/home/wade/VC98/mfc/Include > > > The MFC, ATL stuff is all copied verbatim from an MSVC installation on > another computer. (c:/program files/Visual Studio/VC98) > > Any takers? > Thanks > al > > A.R. Wade Ph.D. > 420 Jordan Hall > Psychology > Stanford > CA 94305 MC 2130 > http://white.stanford.edu/~wade/ >Dumb question: did you run winemaker --mfc before trying ./configure? The default is --nomfc. Lawson Installation is performed in the reverse order of removal. - British Leyland shop manual ---cut here ________________________________________________________________ GET INTERNET ACCESS FROM JUNO! Juno offers FREE or PREMIUM Internet access for less! Join Juno today! For your FREE software, visit: http://dl.www.juno.com/get/tagj.
François Gouget
2001-Feb-22 23:30 UTC
afx.h... configure: error: Could not find the MFC includes
Alex Wade wrote:> > This is driving me nuts. I'm trying to compile an MFC application using > WINE. I can specify the location of the ATL includes and configure is > quite happy but it chokes when I give it the MFC includes in the same way: > > ./configure --with-atl-includes=/home/wade/VC98/atl/Include > --with-mfc-includes=/home/wade/VC98/mfc/Include[...]> The MFC, ATL stuff is all copied verbatim from an MSVC installation on > another computer. (c:/program files/Visual Studio/VC98) > > Any takers?Well, just copying the MFC headers from Visual C++ won't work. What configure does is try to compile a small program that just does '#include <afx.h>'. If the compile succeeds then it found the right directory, otherwise it didn't. But 'afx.h' will not compile out of the box in Wine so configure will never 'find' it. To compile an MFC application with Wine you need to recompile the MFC. One reason is getting the headers into a compilable form. Another reason is that you need a '.so' library to link with. This means modifying the sources so that they actually compile, and then link and produce a 'libmfc.so'. The process has gotten a lot easier in the past 6 months but at last count it still represents over 4000 lines of unified diff (after running winemaker on the MFC sources)... lawson_whitney@juno.com wrote:> > Dumb question: did you run > > winemaker --mfc > > before trying ./configure? > The default is --nomfc.If configure is looking for the ATL and the MFC it means it knows that it is an MFC application. I bet Alex did not specify anything but winemaker detected a file called 'stdafx.h' and automatically deducted it was working on an MFC application. -- Fran?ois Gouget fgouget@codeweavers.com