uavs3 / uavs3e

AVS3 encoder which supports AVS3-P2 baseline profile.
Other
135 stars 62 forks source link

无法在macOS下编译 #34

Open iBobbyTS opened 3 years ago

iBobbyTS commented 3 years ago
/Users/ibobby/GitHub/avs/uavs3e/src/uavs3e.c:1336:5: error: implicit declaration of function 'uavs3e_funs_init_sse' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    uavs3e_funs_init_sse();
    ^
/Users/ibobby/GitHub/avs/uavs3e/src/uavs3e.c:1336:5: note: did you mean 'uavs3e_funs_init_c'?
/Users/ibobby/GitHub/avs/uavs3e/src/../inc/com_util.h:367:6: note: 'uavs3e_funs_init_c' declared here
void uavs3e_funs_init_c();
     ^
/Users/ibobby/GitHub/avs/uavs3e/src/uavs3e.c:1337:9: error: implicit declaration of function 'uavs3e_simd_avx_level' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if (uavs3e_simd_avx_level(NULL) >= 2) {
        ^
/Users/ibobby/GitHub/avs/uavs3e/src/uavs3e.c:1338:9: error: implicit declaration of function 'uavs3e_funs_init_avx2' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        uavs3e_funs_init_avx2();
        ^
3 warnings and 3 errors generated.
make[2]: *** [src/CMakeFiles/uavs3e.dir/uavs3e.c.o] Error 1
make[1]: *** [src/CMakeFiles/uavs3e.dir/all] Error 2
make: *** [all] Error 2

以下是我运行的命令

git clone https://github.com/uavs3/uavs3e.git
cd uavs3e
mkdir build/macos
cd build/macOS
cmake ../..
make