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

error: use of undeclared identifier 'I2C_SLAVE' #98

Open
SegFault42 opened this issue Jan 20, 2023 · 1 comment
Open

error: use of undeclared identifier 'I2C_SLAVE' #98

SegFault42 opened this issue Jan 20, 2023 · 1 comment
Assignees
Labels
bug Something isn't working waiting_response

Comments

@SegFault42
Copy link

SegFault42 commented Jan 20, 2023

Describe the bug
A clear and concise description of what the bug is.

To Reproduce

  1. Download the 1.1.4
  2. make library

Expected behavior
The libray should compile

➜  lcdgfx-1.1.4 make library
mkdir -p /tmp/test1/lcdgfx-1.1.4/bld
make -C ./src/ -f Makefile.linux SDL_EMULATION=n EXTRA_CPPFLAGS="" BLD=/tmp/test1/lcdgfx-1.1.4/bld
cc  -I. -I./v2  -MD -g -Os -Wall -Werror -ffunction-sections -fdata-sections   -c -o v2/utf8.o v2/utf8.c
c++ -std=c++11 -I. -I./v2  -MD -g -Os -Wall -Werror -ffunction-sections -fdata-sections   -c -o lcd_hal/avr/platform.o lcd_hal/avr/platform.cpp
c++ -std=c++11 -I. -I./v2  -MD -g -Os -Wall -Werror -ffunction-sections -fdata-sections   -c -o lcd_hal/avr/i2c_twi.o lcd_hal/avr/i2c_twi.cpp
c++ -std=c++11 -I. -I./v2  -MD -g -Os -Wall -Werror -ffunction-sections -fdata-sections   -c -o lcd_hal/avr/spi_avr.o lcd_hal/avr/spi_avr.cpp
c++ -std=c++11 -I. -I./v2  -MD -g -Os -Wall -Werror -ffunction-sections -fdata-sections   -c -o lcd_hal/avr/i2c_embedded.o lcd_hal/avr/i2c_embedded.cpp
c++ -std=c++11 -I. -I./v2  -MD -g -Os -Wall -Werror -ffunction-sections -fdata-sections   -c -o lcd_hal/avr/spi_usi.o lcd_hal/avr/spi_usi.cpp
c++ -std=c++11 -I. -I./v2  -MD -g -Os -Wall -Werror -ffunction-sections -fdata-sections   -c -o lcd_hal/linux/platform.o lcd_hal/linux/platform.cpp
c++ -std=c++11 -I. -I./v2  -MD -g -Os -Wall -Werror -ffunction-sections -fdata-sections   -c -o lcd_hal/linux/linux_i2c.o lcd_hal/linux/linux_i2c.cpp
lcd_hal/linux/linux_i2c.cpp:75:22: error: use of undeclared identifier 'I2C_SLAVE'
    if ( ioctl(m_fd, I2C_SLAVE, m_sa) < 0 )
                     ^
1 error generated.
make[1]: *** [lcd_hal/linux/linux_i2c.o] Error 1
@SegFault42 SegFault42 added the bug Something isn't working label Jan 20, 2023
@lexus2k
Copy link
Owner

lexus2k commented Feb 12, 2023

Are you compiling the library for Linux platform?
I have compiled the library for Ubuntu 20.04, and no issues are observed so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting_response
Projects
None yet
Development

No branches or pull requests

2 participants