Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no support for Debian Bullyseye #39

Open
MrEnergy64 opened this issue Nov 29, 2022 · 5 comments
Open

no support for Debian Bullyseye #39

MrEnergy64 opened this issue Nov 29, 2022 · 5 comments

Comments

@MrEnergy64
Copy link

Hi, first I though I found the right tool for my Clevo PC50 laptop, but then the awake:

compiling src/clevo-indicator.c
Package appindicator3-0.1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `appindicator3-0.1.pc'
to the PKG_CONFIG_PATH environment variable
Package 'appindicator3-0.1', required by 'virtual:world', not found
src/clevo-indicator.c:50:10: fatal error: libappindicator/app-indicator.h: No such file or directory
50 | #include <libappindicator/app-indicator.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:41: obj/clevo-indicator.o] Error 1

I've tried to install your recommended lib: libappindicator3-dev

but Debian Bullyseye didn't know that lib and installed another one which will not work with your prog:

Note, selecting 'libayatana-appindicator3-dev' instead of 'libappindicator3-dev'
libayatana-appindicator3-dev is already the newest version (0.5.91-1).

Any chance to get it running on Debian 11?

@MrEnergy64
Copy link
Author

Hello Hasan Karaman,

I've installed your recommended lib's (still Debian Bullseye):

The following additional packages will be installed:
gir1.2-ayatanaappindicator-0.1 libayatana-indicator-dev
The following NEW packages will be installed:
gir1.2-ayatanaappindicator-0.1 libayatana-appindicator-dev libayatana-indicator-dev
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 36,2 kB of archives.
After this operation, 207 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://ftp.halifax.rwth-aachen.de/kali kali-rolling/main amd64 gir1.2-ayatanaappindicator-0.1 amd64 0.5.92-1 [9.028 B]
Get:2 http://ftp.halifax.rwth-aachen.de/kali kali-rolling/main amd64 libayatana-indicator-dev amd64 0.9.3-1 [10,8 kB]
Get:3 http://ftp.halifax.rwth-aachen.de/kali kali-rolling/main amd64 libayatana-appindicator-dev amd64 0.5.92-1 [16,4 kB]
Fetched 36,2 kB in 1s (36,0 kB/s)
Selecting previously unselected package gir1.2-ayatanaappindicator-0.1.
(Reading database ... 919346 files and directories currently installed.)
Preparing to unpack .../gir1.2-ayatanaappindicator-0.1_0.5.92-1_amd64.deb ...
Unpacking gir1.2-ayatanaappindicator-0.1 (0.5.92-1) ...
Selecting previously unselected package libayatana-indicator-dev.
Preparing to unpack .../libayatana-indicator-dev_0.9.3-1_amd64.deb ...
Unpacking libayatana-indicator-dev (0.9.3-1) ...
Selecting previously unselected package libayatana-appindicator-dev.
Preparing to unpack .../libayatana-appindicator-dev_0.5.92-1_amd64.deb ...
Unpacking libayatana-appindicator-dev (0.5.92-1) ...
Setting up gir1.2-ayatanaappindicator-0.1 (0.5.92-1) ...
Setting up libayatana-indicator-dev (0.9.3-1) ...
Setting up libayatana-appindicator-dev (0.5.92-1) ...

THEN I CHANGED the MakeFile:

#CFLAGS += pkg-config --cflags appindicator3-0.1
#LDFLAGS += pkg-config --libs appindicator3-0.1

CFLAGS += pkg-config --cflags gir1.2-ayatanaappindicator-0.1
#CFLAGS += pkg-config --cflags libayatana-indicator-dev
LDFLAGS += pkg-config --libs gir1.2-ayatanaappindicator-0.1
#LDFLAGS += pkg-config --libs libayatana-indicator-dev

ERROR:

└─$ sudo make install
compiling src/clevo-indicator.c
Package gir1.2-ayatanaappindicator-0.1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gir1.2-ayatanaappindicator-0.1.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gir1.2-ayatanaappindicator-0.1', required by 'virtual:world', not found
src/clevo-indicator.c:50:10: fatal error: libappindicator/app-indicator.h: No such file or directory
50 | #include <libappindicator/app-indicator.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:48: obj/clevo-indicator.o] Error 1

SECOND TRY:

#CFLAGS += pkg-config --cflags appindicator3-0.1
#LDFLAGS += pkg-config --libs appindicator3-0.1

#CFLAGS += pkg-config --cflags gir1.2-ayatanaappindicator-0.1
CFLAGS += pkg-config --cflags libayatana-indicator-dev
#LDFLAGS += pkg-config --libs gir1.2-ayatanaappindicator-0.1
LDFLAGS += pkg-config --libs libayatana-indicator-dev

ERROR:

└─$ sudo make install
compiling src/clevo-indicator.c
Package libayatana-indicator-dev was not found in the pkg-config search path.
Perhaps you should add the directory containing `libayatana-indicator-dev.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libayatana-indicator-dev', required by 'virtual:world', not found
src/clevo-indicator.c:50:10: fatal error: libappindicator/app-indicator.h: No such file or directory
50 | #include <libappindicator/app-indicator.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:48: obj/clevo-indicator.o] Error 1

