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

(Question) Error while building the project in Ubuntu #25

Closed
shivangdoshi opened this issue Dec 10, 2013 · 17 comments
Closed

(Question) Error while building the project in Ubuntu #25

shivangdoshi opened this issue Dec 10, 2013 · 17 comments

Comments

@shivangdoshi
Copy link

Hey all,
Can you help me out a bit. I am trying to run this project and am following the given cmake routine but i am facing following error-

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Boost_INCLUDE_DIR (ADVANCED)
used as include directory in directory /var/www/ccpp/PartsBasedDetector-master
used as include directory in directory /var/www/ccpp/PartsBasedDetector-master/src

-- Configuring incomplete, errors occurred!

I've also reinstalled Boost library but it is still the same.
Basically I want get this project running but I am not able to do that. Can anyone help with an overview.

Any help is much appreciated.

Thanks !

@vrabaud
Copy link
Member

vrabaud commented Dec 10, 2013

that works finr for me. Which Ubuntu do you have ? What Boost packages do you have installed ?

@shivangdoshi
Copy link
Author

My ubuntu version is 12.04.
But I think something went wrong. It is showing me that

Package `libboost-dev' is not installed and no info is available.

But i had installed it using apt-get. Can you please tell me how to install Boost package?
(sorry for asking lame question but its my first time working with ubuntu.)

Thanks a lot for replying !

@shivangdoshi
Copy link
Author

fyi i had used
sudo apt-get install libboost-all-dev

to do the installation for which a 188Mb downld took place but i think libboost-dev didnt get installed.

@vrabaud
Copy link
Member

vrabaud commented Dec 10, 2013

then try again with:
sudo apt-get install libboost-dev
Delete your build folder and re-run CMake.

@shivangdoshi
Copy link
Author

thanx for your help and time. After writing above comment i redid same command and it worked.

@shivangdoshi
Copy link
Author

It worked until i used make command. it is giving me following error -

Scanning dependencies of target Project_lib
[ 9%] Building CXX object CMakeFiles/Project_lib.dir/DepthConsistency.o
/var/www/ccpp/pbd/src/DepthConsistency.cpp:39:32: fatal error: DepthConsistency.hpp: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/Project_lib.dir/DepthConsistency.o] Error 1
make[1]: *** [CMakeFiles/Project_lib.dir/all] Error 2
make: *** [all] Error 2

@shivangdoshi shivangdoshi reopened this Dec 10, 2013
@vrabaud
Copy link
Member

vrabaud commented Dec 10, 2013

do you have that file in the include folder ? maybe you have an old version of the code, just "git pull".

@shivangdoshi
Copy link
Author

i moved the include folder to src and rewrote the include paths. now it has given the following message
Linking CXX shared library libProject.so
[100%] Built target Project_lib

Happy that its built.
How should i run it. I am just feeling very lost.

@vrabaud
Copy link
Member

vrabaud commented Dec 10, 2013

It's on the front page, at the bottom
https://github.com/wg-perception/PartsBasedDetector

@vrabaud vrabaud closed this as completed Dec 10, 2013
@shivangdoshi
Copy link
Author

as mentioned in demo.cpp file Usage: PartsBasedDetector model_file image_file [depth_file], i did the same thing and it gives command not found error. (i did replace the arguments with actual file names).

thanks for your help. Also, really appreciate your work.

@vrabaud
Copy link
Member

vrabaud commented Dec 10, 2013

please copy/paste the exact output of your command and the console output.

@shivangdoshi
Copy link
Author

Linking CXX shared library libProject.so
[100%] Built target Project_lib
root:/var/www/ccpp/pbd/src/build$ PartsBasedDetector ../models/Face_99filters.xml ../IMAG0345.jpg
PartsBasedDetector: command not found

@vrabaud
Copy link
Member

vrabaud commented Dec 10, 2013

well, that is basic Linux stuff, you might want to brush that up first (or develop on Windows if you are more familiar with it). Find PartsBasedDetector (not sure where it is built) and run:
./PartsBasedDetector ../models/Face_99filters.xml ../IMAG0345.jpg

@shivangdoshi
Copy link
Author

accept your suggestion..i do need to learn ubuntu basics..i had to use it as my hosting is ubuntu based.
Btw i dont think the file was created. Ive manually checked for it in directories and used search as well.
Can i control the location of that file?

@vrabaud
Copy link
Member

vrabaud commented Dec 10, 2013

are you using ROS and catkin or compiling it from scratch ?

@shivangdoshi
Copy link
Author

i am compiling it from scratch.
Here are the steps i followed:

  1. the project folder is named pbd. Inside pbd, i opened 'src' folder from terminal.
  2. next i created a build folder and followed the cmake routine as mentioned -
    mkdir build
    cd build
    cmake ..
    make
    The above gave me the following result -

Linking CXX shared library libProject.so
[100%] Built target Project_lib

(As mentioned earlier i had to move the include folder and rewrite the include path to point it correctly to the header files.)

Like we had discussed, I think the above should create a PartsBasedDetector file which can be used to execute the project but I am unable to locate the file.

Just to let you know all the steps I have followed, i also tried cmake on the CMakeLists.txt present in the root folder (pbd) but following error occurred (while using both make and make -j8)
root: /var/www/ccpp/pbd/build$ make
make[2]: DOXYGEN_EXECUTABLE-NOTFOUND: Command not found
make[2]: *** [CMakeFiles/PartsBasedDetector_doc] Error 127
make[1]: *** [CMakeFiles/PartsBasedDetector_doc.dir/all] Error 2
make: *** [all] Error 2

I am not able to figure out where I am going wrong. Please correct me where I am going wrong.

Thanks for your help !

@vrabaud
Copy link
Member

vrabaud commented Dec 11, 2013

You should probably get familiar with CMake.
The error means doxygen is not installed.
You are also building your code as root which is dangerous.

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