github有趣項目:自制“我的世界” project make

videocode
https://www.youtube.com/watch?v=4O0_-1NaWnY,https://www.bilibili.com/video/BV1oj411p7qM/?https://github.com/jdah/minecraft-weekend

MAKE

  • git clone --recurse-submodules https://github.com/jdah/minecraft-weekend.git
正克隆到 'minecraft-weekend'...
remote: Enumerating objects: 965, done.
remote: Counting objects: 100% (81/81), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 965 (delta 67), reused 64 (delta 64), pack-reused 884
接收對象中: 100% (965/965), 7.61 MiB | 675.00 KiB/s, 完成.
處理 delta 中: 100% (596/596), 完成.
子模組 'lib/cglm'(https://github.com/recp/cglm.git)已對路徑 'lib/cglm' 注冊
子模組 'lib/glfw'(https://github.com/glfw/glfw.git)已對路徑 'lib/glfw' 注冊
正克隆到 '/home/pdd/MINECRAFT/minecraft-weekend/lib/cglm'...
remote: Enumerating objects: 9611, done.        
remote: Counting objects: 100% (2162/2162), done.        
remote: Compressing objects: 100% (352/352), done.        
remote: Total 9611 (delta 1884), reused 1920 (delta 1810), pack-reused 7449        
接收對象中: 100% (9611/9611), 2.23 MiB | 381.00 KiB/s, 完成.
處理 delta 中: 100% (6572/6572), 完成.
正克隆到 '/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw'...
remote: Enumerating objects: 31288, done.        
remote: Counting objects: 100% (401/401), done.        
remote: Compressing objects: 100% (166/166), done.        
remote: Total 31288 (delta 259), reused 328 (delta 224), pack-reused 30887        
接收對象中: 100% (31288/31288), 15.99 MiB | 707.00 KiB/s, 完成.
處理 delta 中: 100% (22094/22094), 完成.
子模組路徑 'lib/cglm':檢出 'c783c4210152522ef61f40863f7c91f74186cb2a'
子模組路徑 'lib/glfw':檢出 '0b9e48fa3df9c184ff1abfb2452fd1a4b696ecd8'
  • cd minecraft-weekend/
  • make // 在運行make命令時沒有指定目標名稱,默認情況下,make將執行第一個出現的目標。在給定的Makefile中,第一個目標是all,它將執行all目標,會構建目標dirs、libs和game。還可以通過設置.DEFAULT_GOAL的值改變默認行為。
mkdir -p ./bin
cd lib/cglm && cmake . -DCGLM_STATIC=ON && make
-- The C compiler identification is GNU 9.5.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
-- Setting build type to 'Release' as none was specified.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pdd/MINECRAFT/minecraft-weekend/lib/cglm
make[1]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/cglm”
make[2]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/cglm”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/cglm”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/cglm”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/cglm”
[  4%] Building C object CMakeFiles/cglm.dir/src/euler.c.o
[  9%] Building C object CMakeFiles/cglm.dir/src/affine.c.o
[ 13%] Building C object CMakeFiles/cglm.dir/src/io.c.o
[ 18%] Building C object CMakeFiles/cglm.dir/src/quat.c.o
[ 22%] Building C object CMakeFiles/cglm.dir/src/cam.c.o
[ 27%] Building C object CMakeFiles/cglm.dir/src/vec2.c.o
[ 31%] Building C object CMakeFiles/cglm.dir/src/vec3.c.o
[ 36%] Building C object CMakeFiles/cglm.dir/src/vec4.c.o
[ 40%] Building C object CMakeFiles/cglm.dir/src/mat2.c.o
[ 45%] Building C object CMakeFiles/cglm.dir/src/mat3.c.o
[ 50%] Building C object CMakeFiles/cglm.dir/src/mat4.c.o
[ 54%] Building C object CMakeFiles/cglm.dir/src/plane.c.o
[ 59%] Building C object CMakeFiles/cglm.dir/src/frustum.c.o
[ 63%] Building C object CMakeFiles/cglm.dir/src/box.c.o
[ 68%] Building C object CMakeFiles/cglm.dir/src/project.c.o
[ 72%] Building C object CMakeFiles/cglm.dir/src/sphere.c.o
[ 77%] Building C object CMakeFiles/cglm.dir/src/ease.c.o
[ 81%] Building C object CMakeFiles/cglm.dir/src/curve.c.o
[ 86%] Building C object CMakeFiles/cglm.dir/src/bezier.c.o
[ 90%] Building C object CMakeFiles/cglm.dir/src/ray.c.o
[ 95%] Building C object CMakeFiles/cglm.dir/src/affine2d.c.o
[100%] Linking C static library libcglm.a
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/cglm”
[100%] Built target cglm
make[2]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/cglm”
make[1]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/cglm”
cd lib/glad && clang -o src/glad.o -Iinclude -c src/glad.c
/bin/sh: 1: clang: not found
make: *** [Makefile:29:libs] 錯誤 127

CC = gcc

這個錯誤表明系統中找不到 clang 編譯器,導致在構建 lib/glad 目錄下的代碼時出錯。為了解決這個問題,你可以采取以下幾個步驟:

  1. 安裝 clang 編譯器: 在終端中執行以下命令安裝 clang 編譯器。

    sudo apt-get update
    sudo apt-get install clang
    

    如果你使用的是不同的 Linux 發行版,請使用相應的包管理器安裝 clang。

  2. 嘗試重新運行 make 命令: 安裝了 clang 編譯器后,再次運行你的 make 命令,看是否問題已經解決。

如果你在步驟1中安裝了 clang 但問題仍然存在,可能是因為系統沒有正確配置 clang 的符號鏈接。在這種情況下,你可能需要手動設置 clang 的符號鏈接。你可以執行以下命令:

sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang 100
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 100
sudo update-alternatives --config cc
sudo update-alternatives --config c++

上述命令將 ccc++ 的符號鏈接設置為 clang 編譯器。在執行完上述步驟后,嘗試重新運行你的 make 命令。

如果問題仍然存在,還可以檢查 Makefile 文件,確保其中的編譯器設置正確,即確保在編譯過程中使用的是正確的編譯器。

(base) pdd@pdd-Dell-G15-5511:~/MINECRAFT/minecraft-weekend$ vim Makefile 
(base) pdd@pdd-Dell-G15-5511:~/MINECRAFT/minecraft-weekend$ make
mkdir -p ./bin
cd lib/cglm && cmake . -DCGLM_STATIC=ON && make
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pdd/MINECRAFT/minecraft-weekend/lib/cglm
make[1]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/cglm”
make[2]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/cglm”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/cglm”
Consolidate compiler generated dependencies of target cglm
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/cglm”
[100%] Built target cglm
make[2]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/cglm”
make[1]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/cglm”
cd lib/glad && gcc -o src/glad.o -Iinclude -c src/glad.c
cd lib/glfw && cmake . && make
-- The C compiler identification is GNU 9.5.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
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Using X11 for window creation
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/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
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pdd/MINECRAFT/minecraft-weekend/lib/glfw
make[1]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[2]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[  1%] Building C object src/CMakeFiles/glfw.dir/context.c.o
[  2%] Building C object src/CMakeFiles/glfw.dir/init.c.o
[  3%] Building C object src/CMakeFiles/glfw.dir/input.c.o
[  4%] Building C object src/CMakeFiles/glfw.dir/monitor.c.o
[  5%] Building C object src/CMakeFiles/glfw.dir/vulkan.c.o
[  5%] Building C object src/CMakeFiles/glfw.dir/window.c.o
[  6%] Building C object src/CMakeFiles/glfw.dir/x11_init.c.o
[  7%] Building C object src/CMakeFiles/glfw.dir/x11_monitor.c.o
[  8%] Building C object src/CMakeFiles/glfw.dir/x11_window.c.o
[  9%] Building C object src/CMakeFiles/glfw.dir/xkb_unicode.c.o
[ 10%] Building C object src/CMakeFiles/glfw.dir/posix_time.c.o
[ 11%] Building C object src/CMakeFiles/glfw.dir/posix_thread.c.o
[ 11%] Building C object src/CMakeFiles/glfw.dir/glx_context.c.o
[ 12%] Building C object src/CMakeFiles/glfw.dir/egl_context.c.o
[ 13%] Building C object src/CMakeFiles/glfw.dir/osmesa_context.c.o
[ 14%] Building C object src/CMakeFiles/glfw.dir/linux_joystick.c.o
[ 15%] Linking C static library libglfw3.a
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 15%] Built target glfw
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 15%] Building C object examples/CMakeFiles/boing.dir/boing.c.o
[ 16%] Building C object examples/CMakeFiles/boing.dir/__/deps/glad_gl.c.o
[ 17%] Linking C executable boing
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 17%] Built target boing
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 17%] Building C object examples/CMakeFiles/gears.dir/gears.c.o
[ 18%] Building C object examples/CMakeFiles/gears.dir/__/deps/glad_gl.c.o
[ 19%] Linking C executable gears
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 19%] Built target gears
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 20%] Building C object examples/CMakeFiles/heightmap.dir/heightmap.c.o
[ 21%] Building C object examples/CMakeFiles/heightmap.dir/__/deps/glad_gl.c.o
[ 22%] Linking C executable heightmap
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 22%] Built target heightmap
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 23%] Building C object examples/CMakeFiles/offscreen.dir/offscreen.c.o
[ 23%] Building C object examples/CMakeFiles/offscreen.dir/__/deps/glad_gl.c.o
[ 24%] Linking C executable offscreen
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 24%] Built target offscreen
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 25%] Building C object examples/CMakeFiles/particles.dir/particles.c.o
[ 26%] Building C object examples/CMakeFiles/particles.dir/__/deps/tinycthread.c.o
[ 27%] Building C object examples/CMakeFiles/particles.dir/__/deps/getopt.c.o
[ 28%] Building C object examples/CMakeFiles/particles.dir/__/deps/glad_gl.c.o
[ 29%] Linking C executable particles
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 29%] Built target particles
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 30%] Building C object examples/CMakeFiles/sharing.dir/sharing.c.o
[ 31%] Building C object examples/CMakeFiles/sharing.dir/__/deps/glad_gl.c.o
[ 32%] Linking C executable sharing
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 32%] Built target sharing
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 33%] Building C object examples/CMakeFiles/splitview.dir/splitview.c.o
[ 34%] Building C object examples/CMakeFiles/splitview.dir/__/deps/glad_gl.c.o
[ 34%] Linking C executable splitview
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 34%] Built target splitview
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 34%] Building C object examples/CMakeFiles/triangle-opengl.dir/triangle-opengl.c.o
[ 35%] Building C object examples/CMakeFiles/triangle-opengl.dir/__/deps/glad_gl.c.o
[ 36%] Linking C executable triangle-opengl
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 36%] Built target triangle-opengl
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 37%] Building C object examples/CMakeFiles/wave.dir/wave.c.o
[ 37%] Building C object examples/CMakeFiles/wave.dir/__/deps/glad_gl.c.o
[ 38%] Linking C executable wave
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 38%] Built target wave
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 39%] Building C object examples/CMakeFiles/windows.dir/windows.c.o
[ 40%] Building C object examples/CMakeFiles/windows.dir/__/deps/glad_gl.c.o
[ 41%] Linking C executable windows
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 41%] Built target windows
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 42%] Building C object tests/CMakeFiles/clipboard.dir/clipboard.c.o
[ 43%] Building C object tests/CMakeFiles/clipboard.dir/__/deps/getopt.c.o
[ 44%] Building C object tests/CMakeFiles/clipboard.dir/__/deps/glad_gl.c.o
[ 45%] Linking C executable clipboard
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 45%] Built target clipboard
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 45%] Building C object tests/CMakeFiles/events.dir/events.c.o
[ 46%] Building C object tests/CMakeFiles/events.dir/__/deps/getopt.c.o
[ 47%] Building C object tests/CMakeFiles/events.dir/__/deps/glad_gl.c.o
[ 48%] Linking C executable events
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 48%] Built target events
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 49%] Building C object tests/CMakeFiles/msaa.dir/msaa.c.o
[ 50%] Building C object tests/CMakeFiles/msaa.dir/__/deps/getopt.c.o
[ 51%] Building C object tests/CMakeFiles/msaa.dir/__/deps/glad_gl.c.o
[ 52%] Linking C executable msaa
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 52%] Built target msaa
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 53%] Building C object tests/CMakeFiles/glfwinfo.dir/glfwinfo.c.o
[ 54%] Building C object tests/CMakeFiles/glfwinfo.dir/__/deps/getopt.c.o
[ 54%] Building C object tests/CMakeFiles/glfwinfo.dir/__/deps/glad_gl.c.o
[ 55%] Building C object tests/CMakeFiles/glfwinfo.dir/__/deps/glad_vulkan.c.o
[ 56%] Linking C executable glfwinfo
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 56%] Built target glfwinfo
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 57%] Building C object tests/CMakeFiles/iconify.dir/iconify.c.o
[ 58%] Building C object tests/CMakeFiles/iconify.dir/__/deps/getopt.c.o
[ 59%] Building C object tests/CMakeFiles/iconify.dir/__/deps/glad_gl.c.o
[ 60%] Linking C executable iconify
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 60%] Built target iconify
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 61%] Building C object tests/CMakeFiles/monitors.dir/monitors.c.o
[ 62%] Building C object tests/CMakeFiles/monitors.dir/__/deps/getopt.c.o
[ 62%] Building C object tests/CMakeFiles/monitors.dir/__/deps/glad_gl.c.o
[ 63%] Linking C executable monitors
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 63%] Built target monitors
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 63%] Building C object tests/CMakeFiles/reopen.dir/reopen.c.o
[ 64%] Building C object tests/CMakeFiles/reopen.dir/__/deps/glad_gl.c.o
[ 65%] Linking C executable reopen
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 65%] Built target reopen
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 65%] Building C object tests/CMakeFiles/cursor.dir/cursor.c.o
[ 66%] Building C object tests/CMakeFiles/cursor.dir/__/deps/glad_gl.c.o
[ 67%] Linking C executable cursor
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 67%] Built target cursor
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 68%] Building C object tests/CMakeFiles/empty.dir/empty.c.o
[ 69%] Building C object tests/CMakeFiles/empty.dir/__/deps/tinycthread.c.o
[ 70%] Building C object tests/CMakeFiles/empty.dir/__/deps/glad_gl.c.o
[ 71%] Linking C executable empty
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 71%] Built target empty
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 72%] Building C object tests/CMakeFiles/gamma.dir/gamma.c.o
[ 73%] Building C object tests/CMakeFiles/gamma.dir/__/deps/glad_gl.c.o
[ 74%] Linking C executable gamma
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 74%] Built target gamma
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 75%] Building C object tests/CMakeFiles/icon.dir/icon.c.o
[ 75%] Building C object tests/CMakeFiles/icon.dir/__/deps/glad_gl.c.o
[ 76%] Linking C executable icon
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 76%] Built target icon
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 77%] Building C object tests/CMakeFiles/inputlag.dir/inputlag.c.o
[ 78%] Building C object tests/CMakeFiles/inputlag.dir/__/deps/getopt.c.o
[ 78%] Building C object tests/CMakeFiles/inputlag.dir/__/deps/glad_gl.c.o
[ 79%] Linking C executable inputlag
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 79%] Built target inputlag
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 80%] Building C object tests/CMakeFiles/joysticks.dir/joysticks.c.o
[ 81%] Building C object tests/CMakeFiles/joysticks.dir/__/deps/glad_gl.c.o
[ 82%] Linking C executable joysticks
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 82%] Built target joysticks
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 83%] Building C object tests/CMakeFiles/tearing.dir/tearing.c.o
[ 84%] Building C object tests/CMakeFiles/tearing.dir/__/deps/glad_gl.c.o
[ 85%] Linking C executable tearing
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 85%] Built target tearing
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 86%] Building C object tests/CMakeFiles/threads.dir/threads.c.o
[ 87%] Building C object tests/CMakeFiles/threads.dir/__/deps/tinycthread.c.o
[ 88%] Building C object tests/CMakeFiles/threads.dir/__/deps/glad_gl.c.o
[ 88%] Linking C executable threads
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 88%] Built target threads
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 89%] Building C object tests/CMakeFiles/timeout.dir/timeout.c.o
[ 90%] Building C object tests/CMakeFiles/timeout.dir/__/deps/glad_gl.c.o
[ 91%] Linking C executable timeout
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 91%] Built target timeout
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 92%] Building C object tests/CMakeFiles/title.dir/title.c.o
[ 93%] Building C object tests/CMakeFiles/title.dir/__/deps/glad_gl.c.o
[ 94%] Linking C executable title
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 94%] Built target title
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 95%] Building C object tests/CMakeFiles/triangle-vulkan.dir/triangle-vulkan.c.o
[ 96%] Building C object tests/CMakeFiles/triangle-vulkan.dir/__/deps/glad_vulkan.c.o
[ 97%] Linking C executable triangle-vulkan
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 97%] Built target triangle-vulkan
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[3]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[ 98%] Building C object tests/CMakeFiles/window.dir/window.c.o
[ 99%] Building C object tests/CMakeFiles/window.dir/__/deps/glad_gl.c.o
[100%] Linking C executable window
make[3]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
[100%] Built target window
make[2]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
make[1]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/glfw”
cd lib/noise && make
make[1]: 進入目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/noise”
gcc -o noise1234.o noise1234.c -c  
ar rcs libnoise.a noise1234.o
make[1]: 離開目錄“/home/pdd/MINECRAFT/minecraft-weekend/lib/noise”
gcc -o src/block/air.o -c src/block/air.c -std=c11 -O3 -g -Wall -Wextra -Wpedantic -Wstrict-aliasing -Wno-pointer-arith -Wno-newline-eof -Wno-unused-parameter -Wno-gnu-statement-expression -Wno-gnu-compound-literal-initializer -Wno-gnu-zero-variadic-macro-arguments -Ilib/cglm/include -Ilib/glad/include -Ilib/glfw/include -Ilib/stb -Ilib/noise -fbracket-depth=1024
gcc: error: unrecognized command line option ‘-fbracket-depth=1024’
make: *** [Makefile:43:src/block/air.o] 錯誤 1
src/world/gen/../../util/fmath.h:52:14: note: in expansion of macro ‘min’52 |     max(_mn, min(_mx, _x)); })|              ^~~
src/world/gen/worldgen.c:340:9: note: in expansion of macro ‘clamp’340 |         clamp((_x), 0, CHUNK_SIZE.x - 1) * CHUNK_SIZE.x +\|         ^~~~~
src/world/gen/worldgen.c:352:17: note: in expansion of macro ‘WG_GET_H’352 |                 WG_GET_H(x, z).h = v;|                 ^~~~~~~~
src/world/gen/../../util/fmath.h:43:19: warning: ISO C forbids braced-groups within expressions [-Wpedantic]43 | #define min(a, b) ({\|                   ^
src/world/gen/../../util/fmath.h:40:26: note: in definition of macro ‘max’40 |     __typeof__ (b) _b = (b); \|                          ^
src/world/gen/../../util/fmath.h:52:14: note: in expansion of macro ‘min’52 |     max(_mn, min(_mx, _x)); })|              ^~~
src/world/gen/worldgen.c:340:9: note: in expansion of macro ‘clamp’340 |         clamp((_x), 0, CHUNK_SIZE.x - 1) * CHUNK_SIZE.x +\|         ^~~~~
src/world/gen/worldgen.c:352:17: note: in expansion of macro ‘WG_GET_H’352 |                 WG_GET_H(x, z).h = v;|                 ^~~~~~~~
src/world/gen/../../util/fmath.h:38:19: warning: ISO C forbids braced-groups within expressions [-Wpedantic]38 | #define max(a, b) ({\|                   ^
src/world/gen/../../util/fmath.h:52:5: note: in expansion of macro ‘max’52 |     max(_mn, min(_mx, _x)); })|     ^~~
src/world/gen/worldgen.c:340:9: note: in expansion of macro ‘clamp’340 |         clamp((_x), 0, CHUNK_SIZE.x - 1) * CHUNK_SIZE.x +\|         ^~~~~
src/world/gen/worldgen.c:352:17: note: in expansion of macro ‘WG_GET_H’352 |                 WG_GET_H(x, z).h = v;|                 ^~~~~~~~
src/world/gen/../../util/fmath.h:48:26: warning: ISO C forbids braced-groups within expressions [-Wpedantic]48 | #define clamp(x, mn, mx) ({\|                          ^
src/world/gen/worldgen.c:340:9: note: in expansion of macro ‘clamp’340 |         clamp((_x), 0, CHUNK_SIZE.x - 1) * CHUNK_SIZE.x +\|         ^~~~~
src/world/gen/worldgen.c:352:17: note: in expansion of macro ‘WG_GET_H’352 |                 WG_GET_H(x, z).h = v;|                 ^~~~~~~~
src/world/gen/../../util/fmath.h:43:19: warning: ISO C forbids braced-groups within expressions [-Wpedantic]43 | #define min(a, b) ({\|                   ^
src/world/gen/../../util/fmath.h:40:17: note: in definition of macro ‘max’40 |     __typeof__ (b) _b = (b); \|                 ^
src/world/gen/../../util/fmath.h:52:14: note: in expansion of macro ‘min’52 |     max(_mn, min(_mx, _x)); })|              ^~~
src/world/gen/worldgen.c:341:9: note: in expansion of macro ‘clamp’341 |         clamp((_z), 0, CHUNK_SIZE.z - 1)]|         ^~~~~
src/world/gen/worldgen.c:352:17: note: in expansion of macro ‘WG_GET_H’352 |                 WG_GET_H(x, z).h = v;|                 ^~~~~~~~
src/world/gen/../../util/fmath.h:43:19: warning: ISO C forbids braced-groups within expressions [-Wpedantic]43 | #define min(a, b) ({\|                   ^
src/world/gen/../../util/fmath.h:40:26: note: in definition of macro ‘max’40 |     __typeof__ (b) _b = (b); \|                          ^
src/world/gen/../../util/fmath.h:52:14: note: in expansion of macro ‘min’52 |     max(_mn, min(_mx, _x)); })|              ^~~
src/world/gen/worldgen.c:341:9: note: in expansion of macro ‘clamp’341 |         clamp((_z), 0, CHUNK_SIZE.z - 1)]|         ^~~~~
src/world/gen/worldgen.c:352:17: note: in expansion of macro ‘WG_GET_H’352 |                 WG_GET_H(x, z).h = v;|                 ^~~~~~~~
src/world/gen/../../util/fmath.h:38:19: warning: ISO C forbids braced-groups within expressions [-Wpedantic]38 | #define max(a, b) ({\|                   ^
src/world/gen/../../util/fmath.h:52:5: note: in expansion of macro ‘max’52 |     max(_mn, min(_mx, _x)); })|     ^~~
src/world/gen/worldgen.c:341:9: note: in expansion of macro ‘clamp’341 |         clamp((_z), 0, CHUNK_SIZE.z - 1)]|         ^~~~~
src/world/gen/worldgen.c:352:17: note: in expansion of macro ‘WG_GET_H’352 |                 WG_GET_H(x, z).h = v;|                 ^~~~~~~~
src/world/gen/../../util/fmath.h:48:26: warning: ISO C forbids braced-groups within expressions [-Wpedantic]48 | #define clamp(x, mn, mx) ({\|                          ^
src/world/gen/worldgen.c:341:9: note: in expansion of macro ‘clamp’341 |         clamp((_z), 0, CHUNK_SIZE.z - 1)]|         ^~~~~
src/world/gen/worldgen.c:352:17: note: in expansion of macro ‘WG_GET_H’352 |                 WG_GET_H(x, z).h = v;|                 ^~~~~~~~
src/world/gen/worldgen.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-gnu-zero-variadic-macro-arguments’
cc1: warning: unrecognized command line option ‘-Wno-gnu-compound-literal-initializer’
cc1: warning: unrecognized command line option ‘-Wno-gnu-statement-expression’
cc1: warning: unrecognized command line option ‘-Wno-newline-eof’
gcc -o bin/game src/block/air.o src/block/block.o src/block/buttercup.o src/block/clay.o src/block/coal.o src/block/cobblestone.o src/block/copper.o src/block/dirt.o src/block/glass.o src/block/grass.o src/block/gravel.o src/block/lava.o src/block/leaves.o src/block/log.o src/block/pineleaves.o src/block/pinelog.o src/block/planks.o src/block/podzol.o src/block/rose.o src/block/sand.o src/block/shrub.o src/block/snow.o src/block/stone.o src/block/tallgrass.o src/block/torch.o src/block/water.o src/entity/c_blocklook.o src/entity/c_camera.o src/entity/c_control.o src/entity/c_debug.o src/entity/c_light.o src/entity/c_movement.o src/entity/c_physics.o src/entity/c_position.o src/entity/ecs.o src/entity/player.o src/gfx/blockatlas.o src/gfx/renderer.o src/gfx/shader.o src/gfx/texture.o src/gfx/vao.o src/gfx/vbo.o src/gfx/window.o src/ui/crosshair.o src/ui/hotbar.o src/ui/ui.o src/util/camera.o src/util/color.o src/util/direction.o src/util/fmath.o src/world/blockmesh.o src/world/chunk.o src/world/chunkmesh.o src/world/light.o src/world/sky.o src/world/world.o src/main.o src/world/gen/flowergen.o src/world/gen/grassgen.o src/world/gen/noise.o src/world/gen/shrubgen.o src/world/gen/treegen.o src/world/gen/worldgen.o lib/glad/src/glad.o lib/cglm/libcglm.a lib/glfw/src/libglfw3.a lib/noise/libnoise.a -lm -ldl -lpthread
(base) pdd@pdd-Dell-G15-5511:~/MINECRAFT/minecraft-weekend$ ls
bin  lib  LICENSE  Makefile  README.md  res  screenshots  src
(base) pdd@pdd-Dell-G15-5511:~/MINECRAFT/minecraft-weekend$ cd bin
(base) pdd@pdd-Dell-G15-5511:~/MINECRAFT/minecraft-weekend/bin$ ls
game
(base) pdd@pdd-Dell-G15-5511:~/MINECRAFT/minecraft-weekend/bin$ ./game 
error loading shader at res/shaders/basic_texture.vs
(base) pdd@pdd-Dell-G15-5511:~/MINECRAFT/minecraft-weekend$ ./bin/game

