#23576 closed defect (worksforme)
GRASS does not build
Reported by: | anand.prabhakar.patil@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.2 |
Keywords: | Cc: | gcc@… | |
Port: | grass |
Description
(mpro1 ~) sudo port install grass -d ---> Computing dependencies for grass ---> Configuring grass Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gis_grass/work/grass-6.3.0" && ./configure --prefix=/opt/local --with-fftw-includes=/opt/local/include --with-fftw-libs=/opt/local/lib --with-freetype --with-freetype-includes=/opt/local/include/freetype2 --with-freetype-libs=/opt/local/lib --with-gdal=/opt/local/bin/gdal-config --with-jpeg-includes=/opt/local/include --with-jpeg-libs=/opt/local/lib --with-motif --with-motif-includes=/opt/local/include --with-motif-libs=/opt/local/lib --with-png-includes=/opt/local/include --with-png-libs=/opt/local/lib --with-proj-includes=/opt/local/include --with-proj-libs=/opt/local/lib --with-proj-share=/opt/local/share/proj --with-tcltk-includes=/opt/local/include --with-tcltk-libs=/opt/local/lib --with-cxx --with-x --without-postgres --enable-largefile " returned error 1 Command output: checking for location of TIFF includes... checking for tiffio.h... yes checking for location of TIFF library... checking for TIFFOpen in -ltiff... no checking for TIFFOpen in -ltiff... no checking for TIFFOpen in -ltiff... no checking for TIFFOpen in -ltiff... no checking for TIFFOpen in -ltiff... yes checking whether to use PNG... yes checking for location of PNG includes... /opt/local/include checking for png.h... yes checking for location of PNG library... /opt/local/lib checking for png_read_image in -lpng... yes checking whether to use Tcl/Tk... yes checking for location of Tcl/Tk includes... /opt/local/include checking for tcl.h... yes checking for tk.h... yes checking Tcl version... 8.5 checking Tk version... 8.5 checking for location of Tcl/Tk library... /opt/local/lib checking for Tcl_Init in -ltcl... yes checking for Tk_MainWindow in -ltk... yes checking whether to use PostgreSQL... no checking whether to use MySQL... no checking whether to use SQLite... no checking whether to use FFMPEG... no checking whether to use OpenGL... yes checking for location of OpenGL includes... checking for GL/gl.h... no configure: error: *** Unable to locate OpenGL includes. Error: Status 1 encountered during processing. Before reporting a bug, first run the command again with the -d flag to get complete output. (mpro1 ~)
Change History (11)
comment:1 Changed 15 years ago by mf2k (Frank Schima)
comment:2 Changed 15 years ago by anand.prabhakar.patil@…
It's OS X 10.6.2, XCode 3.2.1. Outputs are:
(head-mac anand ~) port provides /opt/local/include/GL/gl.h /opt/local/include/GL/gl.h does not exist. (head-mac anand ~) port installed mesa None of the specified ports are installed. (head-mac anand ~)
Thanks!
comment:3 follow-up: 4 Changed 15 years ago by thomasgeo@…
Hi,
I do have the same problem. OS is as well OS X 10.6.2 and is XCode 3.2.1.
mesa was not installed but after I read this hear I did, doesn't help...
I also checked on gl.h at /opt/local/include/GL/gl.h with the same result.
However, I located the gl.h at '/Developer/SDKs/MacOSX10.6.sdk/usr/X11/include/GL/gl.h' and as well at '/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h'
Output is:
port provides /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h is not provided by a MacPorts port. port provides /Developer/SDKs/MacOSX10.6.sdk/usr/X11/include/GL/gl.h /Developer/SDKs/MacOSX10.6.sdk/usr/X11/include/GL/gl.h is not provided by a MacPorts port.
The problem could be this http://lists.apple.com/archives/mac-games-dev/2007/Jun/msg00030.html but I do not know how to tell the port to look for the header file at another place.
comment:4 Changed 15 years ago by mf2k (Frank Schima)
Replying to thomasgeo@…:
I do have the same problem. OS is as well OS X 10.6.2 and is XCode 3.2.1.
mesa was not installed but after I read this hear I did, doesn't help...
So you installed mesa and it still cannot find the file? Please tell me the output of the following:
port installed mesa port provides /opt/local/include/GL/gl.h
Did you clean grass and try again after installing mesa?
sudo port clean grass sudo port install grass
comment:5 Changed 15 years ago by thomasgeo@…
Hi macsforever,
Answer to your questions:
port installed mesa The following ports are currently installed: mesa @7.6.1_1+hw_render (active) port provides /opt/local/include/GL/gl.h /opt/local/include/GL/gl.h is provided by: mesa
So the header file is at the place where you expected it.
sudo port clean grass Password: ---> Cleaning grass sudo port install grass ---> Computing dependencies for grass ---> Fetching grass ---> Verifying checksum(s) for grass ---> Extracting grass ---> Applying patches to grass ---> Configuring grass Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gis_grass/work/grass-6.3.0" && ./configure --prefix=/opt/local --with-fftw-includes=/opt/local/include --with-fftw-libs=/opt/local/lib --with-freetype --with-freetype-includes=/opt/local/include/freetype2 --with-freetype-libs=/opt/local/lib --with-gdal=/opt/local/bin/gdal-config --with-jpeg-includes=/opt/local/include --with-jpeg-libs=/opt/local/lib --with-motif --with-motif-includes=/opt/local/include --with-motif-libs=/opt/local/lib --with-png-includes=/opt/local/include --with-png-libs=/opt/local/lib --with-proj-includes=/opt/local/include --with-proj-libs=/opt/local/lib --with-proj-share=/opt/local/share/proj --with-tcltk-includes=/opt/local/include --with-tcltk-libs=/opt/local/lib --with-cxx --with-x --without-postgres --enable-largefile " returned error 1 Command output: checking for TIFFOpen in -ltiff... no checking for TIFFOpen in -ltiff... yes checking whether to use PNG... yes checking for location of PNG includes... /opt/local/include checking for png.h... yes checking for location of PNG library... /opt/local/lib checking for png_read_image in -lpng... yes checking whether to use Tcl/Tk... yes checking for location of Tcl/Tk includes... /opt/local/include checking for tcl.h... yes checking for tk.h... yes checking Tcl version... 8.5 checking Tk version... 8.5 checking for location of Tcl/Tk library... /opt/local/lib checking for Tcl_Init in -ltcl... yes checking for Tk_MainWindow in -ltk... yes checking whether to use PostgreSQL... no checking whether to use MySQL... no checking whether to use SQLite... no checking whether to use FFMPEG... no checking whether to use OpenGL... yes checking for location of OpenGL includes... checking for GL/gl.h... yes checking for GL/glu.h... yes checking for location of OpenGL library... checking for glBegin in -lGL... no checking for glBegin in -lGL... no checking for glBegin in -lGL... no checking for glBegin in -lGL... no configure: error: *** Unable to locate OpenGL library. Error: Status 1 encountered during processing.
??? Any suggestions?
Thanks
comment:6 follow-up: 8 Changed 15 years ago by mf2k (Frank Schima)
Are you still seeing this issue? I have added mesa - which has been updated since this ticket opened - as a dependency because of #24739. Please run selfupdate and let me know the result.
comment:7 Changed 15 years ago by coateconnection (David Coate)
I can report the same error after the update for the mesa dependency on Leopard 10.5.8 on ppc.
checking for GL/glu.h... yes checking for location of OpenGL library... checking for glBegin in -lGL... no checking for glBegin in -lGL... no checking for glBegin in -lGL... no checking for glBegin in -lGL... no configure: error: *** Unable to locate OpenGL library.
comment:8 Changed 15 years ago by anand.prabhakar.patil@…
Replying to macsforever2000@…:
Are you still seeing this issue? I have added mesa - which has been updated since this ticket opened - as a dependency because of #24739. Please run selfupdate and let me know the result.
This is working for me now. Thanks! -Anand
comment:9 Changed 14 years ago by mf2k (Frank Schima)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:11 Changed 14 years ago by gcc@…
I'm new to Mac Ports and may not be doing things "right" -- i was used to the Debian Package manager ages ago and i'm not sure how Mac Ports is supposed to work. After some initial success with the Porticus interface, grass failed to install with the error message the original poster gave. I started using Mac Ports in the past week, so i should have caught any dependency on Mesa in installing Grass. Mesa was not listed in the dependencies when i ran
% port deps grass Full Name: grass @6.4.0RC6 Library Dependencies: fftw-3, freetype, gdal, geos, jpeg, libpng, openmotif, proj, tk, cairo, readline
Yesterday i installed all the dependencies from the command line, and today i have installed mesa.
% port installed mesa fftw-3 freetype gdal geos jpeg libpng openmotif proj tk cairo readline The following ports are currently installed: cairo @1.8.10_0+macosx (active) cairo @1.8.10_0+macosx+universal fftw-3 @3.2.2_0+i386 (active) freetype @2.3.12_0+macosx (active) freetype @2.3.12_0+macosx+universal gdal @1.6.2_3 (active) geos @3.2.2_0 (active) jpeg @8a_0 (active) jpeg @8a_0+universal libpng @1.2.43_0 (active) libpng @1.2.43_0+universal mesa @7.8.1_1+hw_render (active) openmotif @2.3.2_2 (active) openmotif @2.3.2_2+universal proj @4.7.0_0 (active) readline @6.1.000_1+darwin readline @6.1.000_1+darwin+universal (active) tk @8.5.8_0+darwin (active)
After " sudo port clean grass" the installation of grass via Porticus (/opt/local/bin/port install grass +sqlite3 +postgresql83 +ffmpeg +universal +mysql5) continues to fail.
The more simple install from the command line succeeds:
% sudo port install grass ---> Computing dependencies for grass ---> Fetching grass ---> Verifying checksum(s) for grass ---> Extracting grass ---> Applying patches to grass ---> Configuring grass ---> Building grass ---> Staging grass into destroot ---> Installing grass @6.4.0RC6_0 ---> Activating grass @6.4.0RC6_0 ---> Cleaning grass
Go figure. This doesn't seem "right" but i'm not sure if i should open this ticket.
Checked Porticus Log and verified "port selfupdate" ran. No ports are outdated. MacPorts 1.8.2 Xcode 3.2.2 OS X 10.6.3
FYI.
judith
What version of Mac OS X and Xcode are you running?
Also what is the output of the following?