linuxcnc trajectory planner
18 Oct 2024 16:28 #312534
by Grotius
Replied by Grotius on topic linuxcnc trajectory planner
Hi Arciera,
That's a cubicspline lib that was tested. Is now removed from source, not used, obsolete now.
Updated:
codeberg.org/skynet/linuxcnc_trajectory_planner
If you will, also install this, as i tested a 2d clothoid spline, that needs a ipop lib.
sudo apt-get install coinor-libipopt-dev
That's a cubicspline lib that was tested. Is now removed from source, not used, obsolete now.
Updated:
codeberg.org/skynet/linuxcnc_trajectory_planner
If you will, also install this, as i tested a 2d clothoid spline, that needs a ipop lib.
sudo apt-get install coinor-libipopt-dev
The following user(s) said Thank You: Aciera
Please Log in or Create an account to join the conversation.
19 Oct 2024 10:50 #312592
by Aciera
Replied by Aciera on topic linuxcnc trajectory planner
First issue:
So I tried to delete what seemed to refer to the clothoids-1 from the CMakeLists.txt upon which the error disappeared:
However trying to run 'sim/axis/axis_mm.ini' fails with this:
user@user-iMac:~/linuxcnc_trajectory_planner/cmake/build$ cmake ..
-- Configuring done
CMake Error in motion/CMakeLists.txt:
Imported target "clothoids" includes non-existent path
"/home/user/linuxcnc_trajectory_planner/cmake/motion/../Clothoids-1/build"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
CMake Error in motion/CMakeLists.txt:
Imported target "clothoids" includes non-existent path
"/home/user/linuxcnc_trajectory_planner/cmake/motion/../Clothoids-1/build"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
So I tried to delete what seemed to refer to the clothoids-1 from the CMakeLists.txt upon which the error disappeared:
user@user-iMac:~/linuxcnc_trajectory_planner/cmake/build$ cmake ..
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/linuxcnc_trajectory_planner/cmake/build
However trying to run 'sim/axis/axis_mm.ini' fails with this:
user@user-iMac:~/linuxcnc_trajectory_planner$ linuxcnc
LINUXCNC - 2.10.0~pre0
Machine configuration directory is '/home/user/linuxcnc_trajectory_planner/configs/sim/axis'
Machine configuration file is 'axis_mm.ini'
Starting LinuxCNC...
linuxcncsvr (2133377) emcsvr: machine 'LinuxCNC-HAL-SIM-AXIS' version '1.1'
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX non-realtime
milltask (2133420) task: machine 'LinuxCNC-HAL-SIM-AXIS' version '1.1'
halui (2133422) halui: machine 'LinuxCNC-HAL-SIM-AXIS' version '1.1'
Found file(lib): /home/user/linuxcnc_trajectory_planner/lib/hallib/core_sim.hal
motmod: dlopen: /home/user/linuxcnc_trajectory_planner/rtlib/motmod.so: undefined symbol: vector_clear
/home/user/linuxcnc_trajectory_planner/lib/hallib/core_sim.hal:7: waitpid failed /home/user/linuxcnc_trajectory_planner/bin/rtapi_app motmod
/home/user/linuxcnc_trajectory_planner/lib/hallib/core_sim.hal:7: /home/user/linuxcnc_trajectory_planner/bin/rtapi_app exited without becoming ready
/home/user/linuxcnc_trajectory_planner/lib/hallib/core_sim.hal:7: insmod for motmod failed, returned -1
Shutting down and cleaning up LinuxCNC...
USRMOT: ERROR: command 30 timeout
emcMotionInit: emcTrajInit failed
Note: Using POSIX non-realtime
LinuxCNC terminated with an error. You can find more information in the log:
/home/user/linuxcnc_debug.txt
and
/home/user/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
The following user(s) said Thank You: Grotius
Please Log in or Create an account to join the conversation.
19 Oct 2024 12:29 #312599
by Grotius
Replied by Grotius on topic linuxcnc trajectory planner
Hi Arciera,
You are almost there.
About your error, this is a function used by motion.c. For some reason at my pc it run's ok.
To avoid your error, i added extra function prototypes in the place where you get the error from : motmod.so
review : added function defenitions
Repo is updated.
Ok. now focussing on the scurve code.
Good luck Arciera...
You are almost there.
About your error, this is a function used by motion.c. For some reason at my pc it run's ok.
To avoid your error, i added extra function prototypes in the place where you get the error from : motmod.so
review : added function defenitions
Repo is updated.
Ok. now focussing on the scurve code.
Good luck Arciera...
Please Log in or Create an account to join the conversation.
19 Oct 2024 13:02 #312601
by Aciera
Replied by Aciera on topic linuxcnc trajectory planner
Updated the repo, rebuilt:
but unfortunately still the same error:
2004 cd linuxcnc_trajectory_planner/
2005 git pull
2006 ./autogen.sh
2007 ./configure --with-realtime=uspace --disable-build-documentation-translation --enable-non-distributable=yes --disable-build-documentation
2008 cd ..
2009 cd cmake/build/
2010 cmake ..
2011 linuxcnc
but unfortunately still the same error:
Machine configuration directory is '/home/user/linuxcnc_trajectory_planner/configs/sim/axis'
Machine configuration file is 'axis_mm.ini'
Starting LinuxCNC...
linuxcncsvr (2177975) emcsvr: machine 'LinuxCNC-HAL-SIM-AXIS' version '1.1'
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX non-realtime
milltask (2177989) task: machine 'LinuxCNC-HAL-SIM-AXIS' version '1.1'
halui (2177991) halui: machine 'LinuxCNC-HAL-SIM-AXIS' version '1.1'
Found file(lib): /home/user/linuxcnc_trajectory_planner/lib/hallib/core_sim.hal
motmod: dlopen: /home/user/linuxcnc_trajectory_planner/rtlib/motmod.so: undefined symbol: vector_clear
/home/user/linuxcnc_trajectory_planner/lib/hallib/core_sim.hal:7: waitpid failed /home/user/linuxcnc_trajectory_planner/bin/rtapi_app motmod
/home/user/linuxcnc_trajectory_planner/lib/hallib/core_sim.hal:7: /home/user/linuxcnc_trajectory_planner/bin/rtapi_app exited without becoming ready
/home/user/linuxcnc_trajectory_planner/lib/hallib/core_sim.hal:7: insmod for motmod failed, returned -1
The following user(s) said Thank You: Grotius
Please Log in or Create an account to join the conversation.
19 Oct 2024 14:48 #312609
by Grotius
Replied by Grotius on topic linuxcnc trajectory planner
Hi Arciera,
To verify i did a fresh clone into a dir named : ~/test.
1. Build linuxcnc as usual, and did a sudo make install to finish the installation.
2. Build the clothoid-1 lib. (had to empty the build dir, then cmake.. make -j4. eventually do a make install for system wide.)
3. Create build dir ~/linuxcnc_trajectory_planner/cmake/build
4. cd into this build dir. then : cmake.. make -j4 and do a make install
5. Run the ./build.sh script.
6. Linuxcnc runs here.
I think you did not do a make install for installing (overwriting) the modified motmod.so component.
Ok good luck.
To verify i did a fresh clone into a dir named : ~/test.
1. Build linuxcnc as usual, and did a sudo make install to finish the installation.
2. Build the clothoid-1 lib. (had to empty the build dir, then cmake.. make -j4. eventually do a make install for system wide.)
3. Create build dir ~/linuxcnc_trajectory_planner/cmake/build
4. cd into this build dir. then : cmake.. make -j4 and do a make install
5. Run the ./build.sh script.
6. Linuxcnc runs here.
I think you did not do a make install for installing (overwriting) the modified motmod.so component.
Ok good luck.
The following user(s) said Thank You: Aciera
Please Log in or Create an account to join the conversation.
20 Oct 2024 11:11 - 20 Oct 2024 11:34 #312657
by Aciera
Replied by Aciera on topic linuxcnc trajectory planner
Ok so I seem to have managed to build the clothoids-1 lib:
Then the install also seemed to work:
user@user-iMac:~/linuxcnc_trajectory_planner/cmake/Clothoids-1/build$ sudo make install
[ 12%] Built target PolynomialRootsStatic
[ 50%] Built target ClothoidsStatic
[ 87%] Built target ClothoidsDynamic
[100%] Built target PolynomialRootsDynamic
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib/libPolynomialRoots.a
-- Installing: /usr/local/lib/libPolynomialRoots.so.2.0.0
-- Up-to-date: /usr/local/lib/libPolynomialRoots.so.2
-- Set runtime path of "/usr/local/lib/libPolynomialRoots.so.2.0.0" to "$ORIGIN"
-- Up-to-date: /usr/local/lib/libPolynomialRoots.so
-- Installing: /usr/local/include/PolynomialRoots/PolynomialRoots-Utils.hh
-- Installing: /usr/local/include/PolynomialRoots/PolynomialRoots.hh
-- Installing: /usr/local/lib/cmake/PolynomialRoots/PolynomialRootsTargets.cmake
-- Installing: /usr/local/lib/cmake/PolynomialRoots/PolynomialRootsTargets-noconfig.cmake
-- Installing: /usr/local/lib/cmake/PolynomialRoots/PolynomialRootsConfig.cmake
-- Installing: /usr/local/lib/cmake/PolynomialRoots/PolynomialRootsConfigVersion.cmake
-- Installing: /usr/local/lib/libClothoids.a
-- Installing: /usr/local/lib/libClothoids.so.3.0.0
-- Up-to-date: /usr/local/lib/libClothoids.so.3
-- Up-to-date: /usr/local/lib/libClothoids.so
-- Installing: /usr/local/include/Clothoids/AABBtree.hxx
-- Installing: /usr/local/include/Clothoids/BaseCurve_using.hxx
-- Installing: /usr/local/include/Clothoids/BaseCurve.hxx
-- Installing: /usr/local/include/Clothoids/Biarc.hxx
-- Installing: /usr/local/include/Clothoids/BiarcList.hxx
-- Installing: /usr/local/include/Clothoids/Circle.hxx
-- Installing: /usr/local/include/Clothoids/Clothoid.hxx
-- Installing: /usr/local/include/Clothoids/ClothoidList.hxx
-- Installing: /usr/local/include/Clothoids/Constants.hxx
-- Installing: /usr/local/include/Clothoids/Fresnel.hxx
-- Installing: /usr/local/include/Clothoids/G2lib.hxx
-- Installing: /usr/local/include/Clothoids/Line.hxx
-- Installing: /usr/local/include/Clothoids/PolyLine.hxx
-- Installing: /usr/local/include/Clothoids/Triangle2D.hxx
-- Installing: /usr/local/include/Clothoids/Types.hxx
-- Installing: /usr/local/include/Clothoids/ClothoidSpline-Interpolation.hxx
-- Installing: /usr/local/include/Clothoids/Clothoids.hh
-- Installing: /usr/local/lib/cmake/PolynomialRoots/ClothoidsTargets.cmake
-- Installing: /usr/local/lib/cmake/PolynomialRoots/ClothoidsTargets-noconfig.cmake
-- Installing: /usr/local/lib/cmake/PolynomialRoots/ClothoidsConfig.cmake
-- Installing: /usr/local/lib/cmake/PolynomialRoots/ClothoidsConfigVersion.cmake
[code]user@user-iMac:~/linuxcnc_trajectory_planner/cmake/Clothoids-1$ mkdir build
user@user-iMac:~/linuxcnc_trajectory_planner/cmake/Clothoids-1$ ls
build cmake CMakeLists.txt deps include LICENSE README.rst src src_py src_tests_broken VERSION
user@user-iMac:~/linuxcnc_trajectory_planner/cmake/Clothoids-1$ cd build/
user@user-iMac:~/linuxcnc_trajectory_planner/cmake/Clothoids-1/build$ cmake ..
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/linuxcnc_trajectory_planner/cmake/Clothoids-1/build
user@user-iMac:~/linuxcnc_trajectory_planner/cmake/Clothoids-1/build$ cd ..
user@user-iMac:~/linuxcnc_trajectory_planner/cmake/Clothoids-1$ cd build/
user@user-iMac:~/linuxcnc_trajectory_planner/cmake/Clothoids-1/build$ ls
Clothoids ClothoidsConfig.cmake ClothoidsConfigVersion.cmake CMakeCache.txt CMakeFiles cmake_install.cmake compile_commands.json _deps deps Makefile
user@user-iMac:~/linuxcnc_trajectory_planner/cmake/Clothoids-1/build$ make -j4
[ 6%] Building CXX object _deps/polynomialroots-build/CMakeFiles/PolynomialRootsStatic.dir/src/PolynomialRoots-1-Quadratic.cc.o
[ 6%] Building CXX object _deps/polynomialroots-build/CMakeFiles/PolynomialRootsStatic.dir/src/PolynomialRoots-3-Quartic.cc.o
[ 6%] Building CXX object _deps/polynomialroots-build/CMakeFiles/PolynomialRootsStatic.dir/src/PolynomialRoots-2-Cubic.cc.o
[ 8%] Building CXX object _deps/polynomialroots-build/CMakeFiles/PolynomialRootsDynamic.dir/src/PolynomialRoots-1-Quadratic.cc.o
[ 10%] Building CXX object _deps/polynomialroots-build/CMakeFiles/PolynomialRootsDynamic.dir/src/PolynomialRoots-2-Cubic.cc.o
[ 12%] Building CXX object _deps/polynomialroots-build/CMakeFiles/PolynomialRootsStatic.dir/src/PolynomialRoots-Jenkins-Traub.cc.o
[ 14%] Building CXX object _deps/polynomialroots-build/CMakeFiles/PolynomialRootsStatic.dir/src/PolynomialRoots-Utils.cc.o
[ 16%] Building CXX object _deps/polynomialroots-build/CMakeFiles/PolynomialRootsDynamic.dir/src/PolynomialRoots-3-Quartic.cc.o
[ 18%] Building CXX object _deps/polynomialroots-build/CMakeFiles/PolynomialRootsDynamic.dir/src/PolynomialRoots-Jenkins-Traub.cc.o
[ 20%] Building CXX object _deps/polynomialroots-build/CMakeFiles/PolynomialRootsDynamic.dir/src/PolynomialRoots-Utils.cc.o
[ 22%] Linking CXX static library libPolynomialRoots.a
[ 22%] Built target PolynomialRootsStatic
[ 27%] Building CXX object CMakeFiles/ClothoidsStatic.dir/src/Constants.cc.o
[ 27%] Building CXX object CMakeFiles/ClothoidsDynamic.dir/src/Constants.cc.o
[ 29%] Building CXX object CMakeFiles/ClothoidsDynamic.dir/src/AABBtree.cc.o
[ 31%] Linking CXX shared library libPolynomialRoots.so
[ 31%] Built target PolynomialRootsDynamic
[ 33%] Building CXX object CMakeFiles/ClothoidsStatic.dir/src/AABBtree.cc.o
[ 35%] Building CXX object CMakeFiles/ClothoidsDynamic.dir/src/Biarc.cc.o
[ 37%] Building CXX object CMakeFiles/ClothoidsStatic.dir/src/Biarc.cc.o
[ 39%] Building CXX object CMakeFiles/ClothoidsDynamic.dir/src/BiarcList.cc.o
[ 41%] Building CXX object CMakeFiles/ClothoidsStatic.dir/src/BiarcList.cc.o
[ 43%] Building CXX object CMakeFiles/ClothoidsDynamic.dir/src/Circle.cc.o
[ 45%] Building CXX object CMakeFiles/ClothoidsDynamic.dir/src/Clothoid.cc.o
[ 47%] Building CXX object CMakeFiles/ClothoidsDynamic.dir/src/ClothoidDistance.cc.o
[ 50%] Building CXX object CMakeFiles/ClothoidsDynamic.dir/src/ClothoidG2.cc.o
[ 52%] Building CXX object CMakeFiles/ClothoidsDynamic.dir/src/ClothoidList.cc.o
[ 54%] Building CXX object CMakeFiles/ClothoidsStatic.dir/src/Circle.cc.o
[ 56%] Building CXX object CMakeFiles/ClothoidsStatic.dir/src/Clothoid.cc.o
[ 58%] Building CXX object CMakeFiles/ClothoidsStatic.dir/src/ClothoidDistance.cc.o
[ 60%] Building CXX object CMakeFiles/ClothoidsDynamic.dir/src/Fresnel.cc.o
[ 62%] Building CXX object CMakeFiles/ClothoidsDynamic.dir/src/G2lib_intersect.cc.o
[ 64%] Building CXX object CMakeFiles/ClothoidsStatic.dir/src/ClothoidG2.cc.o
[ 66%] Building CXX object CMakeFiles/ClothoidsStatic.dir/src/ClothoidList.cc.o
[ 68%] Building CXX object CMakeFiles/ClothoidsDynamic.dir/src/G2lib.cc.o
[ 70%] Building CXX object CMakeFiles/ClothoidsDynamic.dir/src/Line.cc.o
[ 72%] Building CXX object CMakeFiles/ClothoidsDynamic.dir/src/PolyLine.cc.o
[ 75%] Building CXX object CMakeFiles/ClothoidsStatic.dir/src/Fresnel.cc.o
[ 77%] Building CXX object CMakeFiles/ClothoidsStatic.dir/src/G2lib_intersect.cc.o
[ 79%] Building CXX object CMakeFiles/ClothoidsDynamic.dir/src/Triangle2D.cc.o
[ 81%] Building CXX object CMakeFiles/ClothoidsStatic.dir/src/G2lib.cc.o
[ 83%] Building CXX object CMakeFiles/ClothoidsStatic.dir/src/Line.cc.o
[ 85%] Building CXX object CMakeFiles/ClothoidsDynamic.dir/src/ClothoidSpline-Interpolation.cc.o
[ 87%] Building CXX object CMakeFiles/ClothoidsDynamic.dir/src/ClothoidSpline-LMSolver.cc.o
[ 89%] Building CXX object CMakeFiles/ClothoidsStatic.dir/src/PolyLine.cc.o
[ 91%] Building CXX object CMakeFiles/ClothoidsStatic.dir/src/Triangle2D.cc.o
[ 93%] Building CXX object CMakeFiles/ClothoidsStatic.dir/src/ClothoidSpline-Interpolation.cc.o
[ 95%] Building CXX object CMakeFiles/ClothoidsStatic.dir/src/ClothoidSpline-LMSolver.cc.o
[ 97%] Linking CXX shared library libClothoids.so
[ 97%] Built target ClothoidsDynamic
[100%] Linking CXX static library libClothoids.a
[100%] Built target ClothoidsStatic
Then the install also seemed to work:
user@user-iMac:~/linuxcnc_trajectory_planner/cmake/Clothoids-1/build$ sudo make install
[ 12%] Built target PolynomialRootsStatic
[ 50%] Built target ClothoidsStatic
[ 87%] Built target ClothoidsDynamic
[100%] Built target PolynomialRootsDynamic
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib/libPolynomialRoots.a
-- Installing: /usr/local/lib/libPolynomialRoots.so.2.0.0
-- Up-to-date: /usr/local/lib/libPolynomialRoots.so.2
-- Set runtime path of "/usr/local/lib/libPolynomialRoots.so.2.0.0" to "$ORIGIN"
-- Up-to-date: /usr/local/lib/libPolynomialRoots.so
-- Installing: /usr/local/include/PolynomialRoots/PolynomialRoots-Utils.hh
-- Installing: /usr/local/include/PolynomialRoots/PolynomialRoots.hh
-- Installing: /usr/local/lib/cmake/PolynomialRoots/PolynomialRootsTargets.cmake
-- Installing: /usr/local/lib/cmake/PolynomialRoots/PolynomialRootsTargets-noconfig.cmake
-- Installing: /usr/local/lib/cmake/PolynomialRoots/PolynomialRootsConfig.cmake
-- Installing: /usr/local/lib/cmake/PolynomialRoots/PolynomialRootsConfigVersion.cmake
-- Installing: /usr/local/lib/libClothoids.a
-- Installing: /usr/local/lib/libClothoids.so.3.0.0
-- Up-to-date: /usr/local/lib/libClothoids.so.3
-- Up-to-date: /usr/local/lib/libClothoids.so
-- Installing: /usr/local/include/Clothoids/AABBtree.hxx
-- Installing: /usr/local/include/Clothoids/BaseCurve_using.hxx
-- Installing: /usr/local/include/Clothoids/BaseCurve.hxx
-- Installing: /usr/local/include/Clothoids/Biarc.hxx
-- Installing: /usr/local/include/Clothoids/BiarcList.hxx
-- Installing: /usr/local/include/Clothoids/Circle.hxx
-- Installing: /usr/local/include/Clothoids/Clothoid.hxx
-- Installing: /usr/local/include/Clothoids/ClothoidList.hxx
-- Installing: /usr/local/include/Clothoids/Constants.hxx
-- Installing: /usr/local/include/Clothoids/Fresnel.hxx
-- Installing: /usr/local/include/Clothoids/G2lib.hxx
-- Installing: /usr/local/include/Clothoids/Line.hxx
-- Installing: /usr/local/include/Clothoids/PolyLine.hxx
-- Installing: /usr/local/include/Clothoids/Triangle2D.hxx
-- Installing: /usr/local/include/Clothoids/Types.hxx
-- Installing: /usr/local/include/Clothoids/ClothoidSpline-Interpolation.hxx
-- Installing: /usr/local/include/Clothoids/Clothoids.hh
-- Installing: /usr/local/lib/cmake/PolynomialRoots/ClothoidsTargets.cmake
-- Installing: /usr/local/lib/cmake/PolynomialRoots/ClothoidsTargets-noconfig.cmake
-- Installing: /usr/local/lib/cmake/PolynomialRoots/ClothoidsConfig.cmake
-- Installing: /usr/local/lib/cmake/PolynomialRoots/ClothoidsConfigVersion.cmake
[/code]
Last edit: 20 Oct 2024 11:34 by Aciera. Reason: Worked this time
Please Log in or Create an account to join the conversation.
20 Oct 2024 11:46 #312658
by Aciera
Replied by Aciera on topic linuxcnc trajectory planner
Looks like the next step also worked this time around:
user@user-iMac:~/linuxcnc_trajectory_planner/cmake$ cd build/
user@user-iMac:~/linuxcnc_trajectory_planner/cmake/build$ cmake ..
-- The CXX compiler identification is GNU 11.4.0
-- The C compiler identification is GNU 11.4.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/linuxcnc_trajectory_planner/cmake/build
user@user-iMac:~/linuxcnc_trajectory_planner/cmake/build$ make -j4
[ 12%] Building C object planner/CMakeFiles/tpmod.dir/home/user/linuxcnc_trajectory_planner/src/emc/tp/tpmod.c.o
[ 12%] Building C object motion/CMakeFiles/motmod.dir/home/user/linuxcnc_trajectory_planner/src/emc/kinematics/cubic.c.o
[ 12%] Building C object motion/CMakeFiles/motmod.dir/home/user/linuxcnc_trajectory_planner/src/emc/motion/axis.c.o
[ 12%] Building C object planner/CMakeFiles/tpmod.dir/home/user/linuxcnc_trajectory_planner/src/emc/tp/tc.c.o
[ 15%] Building C object planner/CMakeFiles/tpmod.dir/home/user/linuxcnc_trajectory_planner/src/emc/tp/tcq.c.o
[ 18%] Building C object planner/CMakeFiles/tpmod.dir/home/user/linuxcnc_trajectory_planner/src/emc/tp/tp.c.o
[ 21%] Building C object motion/CMakeFiles/motmod.dir/home/user/linuxcnc_trajectory_planner/src/emc/motion/motion.c.o
[ 25%] Building C object planner/CMakeFiles/tpmod.dir/home/user/linuxcnc_trajectory_planner/src/emc/tp/spherical_arc.c.o
[ 28%] Building C object motion/CMakeFiles/motmod.dir/home/user/linuxcnc_trajectory_planner/src/emc/motion/command.c.o
[ 31%] Building C object planner/CMakeFiles/tpmod.dir/home/user/linuxcnc_trajectory_planner/src/emc/tp/blendmath.c.o
[ 34%] Building C object motion/CMakeFiles/motmod.dir/home/user/linuxcnc_trajectory_planner/src/emc/motion/control.c.o
[ 37%] Building C object motion/CMakeFiles/motmod.dir/home/user/linuxcnc_trajectory_planner/src/emc/motion/simple_tp.c.o
[ 40%] Building C object planner/CMakeFiles/tpmod.dir/home/user/linuxcnc_trajectory_planner/src/emc/nml_intf/emcpose.c.o
[ 43%] Building C object planner/CMakeFiles/tpmod.dir/home/user/linuxcnc_trajectory_planner/src/libnml/posemath/_posemath.c.o
[ 46%] Building C object motion/CMakeFiles/motmod.dir/home/user/linuxcnc_trajectory_planner/src/emc/motion/emcmotutil.c.o
[ 50%] Building C object planner/CMakeFiles/tpmod.dir/home/user/linuxcnc_trajectory_planner/src/libnml/posemath/sincos.c.o
[ 53%] Building C object motion/CMakeFiles/motmod.dir/home/user/linuxcnc_trajectory_planner/src/emc/motion/stashf.c.o
[ 56%] Building C object motion/CMakeFiles/motmod.dir/home/user/linuxcnc_trajectory_planner/src/emc/motion/dbuf.c.o
[ 59%] Building CXX object motion/CMakeFiles/motmod.dir/home/user/linuxcnc_trajectory_planner/src/emc/motion/vector.cpp.o
[ 62%] Building CXX object motion/CMakeFiles/motmod.dir/home/user/linuxcnc_trajectory_planner/src/emc/motion/optimizer.cpp.o
[ 65%] Building C object motion/CMakeFiles/motmod.dir/home/user/linuxcnc_trajectory_planner/src/emc/tp/tc.c.o
[ 68%] Linking C shared library tpmod.so
[ 68%] Built target tpmod
[ 71%] Building C object motion/CMakeFiles/motmod.dir/home/user/linuxcnc_trajectory_planner/src/emc/tp/tcq.c.o
[ 75%] Building C object motion/CMakeFiles/motmod.dir/home/user/linuxcnc_trajectory_planner/src/emc/tp/spherical_arc.c.o
[ 78%] Building C object motion/CMakeFiles/motmod.dir/home/user/linuxcnc_trajectory_planner/src/emc/tp/blendmath.c.o
[ 81%] Building C object motion/CMakeFiles/motmod.dir/home/user/linuxcnc_trajectory_planner/src/emc/nml_intf/emcpose.c.o
[ 84%] Building C object motion/CMakeFiles/motmod.dir/home/user/linuxcnc_trajectory_planner/src/libnml/posemath/_posemath.c.o
[ 87%] Building C object motion/CMakeFiles/motmod.dir/home/user/linuxcnc_trajectory_planner/src/libnml/posemath/sincos.c.o
[ 90%] Building CXX object motion/CMakeFiles/motmod.dir/__/tinyspline/src/tinysplinecxx.cxx.o
[ 93%] Building C object motion/CMakeFiles/motmod.dir/__/tinyspline/src/tinyspline.c.o
[ 96%] Building C object motion/CMakeFiles/motmod.dir/__/tinyspline/src/parson.c.o
[100%] Linking CXX shared library motmod.so
[100%] Built target motmod
user@user-iMac:~/linuxcnc_trajectory_planner/cmake/build$ make install
Consolidate compiler generated dependencies of target motmod
[ 68%] Built target motmod
Consolidate compiler generated dependencies of target tpmod
[100%] Built target tpmod
Install the project...
-- Install configuration: ""
-- Installing: /home/user/linuxcnc_trajectory_planner/cmake/motion/../../rtlib/motmod.so
-- Installing: /home/user/linuxcnc_trajectory_planner/cmake/planner/../../rtlib/tpmod.so
-- Set runtime path of "/home/user/linuxcnc_trajectory_planner/cmake/planner/../../rtlib/tpmod.so" to ""
Please Log in or Create an account to join the conversation.
20 Oct 2024 11:51 #312661
by Aciera
Replied by Aciera on topic linuxcnc trajectory planner
However when I run 'build.sh' I get a different error when I try to launch axis-mm:
user@user-iMac:~/linuxcnc_trajectory_planner/cmake$ ./build.sh
Reading 203/203 dependency files
Done reading dependencies
Reading 266/266 realtime dependency files
Done reading realtime dependencies
You now need to run 'sudo make setuid' in order to run in place with access to hardware.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/linuxcnc_trajectory_planner/cmake/build
Consolidate compiler generated dependencies of target tpmod
Consolidate compiler generated dependencies of target motmod
[ 31%] Built target tpmod
[100%] Built target motmod
[ 68%] Built target motmod
[100%] Built target tpmod
Install the project...
-- Install configuration: ""
-- Up-to-date: /home/user/linuxcnc_trajectory_planner/cmake/motion/../../rtlib/motmod.so
-- Up-to-date: /home/user/linuxcnc_trajectory_planner/cmake/planner/../../rtlib/tpmod.so
LINUXCNC - 2.10.0~pre0
Machine configuration directory is '/home/user/linuxcnc_trajectory_planner/configs/sim/axis'
Machine configuration file is 'axis_mm.ini'
Starting LinuxCNC...
linuxcncsvr (2248433) emcsvr: machine 'LinuxCNC-HAL-SIM-AXIS' version '1.1'
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX non-realtime
tpmod: dlopen: liblinuxcnchal.so.0: cannot open shared object file: No such file or directory
<commandline>:0: waitpid failed /home/user/linuxcnc_trajectory_planner/bin/rtapi_app tpmod
<commandline>:0: /home/user/linuxcnc_trajectory_planner/bin/rtapi_app exited without becoming ready
<commandline>:0: insmod for tpmod failed, returned -1
Note: Using POSIX non-realtime
milltask (2248448) task: machine 'LinuxCNC-HAL-SIM-AXIS' version '1.1'
halui (2248450) halui: machine 'LinuxCNC-HAL-SIM-AXIS' version '1.1'
Found file(lib): /home/user/linuxcnc_trajectory_planner/lib/hallib/core_sim.hal
motmod: dlopen: liblinuxcnchal.so.0: cannot open shared object file: No such file or directory
/home/user/linuxcnc_trajectory_planner/lib/hallib/core_sim.hal:7: waitpid failed /home/user/linuxcnc_trajectory_planner/bin/rtapi_app motmod
/home/user/linuxcnc_trajectory_planner/lib/hallib/core_sim.hal:7: /home/user/linuxcnc_trajectory_planner/bin/rtapi_app exited without becoming ready
/home/user/linuxcnc_trajectory_planner/lib/hallib/core_sim.hal:7: insmod for motmod failed, returned -1
Shutting down and cleaning up LinuxCNC...
USRMOT: ERROR: command 30 timeout
emcMotionInit: emcTrajInit failed
Note: Using POSIX non-realtime
LinuxCNC terminated with an error. You can find more information in the log:
/home/user/linuxcnc_debug.txt
and
/home/user/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
Please Log in or Create an account to join the conversation.
20 Oct 2024 12:08 #312666
by Aciera
Replied by Aciera on topic linuxcnc trajectory planner
So I just recreated whole process again in a new cloned directory and i get the same error in the end.
The following user(s) said Thank You: Grotius
Please Log in or Create an account to join the conversation.
20 Oct 2024 14:07 - 20 Oct 2024 14:17 #312676
by Grotius
Replied by Grotius on topic linuxcnc trajectory planner
Hi Arciera,
It looks like compiling goes ok.
But installing goes wrong.
Is your install directory the same as mine? I see that's different. You use : user@user-iMac:
It wan't to install the motdot.so and the tpmod.so to a non-exsisting filepath.
I expect the cmake used my configuration, this can occur when the build dir was not empty.
This can happen if i am lazy to not use the ./gitignore files. Where the build dir's are not uploaded containing my build configuration
wich includes also filepaths.
To run it directly, you can try to copy (overwrite) the motmod.so manually to the linuxcnc rtlib. The modified motmod.so is here:
~/linuxcnc_trajectory_planner/cmake/build/motion
Otherwise you can try:
1. remove the CMakeLists.txt.user configuration file you see in the ~/linuxcnc_trajectory_planner/cmake dir.
2. Try it again, create a new build dir in the ~/linuxcnc_trajectory_planner/cmake do the cmake .. & make -j4 && make install.
Ok good luck.
You are almost there.
It looks like compiling goes ok.
But installing goes wrong.
Is your install directory the same as mine? I see that's different. You use : user@user-iMac:
It wan't to install the motdot.so and the tpmod.so to a non-exsisting filepath.
I expect the cmake used my configuration, this can occur when the build dir was not empty.
This can happen if i am lazy to not use the ./gitignore files. Where the build dir's are not uploaded containing my build configuration
wich includes also filepaths.
To run it directly, you can try to copy (overwrite) the motmod.so manually to the linuxcnc rtlib. The modified motmod.so is here:
~/linuxcnc_trajectory_planner/cmake/build/motion
Otherwise you can try:
1. remove the CMakeLists.txt.user configuration file you see in the ~/linuxcnc_trajectory_planner/cmake dir.
2. Try it again, create a new build dir in the ~/linuxcnc_trajectory_planner/cmake do the cmake .. & make -j4 && make install.
Ok good luck.
You are almost there.
Last edit: 20 Oct 2024 14:17 by Grotius.
Please Log in or Create an account to join the conversation.
Time to create page: 0.187 seconds