Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hello world opengl #19

Closed
wants to merge 1 commit into from
Closed

Hello world opengl #19

wants to merge 1 commit into from

Conversation

ipatch
Copy link
Owner

@ipatch ipatch commented Oct 27, 2024

No description provided.

@ipatch
Copy link
Owner Author

ipatch commented Oct 27, 2024

current build error on linux hosted github runner

-- Found OpenGL: /home/linuxbrew/.linuxbrew/opt/mesa/lib/libGL.so
2024-10-27T23:10:11.6399063Z -- WARNING: you are using the obsolete 'GLU' package, please use 'OpenGL' instead
2024-10-27T23:10:11.6400437Z CMake Error at /home/linuxbrew/.linuxbrew/Cellar/cmake/3.30.5/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
2024-10-27T23:10:11.6401443Z   Could NOT find GLEW (missing: GLEW_INCLUDE_DIRS GLEW_LIBRARIES)
2024-10-27T23:10:11.6402076Z Call Stack (most recent call first):
2024-10-27T23:10:11.6402925Z   /home/linuxbrew/.linuxbrew/Cellar/cmake/3.30.5/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
2024-10-27T23:10:11.6404173Z   /home/linuxbrew/.linuxbrew/Cellar/cmake/3.30.5/share/cmake/Modules/FindGLEW.cmake:245 (find_package_handle_standard_args)
2024-10-27T23:10:11.6405050Z   CMakeLists.txt:9 (find_package)
2024-10-27T23:10:11.6405301Z 
2024-10-27T23:10:11.6405305Z 
2024-10-27T23:10:11.6405519Z -- Configuring incomplete, errors occurred!
2024-10-27T23:10:11.6405970Z -- Cache values

@ipatch
Copy link
Owner Author

ipatch commented Oct 27, 2024

024-10-27T23:27:09.7783100Z CMake Error: Parse error in command line argument: OPENGL_glu_INCLUDE_DIR
2024-10-27T23:27:09.7783880Z  Should be: VAR:type=value
2024-10-27T23:27:09.7784160Z 
2024-10-27T23:27:09.7784540Z CMake Error: Run 'cmake --help' for all supported options.
2024-10-27T23:27:09.7785200Z -- Cache values
2024-10-27T23:27:09.7785410Z 

@ipatch
Copy link
Owner Author

ipatch commented Oct 28, 2024

==> brew audit --formula ipatch/us-05/hello_world_opengl --online --new
==> FAILED
Full audit --formula ipatch/us-05/hello_world_opengl --online --new output
  ipatch/us-05/hello_world_opengl
    * Stable: The source URL https://gist.github.com/ipatch/8517a5914d56c45b0ebc4dd4df5160c4/archive/refs/heads/main.tar.gz is not reachable (HTTP status code 404)
  Error: 1 problem in 1 formula detected.
  Error: Stable: The source URL https://gist.github.com/ipatch/8517a5914d56c45b0ebc4dd4df5160c4/archive/refs/heads/main.tar.gz is not reachable (HTTP status code 404)
==> FAILED ipatch/us-05/hello_world_opengl
Error: install failed

@ipatch
Copy link
Owner Author

ipatch commented Oct 28, 2024

  Call Stack (most recent call first):
    CMakeLists.txt:7 (find_package)
  This warning is for project developers.  Use -Wno-dev to suppress it.
  -- Found OpenGL: /home/linuxbrew/.linuxbrew/opt/mesa/lib/libGL.so
  -- Found GLU headers: /home/linuxbrew/.linuxbrew/include
  -- ------------------------------------------------------
  -- ipatch foo 4                                          
  -- ------------------------------------------------------
  -- Found GLEW: /home/linuxbrew/.linuxbrew/lib/cmake/glew/glew-config.cmake
  CMake Error at /home/linuxbrew/.linuxbrew/Cellar/cmake/3.30.5/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
    Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
  Call Stack (most recent call first):
    /home/linuxbrew/.linuxbrew/Cellar/cmake/3.30.5/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
    /home/linuxbrew/.linuxbrew/Cellar/cmake/3.30.5/share/cmake/Modules/FindPkgConfig.cmake:114 (find_package_handle_standard_args)
    CMakeLists.txt:30 (find_package)
  -- Configuring incomplete, errors occurred!
  -- Cache values
  CMAKE_BUILD_TYPE:STRING=RelWithDebInfo
  CMAKE_INSTALL_PREFIX:PATH=/home/linuxbrew/.linuxbrew/Cellar/hello_world_opengl/1.0
  GLEW_DIR:PATH=/home/linuxbrew/.linuxbrew/lib/cmake/glew

@ipatch ipatch force-pushed the hello-world-opengl branch 3 times, most recently from 32938dd to 369bdda Compare October 28, 2024 17:01
@ipatch
Copy link
Owner Author

