Xfce Forum

Sub domains
 

You are not logged in.

#1 2018-08-07 01:19:04

johnywhy
Member
Registered: 2011-10-09
Posts: 288

[Solved] Can't Build xfce4-generic-slider

No doubt my own mistake.

i downloaded xfce4-generic-slider-master.tar.gz
from https://git.xfce.org/panel-plugins/xfce … er/commit/

Extracted to a folder:

~/Downloads/xfce4-generic-slider-master$ ls
AUTHORS     configure.ac.in  Makefile.am  NEWS          po
autogen.sh  COPYING          module.xml   panel-plugin  README

i did not edit any files.

Doc says:

Building and Installing - It is a simple:
make && sudo make install.

http://goodies.xfce.org/projects/panel- … installing

i got:

~/Downloads/xfce4-generic-slider-master# make && sudo make install
make: *** No targets specified and no makefile found.  Stop.

Last edited by johnywhy (2018-09-06 18:43:05)


arch xfce x86_64

Offline

#2 2018-08-09 11:20:14

onkelho
Member
Registered: 2010-07-28
Posts: 21

Re: [Solved] Can't Build xfce4-generic-slider

you must install autogen and or autoconf , by your distro needed packagebuild-utils they are in the repo, i not knowing mint and
ubuntus
but i packaging xfce since a few years

then you open a terminal in the opened folder where the source .tar.gz is extracted
now you type
./autogen.sh
if its ready type
./configure --help  -> to see more or specified option for your build before make
-- if you would other than normaly options, try
./configure --your-option --next-option...

if ready try
make
if ready try
su -> for global install and if you give  ./configure the option --prefix=/usr/?/? or what ever needed

now you should have a install of the package but it is not easy to remove
so you should install all needed building-packages and use your distribution-preferred package-installer

Cheers

Offline

#3 2018-08-09 13:39:32

johnywhy
Member
Registered: 2011-10-09
Posts: 288

Re: [Solved] Can't Build xfce4-generic-slider

onkelho wrote:

it is not easy to remove
so you should install all needed building-packages and use your distribution-preferred package-installer

many thx, i will try it.
but what do you mean "not easy to remove"?
the make utilities? or the slider?

Update:
i got:

$ ./autogen.sh
autogen.sh: You don't seem to have the Xfce development tools installed on
            your system, which are required to build this software.
            Please install the xfce4-dev-tools package

i installed that package. Then i got:

$ ./autogen.sh
xdt-autogen: You must have "glib2" installed.

However, in Synaptic it looks like i do have glib2 installed, correct?

XzP7PQl.png

Not sure what to do now.

THX

Last edited by johnywhy (2018-08-09 18:19:17)


arch xfce x86_64

Offline

#4 2018-08-10 14:43:09

onkelho
Member
Registered: 2010-07-28
Posts: 21

Re: [Solved] Can't Build xfce4-generic-slider

johnywhy wrote:
onkelho wrote:

it is not easy to remove
so you should install all needed building-packages and use your distribution-preferred package-installer

many thx, i will try it.
but what do you mean "not easy to remove"?
the make utilities? or the slider?

Update:
i got:

$ ./autogen.sh
autogen.sh: You don't seem to have the Xfce development tools installed on
            your system, which are required to build this software.
            Please install the xfce4-dev-tools package

i installed that package. Then i got:

$ ./autogen.sh
xdt-autogen: You must have "glib2" installed.

However, in Synaptic it looks like i do have glib2 installed, correct?

http://i.imgur.com/XzP7PQl.png

Not sure what to do now.

THX

yes you have glib2 installed, but not the headerfiles of the lib, they are include on glib2-devel packages
cheers

Offline

#5 2018-08-10 18:16:23

johnywhy
Member
Registered: 2011-10-09
Posts: 288

Re: [Solved] Can't Build xfce4-generic-slider

thx, getting closer, but no cigar. i got:

Please add the files
  codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
  progtest.m4
from the /usr/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/

This post says i can ignore that:
https://askubuntu.com/a/58435

also getting:

X Window system libraries and header files are required

did:

apt-fast install xorg-dev

got:

checking for libxfce4ui-1 >= 4.12.0... not found
*** The required package libxfce4ui-1 was not found on your system.
*** Please install libxfce4ui-1 (atleast version 4.12.0) or adjust
*** the PKG_CONFIG_PATH environment variable if you
*** installed the package in a nonstandard prefix so that
*** pkg-config is able to find it.

