3DDFA_V2 icon indicating copy to clipboard operation
3DDFA_V2 copied to clipboard

sh ./build.sh error on linux

Open bianlongpeng opened this issue 4 years ago • 4 comments

when I run commond 'sh ./build.sh' on centos, error occured as 'render.c:43:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode for (int i = 0; i < ntri; i++) ^ render.c:43:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code ', I soved it by set 'gcc -shared -Wall -O3 render.c -o render.so -fPIC' to 'gcc -shared -Wall -O3 render.c -std=c99 -o render.so -fPIC' , hope can help someone

bianlongpeng avatar Jan 20 '21 02:01 bianlongpeng

I did not test it on CentOS. Or, you can disable it to use the original render Sim3DR, it also works.

cleardusk avatar Jan 22 '21 10:01 cleardusk

Hi, when i run demo.py ,the error :Error in `python': double free or corruption (out): ?do you occur to the problem?

cyjouc avatar Feb 07 '21 01:02 cyjouc

Hi, when i run demo.py ,the error :Error in `python': double free or corruption (out): ?do you occur to the problem?

I have the same problem. Have you solved it?

xieyipeng avatar Sep 22 '21 11:09 xieyipeng

maybe try this way: find render.c and change for(int i=0;i < ntri; i++) to int i; for(i=0;i < ntri; i++)

HUYHUI494 avatar Sep 07 '22 07:09 HUYHUI494