MADEAPPS / newton-dynamics

Newton Dynamics is an integrated solution for real time simulation of physics environments.
http://www.newtondynamics.com
Other
936 stars 182 forks source link

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

Open kaiwulf opened 3 years ago

kaiwulf commented 3 years ago

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 commented 3 years ago

Try 4.00

On Wed, Jun 2, 2021, 9:55 AM kai wuffy @.***> wrote:

I'm attempting to compile v3.14 on Linux, I get a linking error. It's attempting to create a symbolic link 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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MADEAPPS/newton-dynamics/issues/233, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6EPJBENW6AF7KHKZPK2BDTQZO7XANCNFSM457D4VEQ .

JulioJerez commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

It should work if you just use the cmake gui. I never used the command line.

On Wed, Jun 2, 2021, 12:41 PM kai wuffy @.***> wrote:

I was able to install using the build instructions from here https://newton-dynamics.readthedocs.io/en/latest/installation.html.

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.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MADEAPPS/newton-dynamics/issues/233#issuecomment-853333584, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6EPJHXYDI2ITLVZ7KCNHLTQ2CPVANCNFSM457D4VEQ .

StuAtGit commented 1 year ago

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:

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 commented 1 year ago

I think it is creation the make file in tge same source directory. I set so that cmake create a make file, a project or a solution in a separate folder.

Try that in cmake gui. Also why don't yo use newton4 which is much better?

On Tue, Sep 27, 2022, 12:24 AM Stu S @.***> wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/MADEAPPS/newton-dynamics/issues/233#issuecomment-1259093375, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6EPJDJBJTWYGWPCBW6V3LWAKOMRANCNFSM457D4VEQ . You are receiving this because you commented.Message ID: @.***>