Announcement

Collapse
No announcement yet.

KdmThemeGenerator Using "cmake" and "make" in jaunty [solved]

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    KdmThemeGenerator Using "cmake" and "make" in jaunty [solved]

    I just found this in kde-look:
    http://www.kde-look.org/content/show...content=102760

    and it looked like fun.

    So, I Downloaded it and followed the instructions below:
    Install:
    -download source KdmThemeGenerator.tar.gz
    -go to your download directory
    -extract tar: tar -xvvf KdmThemeGenerator.tar.gz
    -go to the script directory: cd KdmThemeGenerator
    -execute cmake .
    -execute make
    -generate theme in user space: ./KdmThemeGenerator
    -copy file to system space:
    sh copyFromUserToSystem.sh
    -select MyKdmTheme:
    Ubuntu:
    System settings > Advanced > Login manager > Theme > MyKdmTheme > Apply
    Opensuse:
    yast2: System > /etc/sysconfig Editor > Desktop > Display manager > DISPLAYMANAGER_KDM_THEME type MyKdmTheme
    I had to install cmake which I did and executed and got this:
    fintan2@fintanws2:~/Downloads/KDE4/KdmThemeGenerator$ cmake
    cmake version 2.6-patch 2
    Usage

    cmake [options] <path-to-source>
    cmake [options] <path-to-existing-build>

    Options
    -C <initial-cache> = Pre-load a script to populate the cache.
    -D <var>:<type>=<value> = Create a cmake cache entry.
    -U <globbing_expr> = Remove matching entries from CMake cache.
    -G <generator-name> = Specify a makefile generator.
    -Wno-dev = Suppress developer warnings.
    -Wdev = Enable developer warnings.
    -E = CMake command mode.
    -i = Run in wizard mode.
    -L[A][H] = List non-advanced cached variables.
    -N = View mode only.
    -P <file> = Process script mode.
    --graphviz=[file] = Generate graphviz of dependencies.
    --system-information [file] = Dump information about this system.
    --debug-trycompile = Do not delete the try compile directories..
    --debug-output = Put cmake in a debug mode.
    --trace = Put cmake in trace mode.
    --help-command cmd [file] = Print help for a single command and exit.
    --help-command-list [file] = List available listfile commands and exit.
    --help-commands [file] = Print help for all commands and exit.
    --help-compatcommands [file]= Print help for compatibility commands.
    --help-module module [file] = Print help for a single module and exit.
    --help-module-list [file] = List available modules and exit.
    --help-modules [file] = Print help for all modules and exit.
    --help-custom-modules [file]= Print help for all custom modules and exit.
    --help-policy cmp [file] = Print help for a single policy and exit.
    --help-policies [file] = Print help for all policies and exit.
    --help-property prop [file] = Print help for a single property and exit.
    --help-property-list [file] = List available properties and exit.
    --help-properties [file] = Print help for all properties and exit.
    --help-variable var [file] = Print help for a single variable and exit.
    --help-variable-list [file] = List documented variables and exit.
    --help-variables [file] = Print help for all variables and exit.
    --copyright [file] = Print the CMake copyright and exit.
    --help = Print usage information and exit.
    --help-full [file] = Print full help and exit.
    --help-html [file] = Print full help in HTML format.
    --help-man [file] = Print full help as a UNIX man page and exit.
    --version [file] = Show program name/version banner and exit.

    Generators

    The following generators are available on this platform:
    Unix Makefiles = Generates standard UNIX makefiles.
    CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
    Eclipse CDT4 - Unix Makefiles
    = Generates Eclipse CDT 4.0 project files.
    KDevelop3 = Generates KDevelop 3 project files.
    KDevelop3 - Unix Makefiles = Generates KDevelop 3 project files.

    fintan2@fintanws2:~/Downloads/KDE4/KdmThemeGenerator$ make
    Executing make gave me this:
    fintan2@fintanws2:~/Downloads/KDE4/KdmThemeGenerator$ make
    make: *** Keine Targets angegeben und keine »make«-Steuerdatei gefunden. Schluss.
    fintan2@fintanws2:~/Downloads/KDE4/KdmThemeGenerator$
    Which is probably normal as cmake didn't work either.

    I was never really very good with this stuff so if someone could point me in the right direction?
    HP Pavilion dv6 core i7 (Main)
    4 GB Ram
    Kubuntu 18.10

    #2
    Re: Using &quot;cmake&quot; and &quot;make&quot; in jaunty

    Fintan it looks like you did not follow this instruction:
    -execute cmake .
    There is a period after "cmake". I don't see it in your bash input.

    Comment


      #3
      Re: Using &quot;cmake&quot; and &quot;make&quot; in jaunty

      One way to do it


      Build depends: build-essential, cmake, libplasma-dev, kdelibs5-dev, libqt4-dev


      Unpacking 102760-KdmThemeGenerator.tar.gz

      cd to /KdmThemeGenerator and making a builddir:
      Code:
      mkdir -p builddir
      Moving to the builddir and then making the Makefile
      Code:
      cd builddir && cmake .. -DCMAKE_INSTALL_PREFIX=/usr
      Should get:
      -- Configuring done
      -- Generating done
      -- Build files have been written to: /your/path/to/KdmThemeGenerator/builddir
      Compiling & linking:
      Code:
      make
      Should get:
      [100%] Built target KdmThemeGenerator
      The /builddir should have the executable: KdmThemeGenerator


      When you execute it => kdm theme is generated to the /home/<YOUR_USERNAME>/.kde/share/apps/kdm/themes/MyKdmTheme

      The /KdmThemeGenerator directory has a script: copyFromUserToSystem.sh
      When you execute it, the theme (MyKdmTheme) is copied to the /usr/share/kde4/apps/kdm/themes.



      Before you edit, BACKUP !

      Why there are dead links ?
      1. Thread: Please explain how to access old kubuntu forum posts
      2. Thread: Lost Information

      Comment


        #4
        Re: Using &quot;cmake&quot; and &quot;make&quot; in jaunty

        Thank you dible and rog.

        cmake . did not do the trick.

        after following the above (build-essential, etc)

        and doing:
        Code:
        fintan2@fintanws2:~/Downloads/KDE4/KdmThemeGenerator$ cd builddir && cmake .. -DCMAKE_INSTALL_PREFIX=/usr
        I had to back to:
        /Downloads/KDE4/KdmThemeGenerator
        and do:
        Code:
        make
        that worked.

        Now i did:
        Code:
        KdmThemeGenerator
        :begin: Cannot paint on a null pixmap
        QPainter::end: Painter not active, aborted
        QPainter::begin: Cannot paint on a null pixmap
        QPainter::end: Painter not active, aborted
        QPainter::begin: Cannot paint on a null pixmap
        QPainter::end: Painter not active, aborted
        QPainter::begin: Cannot paint on a null pixmap
        QPainter::end: Painter not active, aborted
        QPainter::begin: Cannot paint on a null pixmap
        QPainter::end: Painter not active, aborted
        QPainter::begin: Cannot paint on a null pixmap
        QPainter::end: Painter not active, aborted
        QPainter::begin: Cannot paint on a null pixmap
        QPainter::end: Painter not active, aborted
        QPainter::begin: Cannot paint on a null pixmap
        QPainter::end: Painter not active, aborted
        fintan2@fintanws2:~/Downloads/KDE4/KdmThemeGenerator$
        So far so good.
        Now doing this:
        fintan2@fintanws2:~/Downloads/KDE4/KdmThemeGenerator$ sudo ./copyFromUserToSystem.sh
        [sudo] password for fintan2:
        sudo: ./copyFromUserToSystem.sh: command not found
        fintan2@fintanws2:~/Downloads/KDE4/KdmThemeGenerator$

        The file:
        /.kde/share/apps/kdm/themes/MyKdmTheme
        exists

        Now I did:
        sh copyFromUserToSystem.sh

        That worked. It is in the system settings->Login manager > Theme > MyKdmTheme > Apply
        but that does nothing?

        Anyway thanks guys I will have o look into this and get back to you


        Edit:
        This is great it took my desktop walpaper and theme and automaticly gave me a beautiful (subjectivly) kdm.

        I will post this on kde-look for others to follow an change the titel a bit
        HP Pavilion dv6 core i7 (Main)
        4 GB Ram
        Kubuntu 18.10

        Comment

        Working...
        X