cannot run 'make' during installation
After I change my directory to /livewallpaper-
me@OctopodesC:
[ 33%] Building C object CMakeFiles/
/home/sean/
#include "config.h"
compilation terminated.
make[2]: *** [CMakeFiles/
make[1]: *** [CMakeFiles/
make: *** [all] Error 2
I am new to both linux(ubuntu) and livewallpaper.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Maximilian Schnarr
- Solved:
- 2014-08-14
- Last query:
- 2014-08-14
- Last reply:
- 2014-08-14
Maximilian Schnarr (fyrmir) said : | #1 |
I think you did not install all dependencies to compile LiveWallpaper and so cmake could not create the config.h file. If you run cmake .. again in the build directory, cmake will tell you which library it hasn't found. Just install that library and run cmake .. again. If cmake finishes without any error, then you can run make to compile LiveWallpaper.
I run the following command to install all dependencies required to compile and run LiveWallpaper:
sudo apt-get install build-essential cmake libpeas-dev libglew-dev libglib2.0-dev libupower-glib-dev libappindicator
OctopodesC (octopodesc) said : | #2 |
Tried what you said above. cmake .. now disays
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_
cmake_
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sean/
and make had the same problem as before.
Maximilian Schnarr (fyrmir) said : | #3 |
You created the build directory inside the src directory, but this is the wrong place. Your build directory should be in the same directory as the src directory. In your case the build directory has to be /home/sean/
OctopodesC (octopodesc) said : | #4 |
Just restarted and placed build in that directory. both 'cmake ..' and 'make' run without error, but when I tried 'make install' it replied with
-- Install configuration: ""
-- Installing: /usr/local/
CMake Error at include/
file INSTALL cannot set permissions on "/usr/local/
Call Stack (most recent call first):
cmake_
make: *** [install] Error 1
after saying 'Install the project'
|
#5 |
Try 'sudo make install' to install LiveWallpaper
OctopodesC (octopodesc) said : | #6 |
Thanks Maximilian Schnarr, that solved my question.