-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make PythonAPI failing on Windows(CARLA 0.9.11): failed with exit status 1120 #4060
Comments
@EchoYJJ Thank you for the question. Are you able to post the full output of the |
Hi! @corkyw10 Glad to receive your reply. I'm sure I run the commands in the x64 Native Tools command prompt. For sake of the big scale of the full output, I put it in the txt below. By the way, I also try to run "make launch" anyway. This is my make launch output. It will open CarlaUE4, but nothing shows up. |
Hi, About the unresolved external errors it seems you are using Python 3.8 instead the Python 3.7, or maybe you have more than one version. I suggest to run the make commands using the ARGS="--python-version=3.7" parameter to specify which version you want to use, otherwise it can be that the Boost library takes one version, and the CARLA build systems takes another version, and then we have mismatch. Another thing to check is that you have installed the x64 version of Python and not the x32 version. Regards |
Hi @bernatx I do as you recommand, I download 7-Zip to "C:\Program Files (x86)\7-Zip". I don't know whether the position is right. I also try to extract that file by hand, but it says "The File is corrupted". I notice the file is only 250KB, not so big like you say. Perhaps something went wrong with my tar file, do you know how to fix it? Regards |
otherwise it can be that the Boost library takes one version, and the CARLA build systems takes another version, and then we have mismatch. hi, i have the same problem, how to examine the version of boost version. on@boost@@ya?AVobject@123@AEBV4123@AEBV?$handle@U_object@@@23@1@Z) |
Hi, You can check which version of python goes to this file: |
Hi @bernatx , there do exist that file, could you please tell me how to check it. |
@7788boy after removing conda and running the
|
No, I didn't receive this. |
Hi @7788boy, somehow I missed your reply. Currently, I have stopped using carla from source (using it from source is very inconsistent). I am just using the pre build version. If I build it again and face errors, I will post it here. P.S: I was using the source version in order to use the new vehicle import in carla |
I have the same exact problem and i tried to build it on an other computer and the same exact error message occured (so the problem is not with my PC ?), i only have one version of python (3.7) and VS2017. Is there any hope i can solve this ? (been stuck with this problem for 3 days now ) |
I occurred same problem(unresolvable external commands). But I resolved. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi, I hit that issue and fix it by myself. I hope my experiences and fixes will be useful to everyone :) Condition
Fix for Condition AIn this case, the paroblem raised by python environment. After my testing, conda and pyenv will have the same problem. For non-pro user, you can use the checklist below:
For pro user, you can check these things in your system:
I did not succeed in successfully compiling the Python API using the Python virtual environment, so we can continue the discussion here :) Fix for Condition BIn this case, the paroblem caused by a small 'quotation mark missing bug' in
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
In my case, it works to run "make PythonAPI" two times without any changes. But I have no idea why it works. |
how to solve this problem? I face the same problem,救命 |
你解决了吗?我又碰到了一样的问题 |
Hi! I'm trying to build CARLA 0.9.11 on windows.
After running "make PythonAPI", my [Setup] receive success. However, my [BuildLibCarla] ends up with warning below:
build\lib.win-amd64-3.8\carla\libcarla.cp38-win_amd64.pyd : fatal error LNK1120: 77 个无法解析的外部命令(unresolvable external commands)
error: command 'D:\VS2017\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with exit status 1120
Although it says "-[BuildPythonAPI]: Carla lib for python has been successfully installed in "D:\carla\PythonAPI\carla\dist"!",
dist doesn't show up in carla.
I also notice many warnings shows up like below:
libcarla.obj : error LNK2001: 无法解析的外部符号(unresolvable external commands) "class boost::python::handle __cdecl boost::python::objects::registered_class_object(struct boost::python::type_info)" (?registered_class_object@objects@python@boost@@ya?AV?$handle@U_typeobject@@@23@Utype_info@23@@z)
I've read #2348 and #2339, but couldn't find the solution.
If you know how to solve this issue, please give me some advices.
Thanks in advance!
The text was updated successfully, but these errors were encountered: