You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got rid of the error simply by deleting the line, this does not seem to be a good long term solution, but it compiled successfully. Now, in XCode, I am getting: Implicit declaration of function 'Py_Initialize' is invalid in C99 when I try to call any of the methods (eg. Py_Initialize()). Any ideas on why this is?
So I played around with it quite a bit more. I finally got to a place where I got everything working except CPython was having a bunch of errors - I am not exactly sure why. Xcode was complaining about angular vs quoted imports. After I fixed all of these it gave me errors about undefined functions and variables, this is where I pretty much gave up; I don't think I have the skills to debug most of that. That being said, I would really like to get this working and if you can provide some help I would really appreciate it.
PS. The thing I forgot to include was Python.h. Another thing that I needed to do was compile with the arm64 architecture.
Edit
If you want to see the errors I am getting I put my project here and you can see my modified version of python-embedded here. Thanks again for the help :)
Activity
zoecarver commentedon Feb 10, 2018
I fixed this issue by changing
LIBTOOL,LD,CC,SDKROOT, andDEVROOTincompile.py. However, now it is giving me the error:Sorry for all the question, I am just really excited to get this to work :)
zoecarver commentedon Feb 10, 2018
I got rid of the error simply by deleting the line, this does not seem to be a good long term solution, but it compiled successfully. Now, in XCode, I am getting:
Implicit declaration of function 'Py_Initialize' is invalid in C99when I try to call any of the methods (eg.Py_Initialize()). Any ideas on why this is?albertz commentedon Feb 14, 2018
Probably you miss the right
#includestatement which declaresPy_Initialize.zoecarver commentedon Feb 14, 2018
So I played around with it quite a bit more. I finally got to a place where I got everything working except CPython was having a bunch of errors - I am not exactly sure why. Xcode was complaining about angular vs quoted imports. After I fixed all of these it gave me errors about undefined functions and variables, this is where I pretty much gave up; I don't think I have the skills to debug most of that. That being said, I would really like to get this working and if you can provide some help I would really appreciate it.
PS. The thing I forgot to include was
Python.h. Another thing that I needed to do was compile with thearm64architecture.Edit
If you want to see the errors I am getting I put my project here and you can see my modified version of python-embedded here. Thanks again for the help :)