Fix for "make: Nothing to be done for 'install'"
[ci skip]
This commit is contained in:
@@ -192,13 +192,18 @@ By default, qmake `.pro` files generated by Qt Creator unfortunately don't suppo
|
||||
make: Nothing to be done for `install'.
|
||||
find: `appdir/': No such file or directory
|
||||
```
|
||||
### Fix for "make: Nothing to be done for 'install'"
|
||||
|
||||
If `qmake` does not allow for `make install` or does not install the desktop file and icon, then you need to change your `.pro` file it similar to https://github.com/probonopd/FeedTheMonkey/blob/master/FeedTheMonkey.pro.
|
||||
|
||||
[Here](https://github.com/ilia3101/MLV-App/issues/17#issuecomment-393507203) is another simple example.
|
||||
|
||||
It is common on Unix to also use the build tool to install applications and libraries; for example, by invoking `make install`. For this reason, `qmake` has the concept of an install set, an object which contains instructions about the way a part of a project is to be installed.
|
||||
|
||||
Please see the section "Installing Files" on http://doc.qt.io/qt-5/qmake-advanced-usage.html.
|
||||
|
||||
### For projects that use CMake or autotools instead of qmake
|
||||
|
||||
```
|
||||
- make INSTALL_ROOT=appdir install ; find appdir/
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user