Re: Quick into to porting to Win32...




- or install Jernej's gtk on your system, copy the tree of files under
"Common Files/gtk/2.0/", rename as the name of your app, drop your
.exe into the bin directory, zip up and send to your users ... they
then run by unzipping, clicking into the bin/ folder and
double-clicking on your .exe

Some time ago I ported some GTK2 applications to Windows using MinGW, MSYS and dropline gnome packages. After installing GTK dev package you need to set PATH variable in MSYS so pkg-config and other utills can be called from shell. Then, install Runtime package and move gtk/ directory from Common Files to your application install path (like C:\Program Files\your_app\GUI for example).

After that you need to create registry keys to configure library path for your application: In HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths create folder or whatever called your_app.exe. In it, create one key called Path and set its value to path to the GTK library (like C:\Program Files\your_app\GUI\2.2\lib).

Now compile your application with mingw and msys and move it to C:\Program Files\your_app\your_app.exe.

You can use ISSTool to create fancy installer that can install application and create registry keys for you.

Bye,
Goran Rakic




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]