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

I cant even start to install (HELP) #14

Open
massatt212 opened this issue Dec 21, 2020 · 13 comments
Open

I cant even start to install (HELP) #14

massatt212 opened this issue Dec 21, 2020 · 13 comments

Comments

@massatt212
Copy link

sudo make -C /lib/modules/uname -r/build SUBDIRS=pwd SRCROOT=pwd clean modules
make: Entering directory '/usr/src/linux-headers-5.4.0-58-generic'
make[1]: gcc: Command not found
fs/aufs/Makefile:3: fs/aufs/magic.mk: No such file or directory
make[3]: *** No rule to make target 'fs/aufs/magic.mk'. Stop.
make[2]: *** [scripts/Makefile.clean:67: fs/aufs] Error 2
make[1]: *** [Makefile:1764: _clean_fs] Error 2
make: *** [Makefile:340: __build_one_by_one] Error 2
make: Leaving directory '/usr/src/linux-headers-5.4.0-58-generic'

@grandchild
Copy link

gcc Command not found

Well you have to install a compiler to compile this. Try installing the package gcc.

@grandchild
Copy link

(And probably use my fork instead, which fixes some issues: https://github.com/grandchild/gspca-kinect2 )

@massatt212
Copy link
Author

ok thx going to try it now, another thing, will it work with OBS.

@massatt212
Copy link
Author

massatt212 commented Dec 21, 2020

sudo make -C /lib/modules/uname -r/build SUBDIRS=pwd SRCROOT=pwd clean modules
[sudo] password for ssgsmain:
make: Entering directory '/usr/src/linux-headers-5.4.0-58-generic'
fs/aufs/Makefile:3: fs/aufs/magic.mk: No such file or directory
make[3]: *** No rule to make target 'fs/aufs/magic.mk'. Stop.
make[2]: *** [scripts/Makefile.clean:67: fs/aufs] Error 2
make[1]: *** [Makefile:1764: _clean_fs] Error 2
make: *** [Makefile:340: __build_one_by_one] Error 2
make: Leaving directory '/usr/src/linux-headers-5.4.0-58-generic'

And i installed gcc

@grandchild
Copy link

grandchild commented Dec 21, 2020

Try the following make incantation:

make -C /lib/modules/`uname -r`/build M=`pwd` SRCROOT=`pwd` clean modules
(note the M= instead of SUBDIRS=)

@grandchild
Copy link

grandchild commented Dec 21, 2020

Oh, you also need the linux-headers package. The name might be slightly different between distros. Which Linux distro are you on? Have a look for it here: https://pkgs.org/

@grandchild
Copy link

Also don't run make with sudo. It shouldn't disturb anything, but it's not necessary either, and it's a bad habit. For all you know, the Makefile could delete your whole system.

@massatt212
Copy link
Author

M= my pw, SRCROOT= my pw.
i been looking at that and im confused
is it possible to make it a ppa driver or a .deb, im no so far into linux now getting into it, its a bit harder than windows.

@massatt212
Copy link
Author

Oh, you also need the linux-headers package. The name might be slightly different between distros. Which Linux distro are you on? Have a look for it here: https://pkgs.org/

Ubuntu 20.04

@grandchild
Copy link

grandchild commented Dec 22, 2020

wIll it work with OBS

I have not managed to do that, but you might have different results. It's not clear whether it generally can't work, or I'm doing something wrong.


M= my pw, SRCROOT= my pw.
i been looking at that and im confused

That's understandable. Have you tried simply running the make command given above:

make -C /lib/modules/`uname -r`/build M=`pwd` SRCROOT=`pwd` clean modules

?


In regards to the header files, try installing them with the following command:

sudo apt install linux-headers-`uname -r`

@massatt212
Copy link
Author

wIll it work with OBS

I have not managed to do that, but you might have different results. It's not clear whether it generally can't work, or I'm doing something wrong.

M= my pw, SRCROOT= my pw.
i been looking at that and im confused

That's understandable. Have you tried simply running the make command given above:

make -C /lib/modules/`uname -r`/build M=`pwd` SRCROOT=`pwd` clean modules

?

In regards to the header files, try installing them with the following command:

sudo apt install linux-headers-`uname -r`

ya i tried the command and it gave me that error above, but ill test these out

@trobes
Copy link

trobes commented Feb 6, 2021

I've got a different error:
make -C /lib/modules/uname -r/build M=pwd SRCROOT=pwd clean modules
make: Entering directory '/usr/src/linux-headers-5.8.0-7642-generic'
CC [M] /home/$USER/gspca-kinect2/gspca-kinect2-master/kinect2.o
LD [M] /home/$USER/gspca-kinect2/gspca-kinect2-master/gspca_kinect2.o
CC [M] /home/$USER/gspca-kinect2/gspca-kinect2-master/gspca.o
/home/$USER/gspca-kinect2/gspca-kinect2-master/gspca.c: In function ‘gspca_dev_probe2’:
/home/$USER/gspca-kinect2/gspca-kinect2-master/gspca.c:1564:7: error: ‘VFL_TYPE_GRABBER’ undeclared (first use in this function); did you mean ‘VFL_TYPE_SUBDEV’?
1564 | VFL_TYPE_GRABBER,
| ^~~~~~~~~~~~~~~~
| VFL_TYPE_SUBDEV
/home/$USER/gspca-kinect2/gspca-kinect2-master/gspca.c:1564:7: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [scripts/Makefile.build:286: /home/$USER/gspca-kinect2/gspca-kinect2-master/gspca.o] Error 1
make[1]: *** [Makefile:1783: /home/$USER/gspca-kinect2/gspca-kinect2-master] Error 2
make: *** [Makefile:350: __build_one_by_one] Error 2
make: Leaving directory '/usr/src/linux-headers-5.8.0-7642-generic'

@grandchild
Copy link

@trobes I would like if you would try a bit harder:

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

3 participants