vanvught / rpidmx512

Orange Pi DMX512 / RDM / MIDI / OSC / Art-Net / WS28xx / L6470 / Stepper / TLC59711 / PCA9685 / Servo / PWM / TCNet / SMPTE / RDMNet / LLRP / GD32 / GigaDevice / Raspberry Pi
http://www.orangepi-dmx.org/
MIT License
398 stars 108 forks source link

error: ‘NETWORK_IP4_BROADCAST’ was not declared in this scop #199

Closed zg9uagfv closed 3 years ago

zg9uagfv commented 3 years ago

OS:ubuntu18.04

command: make -f Makefile.Linux

I can't found the definition of ‘NETWORK_IP4_BROADCAST’ in this project. pls help me, thks a lot!!!

got errors as below:

`[/home/xxxxx/projects/rpidmx512/lib-remoteconfig] $detected_OS [Linux] $DEFINES [ -D_TIME_STAMPYEAR=2021 -D_TIME_STAMPMONTH=7 -D_TIME_STAMPDAY=29] $MAKE_FLAGS [] $BUILD_DIRS [build_linux/src build_linux/src/linux] $OBJECTS [ build_linux/src/remoteconfigreboot.o build_linux/src/remoteconfigconst.o build_linux/src/remoteconfigparamsdump.o build_linux/src/remoteconfigstatic.o build_linux/src/remoteconfigparams.o build_linux/src/remoteconfigfactory.o build_linux/src/remoteconfig.o build_linux/src/linux/tftpfileserver.o] mkdir -p build_linux/src build_linux/src/linux mkdir -p lib_linux g++ -D_TIME_STAMPYEAR=2021 -D_TIME_STAMPMONTH=7 -D_TIME_STAMPDAY=29 -I./include -I../lib-hal/include -I../lib-debug/include -I../lib-display/include -I../lib-properties/include -I../lib-hal/include -I../lib-network/include -I../lib-displayudf/include -I../lib-display/include -I../lib-spiflashinstall/include -I../lib-spiflashstore/include -I../lib-rdm/include -I../lib-artnet/include -I../lib-artnet4/include -I../lib-e131/include -I../lib-network/include -I../lib-dmxsend/include -I../lib-dmxserial/include -I../lib-dmx/include -I../lib-dmxmonitor/include -I../lib-ws28xxdmx/include -I../lib-ws28xx/include -I../lib-tlc59711dmx/include -I../lib-tlc59711/include -I../lib-ltc/include -I../lib-tcnet/include -I../lib-midi/include -I../lib-oscserver/include -I../lib-oscclient/include -I../lib-widget/include -I../lib-l6470dmx/include -I../lib-l6470/include -I../lib-rdmsensor/include -I../lib-rdmsubdevice/include -I../lib-showfile/include -I../lib-gps/include -I../lib-rgbpanel/include -I../lib-ddp/include -I../lib-lightset/include -O2 -Wduplicated-cond -Wlogical-op -fno-rtti -fno-exceptions -fno-unwind-tables -Wnon-virtual-dtor -std=c++11 -c src/remoteconfig.cpp -o build_linux/src/remoteconfig.o

src/remoteconfig.cpp: In member function ‘void RemoteConfig::HandleList()’: src/remoteconfig.cpp:472:81: error: ‘NETWORK_IP4_BROADCAST’ was not declared in this scope Network::Get()->SendTo(m_nHandle, s_aId, static_cast(m_nIdLength), NETWORK_IP4_BROADCAST, udp::PORT); ^~~~~ src/remoteconfig.cpp:472:81: note: suggested alternative: ‘NETWORK_IP_SIZE’ Network::Get()->SendTo(m_nHandle, s_aId, static_cast(m_nIdLength), NETWORK_IP4_BROADCAST, udp::PORT); ^~~~~ NETWORK_IP_SIZE src/remoteconfig.cpp:482:87: error: ‘NETWORK_IP4_BROADCAST’ was not declared in this scope Network::Get()->SendTo(m_nHandle, &s_RemoteConfigListBin, sizeof(struct ListBin) , NETWORK_IP4_BROADCAST, udp::PORT); ^~~~~ src/remoteconfig.cpp:482:87: note: suggested alternative: ‘NETWORK_IP_SIZE’ Network::Get()->SendTo(m_nHandle, &s_RemoteConfigListBin, sizeof(struct ListBin) , NETWORK_IP4_BROADCAST, udp::PORT); ^~~~~ NETWORK_IP_SIZE ../linux-template/lib/Rules.mk:109: recipe for target 'build_linux/src/remoteconfig.o' failed

make: *** [build_linux/src/remoteconfig.o] Error 1`