| 1291 | |
| 1292 | === ./configure fails to update os_auto.h === #mingw-configure |
| 1293 | |
| 1294 | If you have error similar to: |
| 1295 | |
| 1296 | {{{ |
| 1297 | In file included from ../include/pj/types.h:33, |
| 1298 | from ../include/pj/ioqueue.h:33, |
| 1299 | from .. |
| 1300 | ../include/pj/config.h:1072:4: error: #error "PJ_HAS_HIGH_RES_TIMER is not defined!" |
| 1301 | ../include/pj/config.h:1088:4: error: #error "PJ_EMULATE_RW_MUTEX should be defined in compat/os_xx.h" |
| 1302 | ../include/pj/config.h:1092:4: error: #error "PJ_THREAD_SET_STACK_SIZE should be defined in compat/os_xx.h" |
| 1303 | ../include/pj/config.h:1092:4: error: #error "PJ_THREAD_ALLOCATE_STACK should be defined in compat/os_xx.h" |
| 1304 | .. |
| 1305 | }}} |
| 1306 | |
| 1307 | and typically followed by tens of subsequent errors, this is caused by the {{{configure}}} script's inability to update the macros in {{{pj/compat/os_auto.h.in}}}, causing all of them to be undefined, and this is caused by '''newline a.k.a CR/LF problem''' of your PJSIP distribution. Make sure you download the Unix .tar.bz2 version (which has LF newlines) rather than Windows .zip version, which has CR/LF newlines. |
| 1308 | |