Open wisonye opened 1 year ago
@wisonye An issue with FreeBSD was fixed yesterday, please, try with latest raylib master branch from github.
@wisonye An issue with FreeBSD was fixed yesterday, please, try with latest raylib master branch from github.
I just gave it a try, but fail to compile the latest master
with the commit ([Update BINDINGS.md for raylib Odin 4.5 (]
I wison | /home/wison/temp/raylib mkdir build
I wison | /home/wison/temp/raylib cd build && cmake -DCMAKE_C_COMPILER=/usr/local/llvm15/bin/clang ..
-- The C compiler identification is Clang 15.0.6
-- The CXX compiler identification is Clang 15.0.6
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/local/llvm15/bin/clang - 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/local/llvm15/bin/clang++ - 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
-- Setting build type to 'Debug' as none was specified.
-- Using raylib's GLFW
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Including X11 support
-- Found X11: /usr/local/include
-- Looking for XOpenDisplay in /usr/local/lib/libX11.so;/usr/local/lib/libXext.so
-- Looking for XOpenDisplay in /usr/local/lib/libX11.so;/usr/local/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Audio Backend: miniaudio
-- Building raylib static library
-- Generated build type: Debug
-- Compiling with the flags:
-- PLATFORM=PLATFORM_DESKTOP
-- GRAPHICS=GRAPHICS_API_OPENGL_33
-- Building examples is enabled
-- Looking for CLOCK_MONOTONIC
-- Looking for CLOCK_MONOTONIC - found
-- Looking for QueryPerformanceCounter
-- Looking for QueryPerformanceCounter - not found
-- Looking for stdatomic.h
-- Looking for stdatomic.h - found
-- Testing if -std=c11 can be used -- compiles
-- Configuring done
-- Generating done
-- Build files have been written to: /home/wison/temp/raylib/build
I wison | /home/wison/temp/raylib/build make
[ 1%] Building C object raylib/external/glfw/src/CMakeFiles/glfw.dir/context.c.o
[ 1%] Building C object raylib/external/glfw/src/CMakeFiles/glfw.dir/init.c.o
[ 1%] Building C object raylib/external/glfw/src/CMakeFiles/glfw.dir/input.c.o
[ 2%] Building C object raylib/external/glfw/src/CMakeFiles/glfw.dir/monitor.c.o
[ 2%] Building C object raylib/external/glfw/src/CMakeFiles/glfw.dir/platform.c.o
[ 2%] Building C object raylib/external/glfw/src/CMakeFiles/glfw.dir/vulkan.c.o
[ 3%] Building C object raylib/external/glfw/src/CMakeFiles/glfw.dir/window.c.o
[ 3%] Building C object raylib/external/glfw/src/CMakeFiles/glfw.dir/egl_context.c.o
[ 3%] Building C object raylib/external/glfw/src/CMakeFiles/glfw.dir/osmesa_context.c.o
[ 4%] Building C object raylib/external/glfw/src/CMakeFiles/glfw.dir/null_init.c.o
[ 4%] Building C object raylib/external/glfw/src/CMakeFiles/glfw.dir/null_monitor.c.o
[ 4%] Building C object raylib/external/glfw/src/CMakeFiles/glfw.dir/null_window.c.o
[ 5%] Building C object raylib/external/glfw/src/CMakeFiles/glfw.dir/null_joystick.c.o
[ 5%] Building C object raylib/external/glfw/src/CMakeFiles/glfw.dir/posix_module.c.o
[ 5%] Building C object raylib/external/glfw/src/CMakeFiles/glfw.dir/posix_time.c.o
[ 6%] Building C object raylib/external/glfw/src/CMakeFiles/glfw.dir/posix_thread.c.o
[ 6%] Building C object raylib/external/glfw/src/CMakeFiles/glfw.dir/x11_init.c.o
[ 6%] Building C object raylib/external/glfw/src/CMakeFiles/glfw.dir/x11_monitor.c.o
[ 7%] Building C object raylib/external/glfw/src/CMakeFiles/glfw.dir/x11_window.c.o
[ 7%] Building C object raylib/external/glfw/src/CMakeFiles/glfw.dir/xkb_unicode.c.o
[ 7%] Building C object raylib/external/glfw/src/CMakeFiles/glfw.dir/glx_context.c.o
[ 8%] Building C object raylib/external/glfw/src/CMakeFiles/glfw.dir/posix_poll.c.o
[ 8%] Linking C static library libglfw3.a
[ 8%] Built target glfw
[ 8%] Building C object raylib/CMakeFiles/raylib.dir/rcore.c.o
[ 9%] Building C object raylib/CMakeFiles/raylib.dir/rmodels.c.o
In file included from /home/wison/temp/raylib/src/rmodels.c:112:
/home/wison/temp/raylib/src/external/par_shapes.h:1133:32: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-const-int-float-conversion]
float r = (float) rand() / RAND_MAX;
~ ^~~~~~~~
/usr/include/stdlib.h:80:18: note: expanded from macro 'RAND_MAX'
#define RAND_MAX 0x7fffffff
^~~~~~~~~~
1 warning generated.
[ 9%] Building C object raylib/CMakeFiles/raylib.dir/rshapes.c.o
[ 9%] Building C object raylib/CMakeFiles/raylib.dir/rtext.c.o
[ 10%] Building C object raylib/CMakeFiles/raylib.dir/rtextures.c.o
[ 10%] Building C object raylib/CMakeFiles/raylib.dir/utils.c.o
[ 10%] Building C object raylib/CMakeFiles/raylib.dir/raudio.c.o
[ 11%] Linking C static library libraylib.a
[ 11%] Built target raylib
[ 11%] Building C object examples/CMakeFiles/audio_mixed_processor.dir/audio/audio_mixed_processor.c.o
[ 11%] Linking C executable audio_mixed_processor
ld: error: unable to find library -latomic
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
Stop.
make[2]: stopped in /usr/home/wison/temp/raylib/build
*** Error code 1
Stop.
make[1]: stopped in /usr/home/wison/temp/raylib/build
*** Error code 1
Stop.
make: stopped in /usr/home/wison/temp/raylib/build
Tried to install the following dependencies that are related to atomic
but will get this error: ld: error: unable to find library -latomic
devel/libatomic_ops
graphics/mesa-devel
Totally have no idea at this moment:)
Hi there, I'm trying to port my
raylib
project fromMacOS
toFreeBSD
, but the compilation is fail:Tried
OpenGL_GL_PREFERENCE=GLVND cargo build
already but still fail:)Raylib version
FreeBSD version