MINGW를 관리자 권한으로 실행


$ cd x265/source
$ mkdir build
$ cd build
//$ cmake -G "MSYS Makefiles" .. -DCMAKE_INSTALL_PREFIX=/mingw -DWINXP_SUPPORT=ON -DENABLE_TESTS=ON -//DENABLE_SHARED=OFF

$ cmake -G "Visual Studio 9 2008" .. -DCMAKE_INSTALL_PREFIX=/mingw -DENABLE_TESTS=ON -DENABLE_SHARED=OFF -DHAVE_STRTOK_R=1
$ sed -i.orig -e "/Libs.private/d;/Libs/a Libs.private: -lstdc++" x265.pc
$ make


char* strtok_r(

  char *str, 

  const char *delim, 

  char **nextp)

{

char *ret;


if (str == NULL)

{

str = *nextp;

}


str += strspn(str, delim);


if (*str == '\0')

{

return NULL;

}


ret = str;


str += strcspn(str, delim);


if (*str)

{

*str++ = '\0';

}


*nextp = str;


return ret;

}


+ Recent posts