Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#87 Building PyCHM on windows

open
nobody
pychm (7)
5
2010-07-05
2010-07-05
zieQ
No

Hello,

I've successfully compiled PyCHM on Windows with Visual Studio 2008 and I've documented the whole process in a blog post that could be found here: http://sylvainprat.blogspot.com/2010/07/compiling-pychm-on-windows.html.

One part of the process involve patching the extra.c file so that it compiles fine with Visual Studio. It would be nice to include this fixe in the distribution ;) It could be something like that:

#if defined(_MSC_VER)
#define strncasecmp _strnicmp
#define strcasecmp _stricmp
#define inline __inline
#include <string.h>
#else
#include <strings.h>
#endif

I think that strings.h could be replaced by string.h in linux also, so the code I just wrote may be simplified

Thanks!
Sylvain

Discussion

  • zieQ
    zieQ
    2010-07-08

    Patch

     
    Attachments
  • zieQ
    zieQ
    2010-07-09

    Another fix for ResolveObject

     
    Attachments
  • zieQ
    zieQ
    2010-07-09

    I added another fix for the chm.ResolveObject that didn't work on windows. However, I'm not sure why abspath is needed here, a normpath should be enough.