i can see in Synaptic that libxfce4ui-1 is installed.

i installed xfce4-panel-dev

did:

export PKG_CONFIG_PATH="/usr/lib/pkgconfig:$PKG_CONFIG_PATH"

https://forums.linuxmint.com/viewtopic. … 7&t=198801

got same libxfce4ui-1 error.

did:

apt-fast install libgtk2.0-dev

got same libxfce4ui-1 error.

i did:

locate pkg-config
/etc/dpkg/dpkg.cfg.d/pkg-config-hook-config
/usr/bin/i686-linux-gnu-pkg-config
/usr/bin/pkg-config
/usr/bin/x86_64-linux-gnu-pkg-config
/usr/bin/x86_64-pc-linux-gnu-pkg-config
/usr/lib/pkg-config.multiarch
/usr/share/pkg-config-crosswrapper
/usr/share/pkg-config-dpkghook
/usr/share/bash-completion/completions/pkg-config
/usr/share/doc/pkg-config
/usr/share/doc/pkg-config/AUTHORS
/usr/share/doc/pkg-config/NEWS.gz
/usr/share/doc/pkg-config/README
/usr/share/doc/pkg-config/changelog.Debian.gz
/usr/share/doc/pkg-config/copyright
/usr/share/doc/pkg-config/pkg-config-guide.html
/usr/share/lintian/data/files/pkg-config-bad-regex
/usr/share/man/man1/pkg-config.1.gz
/var/lib/dpkg/info/pkg-config.conffiles
/var/lib/dpkg/info/pkg-config.list
/var/lib/dpkg/info/pkg-config.md5sums
/var/lib/dpkg/info/pkg-config.postinst
/var/lib/dpkg/info/pkg-config.prerm


root@minty-boost:/mnt/D81CF64D1CF62662/Downloads/Linux/xfce4-generic-slider/xfce4-generic-slider-master# locate pkgconfig
/mnt/D81CF64D1CF62662/Documents/Old Desktop/Compilers/http%3a%2f%2fwww.goh4.com%2fcygwin%2f/release/pkgconfig
/usr/lib/pkgconfig
/usr/lib/pkgconfig/gnome-system-tools.pc
/usr/lib/pkgconfig/libgdiplus.pc
/usr/lib/pkgconfig/pm-utils.pc
/usr/lib/rpm/pkgconfigdeps.sh
/usr/lib/rpm/fileattrs/pkgconfig.attr
/usr/lib/x86_64-linux-gnu/pkgconfig
/usr/lib/x86_64-linux-gnu/pkgconfig/geoclue-2.0.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/gtk-engines-2.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/reiserfscore.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/xfce4-session-2.0.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/xorg-wacom.pc
/usr/share/pkgconfig
/usr/share/gtksourceview-3.0/language-specs/pkgconfig.lang
/usr/share/pkgconfig/adwaita-icon-theme.pc
/usr/share/pkgconfig/bash-completion.pc
/usr/share/pkgconfig/fontutil.pc
/usr/share/pkgconfig/gnome-icon-theme-symbolic.pc
/usr/share/pkgconfig/gnome-icon-theme.pc
/usr/share/pkgconfig/iso-codes.pc
/usr/share/pkgconfig/mobile-broadband-provider-info.pc
/usr/share/pkgconfig/poppler-data.pc
/usr/share/pkgconfig/shared-mime-info.pc
/usr/share/pkgconfig/systemd.pc
/usr/share/pkgconfig/udev.pc
/usr/share/pkgconfig/usbutils.pc
/usr/share/pkgconfig/xbitmaps.pc
/usr/share/pkgconfig/xkbcomp.pc
/usr/share/pkgconfig/xkeyboard-config.pc
/usr/share/pkgconfig/yelp-xsl.pc
/usr/src/libdvd-pkg/build/debian/libdvdcss-dev/usr/lib/x86_64-linux-gnu/pkgconfig
/usr/src/libdvd-pkg/build/debian/libdvdcss-dev/usr/lib/x86_64-linux-gnu/pkgconfig/libdvdcss.pc
/usr/src/libdvd-pkg/build/debian/tmp/usr/lib/x86_64-linux-gnu/pkgconfig
/usr/src/libdvd-pkg/build/debian/tmp/usr/lib/x86_64-linux-gnu/pkgconfig/libdvdcss.pc

checked
https://git.xfce.org/panel-plugins/xfce … 3ce243a6f3

tried

$ diff --git a/Makefile b/Makefile
diff: unrecognized option '--git'

