CFITSIO failure on windows
Robert Lancaster
rlancaste at gmail.com
Sun Mar 1 22:43:47 GMT 2020
Hi, based on the response from Johnny Jazeix, that Jasem forwarded to me (since apparently I wasn’t signed up for ode-windows and didn’t realize it), I was able to figure out this issue.
The problem is that cfitsio depends upon lib curl, and on mingw, lib curl apparently defines tbyte so there is a conflict. If lib curl is not installed it complains about that, so I had installed it which caused the build error. I found this online based on what Johnny said. In there also was the solution, if zlib is installed apparently it doesn’t need lib curl. So I removed lib curl, installed zlib and cfitsio built fine!
Thank you very much!
> On Feb 29, 2020, at 12:17 PM, Robert Lancaster <rlancaste at gmail.com> wrote:
>
> HI Hannah and craft team,
>
> I was trying to set up a craft environment in a windows virtual machine yesterday to test some code I have been working on to use astrometry.net <http://astrometry.net/>. When I was setting it up, following the instructions on this page, https://community.kde.org/Guidelines_and_HOWTOs/Build_from_source/Windows <https://community.kde.org/Guidelines_and_HOWTOs/Build_from_source/Windows>, I ran into an error I did not expect. There was a build error for CFITSIO. I didn’t expect that because CFITSIO is a very commonly used package and it is a requirement for Kstars which I know is built by craft on both windows and Mac very often. So I don’t see why CFITSIO would have an error, since I thought that package was already working very well. So I figure there must be something wrong with the way I set things up, or with some craft settings maybe?
>
> Here was the error it encountered: C:/CraftRoot/build/_/8a54fcf/cfitsio-3.47/fitsio.h:220:22: error: expected identifier or '(' before numeric constant. #define TBYTE 11
>
> I have also attached a craft log.
>
> I would appreciate any help you could provide,
>
> Thanks,
>
> Rob
>
> <log-C_CraftRoot.txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-windows/attachments/20200301/e4adf069/attachment.html>
More information about the Kde-windows
mailing list