#87 Building PyCHM on windows

open
nobody
pychm (7)
5
2010-07-05
2010-07-05
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

  • Anonymous - 2010-07-08

    Patch

     
  • Anonymous - 2010-07-09

    Another fix for ResolveObject

     
  • Anonymous - 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.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks