Opened 10 years ago

Closed 10 years ago

#41389 closed defect (fixed)

glfw @3.0.3_20131114 configure failure: command execution failed

Reported by: liuyuanzhi@… Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: awwbees@…
Port: glfw

Description

sudo port install glfw
Password:
--->  Computing dependencies for glfw
--->  Configuring glfw
Error: org.macports.configure for port glfw returned: configure failure: command execution failed
Please see the log file for port glfw for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_glfw/glfw/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port glfw failed
:info:configure CMake Error at /opt/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
:info:configure   Could NOT find OpenGL (missing: OPENGL_INCLUDE_DIR)
:info:configure Call Stack (most recent call first):
:info:configure   /opt/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
:info:configure   /opt/local/share/cmake-2.8/Modules/FindOpenGL.cmake:161 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
:info:configure   CMakeLists.txt:68 (find_package)
:info:configure 
:info:configure 
:info:configure -- Configuring incomplete, errors occurred!
:info:configure See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_glfw/glfw/work/build/CMakeFiles/CMakeOutput.log".
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_glfw/glfw/work/build" && /opt/local/bin/cmake -DCMAKE_INSTALL_PREFIX=/opt/local -DBUILD_SHARED_LIBS=on -DGLFW_BUILD_EXAMPLES=off -DGLFW_BUILD_TESTS=off -DDOXYGEN_EXECUTABLE=/opt/local/bin/doxygen -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_SYSROOT=/ -DCMAKE_OSX_DEPLOYMENT_TARGET="" ../glfw-45368f410ace3c995e0eb3160d4f6230e4379da6 
:info:configure Exit code: 1
:error:configure org.macports.configure for port glfw returned: configure failure: command execution failed

Attachments (2)

main.log (19.6 KB) - added by liuyuanzhi@… 10 years ago.
main.2.log (16.2 KB) - added by awwbees@… 10 years ago.

Download all attachments as: .zip

Change History (11)

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to michaelld@…

Please clean glfw and try again, then attach the new main.log file.

comment:2 Changed 10 years ago by michaelld (Michael Dickens)

In other words, if this is still an issue do the following:

sudo port clean glfw
sudo port selfupdate
sudo port install glfw

and, if the last command fails, then post the log file found via

port logfile glfw

Changed 10 years ago by liuyuanzhi@…

Attachment: main.log added

comment:3 Changed 10 years ago by awwbees@…

Cc: awwbees@… added

Cc Me!

Changed 10 years ago by awwbees@…

Attachment: main.2.log added

comment:4 Changed 10 years ago by awwbees@…

I am having the same issue, similar log attached.

comment:5 Changed 10 years ago by michaelld (Michael Dickens)

The issue is:

:info:configure CMake Error at /opt/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
:info:configure   Could NOT find OpenGL (missing: OPENGL_INCLUDE_DIR)
:info:configure Call Stack (most recent call first):
:info:configure   /opt/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
:info:configure   /opt/local/share/cmake-2.8/Modules/FindOpenGL.cmake:161 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
:info:configure   CMakeLists.txt:68 (find_package)

Does "/System/Library/Frameworks/OpenGL.framework" exist on your computer? That's what OPENGL_INCLUDE_DIR is set to on my computer's build. But, I'm running on 10.8, not 10.9. I will try out 10.9 tomorrow morning.

comment:6 Changed 10 years ago by michaelld (Michael Dickens)

On my 10.9 boot this morning, and glfw configures just fine for me. OPENGL_INCLUDE_DIR is set to "/System/Library/Frameworks/OpenGL.framework", as desired/expected. Maybe folks with this issue need to go into Xcode and install the command-line tools and related downloads?

comment:7 Changed 10 years ago by liuyuanzhi@…

installation with the new version @3.0.3_20131120_0 ok now.

comment:8 Changed 10 years ago by liuyuanzhi@…

This is weird, I don't access my machine for a whole week and change nothing. I read the glfw port source, only update to new upstream version. but the issue just gone

comment:9 Changed 10 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

Maybe something was fixed upstream that made finding OpenGL more robust? I'm glad it's working for you, no matter how you got there. Thanks for reporting back!

Note: See TracTickets for help on using tickets.