[x264-devel] Unable to compile x264 with emmake (emscripten)

Michael Heuberger michael.heuberger at binarykitchen.com
Mon Mar 18 09:29:42 CET 2013


Hello guys

I just did a fresh git pull of x264 and ran the command 'emmake make'. 
But these errors below appear, all about undeclared identifiers. Any 
hints, advice what I can do?

Thanks guys,
Michael

common/cpu.c:426:5: error: use of undeclared identifier 'cpu_set_t'
     cpu_set_t p_aff;
     ^
common/cpu.c:427:14: error: use of undeclared identifier 'p_aff'
     memset( &p_aff, 0, sizeof(p_aff) );
              ^
common/cpu.c:428:9: warning: implicit declaration of function 
'sched_getaffinity' is invalid in C99
       [-Wimplicit-function-declaration]
     if( sched_getaffinity( 0, sizeof(p_aff), &p_aff ) )
         ^
common/cpu.c:428:38: error: use of undeclared identifier 'p_aff'
     if( sched_getaffinity( 0, sizeof(p_aff), &p_aff ) )
                                      ^
common/cpu.c:434:49: error: use of undeclared identifier 'p_aff'
     for( unsigned int bit = 0; bit < 8 * sizeof(p_aff); bit++ )
                                                 ^
common/cpu.c:435:29: error: use of undeclared identifier 'p_aff'
         np += (((uint8_t *)&p_aff)[bit / 8] >> (bit % 8)) & 1;
                             ^
1 warning and 5 errors generated.
emcc: compiler frontend failed to generate LLVM bitcode, halting
make: *** [common/cpu.o] Error 1

-- 

Binary Kitchen
Michael Heuberger
4c Dunbar Road
Mt Eden
Auckland 1024
(New Zealand)

Mobile (text only) ...  +64 21 261 89 81
Email ................  michael at binarykitchen.com
Website ..............  http://www.binarykitchen.com



More information about the x264-devel mailing list