ipatch commented Oct 28, 2024

current CI error on ubuntu runner

  CMake Error at CMakeLists.txt:38 (target_link_libraries):
    Target "hello_world_opengl" links to:
      OpenGL::GLU
    but the target was not found.  Possible reasons include:
      * There is a typo in the target name.
      * A find_package call is missing for an IMPORTED target.
      * An ALIAS target is missing.
  -- Generating done (0.0s)
  CMake Generate step failed.  Build files cannot be regenerated correctly.
  -- Cache values

@ipatch
Copy link
Owner Author

ipatch commented Oct 29, 2024

doesn't seem to be using the latest version

-S . -B _build
  -- The C compiler identification is GNU 11.4.0
  -- The CXX compiler identification is GNU 11.4.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/gcc-11 - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/g++-11 - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  CMake Warning (dev) at /home/linuxbrew/.linuxbrew/Cellar/cmake/3.30.5/share/cmake/Modules/FindOpenGL.cmake:415 (message):
    Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
    available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
    cmake_policy command to set the policy and suppress this warning.
  
    FindOpenGL found both a legacy GL library:
  
      OPENGL_gl_LIBRARY: /home/linuxbrew/.linuxbrew/opt/mesa/lib/libGL.so
  
    and GLVND libraries for OpenGL and GLX:
  
      OPENGL_opengl_LIBRARY: /home/linuxbrew/.linuxbrew/opt/mesa/lib/libGL.so
      OPENGL_glx_LIBRARY: /home/linuxbrew/.linuxbrew/opt/xorg-server/lib/xorg/modules/extensions/libglx.so
  
    OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
    compatibility with CMake 3.10 and below the legacy GL library will be used.
  Call Stack (most recent call first):
    CMakeLists.txt:7 (find_package)
  This warning is for project developers.  Use -Wno-dev to suppress it.
  
  -- Found OpenGL: /home/linuxbrew/.linuxbrew/opt/mesa/lib/libGL.so
  -- Found GLU headers: /home/linuxbrew/.linuxbrew/include
  -- ------------------------------------------------------
  -- ipatch foo 4                                          
  -- ------------------------------------------------------
  -- Found GLEW: /home/linuxbrew/.linuxbrew/lib/cmake/glew/glew-config.cmake
  -- Found PkgConfig: /home/linuxbrew/.linuxbrew/bin/pkg-config (found version "0.29.2")
  -- Checking for one of the modules 'glfw3'
  -- Configuring done (0.9s)
  CMake Error at CMakeLists.txt:38 (target_link_libraries):
    Target "hello_world_opengl" links to:
  
      OpenGL::GLU
  
    but the target was not found.  Possible reasons include:
  
      * There is a typo in the target name.
      * A find_package call is missing for an IMPORTED target.
      * An ALIAS target is missing.
  
  

@ipatch ipatch force-pushed the hello-world-opengl branch 6 times, most recently from 8b2cb95 to 3dbc896 Compare October 31, 2024 20:03
@ipatch
Copy link
Owner Author

ipatch commented Oct 31, 2024

well seemed to have resolved the build errors with ubuntu, but now getting build error with macos

==> FAILED
Full install --formula --build-bottle ipatch/us-05/hello_world_opengl output
Truncated install --formula --build-bottle ipatch/us-05/hello_world_opengl output
  Error: 
  Run Build Command(s): ninja -v
  [1/2] /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang++  -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/usr/local/Cellar/glfw/3.4/include -O2 -g -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -F/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks -MD -MT CMakeFiles/hello_world_opengl.dir/hello_world_opengl.cpp.o -MF CMakeFiles/hello_world_opengl.dir/hello_world_opengl.cpp.o.d -o CMakeFiles/hello_world_opengl.dir/hello_world_opengl.cpp.o -c /tmp/hello_world_opengl-20241031-6403-j9x7e8/8517a5914d56c45b0ebc4dd4df5160c4-c6f84183acd7ab04a69d731f34813bdcaaaa1b02/hello_world_opengl.cpp
  FAILED: CMakeFiles/hello_world_opengl.dir/hello_world_opengl.cpp.o 
  /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang++  -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/usr/local/Cellar/glfw/3.4/include -O2 -g -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -F/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks -MD -MT CMakeFiles/hello_world_opengl.dir/hello_world_opengl.cpp.o -MF CMakeFiles/hello_world_opengl.dir/hello_world_opengl.cpp.o.d -o CMakeFiles/hello_world_opengl.dir/hello_world_opengl.cpp.o -c /tmp/hello_world_opengl-20241031-6403-j9x7e8/8517a5914d56c45b0ebc4dd4df5160c4-c6f84183acd7ab04a69d731f34813bdcaaaa1b02/hello_world_opengl.cpp
  /tmp/hello_world_opengl-20241031-6403-j9x7e8/8517a5914d56c45b0ebc4dd4df5160c4-c6f84183acd7ab04a69d731f34813bdcaaaa1b02/hello_world_opengl.cpp:3:10: fatal error: 'GL/glu.h' file not found
  #include <GL/glu.h>
           ^~~~~~~~~~
  1 error generated.
  ninja: build stopped: subcommand failed.

