nexdome / ASCOM

NexDome ASCOM Driver
https://www.nexdome.com
MIT License
6 stars 7 forks source link

Trying to Build Modified Code for different diamater Dome #45

Closed Bruceaust closed 3 years ago

Bruceaust commented 3 years ago

Hi. I'm a DIYer and have built a small dome in the backyard of our house! I am not a commercial user or manufacturer of domes .... I just love tinkering! If someone can help with my problem I would be very appreciative. I have used the now old version 3 of the Nexdome software ( Awesome ...thankyou ), in an effort to run my little 1m Plywood Dome.. There in lies the problem! The rotator firmware works fine except the number of steps 360 rotation is way to much for my little 1m dome! I have read through the code and found where to change the required number of steps to suit.. Now all I have to do is re-compile/rebuild the firmware and upload onto my Arduino. I have installed Visual studio with the Micro plugin and Arduino IDE as mentioned by Tigra in their description of the firmware (thankyou!) But no matter what I try , I cannot seem to get the "Build" to work. I must be missing a setting in the IDE somewhere? Any help in my problem would be fantastic. I must stress, I am not a commercial user but a keen Astronomer! Regards, Bruce

Bruceaust commented 3 years ago

A portion of the output after a "Build" attempt:

new_opnt.cpp: 25:54: error: expected primary-expression before 'const size_t numBytes, const std::nothrow_t& ) throw(){ ^~~~~

new_opvnt.cpp: 25:39: error: declaration of 'operator new []' as non-function size_t numBytes, const std::nothrow_t& ) throw(){ ^~

new_opvnt.cpp: 25:39: error: 'size_t' is not a member of 'std new_opvnt.cpp:25: note suggested alternative

stdlib.h:48: In file included from new.h:22: from new:5: from new_opvnt.cpp:20: from stddef.h:216: note size_t typedef __SIZE_TYPE__ size_t ^~

new_opvnt.cpp: 25:56: error: expected primary-expression before 'const size_t numBytes, const std::nothrow_t& ) throw(){ ^~~~~ support.cpp: 25:2: warning: "*" within comment [-Wcomment] The amount of data needed is the size of the object PLUS* Error compiling libraries Debug build failed for project 'TA.NexDome.Rotator'