Here’s some stuff I didn’t know, when first I wanted to compile other people’s code.
- If there’s a CMakeLists.txt: mkdir build, cd build, cmake .., make
- If there’s only a Makefile, make
- Subsequent “sudo make install” usually installs it somewhere accessible via path
- If you’re missing a library or header file FOO, probably: apt-get install libFOO-dev
- But you should probably search packages to make sure. I usually use
aptitudeto search, though I think it’s deprecated and you should probably useapt-get installto do the installation
- But you should probably search packages to make sure. I usually use