Giter Site home page Giter Site logo

acalib devel for dummies about acalib HOT 2 CLOSED

madiazp avatar madiazp commented on June 21, 2024
acalib devel for dummies

from acalib.

Comments (2)

madiazp avatar madiazp commented on June 21, 2024

So far I tried with:
git clone https://github.com/ChileanVirtualObservatory/acalib.git
pip install -e acalib

But, when I try to import acalib its fail with this output:
ImportError: No module named 'acalib.core._morph.morph'

I searched the module and is not compiled, tryed to compile it but it has this output:
morph.c:47:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode for(int i = 1; i < n-1; i++) ^ morph.c: In function â��differenceImplâ��: morph.c:7:5: error: â��forâ�� loop initial declarations are only allowed in C99 or C11 mode for(int i = 1; i < n; i++) ^ morph.c:7:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code morph.c: In function â��segmentationImplâ��: morph.c:15:5: error: â��forâ�� loop initial declarations are only allowed in C99 or C11 mode for(int i = 1; i < n-1; i++) ^ morph.c: In function â��erosionImplâ��: morph.c:31:5: error: â��forâ�� loop initial declarations are only allowed in C99 or C11 mode for(int i = 0; i < n; i++) ^ morph.c:35:13: error: redefinition of â��iâ�� for(int i = 1; i < n-1; i++) ^ morph.c:31:13: note: previous definition of â��iâ�� was here for(int i = 0; i < n; i++) ^ morph.c:35:5: error: â��forâ�� loop initial declarations are only allowed in C99 or C11 mode for(int i = 1; i < n-1; i++) ^ morph.c:47:13: error: redefinition of â��iâ�� for(int i = 1; i < n-1; i++) ^ morph.c:35:13: note: previous definition of â��iâ�� was here for(int i = 1; i < n-1; i++) ^ morph.c:47:5: error: â��forâ�� loop initial declarations are only allowed in C99 or C11 mode for(int i = 1; i < n-1; i++)

With those random portuguesse-like characters.

from acalib.

madiazp avatar madiazp commented on June 21, 2024

I fixed it by adding in the setup.py a flag for gcc "-std=c11" and then compile all again (morph and acalib), I will do a pull request.

from acalib.

Related Issues (20)

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.