linux – Trying to compile ch343.c with “make” on manjaro. Getting an eror
I’m new to programming and manjaro, so please be kind.
I’ve been trying to get my ESP32-S3 to connect to my Laptop for some time know. For that I wanted to “make” the ch343.c file. Different Problems have croped up, this is the latest one I absolutly wasn’t able to resolve. I don’t know which other Information would be helpfull to you, so I just give you the error message, if you need other information just ask away.
make
make -C /lib/modules/6.1.51-1-MANJARO/build M=/home/joshua/CodeAufLaptop/IntelligenteLampe_10.09.2023_V2-master/Freenove_Ultimate_Starter_Kit_for_ESP32_S3-main/CH343/Linux/ch343ser_linux/driver
CC [M] /home/joshua/CodeAufLaptop/IntelligenteLampe_10.09.2023_V2-master/Freenove_Ultimate_Starter_Kit_for_ESP32_S3-main/CH343/Linux/ch343ser_linux/driver/ch343.o
/home/joshua/CodeAufLaptop/IntelligenteLampe_10.09.2023_V2-master/Freenove_Ultimate_Starter_Kit_for_ESP32_S3-main/CH343/Linux/ch343ser_linux/driver/ch343.c:1923:20: error: initialization of ‘void (*)(struct tty_struct *, const struct ktermios *)’ from incompatible pointer type ‘void (*)(struct tty_struct *, struct ktermios *)’ [-Werror=incompatible-pointer-types]
1923 | .set_termios = ch343_tty_set_termios,
| ^~~~~~~~~~~~~~~~~~~~~
/home/joshua/CodeAufLaptop/IntelligenteLampe_10.09.2023_V2-master/Freenove_Ultimate_Starter_Kit_for_ESP32_S3-main/CH343/Linux/ch343ser_linux/driver/ch343.c:1923:20: note: (near initialization for ‘ch343_ops.set_termios’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:250: /home/joshua/CodeAufLaptop/IntelligenteLampe_10.09.2023_V2-master/Freenove_Ultimate_Starter_Kit_for_ESP32_S3-main/CH343/Linux/ch343ser_linux/driver/ch343.o] Error 1
make[1]: *** [Makefile:2012: /home/joshua/CodeAufLaptop/IntelligenteLampe_10.09.2023_V2-master/Freenove_Ultimate_Starter_Kit_for_ESP32_S3-main/CH343/Linux/ch343ser_linux/driver] Error 2
make: *** [Makefile:5: default] Error 2
Read more here: Source link