commaai / openpilot

openpilot is an operating system for robotics. Currently, it upgrades the driver assistance system on 275+ supported cars.
https://comma.ai/openpilot
MIT License
49.87k stars 9.09k forks source link

libqt_replay.a(consoleui.o): undefined reference to symbol 'nodelay' #27745

Closed hiteshhedwig closed 1 year ago

hiteshhedwig commented 1 year ago

Describe the bug

STEPS:

Following : tools/README.md

1)

# for Ubuntu 20.04 LTS
tools/ubuntu_setup.sh

2)

cd openpilot && poetry shell

3) Now upon running the below command. It produces the error.

scons -u -j$(nproc)

ERROR

scons: Reading SConscript files ...

Git commit hash for gitversion.h: e1805f65

scons: warning: Two different environments were specified for target /tmp/scons_cache/moc_files/moc_map_renderer.cc,
        but they appear to have the same action: $QT_MOC $QT_MOCFROMHFLAGS -o ${TARGETS[0]} $SOURCE
File "/home/hedwig/heetez/cool_stuff/OpenSourced/openpilot/selfdrive/navd/SConscript", line 21, in <module>
scons: done reading SConscript files.
scons: Building targets ...
generate_dbc_json(["tools/cabana/generate_dbc_json"], [])
tools/cabana/dbc/generate_dbc_json.py --out tools/cabana/dbc/car_fingerprint_to_dbc.json
clang++ -o tools/replay/replay -Wl,--as-needed -Wl,--no-undefined -Wl,-rpath=/home/hedwig/heetez/cool_stuff/OpenSourced/openpilot/third_party/acados/x86_64/lib -Wl,-rpath=/home/hedwig/heetez/cool_stuff/OpenSourced/openpilot/third_party/snpe/x86_64-linux-clang -Wl,-rpath=/home/hedwig/heetez/cool_stuff/OpenSourced/openpilot/cereal -Wl,-rpath=/home/hedwig/heetez/cool_stuff/OpenSourced/openpilot/common -Wl,-rpath=/home/hedwig/heetez/cool_stuff/OpenSourced/openpilot/third_party/mapbox-gl-native-qt/x86_64 -Wl,-rpath=/home/hedwig/heetez/cool_stuff/OpenSourced/openpilot/third_party/mapbox-gl-native-qt/x86_64 tools/replay/main.o -Lthird_party/acados/x86_64/lib -Lthird_party/snpe/x86_64-linux-clang -Lthird_party/libyuv/x64/lib -Lthird_party/mapbox-gl-native-qt/x86_64 -Lcereal -Lcommon -L/usr/lib -L/usr/local/lib -Lcereal -Lthird_party -Lopendbc/can -Lselfdrive/boardd -Lcommon -L/home/hedwig/anaconda3/lib -Lselfdrive/ui tools/replay/libqt_replay.a -lavutil -lavcodec -lavformat -lbz2 -lcurl -lyuv -lncurses -lqt_util common/libcommon.a -ljson11 cereal/libmessaging.a cereal/libcereal.a cereal/libvisionipc.a common/transformations/libtransformations.a -lzmq -lcapnp -lkj -lm -lssl -lcrypto -lpthread -lQt5Widgets -lQt5Gui -lQt5Core -lQt5Network -lQt5Concurrent -lQt5Multimedia -lQt5Quick -lQt5Qml -lQt5QuickWidgets -lQt5Location -lQt5Positioning -lQt5DBus -lQt5Xml -lGL -lOpenCL
Generated and written to tools/cabana/dbc/car_fingerprint_to_dbc.json
/usr/bin/ld: tools/replay/libqt_replay.a(consoleui.o): undefined reference to symbol 'nodelay'
/usr/bin/ld: /home/hedwig/anaconda3/lib/./libtinfow.so.6: error adding symbols: DSO missing from command line
clang: error: linker command failed with exit code 1 (use -v to see invocation)
scons: *** [tools/replay/replay] Error 1
scons: building terminated because of errors.

Any idea what possible mistake could be?

OS Version

Ubunutu 20.04

openpilot version or commit

No response

Additional info

No response

deanlee commented 1 year ago

You need to install the following packages:

libncurses5-dev 
libncursesw5-dev
adeebshihadeh commented 1 year ago

Thanks for reporting!

hiteshhedwig commented 1 year ago

Hi, @deanlee thanks alot

Running these two commands below did the job.

sudo apt-get install libncurses5-dev 
sudo apt-get install libncursesw5-dev

Thanks~!

adeebshihadeh commented 1 year ago

@deanlee any idea why this wasn't caught in CI?