Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

acalib devel for dummies #63

Closed
madiazp opened this issue Jun 13, 2017 · 2 comments
Closed

acalib devel for dummies #63

madiazp opened this issue Jun 13, 2017 · 2 comments

Comments

@madiazp
Copy link
Contributor

madiazp commented Jun 13, 2017

Need the commands and procedures to install acalib devel in a conda enviroment. The idea is that a script can do everything so it must be clear and automatic.

@madiazp
Copy link
Contributor Author

madiazp commented Jun 13, 2017

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.

@madiazp
Copy link
Contributor Author

madiazp commented Jun 13, 2017

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.

@madiazp madiazp closed this as completed Jun 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant