I'm having two errors while compiling. The first is "no rule to make
target", so perhaps something wrong with the build system? The second is a
missing include file, which is odd because it's there. I'm not exactly
sure what to make of it. (see the last few commands in the included log)
Am I doing anything wrong?
Thanks,
Seth
$ ./configure --enable-shared --prefix=/Applications --enable-macosx-app
--with-opengl=aqua --with-freetype-includes=/usr/local/include/freetype2
&& make && sudo make install
checking host system type... i386-apple-darwin9.7.0
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
[...]
creating include/config.h
include/config.h is unchanged
Copying config.status to config.status.i386-apple-darwin9.7.0
GRASS is now configured for: i386-apple-darwin9.7.0
Source directory:
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20
Build directory:
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20
Installation directory: ${prefix}/GRASS-7.0.app/Contents/MacOS
Startup script in directory: ${exec_prefix}/bin
C compiler: gcc -g -O2
C++ compiler:
Building shared libraries: yes
64bit support: no
OpenGL platform: Aqua
MacOSX application: yes
NVIZ: yes
BLAS support: no
C++ support: no
Cairo support: yes
DWG support: no
FFMPEG support: no
FFTW support: yes
FreeType support: yes
GDAL support: yes
GEOS support: no
JPEG support: yes
LAPACK support: no
Large File support (LFS): yes
MySQL support: no
NLS support: no
ODBC support: no
OGR support: yes
OpenGL support: yes
PNG support: yes
PostgreSQL support: no
Python support: no
Readline support: no
SQLite support: no
Tcl/Tk support: yes
wxWidgets support: no
TIFF support: yes
X11 support: yes
Regex support: yes
POSIX thread support: no
test -d
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0
|| mkdir -p -m 755
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0
[...]
VERSION_NUMBER=7.0.svn
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/tools/g.html2man.py
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/docs/html/r.li.patchnum.html
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/man/man1/r.li.patchnum.1
rm r.li.patchnum.tmp.html
make -C r.li.setup || echo
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/raster/r.li/r.li.setup
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/error.log
make[3]: *** No rule to make target
`/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/scripts/r.li.setup',
needed by `script'. Stop.
make -C r.li.shape || echo
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/raster/r.li/r.li.shape
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/error.log
test -d OBJ.i386-apple-darwin9.7.0 || mkdir -p OBJ.i386-apple-darwin9.7.0
[...]
gcc
-I/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/include
-I/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/include
-g -O2
-I/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/include
-I/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/include
-I/usr/local/include -D_FILE_OFFSET_BITS=64 -DPACKAGE=\"\"
-I/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/include
-I/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/include
-o OBJ.i386-apple-darwin9.7.0/togl.o -c togl.c
In file included from togl.c:53:
/usr/include/tkMacOSX.h:19:19: error: tkInt.h: No such file or directory
In file included from /usr/include/tkMacOSX.h:32,
from togl.c:53:
/usr/include/tkPlatDecls.h:107: error: syntax error before ‘*’ token
/usr/include/tkPlatDecls.h:152: error: syntax error before ‘*’ token
togl.c:54:54: error: tkMacOSXInt.h: No such file or directory
togl.c:265: error: syntax error before ‘XVisualInfo’
togl.c:265: warning: no semicolon at end of struct or union
togl.c:271: error: syntax error before ‘}’ token
togl.c:310: error: invalid use of incomplete typedef ‘Togl’
togl.c:313: error: invalid use of incomplete typedef ‘Togl’
[...]
GRASS GIS compilation log
-------------------------
Started compilation: Wed Jun 24 17:35:32 MDT 2009
--
Errors in:
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/raster/r.li/r.li.setup
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/visualization/nviz
--
In case of errors please change into the directory with error and run 'make'.
If you get multiple errors, you need to deal with them in the order they
appear in the error log. If you get an error building a library, you will
also get errors from anything which uses the library.
--
Finished compilation: Wed Jun 24 17:43:24 MDT 2009
make: *** [default] Error 1
$ locate tkMacOSX.h
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkMacOSX.h
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/tkMacOSX.h
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkMacOSX.h
/Developer/SDKs/MacOSX10.5.sdk/usr/include/tkMacOSX.h
/System/Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkMacOSX.h
/usr/include/tkMacOSX.h
$ ls -l /usr/include/tkMacOSX.h
lrwxr-xr-x 1 root wheel 76 Apr 10 16:51 /usr/include/tkMacOSX.h ->
../../System/Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkMacOSX.h
$ locate tkInt.h
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Tk.framework/Versions/8.4/Headers/tk-private/tkInt.h
/System/Library/Frameworks/Tk.framework/Versions/8.4/Headers/tk-private/tkInt.h
On Jun 24, 2009, at 7:42 PM, Seth Price wrote:
I'm having two errors while compiling. The first is "no rule to make
target", so perhaps something wrong with the build system? The second is a
missing include file, which is odd because it's there. I'm not exactly
sure what to make of it. (see the last few commands in the included log)
Am I doing anything wrong?
Thanks,
Seth
$ ./configure --enable-shared --prefix=/Applications --enable-macosx-app
--with-opengl=aqua --with-freetype-includes=/usr/local/include/freetype2
&& make && sudo make install
gcc
-I/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/include
-I/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/include
-g -O2
-I/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/include
-I/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/include
-I/usr/local/include -D_FILE_OFFSET_BITS=64 -DPACKAGE=\"\"
-I/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/include
-I/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/include
-o OBJ.i386-apple-darwin9.7.0/togl.o -c togl.c
In file included from togl.c:53:
/usr/include/tkMacOSX.h:19:19: error: tkInt.h: No such file or directory
In file included from /usr/include/tkMacOSX.h:32,
from togl.c:53:
/usr/include/tkPlatDecls.h:107: error: syntax error before ‘*’ token
/usr/include/tkPlatDecls.h:152: error: syntax error before ‘*’ token
togl.c:54:54: error: tkMacOSXInt.h: No such file or directory
togl.c:265: error: syntax error before ‘XVisualInfo’
togl.c:265: warning: no semicolon at end of struct or union
togl.c:271: error: syntax error before ‘}’ token
togl.c:310: error: invalid use of incomplete typedef ‘Togl’
togl.c:313: error: invalid use of incomplete typedef ‘Togl’
[...]
The system tcltk was detected by default. While it is v8.4, it is not suitable for GRASS (it's an Aqua-fied version, and v8.5 is needed for that). You should download and install ActiveTcl 8.5 (I'm not sure if 8.6 will work). See the macosx readme in the source for more gorey details on compiling for OSX.
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
Theory of the Universe
There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened.
-Hitchhiker's Guide to the Galaxy 2nd season intro
I read the readme (again) and found what you're referring to. I followed
the directions on installing the latest package and ran the commands, ran
'make clean', but I'm still getting the same error. Configure doesn't seem
to be picking up 8.5, and is picking up 8.4 instead. How do I convince it
otherwise? The commands I tried didn't work.
Thanks,
Seth
On Wed, June 24, 2009 7:57 pm, William Kyngesburye wrote:
On Jun 24, 2009, at 7:42 PM, Seth Price wrote:
I'm having two errors while compiling. The first is "no rule to make
target", so perhaps something wrong with the build system? The
second is a
missing include file, which is odd because it's there. I'm not exactly
sure what to make of it. (see the last few commands in the included
log)
Am I doing anything wrong?
Thanks,
Seth
$ ./configure --enable-shared --prefix=/Applications --enable-macosx-
app
--with-opengl=aqua --with-freetype-includes=/usr/local/include/
freetype2
&& make && sudo make install
gcc
-I/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-
apple-darwin9.7.0/include
-I/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-
apple-darwin9.7.0/include
-g -O2
-I/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-
apple-darwin9.7.0/include
-I/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-
apple-darwin9.7.0/include
-I/usr/local/include -D_FILE_OFFSET_BITS=64 -DPACKAGE=\"\"
-I/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-
apple-darwin9.7.0/include
-I/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-
apple-darwin9.7.0/include
-o OBJ.i386-apple-darwin9.7.0/togl.o -c togl.c
In file included from togl.c:53:
/usr/include/tkMacOSX.h:19:19: error: tkInt.h: No such file or
directory
In file included from /usr/include/tkMacOSX.h:32,
from togl.c:53:
/usr/include/tkPlatDecls.h:107: error: syntax error before ‘*’ token
/usr/include/tkPlatDecls.h:152: error: syntax error before ‘*’ token
togl.c:54:54: error: tkMacOSXInt.h: No such file or directory
togl.c:265: error: syntax error before ‘XVisualInfo’
togl.c:265: warning: no semicolon at end of struct or union
togl.c:271: error: syntax error before ‘}’ token
togl.c:310: error: invalid use of incomplete typedef ‘Togl’
togl.c:313: error: invalid use of incomplete typedef ‘Togl’
[...]
The system tcltk was detected by default. While it is v8.4, it is not
suitable for GRASS (it's an Aqua-fied version, and v8.5 is needed for
that). You should download and install ActiveTcl 8.5 (I'm not sure if
8.6 will work). See the macosx readme in the source for more gorey
details on compiling for OSX.
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
Theory of the Universe
There is a theory which states that if ever anyone discovers exactly
what the universe is for and why it is here, it will instantly
disappear and be replaced by something even more bizarrely
inexplicable. There is another theory which states that this has
already happened.
-Hitchhiker's Guide to the Galaxy 2nd season intro
Make sure you reconfigure (of course), but specify all the tcltk configure flags as in the example. If you don't, configure will never see the new tcltk.
On Jun 24, 2009, at 8:22 PM, Seth Price wrote:
I read the readme (again) and found what you're referring to. I followed
the directions on installing the latest package and ran the commands, ran
'make clean', but I'm still getting the same error. Configure doesn't seem
to be picking up 8.5, and is picking up 8.4 instead. How do I convince it
otherwise? The commands I tried didn't work.
Thanks,
Seth
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
"Those people who most want to rule people are, ipso-facto, those least suited to do it."
- A rule of the universe, from the HitchHiker's Guide to the Galaxy
Seth Price wrote:
I'm having two errors while compiling. The first is "no rule to make
target", so perhaps something wrong with the build system? The second is a
missing include file, which is odd because it's there. I'm not exactly
sure what to make of it. (see the last few commands in the included log)
Am I doing anything wrong?
make -C r.li.setup || echo
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/raster/r.li/r.li.setup
>> /usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/error.log
make[3]: *** No rule to make target
`/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/scripts/r.li.setup',
needed by `script'. Stop.
r.li.setup is currently non-functional.
AFAICT, the immediate error is due to r.li.setup being a shell script,
while the build system expects a Python script named r.li.setup.py.
--
Glynn Clements <glynn@gclements.plus.com>
If it's non-functional, what's the best way to exclude it from the build cycle? Do I even need to worry about it, or can I just run 'make install' to get everything except r.li.setup?
Thanks,
Seth
On Jun 24, 2009, at 10:19 PM, Glynn Clements wrote:
Seth Price wrote:
I'm having two errors while compiling. The first is "no rule to make
target", so perhaps something wrong with the build system? The second is a
missing include file, which is odd because it's there. I'm not exactly
sure what to make of it. (see the last few commands in the included log)
Am I doing anything wrong?
make -C r.li.setup || echo
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/raster/r.li/r.li.setup
/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/error.log
make[3]: *** No rule to make target
`/usr/local/grass/grass-7.0.svn_src_snapshot_2009_06_20/dist.i386-apple-darwin9.7.0/scripts/r.li.setup',
needed by `script'. Stop.
r.li.setup is currently non-functional.
AFAICT, the immediate error is due to r.li.setup being a shell script,
while the build system expects a Python script named r.li.setup.py.
--
Glynn Clements <glynn@gclements.plus.com>
Seth Price wrote:
> r.li.setup is currently non-functional.
>
> AFAICT, the immediate error is due to r.li.setup being a shell script,
> while the build system expects a Python script named r.li.setup.py.
If it's non-functional, what's the best way to exclude it from the
build cycle? Do I even need to worry about it, or can I just run 'make
install' to get everything except r.li.setup?
You don't need to worry about it.
Failure to build a module shouldn't affect anything other than that
particular module (the various r.li components are essentially treated
as separate modules, other than the fact that they all require
r.li.daemon).
--
Glynn Clements <glynn@gclements.plus.com>