libyal / libpff

Library and tools to access the Personal Folder File (PFF) and the Offline Folder File (OFF) format
GNU Lesser General Public License v3.0
286 stars 74 forks source link

Build for Windows 10 #82

Closed vandanparmar closed 4 years ago

vandanparmar commented 4 years ago

I have been trying to build this on windows in a variety of different ways - following the build instructions. There is an image below of the error whilst attempting to pip install from Visual Studio 14.0 build tools command prompt.

I have also tried building from source, with mingw and cygwin. But neither of these seem to work. I would really appreciate some more detailed installation instructions for windows 10.

image

joachimmetz commented 4 years ago

@vandanparmar can you provide detailed logs/information about "But neither of these seem to work."

the error in the screenshot does not contain enough detail for me to determine what is going wrong on your system.

Also have a look at https://github.com/libyal/libpff/wiki/Building

vandanparmar commented 4 years ago

I am currently using a Windows 10 build with Anaconda python 3.7. I am only trying to build the python bindings.

I was expecting that with pip install libpff-python from within a Visual Studio command prompt would work, however this does not yielding the error above. Pip installation does seem to work on Linux and Mac OS.

joachimmetz commented 4 years ago

I was expecting that with pip install libpff-python from within a Visual Studio command prompt would work

This depends on many different factors. Note that pip is not one of the preferred build options in the documentation.

vandanparmar commented 4 years ago

Ok - makes sense. To confirm, on Windows 10, for python 3.7, what would be your recommended build procedure, to build just the python bindings? Using python setup.py build also does not work.

joachimmetz commented 4 years ago
  1. python bindings are WIP see https://github.com/libyal/libpff/issues/2
  2. setup.py build is automatically tested on AppVeyor https://ci.appveyor.com/project/libyal/libpff/build/job/uuwfjafdj16s42na#L37 and that is passing, so I suspect the issue with your build environment
  3. You'll need to provide me with details about what is not working, otherwise I'm unable to help you
vandanparmar commented 4 years ago

Thank you for your help, the build now seems to be working.