then tried:

xfce4-generic-slider-master$ git diff --no-index a b
error: Could not access 'a'

https://unix.stackexchange.com/a/216667

any ideas?

Last edited by johnywhy (2018-08-10 20:11:42)


arch xfce x86_64

Offline

#6 2018-08-11 18:55:04

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,482

Re: [Solved] Can't Build xfce4-generic-slider

checking for libxfce4ui-1 >= 4.12.0... not found

There should be a package like "libxfce4ui-1-dev" in the repositories. You need to install that one.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2018-08-11 21:42:17

johnywhy
Member
Registered: 2011-10-09
Posts: 288

Re: [Solved] Can't Build xfce4-generic-slider

That worked! How did you know, ToZ?

After `./autogen.sh`, i did `make`. That seemed to work too.
Now, how to install the slider to a panel?

THX

Last edited by johnywhy (2018-08-11 21:43:25)


arch xfce x86_64

Offline

#8 2018-08-12 00:27:56

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,482

Re: [Solved] Can't Build xfce4-generic-slider

johnywhy wrote:

That worked! How did you know, ToZ?

The hint is in the error message. Debian-based distros separate the binary and development packages - usually appending "-dev" to the development ones.

After `./autogen.sh`, i did `make`. That seemed to work too.
Now, how to install the slider to a panel?

Because debian-based distros split the 32 and 64-bit library destinations, you need to specify the correct library location. Also, you can combine the "autogen.sh" and "configure" commands into one set.

Run this command:

./autogen.sh --prefix=/usr --libdir=/usr/lib/`uname -m`-linux-gnu --disable-static --disable-debug

However, if you're running this on Mint 19, it won't work. For some reason, Mint isn't packaging the libxfce4panel-1.0 development/pc files that are required. It's only providing the newer libxfce4panel-2.0 files and the generic slider is still built on the previous (ie. not upgraded to gtk3 yet).


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#9 2018-08-12 00:53:44

MountainDewManiac
Member
From: Where Mr. Bankruptcy is Prez
Registered: 2013-03-24
Posts: 1,115

Re: [Solved] Can't Build xfce4-generic-slider

As Mint is Ubuntu-based, is there a PPA that would have that file? Or another location to download it from?

And how likely is it that a person could cause problems by using such (versions of) files, when they're not already available? Dependency Hell?

Regards,
MDM


Mountain Dew Maniac

How to Ask for Help <=== Click on this link

Offline

#10 2018-08-12 01:18:55

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,482

Re: [Solved] Can't Build xfce4-generic-slider

@MDM, not that I'm aware of. It's interesting that Mint does it this way.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#11 2018-08-12 03:32:35

johnywhy
Member
Registered: 2011-10-09
Posts: 288

Re: [Solved] Can't Build xfce4-generic-slider

ToZ wrote:

However, if you're running this on Mint 19, it won't work.

you mean, no way to use the slider plugin on Mint 19?

THX


arch xfce x86_64

Offline

#12 2018-08-12 04:30:36

MountainDewManiac
Member
From: Where Mr. Bankruptcy is Prez
Registered: 2013-03-24
Posts: 1,115

Re: [Solved] Can't Build xfce4-generic-slider

You might try to get Clem to add the older version of the libxfce4panel-1.0 development/pc files or the newer version of the generic slider (if one exists). Or to just compile the end product for us.

Regards,
MDM


Mountain Dew Maniac

How to Ask for Help <=== Click on this link

Offline

#13 2018-08-12 11:35:03

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,482

Re: [Solved] Can't Build xfce4-generic-slider

johnywhy wrote:
ToZ wrote:

However, if you're running this on Mint 19, it won't work.

you mean, no way to use the slider plugin on Mint 19?

THX

I see you created a bug report on the Xfce bug tracker. This is not the correct place for the bug report - you should report it to the Mint bug tracker. They need to provide both the libxfce4panel-1.0 and libxfce4panel-2.0 libraries and development files/headers.

Edit: Although, based on what you posted to the bug tracker, it looks like it worked for you. You did this on Mint 19, right?

Last edited by ToZ (2018-08-12 11:37:09)


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#14 2018-08-12 12:26:55

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,482

Re: [Solved] Can't Build xfce4-generic-slider

Okay, my bad. Mint has the development files separated into 2 packages (xfce4-panel-dev & libxfce4panel-2-dev). It will work if both are installed.

So basically @johnywhy, there are two ways to do this:

1. The "make" way:
Run the following commands:

