Announcement

Collapse
No announcement yet.

Unable to build custom cursor from SVG

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

    [PLASMA 5] Unable to build custom cursor from SVG

    I downloaded the breeze-Plasma-5.18 from invent.kde.org . Then tried to build a custom cursor theme from the source files. I modified the source SVG to accommodate the changes. Sadly, the build fails and I do not know why.

    The script runs and there is almost no output. The script checks the requirements for build and says Ok, it also creates the folders. But when it fails to generate cursor files from the SVG. I am attaching the custom SVG I created to this post. If possible, kindly help me build it. Thanks.
    Attached Files

    #2
    Technically, all we have to do is replace the SVG and run build.sh . If anyone can try with my SVG file that would be nice.
    Last edited by Grahm; Jun 13, 2020, 06:22 AM.

    Comment


      #3
      I put your SVG in the breeze-master root.
      Changed to breeze-master/cursors/Breeze/ (where build.sh is).
      Ran ./build.sh (I made it executable, it wasn't).

      Code:
      $ ./build.sh
      Checking Requirements... DONE
      Making Folders... DONE
      Generating simple cursor pixmaps... DONE
      Generating animated cursor pixmaps... DONE
      Generating cursor theme... DONE
      Generating shortcuts... DONE
      Copying Theme Index... DONE
      COMPLETE!
      (took about one sec.)

      Under breeze-master/cursors/Breeze/Breeze/ I then had an index.theme and a cursors folder, containing 113 items, for a total of 2.6 MB.
      Compressed, that folder comes to 275 KB. Would you like it?

      [EDIT]
      I looked at the script. The modified SVG is supposed to go in the src folder.
      So I did that. and the script does go BOOM.
      It just keeps spitting out "** (inkscape:13163): WARNING **: 19:39:19.748: Unknown LPE type specified, LPE stack effectively disabled" and generates no cursors.
      Now, groogling that warning does not give much hope.

      Sorry, can't help, really. :·/
      Last edited by Don B. Cilly; Jun 13, 2020, 11:44 AM.

      Comment


        #4
        I see. Thanks for the effort. Then it has to be something with the SVG. Any chance we can get someone to attend this ?

        LPE is Live Path Effect in Inkscape. Here I used it to add fillet / curve to shard edges.
        Last edited by Grahm; Jun 13, 2020, 12:13 PM.

        Comment


          #5
          I have removed all LPEs in this attached file. If you don't mind, kindly give it another try. Thanks.
          Attached Files

          Comment


            #6
            That seems to work
            Code:
            08:29 not@all:~/Documents/var/code/testing/breeze-master/cursors/Breeze$ ./build.sh
            Checking Requirements... DONE
            Making Folders... DONE
            Generating simple cursor pixmaps... DONE
            Generating animated cursor pixmaps... DONE
            Generating cursor theme... DONE
            Generating shortcuts... DONE
            Copying Theme Index... DONE
            COMPLETE!
            08:37 not@all:~/Documents/var/code/testing/breeze-master/cursors/Breeze$
            I left the whole host & path just to show... it took some 8 minutes :·)
            During which it was showing progress, but overwriting it.

            Doesn't it work there? Do you run it from konsole?

            Comment


              #7
              You are awesome. Sadly, it didn't work for me. Not sure why.

              It would be nice if I can have the Breeze cursor folder. Thanks.

              Tried just now. It goes on like this

              $ ./build.sh
              Checking Requirements... DONE
              Making Folders... DONE
              Unknown option -f cursor pixmaps... alias
              Unknown option -f
              Unknown option -f
              Unknown option -f cursor pixmaps... all-scroll
              Unknown option -f
              Unknown option -f
              Unknown option -f cursor pixmaps... bottom_left_corner
              Unknown option -f
              Unknown option -f
              Unknown option -f cursor pixmaps... bottom_right_corner
              Unknown option -f
              Unknown option -f
              Unknown option -f cursor pixmaps... bottom_side
              Last edited by Grahm; Jun 13, 2020, 01:19 PM.

              Comment


                #8
                @Don.B.Silly May I know your Inkscape version ? I am using 1.0.

                Comment


                  #9
                  Inkscape is v. 0.92.3
                  I can't seem to find a way to attach a file to a private message (and .tar.gz is invalid), so... here goes.

                  Breeze.zip

                  Comment


                    #10
                    Originally posted by Grahm View Post
                    You are awesome. Sadly, it didn't work for me. Not sure why.

                    It would be nice if I can have the Breeze cursor folder. Thanks.

                    Tried just now. It goes on like this
                    The reply to your post on reddit is probably very relevant. if the script is just old enough, and your inkscape is very recent, the '-f' option used in may be keeping it from running successfully. Maybe look at the text of the build.sh file, which is listed as being three years old.
                    Don is probably using Neon, ie 18.04's version of Inkscape.

                    Try editing the script to remove all instances of '-f' in any lines that also contain inkscape (and only on those lines), save, and and try it again.

                    Comment


                      #11
                      Originally posted by Don B. Cilly View Post
                      Inkscape is v. 0.92.3
                      I can't seem to find a way to attach a file to a private message (and .tar.gz is invalid), so... here goes.

                      [ATTACH]8943[/ATTACH]
                      Thank you. It works

                      Comment


                        #12
                        Originally posted by claydoh View Post
                        The reply to your post on reddit is probably very relevant. if the script is just old enough, and your inkscape is very recent, the '-f' option used in may be keeping it from running successfully. Maybe look at the text of the build.sh file, which is listed as being three years old.
                        Don is probably using Neon, ie 18.04's version of Inkscape.

                        Try editing the script to remove all instances of '-f' in any lines that also contain inkscape (and only on those lines), save, and and try it again.
                        Thanks. I will try.

                        Comment


                          #13
                          Now it shows

                          $ ./build.sh
                          Checking Requirements... DONE
                          Making Folders... DONE
                          Unknown option -e cursor pixmaps... alias
                          Unknown option -e
                          Unknown option -e
                          Unknown option -e cursor pixmaps... all-scroll
                          Unknown option -e
                          Unknown option -e
                          Unknown option -e cursor pixmaps... bottom_left_corner
                          I think the only way is to use a system with 0.92 version of Inkscape.

                          Comment


                            #14
                            Goody gumdrops
                            Just blind luck that the only person who tried it (me ;·) had a version of Inkscape old enough for it to work, eh? :·)

                            Comment


                              #15
                              I was working on this since some time. So happy that I could finally use it.

                              And yes, lucky enough

                              Comment

                              Working...
                              X