3DDFA_V2
3DDFA_V2 copied to clipboard
sh ./build.sh error on linux
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
I did not test it on CentOS. Or, you can disable it to use the original render Sim3DR, it also works.
Hi, when i run demo.py ,the error :Error in `python': double free or corruption (out): ?do you occur to the problem?
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?
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++)