{"id":20712300,"url":"https://github.com/elmot/rpi-clion-example","last_synced_at":"2025-04-23T07:00:21.119Z","repository":{"id":62548546,"uuid":"354828261","full_name":"elmot/rpi-clion-example","owner":"elmot","description":"Clion exapmple project for embedded Linux debug","archived":false,"fork":false,"pushed_at":"2023-03-30T20:31:29.000Z","size":15,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T22:41:10.624Z","etag":null,"topics":["clion","clion-cmake","clion-embedded","cmake","gcc","gdb","raspberry-pi"],"latest_commit_sha":null,"homepage":"","language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elmot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-05T12:32:53.000Z","updated_at":"2024-07-28T23:22:28.000Z","dependencies_parsed_at":"2022-11-03T00:45:20.949Z","dependency_job_id":null,"html_url":"https://github.com/elmot/rpi-clion-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elmot%2Frpi-clion-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elmot%2Frpi-clion-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elmot%2Frpi-clion-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elmot%2Frpi-clion-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elmot","download_url":"https://codeload.github.com/elmot/rpi-clion-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250386746,"owners_count":21422026,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clion","clion-cmake","clion-embedded","cmake","gcc","gdb","raspberry-pi"],"created_at":"2024-11-17T02:19:12.890Z","updated_at":"2025-04-23T07:00:20.939Z","avatar_url":"https://github.com/elmot.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"Clion example project for embedded Linux debug\n===\n\n\n\nThis project demonstrates how to cross-compile and debug an application for Raspberry Pi(RPi).\nA workaround for a feature request\n[CPP-23898](https://youtrack.jetbrains.com/issue/CPP-23898) is also implemented here.\n\nThe project is made for Raspberry Pi OS 64-bit, release date 21-Feb-2023,\nKernel version 5.15, Debian version 11 (bullseye)\n\nRaspberry Pi is configured to have IP address 192.168.0.101, *sshd* to be started on boot.\n\nCross-Compilation\n---\nRPi-compatible toolchain \u0026 sysroot are installed to \nits standard location *C:\\SysGCC\\raspberry64*\n\nTo optimize binary size a special build step is added (see `add_custom_target` clause in `CMakeLists.txt`).\n \n\nDebugging\n---\nA run configuration of type `Remote GDB Server` copies the stripped binary to the target board \nand starts it there under gdbserver. \n\nGenerated '.gdbinit' script forces gdb to use symbols from full (i.e. non-stripped) binary.\n\nWSL/Docker requirements\n---\n* Ubuntu 22.04LTS\n* [CMake 3.23+](https://cmake.org/download/)\n* Packages installed: \n  * binutils-aarch64-linux-gnu\n  * g++-aarch64-linux-gnu\n  * gcc-aarch64-linux-gnu\n  * make\n\nReferences\n* [CLion homepage](https://www.jetbrains.com/clion/) \n* [CLion Remote debug via GDB/gdbserver](https://www.jetbrains.com/help/clion/remote-debug-via-gdb-gdbserver.html)\n* [CMake](https://cmake.org/)\n* [Raspberry Pi toolchain](https://gnutoolchains.com/raspberry64/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felmot%2Frpi-clion-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felmot%2Frpi-clion-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felmot%2Frpi-clion-example/lists"}