[GRASS-dev] makefile for Mac still not compiling wxpython GUI section automatically

The makefile for the Mac needs to be changed so that it compiles the wxpython folder automatically. Currently you must cd to the folder in order to compile this. It didn’t used to be this way.

On 6.5 and 7.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University

voice: 480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: www.public.asu.edu/~cmbarton, http://csdc.asu.edu

The Mac makefile doesn't do any of the GRASS compilation, only the Mac startup compilation. gui/wxpython is always compiled, regardless of the system.

Maybe wxpython now needs something from a folder that is compiled after it (visualization, locale, man, swig), so it's quietly skipped?

On May 17, 2010, at 12:58 PM, Michael Barton wrote:

The makefile for the Mac needs to be changed so that it compiles the wxpython folder automatically. Currently you must cd to the folder in order to compile this. It didn't used to be this way.

On 6.5 and 7.

Michael

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

All generalizations are dangerous, even this one.

William Kyngesburye wrote:

The Mac makefile doesn't do any of the GRASS compilation, only the Mac startup compilation. gui/wxpython is always compiled, regardless of the system.

Maybe wxpython now needs something from a folder that is compiled after it (visualization, locale, man, swig), so it's quietly skipped?

It's lib/python that needs to be fixed, see
http://lists.osgeo.org/pipermail/grass-dev/2010-May/050502.html

Glynn is looking for alternatives to SWIG and currently trying ctypesgen.

Citing from
http://lists.osgeo.org/pipermail/grass-dev/2010-May/050496.html

-->
ctypesgen can be obtained via SVN:

svn checkout http://ctypesgen.googlecode.com/svn/trunk/ ctypesgen-read-only

or you can get a tarball from:

http://mirrors.kernel.org/gentoo/distfiles/ctypesgen-0_p72.tar.bz2

To build:

  python setup.py build install

Although it's probably not as widespread as SWIG, it has the advantage
that both ctypesgen itself and the wrappers which it generates are
pure Python code, with no binary components.

I'm also going to look at ctypeslib:

  http://pypi.python.org/pypi/ctypeslib/

I went with ctypesgen first as there's a supported Gentoo package for
it.
<--

Get ctypesgen, install it or put ctypesgen.py somewhere in your path,
that should do the trick.

On May 17, 2010, at 12:58 PM, Michael Barton wrote:

The makefile for the Mac needs to be changed so that it compiles the wxpython folder automatically. Currently you must cd to the folder in order to compile this. It didn't used to be this way.

On 6.5 and 7.

Michael

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

All generalizations are dangerous, even this one.

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Thanks Markus and William,

I think that 2 different things are happening.

1. Something is now causing wxpython NOT to compile automatically--perhaps in the wxpython makefile, perhaps something else.

2. Glynn is changing /lib/python and THAT is why this won't compile in GRASS 7. For this one, do I need just need to build ctypesgen?

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University

voice: 480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On May 17, 2010, at 12:04 PM, Markus Metz wrote:

William Kyngesburye wrote:

The Mac makefile doesn't do any of the GRASS compilation, only the Mac startup compilation. gui/wxpython is always compiled, regardless of the system.

Maybe wxpython now needs something from a folder that is compiled after it (visualization, locale, man, swig), so it's quietly skipped?

It's lib/python that needs to be fixed, see
[GRASS-dev] GRASS 7 not compiling on Mac OSX 10.6

Glynn is looking for alternatives to SWIG and currently trying ctypesgen.

Citing from
[GRASS-dev] RE: [GRASS-user] Question with Python-SWIG example [SEC=UNCLASSIFIED]

-->
ctypesgen can be obtained via SVN:

svn checkout http://ctypesgen.googlecode.com/svn/trunk/ ctypesgen-read-only

or you can get a tarball from:

http://mirrors.kernel.org/gentoo/distfiles/ctypesgen-0_p72.tar.bz2

To build:

  python setup.py build install

Although it's probably not as widespread as SWIG, it has the advantage
that both ctypesgen itself and the wrappers which it generates are
pure Python code, with no binary components.

I'm also going to look at ctypeslib:

  ctypeslib · PyPI

I went with ctypesgen first as there's a supported Gentoo package for
it.
<--

Get ctypesgen, install it or put ctypesgen.py somewhere in your path,
that should do the trick.

On May 17, 2010, at 12:58 PM, Michael Barton wrote:

The makefile for the Mac needs to be changed so that it compiles the wxpython folder automatically. Currently you must cd to the folder in order to compile this. It didn't used to be this way.

On 6.5 and 7.