./autogen.sh --prefix=/usr --libdir=/usr/lib/`uname -m`-linux-gnu --disable-static --disable-debug
make 
sudo make install

...and then add the panel plugin to the panel. However, this manual method makes it difficult to track the package using apt/dpkg and may lead to problems down the road.

2. The proper debian-based method of creating packages. See: https://coderwall.com/p/urkybq/how-to-c … rom-source


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#15 2018-08-12 14:39:05

johnywhy
Member
Registered: 2011-10-09
Posts: 288

Re: [Solved] Can't Build xfce4-generic-slider

ToZ wrote:

--prefix=/usr --libdir=/usr/lib/`uname -m`-linux-gnu --disable-static --disable-debug

Can you break down those switches?

problems down the road.

For the slider, the OS, or either?


arch xfce x86_64

Offline

#16 2018-08-12 16:27:03

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,482

Re: [Solved] Can't Build xfce4-generic-slider

johnywhy wrote:
ToZ wrote:

--prefix=/usr --libdir=/usr/lib/`uname -m`-linux-gnu --disable-static --disable-debug

Can you break down those switches?

"--prefix" - means where to install to. Default is /usr/local. Most distros use "/usr".
"--libdir" - means where to install the libraries. For debian-based distros this needs to go to the appropriate architecture location which can be determined by "/usr/lib/`uname -m`-linux-gnu"
"--disable-static" - as I understand it, it means create dynamically-linkable shared libraries that can be loaded once and shared amongst many calling programs. For example, if you added 2 slider plugins to your panel, they would share the same plugin library instead of each loading its own. Its a more efficient use of space and memory.
"--disable-debug" - means don't include debug information into the compiled programs. Alternatively, if you want extra debug information (in case you are trying to debug a problem, you would use "--enable-debug".

problems down the road.

For the slider, the OS, or either?

It is better to use the distro's natural method of packaging. Using the make method, you have to manually manage any built applications, which can become a hassle down the road (e.g. trying to install a package but "file exists" because of something you manually compiled or "make uninstall" doesn't remove everything and leaves remnants lying around).


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#17 2018-08-12 21:37:41

johnywhy
Member
Registered: 2011-10-09
Posts: 288

Re: [Solved] Can't Build xfce4-generic-slider

ToZ wrote:

It is better to use the distro's natural method of packaging. Using the make method, you have to manually manage any built applications, which can become a hassle down the road (e.g. trying to install a package but "file exists" because of something you manually compiled or "make uninstall" doesn't remove everything and leaves remnants lying around).

ah, so make install then i'm not using apt install, correct? So the executable might not be listed in synaptic, or uninstallable with apt remove. Correct.

many thx for all the details.


arch xfce x86_64

Offline

#18 2018-08-12 21:49:57

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,482

Re: [Solved] Can't Build xfce4-generic-slider

johnywhy wrote:

ah, so make install then i'm not using apt install, correct? So the executable might not be listed in synaptic, or uninstallable with apt remove. Correct.

Yes and yes.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#19 2018-09-06 05:40:22

johnywhy
Member
Registered: 2011-10-09
Posts: 288

Re: [Solved] Can't Build xfce4-generic-slider

i have solved this with yad.

i made a brightness slider that's not dependent on Power Manager. No background processes. Works a treat.

viewtopic.php+%28302%C3%9794%29.jpg

To understand the basic function, and to ensure you have yad, try this at a command-line:

yad --scale --print-partial

and this, with different values (but not 0, your screen will go black!):

echo 10000000  > /sys/class/backlight/intel_backlight/brightness

full script:

#!/bin/sh 
BrPath='/sys/class/backlight/intel_backlight/' 
BrCur=`cat ${BrPath}brightness` 
BrMax=`cat ${BrPath}max_brightness` 
BrMin=$(( (BrMax + (100 - 1)) / 100))   # 100th max-brightness, rounded up to nearest integer 
yad --scale --min-value $BrMin --max-value $BrMax --value $BrCur --print-partial --title 'Set brightnessradky's Dpup Stretch 7.5 (RC3)' --width 300 --fixed --sticky --mouse --on-top --escape-ok --button OK --hide-value | while read BrNew 
   do echo "$BrNew" > ${BrPath}brightness 
   done 

details and debugging tips:
http://murga-linux.com/puppy/viewtopic.php?t=114229


arch xfce x86_64

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.012 seconds, 7 queries executed - Memory usage: 650.15 KiB (Peak: 682.99 KiB) ]