dmpelt / pyastratoolbox

Python interface to the ASTRA-toolbox
4 stars 3 forks source link

Install Issue #1

Closed gknapp1 closed 10 years ago

gknapp1 commented 11 years ago

Hello, I am trying to install PyASTRAToolbox-1.0 on my Win7 (64-bit) machine but I am receiving the error "gcc: error: unrecognized command line option '-mno-cygwin'" . I have both Cython and NumPy installed and I am using MinGW as my compiler. Below is a screenshot to give the error some context. Any clue as to what needs to be fixed in order to get this to run?

pyastratoolbox_installissue

dmpelt commented 11 years ago

Hi!

This seems to be a general problem with newer versions of MinGW [More information]. In that link, two temporary solutions are given:

It will probably be fixed later versions of distutils [More information], but the temporary solutions should work until then.

Did one of the solutions work for you?

gknapp1 commented 11 years ago

Thanks for the quick reply! I tried downgrading MinGW to version 4.5.2 (current version is 4.6.2) but it did not work for me. I also tried the second solution and while it fixed the original problem it resulted in another error

astra\algorithm_c.cpp:319:27: fatal error: astra/Globals.h: No such file or directory

I made sure that I had the full directory from the download, but I could not find the Globals.h file anywhere.

dmpelt commented 11 years ago

I am glad the original problem was solved! In the new problem, it seems to be unable to find the original ASTRA toolbox directory. Can you give me the commands you tried to install PyASTRAToolbox? I have not tested installing both the ASTRA toolbox and PyASTRAToolbox on Windows, as I use Linux myself, but I hope we can figure out what the problem is. At some point in the future, I will probably try to install it on Windows myself and write some installation instructions for Windows.

dmpelt commented 10 years ago

A precompiled Windows version of pyastratoolbox can now be found at https://www.dropbox.com/s/g2yf1j1hq5rf29j/pyastratoolbox-1.2-win-x64-py2.7.zip . Can you try to install this version? Installation should be as simple as extracting the zip file to your python site-packages folder.