windows installation

22 views
Skip to first unread message

Will

unread,
Mar 15, 2012, 3:44:28 AM3/15/12
to axographio
Hi,

I'm new to Python and am having some trouble installing Axographio on
my windows PC. I have installed python 2.7 and all the prerequisite
packages (setuptools, numpy, cython) but I receive the following error
when trying to install axographio:

g++: error: build\temp.win32-2.7\Release\libaxographio.a: No such file
or directory
g++: error: unrecognized option '--output-lib'
error: Setup script exited with error: command 'g++' failed with exit
status 1

I noticed in the 'documentation' file there is some mention of having
to make changes to 'fileutils.cpp' in order for axographio to work in
windows. I haven't done this since I am not proficient in c++, and was
wondering if this might be the cause of the installation error (since
the errors seem to be thrown by the compiler - minGW32).

If you are able to shed any light on possible causes of the error and/
or ways to fix it I would be incredibly grateful. Axographio looks
like it would be the perfect solution for my data conversion needs.

Cheers,
Will

Kendrick Shaw

unread,
Mar 15, 2012, 5:18:48 PM3/15/12
to axogr...@googlegroups.com, Will
Hi Will,

I haven't seen this error before, but it's been quite a while since I
last tried compiling this on windows. I'm happy to take a look at this,
however.

This looks like distutils is passing an invalid option to the compiler,
as is mentioned in this thread:

http://comments.gmane.org/gmane.comp.gnu.mingw.user/38881

The axographio setup isn't specifying this directly, so I'm not sure
where it's coming from. Could you double check to make sure you have
the latest version of distutils, setuptools, mingw, and (if you're using
it) Cygwin? If not, it may be worth trying to upgrade to the latest
version of each of these, downloading a fresh copy of axographio and
trying to install it.

If this isn't the problem, I may be able to diagnose this a bit better
if you can provide me with some more details about your setup. What is
the command line that you are using to run setup.py, and what is the
full output from the setup command when you run it? Which python
distribution are you using (the official one, PythonXY, Enthough Python,
etc.)? Did you install CygWin, or just mingw32? None of these are
necessarily bad choices, but I want to know more about where and how
this is failing.

I'm sorry it didn't work out of the box. Hopefully we can figure out how
to get it working for you.

best regards,
Kendrick

Reply all
Reply to author
Forward
0 new messages