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

ERROR: CMake for Bullet Physics failed #218

Open
franciscocarreno opened this issue Jul 17, 2017 · 24 comments
Open

ERROR: CMake for Bullet Physics failed #218

franciscocarreno opened this issue Jul 17, 2017 · 24 comments

Comments

@franciscocarreno
Copy link

Running bin/build.sh I got error:
ERROR: CMake for Bullet Physics failed

Previously I finished setup.sh successfully after corrections (issue #217)
CMakeOutPut.log: https://pastebin.com/8XkNvDvH
Command line error:
build_log_francisco_20170717.txt

Please help

@PerryBhandal
Copy link
Member

That error may be caused by missing dependencies.

Take a look at the INSTALL file in the root of the Github repo, and install
any missing dependencies. Once you have all deps installed you should nuke
your existing NTRTsim install and compile a new version from scratch.

Let me know if that does/doesn't resolve your problems (or this specific
error, at the very least).

Perry

@franciscocarreno
Copy link
Author

I installed all dependencies, erase env and build, run again setup.sh, and build.sh
I finished all with no error messages. I guess it's installed now. (see log attached)

I'm following the tutorial now. I'm trying to use YAML. When I run BuildModel nothing happens. I also tried "build/yamlbuilder/BuildModel resources/YAMLStructures/BaseStructures/3Prism.yaml" and got
message 'YAML::BadFile' (see log attached)

YAML 20170718 fran 1.txt
Build 20170718 fran 1.txt

@PerryBhandal
Copy link
Member

While running the build does compile all simulator applications, you'll still need to explicitly run an application -- many are included in NTRT. For instance, if you want to run 3prism-serialize you would navigate to build/examples/3_prism_serialize and run AppPrismModel.

@franciscocarreno
Copy link
Author

I see. I tried the examples. They run no problem. How can I build my own structures? Which tutorial could I follow?

@PerryBhandal
Copy link
Member

See the repo README. Many details and links there.

@apsabelhaus
Copy link
Member

apsabelhaus commented Jul 18, 2017 via email

@franciscocarreno
Copy link
Author

thank you guys!

@franciscocarreno
Copy link
Author

So sorry to bother you guys again…

I tried "git pull" to download the examples and I get this:

francisco@ubuntu:~/Documents/NTRTsim-master$ git pull
fatal: Not a git repository (or any of the parent directories): .git

I also tried this:

francisco@ubuntu:~/Documents/NTRTsim-master$ git checkout NTRT_Intro
fatal: Not a git repository (or any of the parent directories): .git

I then try gitinit

francisco@ubuntu:/Documents/NTRTsim-master$ git init
Initialized empty Git repository in /home/francisco/Documents/NTRTsim-master/.git/
francisco@ubuntu:
/Documents/NTRTsim-master$ git pull
fatal: No remote repository specified. Please, specify either a URL or a
remote name from which new revisions should be fetched.

I'm not sure which URL is asking me for. Please help!

@PerryBhandal
Copy link
Member

If you downloaded the zip I linked earlier and extracted it somewhere it just includes the master branch, but not the settings for the specific git repository you pulled it from. For git pull to work you would have needed to clone the repository, rather than downloading it as a zip.

If the specifics above aren't something you're familiar with, don't worry about it. I believe that for everything you'll want to do you can simply ignore any git commands.

