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

Make error with Generating ui_preferencesDialog.h on Docker, Need help. #1133

Closed
cdb0y511 opened this issue Sep 12, 2023 · 3 comments
Closed

Comments

@cdb0y511
Copy link
Contributor

Hi, @matlabbe.
Typically, with apt install libpcl-dev on docker files (similar to https://github.com/introlab/rtabmap/tree/master/docker/frontiers2022 but with latest FROM nvcr.io/nvidia/pytorch:23.07-py3 (ubuntu 22.04) and some extra package like libpoitmatcher.), it comes with a related qt5 package installed, all build and run smoothly. However, the vtk9 continues to generate stupid warnings like (PointCloudLibrary/pcl#4830). So, I have to build the PCL and vtk from the source with VTK_LEGACY_REMOVE=ON to stop it.

I manually apt install qtcreator qtbase5-dev qt5-qmake qttools5-private-dev qtdeclarative5-dev for qt. Rebuild PCL and OpenCV. However, when build rtabmap from source, Generating ui_preferencesDialog.h or ui_*
It outputs make error: /bin/bash: line 1: -o: command not found which locate to "cd /workspace/rtabmap/build/guilib/src && -o /workspace/rtabmap/build/guilib/src/ui_preferencesDialog.h" in make files.
I highly suspect the qt or qtcreator-related problem may lack some qt dependency because it relates to ui_*.h.

Any idea to fix it?

[ 43%] Generating ui_preferencesDialog.h
cd /workspace/rtabmap/build/guilib/src && -o /workspace/rtabmap/build/guilib/src/ui_preferencesDialog.h /workspace/rtabmap/guilib/src/ui/preferencesDialog.ui
/bin/bash: line 1: -o: command not found
make -f tools/StereoEval/CMakeFiles/stereoEval.dir/build.make tools/StereoEval/CMakeFiles/stereoEval.dir/build
make[2]: *** [guilib/src/CMakeFiles/rtabmap_gui.dir/build.make:214: guilib/src/ui_preferencesDialog.h] Error 127

@cdb0y511
Copy link
Contributor Author

cdb0y511 commented Sep 12, 2023

I don't know which qt package is missing.
qmake -v
QMake version 3.1
Using Qt version 5.15.3 in /usr/lib/x86_64-linux-gnu

@cdb0y511
Copy link
Contributor Author

Hi, @matlabbe.I made a pr to fix this issue.

@matlabbe
Copy link
Member

PR is merged! thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants