moonlight-stream / moonlight-embedded

Gamestream client for embedded systems
https://github.com/moonlight-stream/moonlight-embedded/wiki
GNU General Public License v3.0
1.48k stars 323 forks source link

cmake compiler not set / update to instructions in wiki? #831

Closed RichFromGalvanize closed 2 years ago

RichFromGalvanize commented 2 years ago

Please provide the following info.

_NVidia Geforce Experience version: N/A Moonlight Embedded version: 2.5.1 Moonlight Embedded source: N/A Moonlight Embedded running on: RPi 3B v 1.2 Moonlight Embedded running on distribution: OSMC for RPi 2/3/3+ v2021.08-1

Verbose output -verbose of Moonlight Embedded: N/A (See Below)

I followed the directions exactly as described in the wiki page here: https://github.com/moonlight-stream/moonlight-embedded/wiki/Full-details-for-Compilation-and-Installation-in-Raspbian-Or-OSMC. However when I tried to run cmake I kept getting this error:

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/tmp/moonlight-embedded/build/CMakeFiles/CMakeOutput.log".

I am not an embedded systems programmer so I googled around and this stack overflow answer was the fix for me: https://stackoverflow.com/a/63486955/984078 (install build-essential).

Keep in mind this is a fresh install of OSMC and the instructions went smoothly until cmake. I wanted to suggest maybe updating the instructions to include build-essential in the initial list of libs/deps needed via apt-get? I am more than willing to update the docs myself but I was afraid it would be considered bad practice for some rando to add deps to the install list.

PS, is it expected that the build-essential package is already installed or that I am supposed to know to install that on the pi before going through the instructions?

RichFromGalvanize commented 2 years ago

I found out what I was doing was really really outdated so I decided to close this issue. Information here is still valid though (cmake fails in that environment etc.).