-
Notifications
You must be signed in to change notification settings - Fork 164
Closed
Description
warning: raylib-sys@5.0.0: | ^
error: failed to run custom build command for `raylib-sys v5.0.0 (/home/lesco/dev/Rust/raylib1/raylib-rs/raylib-sys)`
Caused by:
process didn't exit successfully: `/home/lesco/dev/Rust/raylib1/target/debug/build/raylib-sys-50751d20c45ea423/build-script-build` (exit status: 1)
--- stdout
cargo:rerun-if-changed=build.rs
cargo:rerun-if-changed=./binding/binding.h
CMAKE_TOOLCHAIN_FILE_x86_64-unknown-linux-gnu = None
CMAKE_TOOLCHAIN_FILE_x86_64_unknown_linux_gnu = None
HOST_CMAKE_TOOLCHAIN_FILE = None
CMAKE_TOOLCHAIN_FILE = None
CMAKE_GENERATOR_x86_64-unknown-linux-gnu = None
CMAKE_GENERATOR_x86_64_unknown_linux_gnu = None
HOST_CMAKE_GENERATOR = None
CMAKE_GENERATOR = None
CMAKE_PREFIX_PATH_x86_64-unknown-linux-gnu = None
CMAKE_PREFIX_PATH_x86_64_unknown_linux_gnu = None
HOST_CMAKE_PREFIX_PATH = None
CMAKE_PREFIX_PATH = None
CMAKE_x86_64-unknown-linux-gnu = None
CMAKE_x86_64_unknown_linux_gnu = None
HOST_CMAKE = None
CMAKE = None
running: cd "/home/lesco/dev/Rust/raylib1/target/debug/build/raylib-sys-eab0a37cca98328e/out/build" && CMAKE_PREFIX_PATH="" "cmake" "/home/lesco/dev/Rust/raylib1/target/debug/build/raylib-sys-eab0a37cca98328e/out/raylib" "-DCMAKE_BUILD_TYPE=Debug" "-DBUILD_EXAMPLES=OFF" "-DCMAKE_BUILD_TYPE=Debug" "-DSUPPORT_BUSY_WAIT_LOOP=OFF" "-DSUPPORT_FILEFORMAT_JPG=ON" "-DRAYMATH_STATIC_INLINE=ON" "-DUSE_WAYLAND=ON" "-DUSE_EXTERNAL_GLFW=ON" "-DOPENGL_VERSION=OFF" "-DPLATFORM=Desktop" "-DCMAKE_INSTALL_PREFIX=/home/lesco/dev/Rust/raylib1/target/debug/build/raylib-sys-eab0a37cca98328e/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_ASM_COMPILER=/usr/bin/cc"
-- 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: /usr/bin/cc - 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: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_HAS_THOSE_TOGGLES
-- Performing Test COMPILER_HAS_THOSE_TOGGLES - Success
-- Testing if -Werror=pointer-arith can be used -- compiles
-- Testing if -Werror=implicit-function-declaration can be used -- compiles
-- Testing if -fno-strict-aliasing can be used -- compiles
-- Using external GLFW
-- Audio Backend: miniaudio
-- Building raylib static library
-- Generated build type: Debug
-- Compiling with the flags:
-- PLATFORM=PLATFORM_DESKTOP
-- GRAPHICS=GRAPHICS_API_OPENGL_33
-- Configuring done
-- Generating done
-- Build files have been written to: /home/lesco/dev/Rust/raylib1/target/debug/build/raylib-sys-eab0a37cca98328e/out/build
running: cd "/home/lesco/dev/Rust/raylib1/target/debug/build/raylib-sys-eab0a37cca98328e/out/build" && MAKEFLAGS="-j --jobserver-fds=8,9 --jobserver-auth=8,9" "cmake" "--build" "." "--target" "install" "--config" "Debug"
[ 37%] Building C object raylib/CMakeFiles/raylib.dir/utils.c.o
[ 50%] Building C object raylib/CMakeFiles/raylib.dir/text.c.o
[ 50%] Building C object raylib/CMakeFiles/raylib.dir/shapes.c.o
[ 50%] Building C object raylib/CMakeFiles/raylib.dir/models.c.o
[ 62%] Building C object raylib/CMakeFiles/raylib.dir/textures.c.o
[ 75%] Building C object raylib/CMakeFiles/raylib.dir/core.c.o
[ 87%] Building C object raylib/CMakeFiles/raylib.dir/raudio.c.o
[100%] Linking C static library libraylib.a
[100%] Built target raylib
Install the project...
-- Install configuration: "Debug"
-- Installing: /home/lesco/dev/Rust/raylib1/target/debug/build/raylib-sys-eab0a37cca98328e/out/lib/libraylib.a
-- Installing: /home/lesco/dev/Rust/raylib1/target/debug/build/raylib-sys-eab0a37cca98328e/out/include/raylib.h
-- Installing: /home/lesco/dev/Rust/raylib1/target/debug/build/raylib-sys-eab0a37cca98328e/out/include/rlgl.h
-- Installing: /home/lesco/dev/Rust/raylib1/target/debug/build/raylib-sys-eab0a37cca98328e/out/include/physac.h
-- Installing: /home/lesco/dev/Rust/raylib1/target/debug/build/raylib-sys-eab0a37cca98328e/out/include/raymath.h
-- Installing: /home/lesco/dev/Rust/raylib1/target/debug/build/raylib-sys-eab0a37cca98328e/out/include/raudio.h
-- Installing: /home/lesco/dev/Rust/raylib1/target/debug/build/raylib-sys-eab0a37cca98328e/out/lib/pkgconfig/raylib.pc
-- Installing: /home/lesco/dev/Rust/raylib1/target/debug/build/raylib-sys-eab0a37cca98328e/out/lib/cmake/raylib/raylib-config-version.cmake
-- Installing: /home/lesco/dev/Rust/raylib1/target/debug/build/raylib-sys-eab0a37cca98328e/out/lib/cmake/raylib/raylib-config.cmake
cargo:root=/home/lesco/dev/Rust/raylib1/target/debug/build/raylib-sys-eab0a37cca98328e/out
cargo:rustc-link-search=native=/home/lesco/dev/Rust/raylib1/target/debug/build/raylib-sys-eab0a37cca98328e/out/lib
cargo:rustc-link-search=/usr/local/lib
cargo:rustc-link-lib=wayland-client
cargo:rustc-link-lib=glfw
cargo:rustc-link-lib=static=raylib
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("0")
HOST = Some("x86_64-unknown-linux-gnu")
cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu
CC_x86_64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu
CC_x86_64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_CC
HOST_CC = None
cargo:rerun-if-env-changed=CC
CC = None
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
CFLAGS_x86_64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
CFLAGS_x86_64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_CFLAGS
HOST_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
cargo:warning=In file included from binding/rgui_wrapper.c:7:
cargo:warning=binding/raygui.h: In function ‘GuiTextBox’:
cargo:warning=binding/raygui.h:2632:17: warning: implicit declaration of function ‘GetCodepointNext’; did you mean ‘GetCodepoints’? [-Wimplicit-function-declaration]
cargo:warning= 2632 | GetCodepointNext(text + textIndexOffset, &nextCodepointSize);
cargo:warning= | ^~~~~~~~~~~~~~~~
cargo:warning= | GetCodepoints
cargo:warning=binding/raygui.h:2649:39: warning: implicit declaration of function ‘CodepointToUTF8’; did you mean ‘CodepointToUtf8’? [-Wimplicit-function-declaration]
cargo:warning= 2649 | const char *charEncoded = CodepointToUTF8(codepoint, &codepointSize);
cargo:warning= | ^~~~~~~~~~~~~~~
cargo:warning= | CodepointToUtf8
cargo:warning=binding/raygui.h:2649:39: warning: initialization of ‘const char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
cargo:warning=binding/raygui.h:2707:21: warning: implicit declaration of function ‘GetCodepointPrevious’; did you mean ‘GetCodepointsCount’? [-Wimplicit-function-declaration]
cargo:warning= 2707 | GetCodepointPrevious(text + textBoxCursorIndex, &prevCodepointSize);
cargo:warning= | ^~~~~~~~~~~~~~~~~~~~
cargo:warning= | GetCodepointsCount
cargo:warning=binding/raygui.h:2767:32: error: ‘Font’ has no member named ‘glyphs’
cargo:warning= 2767 | if (guiFont.glyphs[codepointIndex].advanceX == 0)
cargo:warning= | ^
cargo:warning=binding/raygui.h:2770:53: error: ‘Font’ has no member named ‘glyphs’
cargo:warning= 2770 | glyphWidth = ((float)guiFont.glyphs[codepointIndex].advanceX * scaleFactor);
cargo:warning= | ^
cargo:warning=binding/raygui.h: In function ‘GuiLoadStyle’:
cargo:warning=binding/raygui.h:4194:38: warning: implicit declaration of function ‘LoadCodepoints’; did you mean ‘GetCodepoints’? [-Wimplicit-function-declaration]
cargo:warning= 4194 | codepoints = LoadCodepoints(textData, &codepointCount);
cargo:warning= | ^~~~~~~~~~~~~~
cargo:warning= | GetCodepoints
cargo:warning=binding/raygui.h:4194:36: warning: assignment to ‘int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
cargo:warning= 4194 | codepoints = LoadCodepoints(textData, &codepointCount);
cargo:warning= | ^
cargo:warning=binding/raygui.h:4218:21: warning: implicit declaration of function ‘UnloadCodepoints’; did you mean ‘GetCodepoints’? [-Wimplicit-function-declaration]
cargo:warning= 4218 | UnloadCodepoints(codepoints);
cargo:warning= | ^~~~~~~~~~~~~~~~
cargo:warning= | GetCodepoints
cargo:warning=binding/raygui.h:4220:55: error: ‘Font’ has no member named ‘glyphCount’
cargo:warning= 4220 | if ((font.texture.id > 0) && (font.glyphCount > 0))
cargo:warning= | ^
cargo:warning=In file included from binding/rgui_wrapper.c:1:
cargo:warning=binding/raygui.h: In function ‘GuiLoadStyleDefault’:
cargo:warning=binding/raygui.h:4351:24: error: ‘Font’ has no member named ‘glyphs’
cargo:warning= 4351 | RL_FREE(guiFont.glyphs);
cargo:warning= | ^
cargo:warning=binding/../raylib/src/raylib.h:118:38: note: in definition of macro ‘RL_FREE’
cargo:warning= 118 | #define RL_FREE(ptr) free(ptr)
cargo:warning= | ^~~
cargo:warning=In file included from binding/rgui_wrapper.c:7:
cargo:warning=binding/raygui.h:4353:16: error: ‘Font’ has no member named ‘glyphs’
cargo:warning= 4353 | guiFont.glyphs = NULL;
cargo:warning= | ^
cargo:warning=binding/raygui.h: In function ‘GuiLoadStyleFromMemory’:
cargo:warning=binding/raygui.h:4575:25: error: ‘Font’ has no member named ‘glyphCount’
cargo:warning= 4575 | memcpy(&font.glyphCount, fileDataPtr + 4, sizeof(int));
cargo:warning= | ^
cargo:warning=binding/raygui.h:4632:40: error: ‘Font’ has no member named ‘glyphCount’
cargo:warning= 4632 | int recsDataSize = font.glyphCount * sizeof(Rectangle);
cargo:warning= | ^
cargo:warning=In file included from binding/rgui_wrapper.c:7:
cargo:warning=binding/raygui.h:4663:64: error: ‘Font’ has no member named ‘glyphCount’
cargo:warning= 4663 | font.recs = (Rectangle *)RAYGUI_CALLOC(font.glyphCount, sizeof(Rectangle));
cargo:warning= | ^
cargo:warning=binding/raygui.h:350:37: note: in definition of macro ‘RAYGUI_CALLOC’
cargo:warning= 350 | #define RAYGUI_CALLOC(n, sz) calloc(n, sz)
cargo:warning= | ^
cargo:warning=In file included from binding/rgui_wrapper.c:7:
cargo:warning=binding/raygui.h:4664:45: error: ‘Font’ has no member named ‘glyphCount’
cargo:warning= 4664 | for (int i = 0; i < font.glyphCount; i++)
cargo:warning= | ^
cargo:warning=binding/raygui.h:4672:42: error: ‘Font’ has no member named ‘glyphCount’
cargo:warning= 4672 | int glyphsDataSize = font.glyphCount * 16; // 16 bytes data per glyph
cargo:warning= | ^
cargo:warning=binding/raygui.h:4684:21: error: ‘Font’ has no member named ‘glyphs’
cargo:warning= 4684 | font.glyphs = (GlyphInfo *)RAYGUI_CALLOC(font.glyphCount, sizeof(GlyphInfo));
cargo:warning= | ^
cargo:warning=binding/raygui.h:4684:32: error: ‘GlyphInfo’ undeclared (first use in this function)
cargo:warning= 4684 | font.glyphs = (GlyphInfo *)RAYGUI_CALLOC(font.glyphCount, sizeof(GlyphInfo));
cargo:warning= | ^~~~~~~~~
cargo:warning=binding/raygui.h:4684:32: note: each undeclared identifier is reported only once for each function it appears in
cargo:warning=binding/raygui.h:4684:43: error: expected expression before ‘)’ token
cargo:warning= 4684 | font.glyphs = (GlyphInfo *)RAYGUI_CALLOC(font.glyphCount, sizeof(GlyphInfo));
cargo:warning= | ^
cargo:warning=binding/raygui.h:4703:45: error: ‘Font’ has no member named ‘glyphCount’
cargo:warning= 4703 | for (int i = 0; i < font.glyphCount; i++)
cargo:warning= | ^
cargo:warning=binding/raygui.h:4705:37: error: ‘Font’ has no member named ‘glyphs’
cargo:warning= 4705 | memcpy(&font.glyphs[i].value, glyphsDataUncompPtr, sizeof(int));
cargo:warning= | ^
cargo:warning=binding/raygui.h:4706:37: error: ‘Font’ has no member named ‘glyphs’
cargo:warning= 4706 | memcpy(&font.glyphs[i].offsetX, glyphsDataUncompPtr + 4, sizeof(int));
cargo:warning= | ^
cargo:warning=binding/raygui.h:4707:37: error: ‘Font’ has no member named ‘glyphs’
cargo:warning= 4707 | memcpy(&font.glyphs[i].offsetY, glyphsDataUncompPtr + 8, sizeof(int));
cargo:warning= | ^
cargo:warning=binding/raygui.h:4708:37: error: ‘Font’ has no member named ‘glyphs’
cargo:warning= 4708 | memcpy(&font.glyphs[i].advanceX, glyphsDataUncompPtr + 12, sizeof(int));
cargo:warning= | ^
cargo:warning=binding/raygui.h:4718:45: error: ‘Font’ has no member named ‘glyphCount’
cargo:warning= 4718 | for (int i = 0; i < font.glyphCount; i++)
cargo:warning= | ^
cargo:warning=binding/raygui.h:4720:37: error: ‘Font’ has no member named ‘glyphs’
cargo:warning= 4720 | memcpy(&font.glyphs[i].value, fileDataPtr, sizeof(int));
cargo:warning= | ^
cargo:warning=binding/raygui.h:4721:37: error: ‘Font’ has no member named ‘glyphs’
cargo:warning= 4721 | memcpy(&font.glyphs[i].offsetX, fileDataPtr + 4, sizeof(int));
cargo:warning= | ^
cargo:warning=binding/raygui.h:4722:37: error: ‘Font’ has no member named ‘glyphs’
cargo:warning= 4722 | memcpy(&font.glyphs[i].offsetY, fileDataPtr + 8, sizeof(int));
cargo:warning= | ^
cargo:warning=binding/raygui.h:4723:37: error: ‘Font’ has no member named ‘glyphs’
cargo:warning= 4723 | memcpy(&font.glyphs[i].advanceX, fileDataPtr + 12, sizeof(int));
cargo:warning= | ^
cargo:warning=binding/raygui.h: In function ‘GetTextWidth’:
cargo:warning=binding/raygui.h:4796:28: error: ‘Font’ has no member named ‘glyphs’
cargo:warning= 4796 | if (guiFont.glyphs[codepointIndex].advanceX == 0)
cargo:warning= | ^
cargo:warning=binding/raygui.h:4799:49: error: ‘Font’ has no member named ‘glyphs’
cargo:warning= 4799 | glyphWidth = ((float)guiFont.glyphs[codepointIndex].advanceX * scaleFactor);
cargo:warning= | ^
cargo:warning=binding/raygui.h: In function ‘GetNextSpaceWidth’:
cargo:warning=binding/raygui.h:4929:25: warning: implicit declaration of function ‘GetCodepoint’; did you mean ‘GetCodepoints’? [-Wimplicit-function-declaration]
cargo:warning= 4929 | codepoint = GetCodepoint(&text[i], &codepointByteCount);
cargo:warning= | ^~~~~~~~~~~~
cargo:warning= | GetCodepoints
cargo:warning=binding/raygui.h:4931:34: error: ‘Font’ has no member named ‘glyphs’
cargo:warning= 4931 | glyphWidth = (guiFont.glyphs[index].advanceX == 0) ? guiFont.recs[index].width * scaleFactor : guiFont.glyphs[index].advanceX * scaleFactor;
cargo:warning= | ^
cargo:warning=binding/raygui.h:4931:115: error: ‘Font’ has no member named ‘glyphs’
cargo:warning= 4931 | glyphWidth = (guiFont.glyphs[index].advanceX == 0) ? guiFont.recs[index].width * scaleFactor : guiFont.glyphs[index].advanceX * scaleFactor;
cargo:warning= | ^
cargo:warning=binding/raygui.h: In function ‘GuiDrawText’:
cargo:warning=binding/raygui.h:5083:24: error: ‘Font’ has no member named ‘glyphs’
cargo:warning= 5083 | if (guiFont.glyphs[index].advanceX == 0)
cargo:warning= | ^
cargo:warning=binding/raygui.h:5086:44: error: ‘Font’ has no member named ‘glyphs’
cargo:warning= 5086 | glyphWidth = (float)guiFont.glyphs[index].advanceX * scaleFactor;
cargo:warning= | ^
cargo:warning=binding/raygui.h:5171:28: error: ‘Font’ has no member named ‘glyphs’
cargo:warning= 5171 | if (guiFont.glyphs[index].advanceX == 0)
cargo:warning= | ^
cargo:warning=binding/raygui.h:5174:51: error: ‘Font’ has no member named ‘glyphs’
cargo:warning= 5174 | textOffsetX += ((float)guiFont.glyphs[index].advanceX * scaleFactor + (float)GuiGetStyle(DEFAULT, TEXT_SPACING));
cargo:warning= | ^
--- stderr
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindOpenGL.cmake:315 (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: /usr/lib/x86_64-linux-gnu/libGL.so
and GLVND libraries for OpenGL and GLX:
OPENGL_opengl_LIBRARY: /usr/lib/x86_64-linux-gnu/libOpenGL.so
OPENGL_glx_LIBRARY: /usr/lib/x86_64-linux-gnu/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):
cmake/LibraryConfigurations.cmake:20 (find_package)
src/CMakeLists.txt:56 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_ASM_COMPILER
CMAKE_ASM_FLAGS
RAYMATH_STATIC_INLINE
error occurred: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-I" "binding" "-o" "/home/lesco/dev/Rust/raylib1/target/debug/build/raylib-sys-eab0a37cca98328e/out/d04fc7d0fd339afd-rgui_wrapper.o" "-c" "binding/rgui_wrapper.c" with args cc did not execute successfully (status code exit status: 1).
Metadata
Metadata
Assignees
Labels
No labels