×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

undefined symbol: _ZNK4INDI4Dome15getWeatherStateEv [SOLVED]

  • Posts: 2255
  • Thank you received: 223
I'm getting the following error with my roof driver

2020-09-12T16:14:14: Driver indi_roof_odroid: indi_roof_odroid: symbol lookup error: indi_roof_odroid: undefined symbol: _ZNK4INDI4Dome15getWeatherStateEv
2020-09-12T16:14:14: Driver indi_roof_odroid: stdin EOF
2020-09-12T16:14:14: Driver indi_roof_odroid: restart #2
2020-09-12T16:14:14: Driver indi_roof_odroid: pid=8398 rfd=0 wfd=18 efd=19
Child process 8388 died


any pointers please as to what I need to add/remove?
There was a thread a few weeks ago about domes and weather I think.
3 years 7 months ago #59809

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
Just wondering if the following needs removing?
from github.com/Trigger-broom-289/odroid-indi...droid/odroidroof.cpp

else if (dir == DOME_CW && getWeatherState() == IPS_ALERT)
{
DEBUG(INDI::Logger::DBG_WARNING, "Weather conditions are in the danger zone. Cannot open roof.");
return IPS_ALERT;
}
3 years 7 months ago #59810

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
I think I was on the right track after poking around I've found github.com/indilib/indi-3rdparty/commit/...04d3d24c4e1e1ba6edee
I commented out the above lines and that's ok now, but getting the following now:

Scanning dependencies of target indi_roof_odroid
[ 50%] Building CXX object CMakeFiles/indi_roof_odroid.dir/odroidroof.o
[100%] Linking CXX executable indi_roof_odroid
/usr/bin/ld: /usr/local/lib/libwiringPi.so: undefined reference to `shm_open'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/indi_roof_odroid.dir/build.make:87: indi_roof_odroid] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/indi_roof_odroid.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
3 years 7 months ago #59812

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
I had to add rt to the following line in CMakeLists.txt
Will update my repo later on

target_link_libraries(indi_roof_odroid ${WIRINGPI_LIBRARIES} rt)
3 years 7 months ago #59813

Please Log in or Create an account to join the conversation.

Time to create page: 0.208 seconds