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

Linux: Attempts to symbolically link media directory with itself. #233

Open
kaiwulf opened this issue Jun 2, 2021 · 6 comments
Open

Linux: Attempts to symbolically link media directory with itself. #233

kaiwulf opened this issue Jun 2, 2021 · 6 comments

Comments

@kaiwulf
Copy link

kaiwulf commented Jun 2, 2021

I'm attempting to compile v3.14 on Linux, I get a linking error. It's attempting to create a symbolic link of applications/media with itself.

Linking CXX executable demosSandbox symbolic link resources folder from /home/path/to/newton-dynamics/newton-3.14/applications/media => /home/path/to/newton-dynamics/newton-3.14/applications/media failed to create symbolic link '/home/path/to/newton-dynamics/newton-3.14/applications/media' because existing path cannot be removed: Is a directory make[2]: *** [applications/demosSandbox/CMakeFiles/demosSandbox.dir/build.make:1025: applications/demosSandbox/demosSandbox] Error 1 make[2]: *** Deleting file 'applications/demosSandbox/demosSandbox' make[1]: *** [CMakeFiles/Makefile2:905: applications/demosSandbox/CMakeFiles/demosSandbox.dir/all] Error 2 make: *** [Makefile:136: all] Error 2

@JulioJerez
Copy link
Contributor

JulioJerez commented Jun 2, 2021 via email

@JulioJerez
Copy link
Contributor

please try 4.00
4.00 is being designed to be more user friendly than 3.14
it already has almost all the functionality.

@kaiwulf
Copy link
Author

kaiwulf commented Jun 2, 2021

I was able to install using the build instructions from here.

cd newton-dynamics mkdir build && cd build cmake -DNEWTON_DEMOS_SANDBOX=ON .. && make

That should go in the README so it's more clear how to build from source.

cmake doesn't work for 4.00. I was planning on making another Issue for that.

@JulioJerez
Copy link
Contributor

JulioJerez commented Jun 2, 2021 via email

@StuAtGit
Copy link

StuAtGit commented Sep 27, 2022

For the record, I ran into this ticket, searching for an answer to the same issue occurring on 4.00.

[100%] Linking CXX executable ndSandbox
symbolic link resources folder from [REDACTED_PATH]/newton-4.00/applications/media => [REDACTED_PATH]/newton-4.00/applications/media
failed to create symbolic link '[REDACTED_PATH]/newton-4.00/applications/media' because existing path cannot be removed: Is a directory
make[2]: *** [applications/ndSandbox/CMakeFiles/ndSandbox.dir/build.make:1210: applications/ndSandbox/ndSandbox] Error 1
make[2]: *** Deleting file 'applications/ndSandbox/ndSandbox'
make[1]: *** [CMakeFiles/Makefile2:501: applications/ndSandbox/CMakeFiles/ndSandbox.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

This is using cmake on linux as well. Not sure why it's trying to link directory itself. Several other cmake projects are working fine (ogre, my own project, bullet physics, etc), so it's probably a configuration issue in Newton.

Some notes:

  • I did manually create the build dir (but why?), however, the commands given in the guide:
cd newton-dynamics
mkdir build && cd build
cmake -DNEWTON_DEMOS_SANDBOX=ON .. && make

End up creating make files in the newton-dynamics directory, not the build directory, so I ran cmake from there.

@JulioJerez
Copy link
Contributor

JulioJerez commented Sep 27, 2022 via email

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

3 participants