fernandocarvalho
2010-Jul-11 11:41 UTC
[Wine] Simple application made with visual studio 2005 not running
I build a simple application with VS C++ and it is not running. Debug info and the application with its source code is on the link below: http://homepages.dcc.ufmg.br/~fccoelho/test.tar.gz Tested on wine-1.2-rc7
jeffz
2010-Jul-11 12:19 UTC
[Wine] Re: Simple application made with visual studio 2005 not running
fernandocarvalho wrote:> I build a simple application with VS C++ and it is not running. > Debug info and the application with its source code is on the link below: > http://homepages.dcc.ufmg.br/~fccoelho/test.tar.gz > > Tested on wine-1.2-rc7how did you install .NET?
fernandocarvalho
2010-Jul-11 13:06 UTC
[Wine] Re: Simple application made with visual studio 2005 not running
through VS C++ install CD.
Cheer Xiao
2010-Jul-11 14:17 UTC
[Wine] Simple application made with visual studio 2005 not running
On Sun, Jul 11, 2010 at 9:06 PM, fernandocarvalho <wineforum-user at winehq.org> wrote:> through VS C++ install CD.It is recommended that you used Mono to compile the program. VC++ is not likely to work under Wine, although old versions may do (with some tweaks).
fernandocarvalho
2010-Jul-11 14:30 UTC
[Wine] Re: Simple application made with visual studio 2005 not running
Then you are saying that commercial applications that were made using Visual Studio, will not work properly on Wine? I think that this is a serious issue, because many applications are made with visual studio. The application that I made, was only a test application to see if wine is capable to run applications built with Visual Studio on Windows. Until now, my conclusions is that it isn't compatible. [Crying or Very sad]
John Drescher
2010-Jul-11 14:44 UTC
[Wine] Simple application made with visual studio 2005 not running
On Sun, Jul 11, 2010 at 10:17 AM, Cheer Xiao <xiaqqaix at gmail.com> wrote:> On Sun, Jul 11, 2010 at 9:06 PM, fernandocarvalho > <wineforum-user at winehq.org> wrote: >> through VS C++ install CD. > > It is recommended that you used Mono to compile the program. VC++ is > not likely to work under Wine, although old versions may do (with some > tweaks). >Visual Studio 2005 does work under wine if you build C++ applications that do not use CLR. I am not sure about .NET at all because I have not tested that. My Qt applications do build without issue from the Visual Studio that is installed using winetricks. It may be possible to build .NET applications if you had installed .NET via winetricks first in a clean prefix. I do not believe installing .NET directly using the microsoft installers works. Please correct me if I am wrong.. John John
fernandocarvalho
2010-Jul-11 15:10 UTC
[Wine] Re: Simple application made with visual studio 2005 not running
[Exclamation] [Shocked] So there is way to wine be binary compatible with Visual Studio applications? I fear that in some time wine become useless, because as far as I know, the most recent applications that are built for Windows, uses Visual Studio as their primary compiler.
James McKenzie
2010-Jul-11 16:28 UTC
[Wine] Simple application made with visual studio 2005 not running
fernandocarvalho wrote:> [Exclamation] [Shocked] > So there is way to wine be binary compatible with Visual Studio applications? >No. That would be a violation of law (at least here in the United States.) It is legal, however, to emulate the Applications Programming Interface. That would allow .NET (up to 3.0) to work as if it were on Windows.> I fear that in some time wine become useless, because as far as I know, the most recent applications that are built for Windows, uses Visual Studio as their primary compiler. > > >That is true. However, not all of them use .NET features. Use of CLR features basically locks you to Windows, and that in itself is not good. It also locks you to a specific build layout of Visual Studio. It can also lock you out of an ISO specific contract (you cannot use special features in these types of contracts unless you really, really justify them.) It is best to use only features available in .NET, as these are available through Mono. And yes, Mono does install on Wine. Use winetricks to install it. James McKenzie> > > >
Vincent Povirk
2010-Jul-11 16:32 UTC
[Wine] Simple application made with visual studio 2005 not running
>> [Exclamation] ?[Shocked] So there is way to wine be binary compatible with >> Visual Studio applications? >> > > No. ?That would be a violation of lawDid I miss something important here?
DanKegel
2010-Jul-11 17:41 UTC
[Wine] Re: Simple application made with visual studio 2005 not running
I think James is a bit confused; there no reason we can't run Visual Studio or the apps it produces, as long as we fix enough bugs. But the original poster is confused, too. It doesn't matter whether the app is built with Visual Studio. It matters more what ABI the app is written to or compiled to run against. Your test app is a Managed C++ app. Switch to non-managed, or native, and you'll have better luck. Also, your test app is compiled for debugging, which means you need debugging libraries like msvcm80d.dll, which are only shipped with Visual Studio; winetricks doesn't have a way to install them. What are you really trying to do?
fernandocarvalho
2010-Jul-11 19:45 UTC
[Wine] Re: Simple application made with visual studio 2005 not running
DanKegel, I'm a little newbie in Windows API and wine. So another day I was think a little and concluded: [Idea]> > Wine is supposed to be windows compatible. > Visual Studio is a compiler to make windows programs. > Windows programs make calls to windows system calls. > Wine emulates windows system calls and API. > So if I test all Visual Studio system calls against wine, than I can help wine developers find bugs on Wine. >That was my thought. I don't know if I'm right.
fernandocarvalho
2010-Jul-11 22:40 UTC
[Wine] Re: Simple application made with visual studio 2005 not running
That was my point. [Exclamation] I think that wine will be enough when it start running production applications, like MS Office and AutoCAD, and games like Final Fantasy, Starcraft II and others. This is what people miss on Unix systems, mainly on Linux. So I wish to help in this way. Applications like Disk Burners, DVD/Bluray players and other applications that rely on hardware support should be in the lowest priority of wine developers, becouse this kind of application are, in some way, replaced by applications that runs nativelly on Unix. Maybe after this cycle of development in wine, we could focus on increasing compatibility with Visual Studio. I think that it is a way that people can easily help debug wine, by submitting parts of their code, and telling what is going wrong.
Gert van den Berg
2010-Jul-12 00:01 UTC
[Wine] Simple application made with visual studio 2005 not running
On Mon, Jul 12, 2010 at 00:40, fernandocarvalho <wineforum-user at winehq.org> wrote:> That was my point. [Exclamation] > I think that wine will be enough when it start running production applications, like MS Office and AutoCAD, and games like Final Fantasy, Starcraft II and others.Have a look at: http://appdb.winehq.org/appview.php?appId=31 http://appdb.winehq.org/objectManager.php?sClass=application&iId=86 (.NET seem to be the main thing messing up recent versions...) (There is also quite a bit of posts on the form / wine-users, use search...) http://appdb.winehq.org/objectManager.php?sClass=application&iId=11123 .NET apps should be written to be runnable under Mono.... (The older .NET versions actually seem to have some hope: http://appdb.winehq.org/objectManager.php?sClass=application&iId=2586 ) See: http://en.wikipedia.org/wiki/Mono_%28software%29> Maybe after this cycle of development in wine, we could focus on increasing compatibility with Visual Studio."Unmanaged" Visual Studio apps work... .NET (Unfortuanatly, I thing Visual C++ is the only app with an unmanaged option) stuff not... (.NET is huge and require a massive part of Windows to run...) Proper portable .NET apps should be runnable under Mono, which tries to be compliant to the .NET specs... (When they start mixing in non-.NET code, Wine is needed...)
fernandocarvalho
2010-Jul-12 13:19 UTC
[Wine] Re: Simple application made with visual studio 2005 not running
Is there any way to join Mono and Wine in some point? Many recent applications from Windows, relies on .NET framework. So I think that making then work under wine would be a great go for us.