Michael

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

All generalizations are dangerous, even this one.

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
grass-dev Info Page

I installed ctypesgen and this fixed the ../lib/python error. In fact, if I compile ../gui/wxpython, all compiles fine. BUT I hit the following error when I try to do a make install. A really weird error. I AM in the top level directory. I put ctypesgen inside my GRASS source, but otherwise haven't done anything to change this setup.

Michael

cmb-mbp:grass70_dev cmbarton$ sudo make install
Password:
include/Make/Docs.make:11: warning: overriding commands for target `htmldocs-single'
include/Make/Doxygen.make:12: warning: ignoring old commands for target `htmldocs-single'
include/Make/Docs.make:39: warning: overriding commands for target `htmldocs'
include/Make/Doxygen.make:18: warning: ignoring old commands for target `htmldocs'
include/Make/Docs.make:51: warning: overriding commands for target `pdfdocs'
include/Make/Doxygen.make:38: warning: ignoring old commands for target `pdfdocs'
include/Make/Docs.make:58: warning: overriding commands for target `cleandocs'
include/Make/Doxygen.make:50: warning: ignoring old commands for target `cleandocs'
echo /Users/cmbarton/grass_dev/grass70_dev/bin.i386-apple-darwin10.3.1/grass70
/Users/cmbarton/grass_dev/grass70_dev/bin.i386-apple-darwin10.3.1/grass70
include/Make/Docs.make:11: warning: overriding commands for target `htmldocs-single'
include/Make/Doxygen.make:12: warning: ignoring old commands for target `htmldocs-single'
include/Make/Docs.make:39: warning: overriding commands for target `htmldocs'
include/Make/Doxygen.make:18: warning: ignoring old commands for target `htmldocs'
include/Make/Docs.make:51: warning: overriding commands for target `pdfdocs'
include/Make/Doxygen.make:38: warning: ignoring old commands for target `pdfdocs'
include/Make/Docs.make:58: warning: overriding commands for target `cleandocs'
include/Make/Doxygen.make:50: warning: ignoring old commands for target `cleandocs'
make -C macosx install-macosx
echo /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/GRASS-7.0.app
/Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/GRASS-7.0.app
ERROR: GRASS.app has not been compiled. Try "make" in the top level source dir first.
  Installation aborted, exiting Make.

____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University

voice: 480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On May 17, 2010, at 12:04 PM, Markus Metz wrote:

William Kyngesburye wrote:

The Mac makefile doesn't do any of the GRASS compilation, only the Mac startup compilation. gui/wxpython is always compiled, regardless of the system.

Maybe wxpython now needs something from a folder that is compiled after it (visualization, locale, man, swig), so it's quietly skipped?

It's lib/python that needs to be fixed, see
[GRASS-dev] GRASS 7 not compiling on Mac OSX 10.6

Glynn is looking for alternatives to SWIG and currently trying ctypesgen.

Citing from
[GRASS-dev] RE: [GRASS-user] Question with Python-SWIG example [SEC=UNCLASSIFIED]

-->
ctypesgen can be obtained via SVN:

svn checkout http://ctypesgen.googlecode.com/svn/trunk/ ctypesgen-read-only

or you can get a tarball from:

http://mirrors.kernel.org/gentoo/distfiles/ctypesgen-0_p72.tar.bz2

To build:

  python setup.py build install

Although it's probably not as widespread as SWIG, it has the advantage
that both ctypesgen itself and the wrappers which it generates are
pure Python code, with no binary components.

I'm also going to look at ctypeslib:

  ctypeslib · PyPI

I went with ctypesgen first as there's a supported Gentoo package for
it.
<--

Get ctypesgen, install it or put ctypesgen.py somewhere in your path,
that should do the trick.

On May 17, 2010, at 12:58 PM, Michael Barton wrote:

The makefile for the Mac needs to be changed so that it compiles the wxpython folder automatically. Currently you must cd to the folder in order to compile this. It didn't used to be this way.

On 6.5 and 7.

Michael

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

All generalizations are dangerous, even this one.

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
grass-dev Info Page

That one's my fault in the OSX install. Try it now - r42273.

On May 17, 2010, at 3:49 PM, Michael Barton wrote:

I installed ctypesgen and this fixed the ../lib/python error. In fact, if I compile ../gui/wxpython, all compiles fine. BUT I hit the following error when I try to do a make install. A really weird error. I AM in the top level directory. I put ctypesgen inside my GRASS source, but otherwise haven't done anything to change this setup.

Michael

