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.

  1. Win32 Port
    1. see also
    2. building opensync 0.30 with wine and mingw
      1. You need:
      2. installation
      3. building libopensync 0.30
    3. current status

see also

building opensync 0.30 with wine and mingw

To avoid a windows install and boot you could choose wine for testing.

You need:

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.

Attachments