Skip to content
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

PythonAPI make error on windows10 #2082

Closed
StevenCoral opened this issue Sep 8, 2019 · 2 comments
Closed

PythonAPI make error on windows10 #2082

StevenCoral opened this issue Sep 8, 2019 · 2 comments
Labels
stale Issue has not had recent activity

Comments

@StevenCoral
Copy link

StevenCoral commented Sep 8, 2019

Hi,
I have installed Carla numerous times on several OS, and never ran into this one before.
Nor could I find any reference to it online. I am now trying to build from source on Windows 10.
The carla make launch works fine, and it plays, and I can run a python client on another PC on the network and have all the functionality (alas, image transport works slower when not on the same machine).
When I do the make PythonAPI, I get a long build process in the terminal, which ends like that:
image

The egg file does not appear on the dist folder, but if I copy one from another installation - whether I install it or use the add path method - I get the following error on python runtime:
image

Any ideas anyone?
Thanks in advance,
Steve

@StevenCoral
Copy link
Author

I am answering my own post for the sake of whoever runs into the same issue in the future.
Following the errors, the problem lied in the operator overload definition in Waypoint.cpp.
I tried to change the result_type to size_t (the error originated in a cast failure) in Waypoint.h (at the libcarla directory, not PythonAPI because it gets copied from there), and the build moved on to give out the real error: LNK1112: module machine type 'x64' conflicts with target machine type 'X86' .
I then found out that I had somehow, accidentally, installed Python 3.7.4 for x86 (32-bit).
Reinstall Python using a x64 installer, make clean, restart PC and make launch ---> make PythonAPI.
Adding text for google search entries:
error C2664 cannot convert argument 1 from result_type to size_t with

@stale
Copy link

stale bot commented Nov 8, 2019

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.

@stale stale bot added the stale Issue has not had recent activity label Nov 8, 2019
@stale stale bot closed this as completed Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Issue has not had recent activity
Projects
None yet
Development

No branches or pull requests

1 participant