ljalves / linux_media

TBS linux open source drivers
https://github.com/ljalves/linux_media/wiki
Other
89 stars 150 forks source link

compiling errors on v4l on Centos 8 #177

Open MasterOfDesaster111 opened 2 years ago

MasterOfDesaster111 commented 2 years ago

Hi there, I'm trying to compile the driver for a TBS6902 on Centos 8 with Kernel 4.18.0-348.el8.x86_64 and after executing make I get 2 errors.

first one is this:

**_In file included from ././include/linux/compiler_types.h:58, from : /tmp/ljalves-tbsdriver/media_build/v4l/../linux/include/linux/compiler-gcc.h:2:2: error: #error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead."

error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead."_**

second one is this one:

*_/tmp/ljalves-tbsdriver/media_build/v4l/compat.h: In function 'i2c_lock_adapter': /tmp/ljalves-tbsdriver/media_build/v4l/compat.h:1081:21: error: dereferencing pointer to incomplete type 'struct i2c_adapter' mutex_lock(&adapter->bus_lock); ^~ /tmp/ljalves-tbsdriver/media_build/v4l/compat.h: At top level: /tmp/ljalves-tbsdriver/media_build/v4l/compat.h:1083:46: warning: 'struct i2c_adapter' declared inside parameter list will not be visible outside of this definition or declaration static inline void i2c_unlock_adapter(struct i2c_adapter adapter) ^~~ /tmp/ljalves-tbsdriver/media_build/v4l/compat.h: In function 'i2c_unlock_adapter': /tmp/ljalves-tbsdriver/media_build/v4l/compat.h:1085:23: error: dereferencing pointer to incomplete type 'struct i2c_adapter' mutex_unlock(&adapter->buslock);**

I have also tried the tbs forked driver but it fails too but with:

_**In file included from : /tmp/tbsdriver/media_build/v4l/compat.h:721:10: fatal error: linux/frame.h: No such file or directory

include <linux/frame.h>

      ^~~~~~~~~~~~~~~

compilation terminated. make[3]: [scripts/Makefile.build:315: /tmp/tbsdriver/media_build/v4l/msp3400-driver.o] Fehler 1 make[3]: Es wird auf noch nicht beendete Prozesse gewartet.... In file included from : /tmp/tbsdriver/media_build/v4l/compat.h:721:10: fatal error: linux/frame.h: No such file or directory

include <linux/frame.h>

      ^~~~~~~~~~~~~~~

compilation terminated. make[3]: *** [scripts/Makefile.build:315: /tmp/tbsdriver/media_build/v4l/msp3400-kthreads.o] Fehler 1 In file included from : /tmp/tbsdriver/media_build/v4l/compat.h:721:10: fatal error: linux/frame.h: No such file or directory

include <linux/frame.h>

      ^~~~~~~~~~~~~~~

compilation terminated. make[3]: *** [scripts/Makefile.build:315: /tmp/tbsdriver/media_build/v4l/ccs-core.o] Fehler 1 In file included from : /tmp/tbsdriver/media_build/v4l/compat.h:721:10: fatal error: linux/frame.h: No such file or directory

include <linux/frame.h>**_

What can I do to get rid of it?

Thank you

Andreas

error output.txt