在這里插入圖片描述
在這里插入圖片描述

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/bicheng/19767.shtml
繁體地址,請注明出處:http://hk.pswp.cn/bicheng/19767.shtml
英文地址,請注明出處:http://en.pswp.cn/bicheng/19767.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

x264 參考幀管理源碼分析

x264參考幀管理 在x264中,參考幀的管理是一個重要的組成部分,因為它涉及到視頻編碼過程中的幀間預測。以下是關于x264參考幀管理的一些關鍵點: 參考幀的分類:在x264中,幀可以分為幾類,包括參考幀、當前編碼幀和未使用幀等。 參考幀的作用:參考幀用于幀間預測,通過比較當…

【Qt】之【Get√】QByteArray寫入txt文件、QByteArray截取數據

寫入文件 QFile file(path);if (file.open(QIODevice::WriteOnly)) {// 將 QImage 保存到文件file.write(jsonData.toByteArray());// 關閉文件file.close();SCDebug << "saved to" << path;} else {SCDebug << "Failed to open file for wri…

直播分享|深入解析ts-morph:通過注釋生成類型文檔

? ? 你看小狗在叫 樹葉會笑 風聲在呢喃? ? 乘風追夢&#xff0c;童心未泯 OpenTiny 預祝所有大朋友、小朋友兒童節快樂~ 與此同時&#xff0c;OpenTiny 貢獻者直播也即將開啟啦~ 直播主題&#xff1a;【深入解析ts-morph&#xff1a;通過注釋生成類型文檔】 6月1日&am…

碳課堂|入門必看!碳足跡(CFP)主要國際標準一覽

一、碳足跡概念 碳足跡&#xff08;Carbon FootPrint&#xff0c;CFP&#xff09;是用來衡量個體、組織、產品或國家在一定時間內直接或間接導致的二氧化碳排放量的指標。產品碳足跡屬于碳排放核算的一種&#xff0c;一般指產品從原材料加工、運輸、生產到出廠銷售等流程所產生…

NeuralForecast 推理 - 從csv文件里讀取數據進行推理

NeuralForecast 推理 - 從csv文件里讀取數據進行推理 flyfish from ray import tunefrom neuralforecast.core import NeuralForecast from neuralforecast.auto import AutoMLP from neuralforecast.models import NBEATS, NHITS import torch import torch.nn as nn import…

【Java】剛剛!突然!緊急通知!垃圾回收!

【Java】剛剛&#xff01;突然&#xff01;緊急通知&#xff01;垃圾回收&#xff01; 文章目錄 【Java】剛剛&#xff01;突然&#xff01;緊急通知&#xff01;垃圾回收&#xff01;從C語言的內存管理引入&#xff1a;手動回收Java的垃圾回收機制引用計數器循環引用問題 可達…

SpringBoot六種API請求參數讀取方式

SpringBoot六種API請求參數讀取方式 同步請求和異步請求 同步: 指單線程依次做幾件事異步: 指多線程同時做幾件事 同步請求: 指客戶端瀏覽器只有一個主線程, 此線程負責頁面的渲染和發出請求等操作, 如果此主線程發出請求的話則停止渲染而且會清空頁面顯示的內容 直到服務器響…

優化基礎(二):線性組合、仿射組合、錐組合、凸組合、線性集合、仿射集合、錐集合、凸集合的理解

文章目錄 前言組合線性組合 (linear combination)仿射組合 (affine combination)錐組合 (conic combination)凸組合 (convex combination) 集合仿射集合凸集合 練習&#xff1a;哪個圖形是凸的&#xff0c;哪個是仿射的&#xff1f;參考資料 前言 組合側重于描述由一些基點生成…

越洗越黑”的Pandas數據清洗

引言 先來一個腦筋急轉彎活躍一下枯燥工作日常&#xff0c;問&#xff1a;“什么東西越洗越黑&#xff1f;” 有沒有猜到的&#xff1f;猜不到我告訴你吧&#xff01; 答案是“煤球”。那么這個腦機急轉彎跟我們要討論的話題有沒有關系呢&#xff1f; 嗯是的&#xff0c;還是沾…

三相智能電表通過Modbus轉Profinet網關與PLC通訊案例

Modbus轉Profinet網關&#xff08;XD-MDPN100/300&#xff09;的主要功能是實現Modbus協議和Profinet協議之間的轉換和通信。Modbus轉Profinet網關集成了Modbus和Profinet兩種協議&#xff0c;支持Modbus RTU主站/從站&#xff0c;并可以與RS485接口的設備&#xff0c;它自帶網…

「前端+鴻蒙」核心技術HTML5+CSS3

1、CS架構與BS架構 CS架構(Client-Server):客戶端/服務器架構。用戶通過客戶端軟件與服務器進行交互,客戶端需要安裝特定的軟件才能訪問服務器上的資源。BS架構(Browser-Server):瀏覽器/服務器架構。用戶通過瀏覽器訪問服務器上的網頁,無需安裝額外的軟件,所有的交互都…

接口請求參數為文件時如何測試

方法 工具&#xff1a;Postman 步驟&#xff1a;①點擊body②點擊form-data③選擇key類型為fie ④輸入參數名⑤選擇參數上傳⑥發送請求

對稱二叉樹(oj題)

一、題目鏈接https://leetcode-cn.com/problems/symmetric-tree/ 二、題目思路 給你一個二叉樹的根節點 root &#xff0c; 檢查它是否軸對稱的思路: 1.將該樹的左子樹和右子樹&#xff0c;當做兩棵樹&#xff0c;調用 判斷兩棵樹是否對稱相等的函數 2.判斷兩顆樹是否對稱相…

告別低效提問:掌握BARD技巧,讓AI成為你的智能助手!

今天只聊一個主題&#xff1a;提示詞 Prompt。 說到提示詞&#xff0c;大家可能都看過GPT的高級示例&#xff0c;那些幾百字的提示詞&#xff0c;寫起來確實不容易。 那么&#xff0c;如何寫出同樣效果的提示詞呢&#xff1f; 有沒有什么公式或者系統學習的方法&#xff1f;…

在Linux/Ubuntu/Debian中使用lshw查看系統信息

在Linux/Ubuntu/Debian中使用lshw查看系統信息 lshw 是一個用于顯示硬件配置的命令&#xff0c;可以提供系統硬件的詳細信息&#xff0c;包括 CPU、內存、硬盤、主板等。該命令需要超級用戶權限來獲取詳細信息。 常見用法&#xff1a; 顯示所有硬件信息&#xff1a; sudo l…

木葉飛舞之【機器人ROS2】篇章_第三節、給turtlebot3安裝realsense深度相機

我們做視覺slam時會用到深度相機&#xff0c;但是gazebo的turtlebot3中只有rgb相機&#xff0c;沒有深度&#xff0c;因此本節會修改代碼&#xff0c;來給我們的小烏龜增加一個rgbd相機。 效果展示 發布topic如下圖 圖片大小都是640*480 1. 修改model.sdf文件 1.1 路徑位置…

射頻功率限幅器簡略

在功率輸入保護方面&#xff0c;限幅器是最好用的器件之一&#xff0c;可以保護后級電路不受超限功率的損害&#xff0c;限幅器其實像TVS功能一樣&#xff0c;讓超過閾值的功率釋放到接地上&#xff0c;來達到限制幅度的目的&#xff0c;目前限幅器的限幅幅度大多都大于15dBm,很…

啟智CV機器人,ROS, ubuntu 18.04

資料&#xff1a; https://wiki.ros.org/kinetic/Installation/Ubuntu https://blog.csdn.net/qq_44339029/article/details/120579608 http://wiki.ros.org/melodic/Installation/Ubuntu https://github.com/6-robot/wpb_cv 一、安裝ros環境 裝VM。 裝ubuntu18.04 desktop.…

100道面試必會算法-27-美團2024面試第一題-前綴和矩陣

100道面試必會算法-27-美團2024面試第一題-前綴和矩陣 問題解讀 給定一個 n x n 的二進制矩陣&#xff0c;每個元素是 0 或 1。我們的任務是計算矩陣中所有邊長為 k 的子矩陣中&#xff0c;包含特定數量 1 的情況。例如&#xff0c;我們希望找到所有邊長為 k 的子矩陣中包含 k…

Java實現成績管理系統

1.思路分析實現 要求一和要求二&#xff0c;一個要求使用順序表一個使用鏈表&#xff0c;但又因為這兩個都是List的實現類&#xff0c;所以我就使用多態的形式通過一個方法進行實現上面兩種內容&#xff0c;需要用什么方法實現就傳入什么實現類&#xff0c;形參是List類型。創建…