Compiling scarakins.c under version 2.9.3 does not work.

More
1 year 10 months ago #317148 by infou
Under version 2.8 it works. I have a Scara Robot with different dimensions, so I have changed D1-D5 (but it does not compile with the original file).
with the original file). So far I have not found a way to compile this file in the forum and also with Google.
Then I tried to compile the Scarakins.c from 2.8 into 2.9.3, which did compile. However, when using the 2.8 Scarakins.so
Linuxcnc aborted with an error message at startup.
I assume that in the 2.9.3 version switchkins are a change to the 2.8 version.
Is there a possibility to compile the original and the modified scarakins.c from 2.9.3 ?
What about unserkins.comp ? I don't know how to create it.


Here is the error message when compiling:
cnc@cnc:~/linuxcnc/linuxcnc-dev/src/emc/kinematics$ halcompile --compile scarakins.c
Compiling realtime scarakins.c
Linking scarakins.so
/usr/bin/ld:scarakins.ver:2: syntax error in VERSION script
collect2: error: ld returned 1 exit status
make: *** [/usr/share/linuxcnc/Makefile.modinc:125: scarakins.so] Fehler 1
 

Please Log in to join the conversation.

More
1 year 10 months ago #317158 by andypugh
I can reproduce the problem.

After some fiddling about to persist the scarkins.ver file (which is normally automatically deleted by the tempfile functions) I found that the problem seems to be exactly this:

unix.stackexchange.com/questions/771815/...hen-building-gettext

Do you have a linuxcnc-dev directory? What does "which halcompile" say?

(I suspect that the "make clean" fix isn't going to help here)

Please Log in to join the conversation.

More
1 year 10 months ago #317182 by infou
I have installed with
git clone -b v2.9.4 github.com/LinuxCNC/linuxcnc.git linuxcnc-dev cd linuxcnc-dev
created linuxcnc-dev.


cnc@cnc:~/linuxcnc/linuxcnc-dev$ which halcompile
/usr/bin/halcompile
cnc@cnc:~/linuxcnc/linuxcnc-dev$ make clean
make: *** No rule to create "clean". Conclusion.
cnc@cnc:~/linuxcnc/linuxcnc-dev$

make clean did not work

Please Log in to join the conversation.

More
1 year 10 months ago #317185 by Aciera
This seems to be a problem that comes up when trying to use 'halcompile' to compile some of the kinematics files. As a workaround I would suggest to build the repo locally and use 'make' to recompile after making changes.

linuxcnc.org/docs/html/code/building-linuxcnc.html

Another case:
forum.linuxcnc.org/24-hal-components/546...om-kinematics#315800

Please Log in to join the conversation.

More
1 year 10 months ago #317496 by infou
Many thanks for the quick support.now it works.
I found time today to compile and install Linuxcnc 2.9.3.
After the git clone ... I searched the linxcnc-dev directory for scara and edited all files where
d1-d6 were defined with my values.
In some places the build and installation was a bit stuck, then I asked Windows-copilot and it went on.
For those who have similar plans, I have entered my terms:

For build:
git clone --branch v2.9.3 github.com/LinuxCNC/linuxcnc.git linuxcnc-dev

cd linuxcnc-dev
sudo apt-get build-dep linuxcnc
sudo apt-get install build-essential

root@cnc:/home/cnc/linuxcnc-dev/debian#
root@cnc:/home/cnc/linuxcnc-dev/debian# ./configure
successfully configured for 'uspace-Debian-12'..

sudo apt-get install libgpiod-dev xvfb

dpkg-buildpackage -b -uc

For install:

sudo apt-get install iptables mesa-utils python3-numpy python3-opengl python3-configobj libgtksourceview-3.0-dev tclreadline python3-pyqt5 python3-pyqt5.qsci python3-pyqt5.qtsvg python3-pyqt5.qtopengl python3-opencv python3-espeak python3-dbus.mainloop.pyqt5 python3-pyqt5.qtwebengine python3-pyqt5.qtwebkit espeak-ng pyqt5-dev-tools gstreamer1.0-tools espeak python3-poppler-qt5 python3-serial
sudo apt --fix-broken install
sudo dpkg -i *.deb

Please Log in to join the conversation.

Time to create page: 0.079 seconds
Powered by Kunena Forum