gehelem / indi_cam90_ccd

Indilib driver for CAM90 diy camera
GNU General Public License v3.0
7 stars 1 forks source link

compile error #3

Open acseyang opened 2 years ago

acseyang commented 2 years ago

Consolidate compiler generated dependencies of target cam90 [ 50%] Built target cam90 Consolidate compiler generated dependencies of target indi_cam90_ccd [ 75%] Building CXX object CMakeFiles/indi_cam90_ccd.dir/cam90_ccd.o /Users/charlesyang/tmp/indi_cam90_ccd/cam90_ccd.cpp:30:11: error: illegal initializer (only variables can be initialized) const int POLLMS = 300; / Polling interval 500 ms / ^ /usr/local/include/libindi/defaultdevice.h:506:16: note: expanded from macro 'POLLMS'

define POLLMS refCurrentPollingPeriod()

           ^

/Users/charlesyang/tmp/indi_cam90_ccd/cam90_ccd.cpp:235:16: warning: 'refCurrentPollingPeriod' is deprecated [-Wdeprecated-declarations] SetTimer ( POLLMS ); ^ /usr/local/include/libindi/defaultdevice.h:506:16: note: expanded from macro 'POLLMS'

define POLLMS refCurrentPollingPeriod()

           ^

/usr/local/include/libindi/defaultdevice.h:504:60: note: 'refCurrentPollingPeriod' has been explicitly marked deprecated here uint32_t &refCurrentPollingPeriod() attribute((deprecated)); ^ /Users/charlesyang/tmp/indi_cam90_ccd/cam90_ccd.cpp:382:20: warning: 'refCurrentPollingPeriod' is deprecated [-Wdeprecated-declarations] SetTimer ( POLLMS ); ^ /usr/local/include/libindi/defaultdevice.h:506:16: note: expanded from macro 'POLLMS'

define POLLMS refCurrentPollingPeriod()

           ^

/usr/local/include/libindi/defaultdevice.h:504:60: note: 'refCurrentPollingPeriod' has been explicitly marked deprecated here uint32_t &refCurrentPollingPeriod() attribute((deprecated)); ^ /Users/charlesyang/tmp/indi_cam90_ccd/cam90_ccd.cpp:383:9: warning: 'defineNumber' is deprecated [-Wdeprecated-declarations] defineNumber ( &GainNP ); ^ /usr/local/include/libindi/defaultdevice.h:152:70: note: 'defineNumber' has been explicitly marked deprecated here void defineNumber(INumberVectorProperty nvp) attribute((deprecated)); ^ /Users/charlesyang/tmp/indi_cam90_ccd/cam90_ccd.cpp:384:9: warning: 'defineNumber' is deprecated [-Wdeprecated-declarations] defineNumber ( &OffsetNP ); ^ /usr/local/include/libindi/defaultdevice.h:152:70: note: 'defineNumber' has been explicitly marked deprecated here void defineNumber(INumberVectorProperty nvp) attribute((deprecated)); ^ /Users/charlesyang/tmp/indi_cam90_ccd/cam90_ccd.cpp:386:9: warning: 'defineNumber' is deprecated [-Wdeprecated-declarations] defineNumber ( &BaudrateANP ); ^ /usr/local/include/libindi/defaultdevice.h:152:70: note: 'defineNumber' has been explicitly marked deprecated here void defineNumber(INumberVectorProperty nvp) attribute((deprecated)); ^ /Users/charlesyang/tmp/indi_cam90_ccd/cam90_ccd.cpp:387:9: warning: 'defineNumber' is deprecated [-Wdeprecated-declarations] defineNumber ( &BaudrateBNP ); ^ /usr/local/include/libindi/defaultdevice.h:152:70: note: 'defineNumber' has been explicitly marked deprecated here void defineNumber(INumberVectorProperty nvp) attribute((deprecated)); ^ /Users/charlesyang/tmp/indi_cam90_ccd/cam90_ccd.cpp:388:9: warning: 'defineNumber' is deprecated [-Wdeprecated-declarations] defineNumber ( &LibftditimerANP ); ^ /usr/local/include/libindi/defaultdevice.h:152:70: note: 'defineNumber' has been explicitly marked deprecated here void defineNumber(INumberVectorProperty nvp) attribute((deprecated)); ^ /Users/charlesyang/tmp/indi_cam90_ccd/cam90_ccd.cpp:389:9: warning: 'defineNumber' is deprecated [-Wdeprecated-declarations] defineNumber ( &LibftdilatencyANP ); ^ /usr/local/include/libindi/defaultdevice.h:152:70: note: 'defineNumber' has been explicitly marked deprecated here void defineNumber(INumberVectorProperty nvp) attribute((deprecated)); ^ /Users/charlesyang/tmp/indi_cam90_ccd/cam90_ccd.cpp:390:9: warning: 'defineNumber' is deprecated [-Wdeprecated-declarations] defineNumber ( &LibftditimerBNP ); ^ /usr/local/include/libindi/defaultdevice.h:152:70: note: 'defineNumber' has been explicitly marked deprecated here void defineNumber(INumberVectorProperty nvp) attribute((deprecated)); ^ /Users/charlesyang/tmp/indi_cam90_ccd/cam90_ccd.cpp:391:9: warning: 'defineNumber' is deprecated [-Wdeprecated-declarations] defineNumber ( &LibftdilatencyBNP ); ^ /usr/local/include/libindi/defaultdevice.h:152:70: note: 'defineNumber' has been explicitly marked deprecated here void defineNumber(INumberVectorProperty nvp) attribute((deprecated)); ^ /Users/charlesyang/tmp/indi_cam90_ccd/cam90_ccd.cpp:392:9: warning: 'defineSwitch' is deprecated [-Wdeprecated-declarations] defineSwitch ( &CoolerSP ); ^ /usr/local/include/libindi/defaultdevice.h:170:70: note: 'defineSwitch' has been explicitly marked deprecated here void defineSwitch(ISwitchVectorProperty svp) attribute((deprecated)); ^ /Users/charlesyang/tmp/indi_cam90_ccd/cam90_ccd.cpp:393:9: warning: 'defineNumber' is deprecated [-Wdeprecated-declarations] defineNumber ( &CoolerNP ); ^ /usr/local/include/libindi/defaultdevice.h:152:70: note: 'defineNumber' has been explicitly marked deprecated here void defineNumber(INumberVectorProperty nvp) attribute((deprecated)); ^ /Users/charlesyang/tmp/indi_cam90_ccd/cam90_ccd.cpp:480:5: warning: expression result unused [-Wunused-value] cameraStopExposure; ^~~~~~ /Users/charlesyang/tmp/indi_cam90_ccd/cam90_ccd.cpp:608:16: warning: 'refCurrentPollingPeriod' is deprecated [-Wdeprecated-declarations] SetTimer ( POLLMS ); ^ /usr/local/include/libindi/defaultdevice.h:506:16: note: expanded from macro 'POLLMS'

define POLLMS refCurrentPollingPeriod()

           ^

/usr/local/include/libindi/defaultdevice.h:504:60: note: 'refCurrentPollingPeriod' has been explicitly marked deprecated here uint32_t &refCurrentPollingPeriod() attribute((deprecated)); ^ 14 warnings and 1 error generated. make[2]: [CMakeFiles/indi_cam90_ccd.dir/cam90_ccd.o] Error 1 make[1]: [CMakeFiles/indi_cam90_ccd.dir/all] Error 2 make: *** [all] Error 2