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

Recast compilation terminated #51

Closed
kowalskiw opened this issue Dec 21, 2022 · 7 comments
Closed

Recast compilation terminated #51

kowalskiw opened this issue Dec 21, 2022 · 7 comments
Assignees
Labels
bug installation issue linked to the installation process

Comments

@kowalskiw
Copy link
Member

Calling bash worker_install.sh -i results in the following error:

In file included from Recast/Detour/Source/DetourNavMesh.cpp:27:
Recast/Detour/Include/DetourAssert.h:35:10: fatal error: boost/python.hpp: No such file or directory
   35 | #include <boost/python.hpp>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
mkdir: cannot create directory ‘/home/aamks_users’: File exists

I also give a try to launch calculations from GUI. Obviously it finished with missing recast module:

Aamks is halting on error:
Traceback (most recent call last): File "/usr/local/aamks/aamks.py", line 5, in from manager.init import OnInit, OnEnd File "/usr/local/aamks/manager/init.py", line 16, in from geom.nav import Navmesh File "/usr/local/aamks/geom/nav.py", line 10, in import _recast as dt ModuleNotFoundError: No module named '_recast'

That installation was made on Ubuntu 22.04.1 LTS set up on VMware Workstation 16.

@kowalskiw kowalskiw added bug installation issue linked to the installation process labels Dec 21, 2022
@kowalskiw
Copy link
Member Author

Probably connected to the #48.

@zarooba01
Copy link
Contributor

zarooba01 commented Dec 21, 2022

Try install libboost-python.
sudo apt-get install libboost-python-dev
Check whether instalation has gone correctly

cd /usr/lib/x86_64-linux-gnu 
ls | grep libboost_python 

You should see something like this:
libboost_python310.so
libboost_python310.so.1.74.0
Now make the link according to your python version
sudo ln -s libboost_python310.so libboost_python3.so
Run worker install again.

@kowalskiw
Copy link
Member Author

Your solution works fine, compilation is completed. What about considering a modification of worker_install.sh in order to check for the missing package?

However, after installing worker on the same machine as the server (local mode) the repository clone is located at /usr/local/aamks/aamks instead of /usr/local/aamks. Is it a correct path for the repo?

@zarooba01
Copy link
Contributor

zarooba01 commented Dec 21, 2022

In worker_install.sh is line with installing libboost-python-dev. It will be vital to check why it's not working properly.

We should take this under consideration. In my opinion it should be fixed to /usr/local/aamks.

@kowalskiw
Copy link
Member Author

kowalskiw commented Dec 21, 2022

OK, so let's conclude the discussion with some tasks linked to this issue to be solved:

  • investigation of libboost-python-dev installation with worker_install.sh (also cmake is not installed)
  • change of repo's location to /usr/local/aamks/ after worker installation

@kowalskiw
Copy link
Member Author

@mmackiewicz97 - it seems like those tasks can be resolved with updating server and worker installers, as we discussed. So, I'm assigning you to this issue, feel free to close it when both tasks from previous comment are finished.

@kowalskiw kowalskiw removed their assignment Dec 29, 2022
@kowalskiw
Copy link
Member Author

Fixed with yesterday's commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug installation issue linked to the installation process
Projects
None yet
Development

No branches or pull requests

3 participants