cmb-mbp:grass70_dev cmbarton$ sudo make install
Password:
include/Make/Docs.make:11: warning: overriding commands for target `htmldocs-single'
include/Make/Doxygen.make:12: warning: ignoring old commands for target `htmldocs-single'
include/Make/Docs.make:39: warning: overriding commands for target `htmldocs'
include/Make/Doxygen.make:18: warning: ignoring old commands for target `htmldocs'
include/Make/Docs.make:51: warning: overriding commands for target `pdfdocs'
include/Make/Doxygen.make:38: warning: ignoring old commands for target `pdfdocs'
include/Make/Docs.make:58: warning: overriding commands for target `cleandocs'
include/Make/Doxygen.make:50: warning: ignoring old commands for target `cleandocs'
echo /Users/cmbarton/grass_dev/grass70_dev/bin.i386-apple-darwin10.3.1/grass70
/Users/cmbarton/grass_dev/grass70_dev/bin.i386-apple-darwin10.3.1/grass70
include/Make/Docs.make:11: warning: overriding commands for target `htmldocs-single'
include/Make/Doxygen.make:12: warning: ignoring old commands for target `htmldocs-single'
include/Make/Docs.make:39: warning: overriding commands for target `htmldocs'
include/Make/Doxygen.make:18: warning: ignoring old commands for target `htmldocs'
include/Make/Docs.make:51: warning: overriding commands for target `pdfdocs'
include/Make/Doxygen.make:38: warning: ignoring old commands for target `pdfdocs'
include/Make/Docs.make:58: warning: overriding commands for target `cleandocs'
include/Make/Doxygen.make:50: warning: ignoring old commands for target `cleandocs'
make -C macosx install-macosx
echo /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/GRASS-7.0.app
/Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/GRASS-7.0.app
ERROR: GRASS.app has not been compiled. Try "make" in the top level source dir first.
Installation aborted, exiting Make.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?"

- The Ruler of the Universe

That did it!

Thanks
Michael

On May 17, 2010, at 2:06 PM, William Kyngesburye wrote:

That one's my fault in the OSX install. Try it now - r42273.

On May 17, 2010, at 3:49 PM, Michael Barton wrote:

I installed ctypesgen and this fixed the ../lib/python error. In fact, if I compile ../gui/wxpython, all compiles fine. BUT I hit the following error when I try to do a make install. A really weird error. I AM in the top level directory. I put ctypesgen inside my GRASS source, but otherwise haven't done anything to change this setup.

Michael

cmb-mbp:grass70_dev cmbarton$ sudo make install
Password:
include/Make/Docs.make:11: warning: overriding commands for target `htmldocs-single'
include/Make/Doxygen.make:12: warning: ignoring old commands for target `htmldocs-single'
include/Make/Docs.make:39: warning: overriding commands for target `htmldocs'
include/Make/Doxygen.make:18: warning: ignoring old commands for target `htmldocs'
include/Make/Docs.make:51: warning: overriding commands for target `pdfdocs'
include/Make/Doxygen.make:38: warning: ignoring old commands for target `pdfdocs'
include/Make/Docs.make:58: warning: overriding commands for target `cleandocs'
include/Make/Doxygen.make:50: warning: ignoring old commands for target `cleandocs'
echo /Users/cmbarton/grass_dev/grass70_dev/bin.i386-apple-darwin10.3.1/grass70
/Users/cmbarton/grass_dev/grass70_dev/bin.i386-apple-darwin10.3.1/grass70
include/Make/Docs.make:11: warning: overriding commands for target `htmldocs-single'
include/Make/Doxygen.make:12: warning: ignoring old commands for target `htmldocs-single'
include/Make/Docs.make:39: warning: overriding commands for target `htmldocs'
include/Make/Doxygen.make:18: warning: ignoring old commands for target `htmldocs'
include/Make/Docs.make:51: warning: overriding commands for target `pdfdocs'
include/Make/Doxygen.make:38: warning: ignoring old commands for target `pdfdocs'
include/Make/Docs.make:58: warning: overriding commands for target `cleandocs'
include/Make/Doxygen.make:50: warning: ignoring old commands for target `cleandocs'
make -C macosx install-macosx
echo /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/GRASS-7.0.app
/Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/GRASS-7.0.app
ERROR: GRASS.app has not been compiled. Try "make" in the top level source dir first.
Installation aborted, exiting Make.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?"

- The Ruler of the Universe

Michael Barton wrote:

> That one's my fault in the OSX install. Try it now - r42273.

That did it!

I was getting worried for a moment.

--
Glynn Clements <glynn@gclements.plus.com>