This won't work. Simply doing a dlopen on the wine libraries won't get your environment setup properly.
what can i do then to setup the wine environment correctly and use the wine libraries from fpc. thanks
On Tuesday 30 August 2011 01:57:30 am Reinier Napoles Martinez wrote:
This won't work. Simply doing a dlopen on the wine libraries won't get your environment setup properly.
what can i do then to setup the wine environment correctly and use the wine libraries from fpc. thanks
Essentially what you need to do is to write your application as a winelib application. That means it will have a code similar to a Win32 EXE but will be in ELF format.
I have no idea if/how you can do that using fpc.
An alternative would be to write a winelib proxy program and talk to it through a socket or some other form of IPC.
Finally, if your application depends too much on some DLL (especially things you cannot easily proxy like graphics) just make it a Win32 EXE.
Paul
On Tue, Aug 30, 2011 at 9:43 AM, Paul Chitescu paulc@voip.null.ro wrote:
On Tuesday 30 August 2011 01:57:30 am Reinier Napoles Martinez wrote:
This won't work. Simply doing a dlopen on the wine libraries won't get your environment setup properly.
what can i do then to setup the wine environment correctly and use the wine libraries from fpc. thanks
Essentially what you need to do is to write your application as a winelib application. That means it will have a code similar to a Win32 EXE but will be in ELF format.
I have no idea if/how you can do that using fpc.
An alternative would be to write a winelib proxy program and talk to it through a socket or some other form of IPC.
Finally, if your application depends too much on some DLL (especially things you cannot easily proxy like graphics) just make it a Win32 EXE.
Paul
I'm not sure what fpc allows. Perhaps it is possible (I'm not sure) to write a tiny C application with a main function which 'links' to your pascal code. That way (if possible) you would bootstrap Wine with a basic winelib application.
Roderick