MartinF99 / PlastikStyle

GNU Lesser General Public License v2.1
15 stars 3 forks source link

Cannot "make install" #13

Closed Starcr0ss closed 6 months ago

Starcr0ss commented 7 months ago

When I run make install after doing all the other steps in the readme, I get the following error. make: *** No rule to make target 'install'. Stop. I don't know what I am doing wrong. I am on Debian 12 and only want to install the qt5 version

MartinF99 commented 7 months ago

Did you run cmake first?

MartinF99 commented 7 months ago

Sorry I just read you did all the other steps. In the build directory there should be a a makefile, can you attach that

MartinF99 commented 7 months ago

Or try to run cmake with -DCMAKE_INSTALL_PREFIX=/usr so basically cmake -DENABLE_ALL=off -DENABLE_QT5 -DCMAKE_INSTALL_PREFIX=/usr

MartinF99 commented 7 months ago

and then attempt to run make and make install

MartinF99 commented 7 months ago

Any news on this?

Starcr0ss commented 6 months ago

Okay so the command I used to get back to the make install part was cmake -DENABLE_ALL=off -DENABLE_QT5=off -DCMAKE_INSTALL_PREFIX=/usr ../ When I run make install I get: make: *** No rule to make target 'install'. Stop.

Here is the Makefile.txt

MartinF99 commented 6 months ago

Ah I see what's happening DENABLE_ALL disables both qt5 and qt6 so to build qt6 only you need to also call DENABLE_QT6=on

MartinF99 commented 6 months ago

So the full call would be cmake -DENABLE_ALL=off -DENABLE_QT6=on -DCMAKE_INSTALL_PREFIX=/usr ../

Starcr0ss commented 6 months ago

Okay so now I'm getting a new error that may have to do with the fact that I am on Debian 12 which is not really made with Qt6 in mind:

CMake Error at qt6/QStyle/CMakeLists.txt:1 (find_package):
  Could not find a package configuration file provided by "Qt6" with any of
  the following names:

    Qt6Config.cmake
    qt6-config.cmake

  Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"
  to a directory containing one of the above files.  If "Qt6" provides a
  separate development package or SDK, be sure it has been installed.

If I did something like sudo apt install qt6 I would just get E: Unable to locate package qt6 Not really seeing the need to have Qt6 when I specifically am asking to exclude that part

MartinF99 commented 6 months ago

Oh god I haven't been on debian for a while. qt6-default is not a package that exists right? (it was what the metapackages for both qt5 and qt4 were called, but I think those particular metapackages got phased out). can you try installing qt6-base-dev

Starcr0ss commented 6 months ago

That worked! But now it seems I only have it for qt6? Nothing for qt5 and nothing shows up in my plasma settings. I sense we're very close...

On March 30, 2024 2:00:40 AM EDT, Martin Fritz @.***> wrote:

Oh god I haven't been on debian for a while. qt6-default is not a package that exists right? (it was what the metapackages for both qt5 and qt4 were called, but I think those particular metapackages got phased out). can you try installing qt6-base-dev

-- Reply to this email directly or view it on GitHub: https://github.com/MartinF99/PlastikStyle/issues/13#issuecomment-2027932853 You are receiving this because you authored the thread.

Message ID: @.***>

MartinF99 commented 6 months ago

Oh I thought that was your intention. To install for both qt5 and qt6 simply call `cmake -DCMAKE_INSTALL_PREFIX=/usr ../' DENABLE_ALL option is on by default and adds both qt5 and qt6

MartinF99 commented 6 months ago

also you need the qt5-base-dev package

Starcr0ss commented 6 months ago

Oh I thought that was your intention. To install for both qt5 and qt6 simply call `cmake -DCMAKE_INSTALL_PREFIX=/usr ../' DENABLE_ALL option is on by default and adds both qt5 and qt6

Well I only wanted Qt5 actually - nothing of Qt6. But both is definitely an option and we ignore the 6 since it has no use to me

MartinF99 commented 6 months ago

oh then its cmake -DENABLE_ALL=off -DENABLE_QT5=on -DCMAKE_INSTALL_PREFIX=/usr ../ also you need the package qtbase5-dev

MartinF99 commented 6 months ago

I figured that with the cmake call you gave me (with the option -DENABLE_QT5=off) you wanted to turn off qt5 styling.

Starcr0ss commented 6 months ago

oh then its cmake -DENABLE_ALL=off -DENABLE_QT5=on -DCMAKE_INSTALL_PREFIX=/usr ../ also you need the package qtbase5-dev

There we go! Successfully installed and I see it in plasma settings! Thanks so much for your help!