Port is nearly complete but untested and will likely not work! Follow this guide only if you want to help porting libopensync.
Win32 Port
On this page the current progress building opensync 0.30 for win32 will be shown.
see also
- http://wiki.xmms2.xmms.se/index.php/Windows/Mingw for scons and mingw installation
- http://www.squid-cache.org/mail-archive/squid-dev/200609/0025.html ipc replacement
building opensync 0.30 with wine and mingw
To avoid a windows install and boot you could choose wine for testing.
You need:
- wine 0.9.31 or later
- python for windows 2.4 or later (the author tried 2.5)
- mingw and msys
- pkg-config
- glib2 and glib2-dev
- iconv
- gettext
- libxml2 and libxml2-dev
- libintl-bin, libintl-lib and libintl-dep
- use sqlite3.zip (that contains a pkg-config file)
- download zlib
installation
- use wine to install msys
- use wine to install mingw (put it in msysdir c:/msys/1.0/mingw)
- use msiexec to install the python msi file (the author chooses c:\Python25 as install path) edit c:/msys/1.0/etc/fstab
c:/Python25 /python
- fix path setting in msys c:/msys/1.0/etc/profile
# I filter the PATH value setting in order to get ready for self hosting the # MSYS runtime and wanting different paths searched first for files. if [ $MSYSTEM == MINGW32 ]; then export PATH=".:/usr/local/bin:/python:/mingw/bin:/usr/bin:/bin:$PATH" else export PATH=".:/usr/local/bin:/python:/bin:/usr/bin:/mingw/bin:$PATH" fi
- unpack all downloaded lib-file-zips and the pkg-config in c:/msys/1.0/local
- fix msys start batch msys.bat(remove rxvt.exe start that will not work on wine atm)
if EXIST bin\nul cd bin^ rem if EXIST rxvt.exe goto startrxvt^ if EXIST sh.exe goto startsh^
building libopensync 0.30
(the author uses the waf buildsystem patches but most of this should also work with scons)
- unpack libopensync-0.30.tar.bz2 (waf tarball ball) in msys home dir
- for scons you have to fix the buildsystem your self see win32_fixes.diff, and http://www.opensync.org/ticket/475 ... (you also need -DBUILDING_OSYNC_DLL for libopensync.dll build and -dBUILDING_VFORMAT_DLL for libvformat.dll build)
- start wineconsole in c:/msys/1.0 dir
wineconsole --backend=user msys.bat
- out comment the flock check (needs to be fixed!! this is a wine bug)
- change to c:/msys/1.0/home/UserName/libopensync-0.30
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig configure --help configure --disable-python make
have fun ..... ;-)
current status
/drive_c/msys/1.0/home/mjahn/libopensync-0.30/_build_/default/opensync$ wine osplugin.exe This is the opensync sync client. The purpose of this tool is,to allow plugin to run in its own process It is normally started by OpenSync. But you can start it yourself, for debugging purposes (in gdb for example). Usage: osplugin <PipePath> The pipe path tells the plugin, where to create the listing pipe. The pipe is normally created in the member directory with the name "pluginpipe" Wine exited with a successful status
As you can see(win32bin-opensync-0.30.zip) at it builds successfull now but is not tested so far.
- we need a better ipc replacement http://www.squid-cache.org/mail-archive/squid-dev/200609/0025.html
- we need to complete external api (with dll export/import macros)
Attachments
- sqlite3.zip (206.4 kB) - added by pmarat on 04/05/07 09:24:14.
- win32_fixes.diff (56.8 kB) - added by pmarat on 04/25/07 00:59:56.