AT LEAST:

#CFLAGS += pkg-config --cflags appindicator3-0.1
#LDFLAGS += pkg-config --libs appindicator3-0.1
#CFLAGS += pkg-config --cflags gir1.2-ayatanaappindicator-0.1
#CFLAGS += pkg-config --cflags libayatana-indicator-dev
#LDFLAGS += pkg-config --libs gir1.2-ayatanaappindicator-0.1
#LDFLAGS += pkg-config --libs libayatana-indicator-dev

CFLAGS += pkg-config --cflags libayatana-appindicator-dev
LDFLAGS += pkg-config --libs libayatana-appindicator-dev

ERROR:

sudo make install
compiling src/clevo-indicator.c
Package libayatana-appindicator-dev was not found in the pkg-config search path.
Perhaps you should add the directory containing `libayatana-appindicator-dev.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libayatana-appindicator-dev', required by 'virtual:world', not found
src/clevo-indicator.c:50:10: fatal error: libappindicator/app-indicator.h: No such file or directory
50 | #include <libappindicator/app-indicator.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:52: obj/clevo-indicator.o] Error 1

Those *.pc files are not exist on the Debian system. Nor/any of them.

Any further suggestions?

Thank you in advance.

Norman

@grizzlei
Copy link

grizzlei commented Feb 23, 2023

Hello Norman, can you just try again with this repository (take a look at README): 'https://github.com/grizzlei/clevo-indicator'.

@MrEnergy64
Copy link
Author

Thank you for your really fast feedback. The installation looks much better now:

udo apt install libayatana-appindicator3-dev libgtk-3-dev
git clone https://github.com/grizzlei/clevo-indicator.git
cd clevo-indicator
make install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libayatana-appindicator3-dev is already the newest version (0.5.92-1).
libgtk-3-dev is already the newest version (3.24.36-3).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
fatal: destination path 'clevo-indicator' already exists and is not an empty directory.
compiling src/clevo-indicator.c
linking bin/clevo-indicator from obj/clevo-indicator.o
Install to /usr/local/bin/

but when I started the prog, I got:

/usr/local/bin/clevo-indicator
Simple fan control utility for Clevo laptops
Indicator...
modprobe: FATAL: Module ec_sys not found in directory /lib/modules/6.1.0-kali5-amd64
unable to read EC from sysfs: No such file or directory
main on worker quit signal

Any further hints?

@grizzlei
Copy link

Can you share your kernel version?

@MrEnergy64
Copy link
Author

MrEnergy64 commented Feb 25, 2023

6.1.0-kali5-amd64 (it is a penetration system)
PREEMPT_DYNAMIC Debian 6.1.23-1kali2 (2023-02-23) x86_64
System is Clevo PC50HS Laptop i7-111800H

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants