carla icon indicating copy to clipboard operation
carla copied to clipboard

make rebuild fails because of missing directories

Open thbake opened this issue 3 years ago • 8 comments

Hi Carla Team!

I am having some trouble with the command make rebuild. After following your guide on how to create sensors one is supposed to rebuild the project, but I get the following error:

x86_64-linux-gnu-gcc: error: /home/bake/carla/PythonAPI/carla/dependencies/lib/libxerces-c.a: No such file or directory
x86_64-linux-gnu-gcc: error: /home/bake/carla/PythonAPI/carla/dependencies/lib/libproj.a: No such file or directory
x86_64-linux-gnu-gcc: error: /home/bake/carla/PythonAPI/carla/dependencies/lib/libsqlite3.a: No such file or directory
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
make: *** [Util/BuildTools/Linux.mk:38: rebuild] Error 1

I don't know why this is the case since I installed all the dependencies and I also was able to build and launch Carla successfully. Do you have any input on this?

Thanks in advance.

CARLA version: 0.9.12 Platform/OS: Ubuntu 20.04

thbake avatar Nov 04 '21 10:11 thbake

I have the same issue. The system is Ubuntu 20 as well.

Cenbylin avatar Dec 02 '21 13:12 Cenbylin

I am facing the same issue. Also in Ubuntu 20.04. and Carla Version 0.9..12. Did you find any solution?

Thank you in advance

MaikolDrechsler avatar Dec 07 '21 11:12 MaikolDrechsler

Hey guys! No, I haven't I am first trying to integrate LibCarla in a different way and waiting for a response of the developers. If someone replies or I find I way I'll let you know

thbake avatar Dec 07 '21 22:12 thbake

the solution is: DO NOT make rebuild just make clean and make PythonAPI and make launch

IKAROS93 avatar Jan 19 '22 13:01 IKAROS93

@MaikolDrechsler @thbake Same issue here! Have you found a solution?

ucbmpc2021 avatar Feb 26 '22 01:02 ucbmpc2021

@ucbmpc2021 I am just using make launch. If you really need to do a rebuild, you can manually copy the three libraries.

In this case:

  • copy the three libraries from CARLA_FOLDER/Build/proj-install/
  • make rebuild
  • Wait until the CARLA_FOLDER/PythonAPI/carla/dependencies/lib/ folder is created and paste the libraries inside.
  • Wait until the rebuild process is done.

It is just a workaround, but it worked for me. OBS: In the same way, you will need to make launch to initiate the simulator

MaikolDrechsler avatar Feb 28 '22 08:02 MaikolDrechsler

@MaikolDrechsler Thanks for your tips! Very helpful.

ucbmpc2021 avatar Mar 26 '22 22:03 ucbmpc2021

I'm trying to build the code inside Docker, so make launch isn't an option for me. Can someone please fix the make rebuild command? :wink:

Bonifatius94 avatar Jul 11 '22 14:07 Bonifatius94

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[bot] avatar Jun 02 '23 04:06 stale[bot]