Hi,
I am trying to port a VC++ project including MFC classes from Visual Studio 2010 to Linux (Ubuntu 14.04) but I have some problems.
I followed two way to install:
1. First I've tried to install Wine (v1.6) via apt-get (https://www.winehq.org/download/ubuntu) but after the installation I see that both the Winelib files (.h,.c files) and the libraries to compile the Win32/MFC API lacks.
2. Then I've tried to build the Wine source code (http://francisfisher.me.uk/problem/2014 ... it-debian/). At the end of build I see that this installation includes almost all of the Winelib files and libraries (in the path .../wine/include/ anda .../wine/dlls/).
In both cases I use Winemaker to convert my ".sln" project to a MakeFile:
winemaker --upper-lowercase --mfc -I/home/beppe/wine/wine-1.6.2/include/ -L/home/beppe/wine/wine-1.6.2/dlls .
This command ends successfully, but when I try to build the program with the command "make" the compiler cannot find some includes files like "atlstr.h" (for example). This file is necessary for the CString class definition (a simple MFC class). I made a search this file into the wine include directory, but I didn't find it.
So I still don't understand if I can build an MFC project with Winelib or not, and how to do it.
Please help me...
Thanks
Compile MFC project with Winelib
Re: Compile MFC project with Winelib
This isn't really the best place to ask such questions, as developers rarely read the forum.
The only thing I can do is point you to the guide: https://www.winehq.org/docs/winelib-guide/index. I also suggest upgrading Wine, as the version you are using is two years old.
The only thing I can do is point you to the guide: https://www.winehq.org/docs/winelib-guide/index. I also suggest upgrading Wine, as the version you are using is two years old.
Re: Compile MFC project with Winelib
Could you suggest where I can redirect this type of questions?
-
- Level 7
- Posts: 823
- Joined: Thu Aug 27, 2009 6:23 am
Re: Compile MFC project with Winelib
Hi,
Unfortunately I'm not a wine developer, so my advice will probably not very helpful.
First you should make sure, that you've got the necessary prerequisites. If you want to compile mfc, you probably need to install some kind of Windows SDK or copy it over from an existing installation. I don't think, that Visual Studio 2010 comes with the necessary source code. Then you'll have to find out, how to integrate the mfc source code into the build system.
You can try to ask very politely on the wine devel list. They won't be excited, but maybe still help you. I googled a bit and couldn't find a reasonable howto for compiling mfc with winelib, so might be a good idea, if you add one in wine's wiki.
Unfortunately I'm not a wine developer, so my advice will probably not very helpful.
First you should make sure, that you've got the necessary prerequisites. If you want to compile mfc, you probably need to install some kind of Windows SDK or copy it over from an existing installation. I don't think, that Visual Studio 2010 comes with the necessary source code. Then you'll have to find out, how to integrate the mfc source code into the build system.
You can try to ask very politely on the wine devel list. They won't be excited, but maybe still help you. I googled a bit and couldn't find a reasonable howto for compiling mfc with winelib, so might be a good idea, if you add one in wine's wiki.
Re: Compile MFC project with Winelib
Thanks a lot of your help