OpenHEVC / openHEVC

HEVC decoder
http://openhevc.github.io/openHEVC/
533 stars 193 forks source link

Issue when compiling arm #20

Closed romdhann closed 9 years ago

romdhann commented 10 years ago

I'm trying to compile HEVC in with armv7 machine and i have the following error would you please help me to resolve it: /home/linaro/HEVC/openHEVC/libavutil/random_seed.c: In function ‘av_get_random_seed’: /home/linaro/HEVC/openHEVC/./libavutil/x86/timer.h:33:5: error: impossible constraint in ‘asm’ /home/linaro/HEVC/openHEVC/./libavutil/x86/timer.h:33:5: error: impossible constraint in ‘asm’ make[2]: * [CMakeFiles/LibOpenHevcWrapper.dir/libavutil/random_seed.c.o] Error 1 make[1]: * [CMakeFiles/LibOpenHevcWrapper.dir/all] Error 2 make: *\ [all] Error 2

The strange things that I sse in my code that this build is compiling x86 files which is not logical,normally we compile only arm files,thanks to help me :(

mraulet commented 10 years ago

could you report the message within cmake? __ Mickaël

Le 12 juin 2014 à 00:20, romdhann notifications@github.com a écrit :

I'm trying to compile HEVC in with armv7 machine and i have the following error would you please help me to resolve it: /home/linaro/HEVC/openHEVC/libavutil/random_seed.c: In function ‘av_get_random_seed’: /home/linaro/HEVC/openHEVC/./libavutil/x86/timer.h:33:5: error: impossible constraint in ‘asm’ /home/linaro/HEVC/openHEVC/./libavutil/x86/timer.h:33:5: error: impossible constraint in ‘asm’ make[2]: * [CMakeFiles/LibOpenHevcWrapper.dir/libavutil/random_seed.c.o] Error 1 make[1]: * [CMakeFiles/LibOpenHevcWrapper.dir/all] Error 2 make: *\ [all] Error 2

The strange things that I sse in my code that this build is compiling x86 files which is not logical,normally we compile only arm files,thanks to help me :(

— Reply to this email directly or view it on GitHub.

mraulet commented 10 years ago

can you try this branch for the moment hevc_arm? I will ask to try here. This branch is not far from mainstream. __ Mickaël

Le 12 juin 2014 à 00:24, Mickaël Raulet Mickael.Raulet@insa-rennes.fr a écrit :

could you report the message within cmake? __ Mickaël

Le 12 juin 2014 à 00:20, romdhann notifications@github.com a écrit :

I'm trying to compile HEVC in with armv7 machine and i have the following error would you please help me to resolve it: /home/linaro/HEVC/openHEVC/libavutil/random_seed.c: In function ‘av_get_random_seed’: /home/linaro/HEVC/openHEVC/./libavutil/x86/timer.h:33:5: error: impossible constraint in ‘asm’ /home/linaro/HEVC/openHEVC/./libavutil/x86/timer.h:33:5: error: impossible constraint in ‘asm’ make[2]: * [CMakeFiles/LibOpenHevcWrapper.dir/libavutil/random_seed.c.o] Error 1 make[1]: * [CMakeFiles/LibOpenHevcWrapper.dir/all] Error 2 make: *\ [all] Error 2

The strange things that I sse in my code that this build is compiling x86 files which is not logical,normally we compile only arm files,thanks to help me :(

— Reply to this email directly or view it on GitHub.

romdhann commented 10 years ago

Hi Mickaël, I've tried the arm branch and the compilation is still running for x86 and not for arm. For the cmake this is the coammnde that i have used: cmake -DCMAKE_TOOLCHAIN_FILE=../arm-gnueabi.toolchain.cmake ../../..

mraulet commented 10 years ago

We haven't try cross compilation, but direct compilation on the board. I hope this help. __ Mickaël

Le 17 juin 2014 à 00:05, romdhann notifications@github.com a écrit :

Hi Mickaël, I've tried the arm branch and the compilation is still running for x86 and not for arm. For the cmake this is the coammnde that i have used: cmake -DCMAKE_TOOLCHAIN_FILE=../arm-gnueabi.toolchain.cmake ../../..

— Reply to this email directly or view it on GitHub.

michalliu commented 6 years ago

same issue, has anyone resolved the problem?