On 2013-05-15 8:59 AM, Jesse Cloutier wrote: > Hello all, > > I am new to compiling software on windows, I was wondering if anyone > has had success compiling the python libraries on windows with python > 2.7. I can compile against 2.4 no problem but haven't been able to get > it to work with python 2.7. I found a list post from 2007 that > recommended editing pjsip-apps/build/python_pjsua.vcxproj accordingly > > So these are the steps I have taken with VS2012 and Windows 8: > Imported the project, everything imports OK > Create the config_site.h (empty) > Set pjsua as startup project, build pjsua OK > Modify all references of python24 and Python-2.4 to python27 and > Python-2.7 respectively in 'pjsip-apps/build/python_pjsua.vcxproj' > Modify the properties of the python_pjsua project to include the > C:\python27\libs and C:\python27\include > Build python_pjsua FAIL > > VS gives me 31 errors here ar a few: > Error 10 error LNK2019: unresolved external symbol > __imp__PyType_Ready referenced in function _init_pjsua C:\Users\Jesse > Cloutier\Library\Projects\pjproject-2.1\pjproject-2.1.0\pjsip-apps\build\_pjsua.obj > python_pjsua > Error 11 error LNK2019: unresolved external symbol > __imp__PyType_GenericNew referenced in function > _py_pjsua_media_config_default C:\Users\Jesse > Cloutier\Library\Projects\pjproject-2.1\pjproject-2.1.0\pjsip-apps\build\_pjsua.obj > python_pjsua > Error 12 error LNK2019: unresolved external symbol > __imp__PyCallable_Check referenced in function _cb_log_cb > C:\Users\Jesse > Cloutier\Library\Projects\pjproject-2.1\pjproject-2.1.0\pjsip-apps\build\_pjsua.obj > python_pjsua > > > Can anyone point me in the right direction? > > Thanks I figured it out, it was just because I was using the 64-bit version of python27. I replaced it with the 32-bit from python.org and everything compiles perfectly Thanks