@ipatch ipatch force-pushed the hello-world-opengl branch 4 times, most recently from dc7bdf7 to bc6296f Compare October 31, 2024 22:04
@ipatch
Copy link
Owner Author

ipatch commented Oct 31, 2024

macos 13 github runner

  -- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework
  -- WARNING: you are using the obsolete 'GLU' package, please use 'OpenGL' instead
  -- Found GLU headers: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers
  -- ------------------------------------------------------
  -- ipatch foo 8                                          
  -- opengl_glu_library=              
  -- ------------------------------------------------------
  -- Found GLEW: /usr/local/lib/cmake/glew/glew-config.cmake
  -- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2")
  -- Checking for one of the modules 'glfw3'
  -- Configuring done (4.6s)
  -- Generating done (0.1s)
  CMake Warning:
    Manually-specified variables were not used by the project:
      HOMEBREW_PREFIX
  -- Build files have been written to: /tmp/hello_world_opengl-20241031-7948-27xiow/8517a5914d56c45b0ebc4dd4df5160c4-f62a856dbc050ff7c28e4a6d9ae0999165aa31f3/_build
  -- Cache values
  CMAKE_BUILD_TYPE:STRING=RelWithDebInfo
  CMAKE_INSTALL_PREFIX:PATH=/usr/local/Cellar/hello_world_opengl/1.0
  CMAKE_OSX_ARCHITECTURES:STRING=
  CMAKE_OSX_DEPLOYMENT_TARGET:STRING=
  CMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
  GLEW_DIR:PATH=/usr/local/lib/cmake/glew
  ==> cmake --build _build
  Change Dir: '/tmp/hello_world_opengl-20241031-7948-27xiow/8517a5914d56c45b0ebc4dd4df5160c4-f62a856dbc050ff7c28e4a6d9ae0999165aa31f3/_build'
  Run Build Command(s): ninja -v
  [1/2] /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang++  -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/usr/local/Cellar/glfw/3.4/include -O2 -g -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -F/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks -MD -MT CMakeFiles/hello_world_opengl.dir/hello_world_opengl.cpp.o -MF CMakeFiles/hello_world_opengl.dir/hello_world_opengl.cpp.o.d -o CMakeFiles/hello_world_opengl.dir/hello_world_opengl.cpp.o -c /tmp/hello_world_opengl-20241031-7948-27xiow/8517a5914d56c45b0ebc4dd4df5160c4-f62a856dbc050ff7c28e4a6d9ae0999165aa31f3/hello_world_opengl.cpp
  FAILED: CMakeFiles/hello_world_opengl.dir/hello_world_opengl.cpp.o 
  /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang++  -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/usr/local/Cellar/glfw/3.4/include -O2 -g -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -F/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks -MD -MT CMakeFiles/hello_world_opengl.dir/hello_world_opengl.cpp.o -MF CMakeFiles/hello_world_opengl.dir/hello_world_opengl.cpp.o.d -o CMakeFiles/hello_world_opengl.dir/hello_world_opengl.cpp.o -c /tmp/hello_world_opengl-20241031-7948-27xiow/8517a5914d56c45b0ebc4dd4df5160c4-f62a856dbc050ff7c28e4a6d9ae0999165aa31f3/hello_world_opengl.cpp
  /tmp/hello_world_opengl-20241031-7948-27xiow/8517a5914d56c45b0ebc4dd4df5160c4-f62a856dbc050ff7c28e4a6d9ae0999165aa31f3/hello_world_opengl.cpp:3:10: fatal error: 'GL/glu.h' file not found
  #include <GL/glu.h>
           ^~~~~~~~~~
  1 error generated.
  ninja: build stopped: subcommand failed.

@ipatch ipatch force-pushed the hello-world-opengl branch 5 times, most recently from fae5f7c to c1c7587 Compare November 1, 2024 20:43
@ipatch ipatch force-pushed the hello-world-opengl branch from c1c7587 to 73c087a Compare November 1, 2024 20:57
@ipatch ipatch self-assigned this Nov 1, 2024
@ipatch ipatch added the pr-pull upload bottle and update formula label Nov 1, 2024
@github-actions github-actions bot closed this in f0e0725 Nov 1, 2024
@github-actions github-actions bot closed this Nov 1, 2024
@github-actions github-actions bot deleted the hello-world-opengl branch November 1, 2024 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-pull upload bottle and update formula
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant