Giter VIP home page Giter VIP logo

Comments (3)

exowanderer avatar exowanderer commented on September 16, 2024 1

Hi @harshkumar13, yes! I had the same problem and made a pull request to address it here Created check for MACOSX with MACH #3.

An example of my edits behind the pull request can be found here:
https://github.com/exowanderer/hotpants/blob/macosx_check_malloc/main.c

The gist is that I added

#if !defined(__MACH__)
#include <malloc.h>
#endif
#if defined(__MACH__)
#include <stdlib.h>
#endif

to every *.c file that imported malloc.h. OSX does not have a real malloc.h; but the underlying malloc infrastructure is the same if we use stdlib.h

Although I haven't looked at the @acbecker's HOTPANTS master branch since February, my fork still works for me now: https://github.com/exowanderer/hotpants/

from hotpants.

exowanderer avatar exowanderer commented on September 16, 2024 1

I think for that, I used brew to install cfitsio; i.e. brew install cfitsio. You may need to direct the hotpants Makefile towards your /usr/local/include directory.

Just in case you don't have brew: https://brew.sh/

from hotpants.

harshkumar13 avatar harshkumar13 commented on September 16, 2024

Hi,
thanks for replying, that error get solved as per your suggestions. but now a new error comes :-
main.c:14:9: fatal error: 'fitsio.h' file not found
#include<fitsio.h>
^~~~~~~~~~
1 error generated.
make: *** [main.o] Error 1
any suggestions for this one?

from hotpants.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.