(I'm 99% certain that after sending this e-mail an example from the tutorials will come up where the above rule is incorrect. Fortunately I can blame that on Drew.)

@apsabelhaus
Copy link
Member

apsabelhaus commented Jul 18, 2017 via email

@franciscocarreno
Copy link
Author

I found some instructions on how to clone the repository.
https://help.github.com/articles/cloning-a-repository/
Actually for the first exercise in the video I need to download some examples with git pull.
I'll try to do this by tomorrow so I'm able follow the NTRT Introduction Seminar video.

@jae-inkazama
Copy link

I was getting a similar error, and afterinstalling the dependencies and running setup.sh, the part where boost is doesnt progress. the timer keeps ticking along. Also Perry, your website where the virtual machine is also down.

@PerryBhandal
Copy link
Member

Hi Zain,
I should have posted about the site being down.

I'm moving the server to a new DC. Unfortunately it won't be back up until the 29th at the earliest.

Perry

@jae-inkazama
Copy link

jae-inkazama commented May 16, 2020 via email

@PerryBhandal
Copy link
Member

PerryBhandal commented May 16, 2020 via email

@jae-inkazama
Copy link

Thanks man! I'll remind you in the unlikely case it escaped your mind.

@PerryBhandal
Copy link
Member

Hey Zain,
Sorry, unfortunately it won't be done until Thursday night. It's a definite, though.

Perry

@jae-inkazama
Copy link

jae-inkazama commented May 18, 2020 via email

@jae-inkazama
Copy link

jae-inkazama commented May 18, 2020 via email

@apsabelhaus
Copy link
Member

apsabelhaus commented May 18, 2020 via email

@jvmccall
Copy link

I am having the same CMake for Bullet Physics failed error.

I am using Ubuntu
I installed:

  • g++ 7 (the compiler for cmake)
    • libglib2.0-dev
    • curl
    • freeglut3
    • freeglut3-dev (glut for bullet graphics)
    • cmake
    • build-essential
      • unzip
  • python2.7

I download and unzip everything. I run setup twice until I get a message saying setup is complete. The first time I run setup it indicates boost initialization failed which the install instruction says is ok.

Then I run build and I get the CMake Bullet physics error. I have tried installing, and updating dependencies multiple times. I have tried Ubuntu 20 and 18. I have deleted and unzipped new master folders a few times.

Build Error Pastebin
https://pastebin.com/0gnDsbbJ

Setup Complete message
https://pastebin.com/sNuGL2QK

CMakeOutputLog
CMakeOutput.log

I am running on a raspberry pi4 4gb. I would try to use a virtualmachine on my main computer but the .ova link is not working.

I am not sure what else to try. Thank you for any advice you can give.

@apsabelhaus
Copy link
Member

@jvmccall The CMake output tells you the issue:

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:
GLIB_LIB_INCLUDE_DIR

There seems to be a problem with however glib is set up or configured on your computer. I personally have not seen this error before, so it's likely that the problem is unique to your setup as opposed to an issue with NTRT. I would recommend searching around on the internet for similar errors and trying out different solutions. If you figure out what needs to be added to the INSTALL instructions, let us know.

For some debugging to compare to a working NTRT installation:

The environment variable GLIB_LIB_INCLUDE_DIR does not seem to be defined, so you wouldn't need it to be either:

drew@drewbook-linux:~$ echo $GLIB_LIB_INCLUDE_DIR

drew@drewbook-linux:~$

But it does appear to be set via CMake internally somehow:

drew@drewbook-linux:~/repositories/NTRTsim$ grep -r -i GLIB_LIB_INCLUDE_DIR .
./src/inc.CMakeBullet.txt:    FIND_PATH(GLIB_LIB_INCLUDE_DIR glibconfig.h 
./src/inc.CMakeBullet.txt:                ${GLIB_LIB_INCLUDE_DIR})
./build/CMakeCache.txt:GLIB_LIB_INCLUDE_DIR:PATH=/usr/lib/x86_64-linux-gnu/glib-2.0/include
drew@drewbook-linux:~/repositories/NTRTsim$

My first suggestion is to check and see if the glib include directory is present on your computer in a similar enough place as mine, and if the glibconfig.h file is somewhere. If not, then you may not have actually installed everything you need. If so, then something may have gone wrong during your setup of CMake. Maybe try installing glib before cmake when apt install-ing the dependencies.

@jvmccall
Copy link

@apsabelhaus Thank you. I had seen that output and I tried installing libglib2.0 in addition to libglib2.0-dev in case that fixed the problem.

I think I did install libglib2.0-dev before cmake. I have been installing the dependencies in the order listed in the INSTALL document.

I will check and see if it is in the right location and will post if I find out the solution.

In the meantime, is there an active link for the .ova file so I can try setting up a virtualmachine for NTRT? The perry link is down.

@apsabelhaus
Copy link
Member

@jvmccall No idea about the virtual machine file. It's been many years since we used it and many years since Perry moved on from the project. I would recommend signing up for the ntrt listservs (see the official website for NTRT on the NASA page) and sending out an ask to current users to see if someone could upload a vm image for you somewhere.

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

5 participants