Ok udało mi się ściągnąć źródła z, zmienić plik interop i skompilować w katalogu domowym.
Odpalam program z katalogu instalacyjnego (linuxcnc2).
Wgrałem plik toczenie.ngc do katalogu: home\KW\linuxcnc2\nc_files\ngcgui_lib\lathe.
Zmieniłem w pliku konfiguracyjnym w katalogu linuxcnc2\configs\sim\ngcgui_lathe.ini i dodałem linijkę:
NGCGUI_SUBFILE = toczenie.ngc
Zapisałem zmiany i po uruchomieniu LinuxCNC nie widzę dodatkowej zakładki.
Co źle zrobiłem?
Czy da się przełożyć plik ini np. na pulpit, tak jak to się robi po wybraniu kreatora konfiguracji(czyli stworzenie swojej konfiguracji).
Znaleziono 7 wyników
Wróć do „Instalacja wersji rozwojowej LinuxCNC z NGCGUI”
- 27 kwie 2013, 15:19
- Forum: LinuxCNC (dawniej EMC2)
- Temat: Instalacja wersji rozwojowej LinuxCNC z NGCGUI
- Odpowiedzi: 59
- Odsłony: 26106
- 18 kwie 2013, 08:01
- Forum: LinuxCNC (dawniej EMC2)
- Temat: Instalacja wersji rozwojowej LinuxCNC z NGCGUI
- Odpowiedzi: 59
- Odsłony: 26106
Dzięki za sugestie.
Sprubowałem odpalić ze skryptu i mam bład:
kw@kw:~/linuxcnc2/src$ cd ..
kw@kw:~/linuxcnc2$ cd scripts
kw@kw:~/linuxcnc2/scripts$ ./linuxcnc
LINUXCNC - 2.6.0~pre
Machine configuration directory is '/home/kw/linuxcnc/configs/sim/ngcgui'
Machine configuration file is 'ngcgui_lathe.ini'
Starting LinuxCNC...
module_helper is not setuid root
Realtime system did not load
Shutting down and cleaning up LinuxCNC...
RTAPI: ERROR: could not open shared memory (errno=2)
./linuxcnc: line 437: 21736 Segmentation fault $HALCMD stop
RTAPI: ERROR: could not open shared memory (errno=2)
./linuxcnc: line 437: 21737 Segmentation fault $HALCMD unload all
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
module_helper is not setuid root
module_helper is not setuid root
module_helper is not setuid root
module_helper is not setuid root
module_helper is not setuid root
module_helper is not setuid root
module_helper is not setuid root
Cleanup done
Napisałeś, że żeby zainstalować najnowszą wersję rozwojową 2.6 trzeba doinstalować gita i parę pakietów, wymaganych do kompilacji LinuxCNC. Wchodzimy w terminal i wklejamy, czy wklepujemy następujące polecenie:
Kod:
sudo apt-get install --no-install-recommends python-gtkglext1 build-essential devscripts debhelper libpth-dev tcl8.5-dev tk8.5-dev bwidget libxaw7-dev libreadline5-dev python-dev libglu1-mesa-dev libxinerama-dev autoconf python-tk libglib2.0-dev libxft-dev gettext libgtk2.0-dev python-imaging-tk libgnomeprintui2.2-dev libboost-python-dev libtk-img git-core gitk git-gui git-doc git-arch git-cvs git-svn git-email git-daemon-run gitweb libboost1.40-doc libboost-date-time1.40-dev libboost-filesystem1.40-dev libboost-graph1.40-dev libboost-iostreams1.40-dev libboost-math1.40-dev libboost-program-options1.40-dev libboost-regex1.40-dev libboost-serialization1.40-dev libboost-signals1.40-dev libboost-system1.40-dev libboost-test1.40-dev libboost-thread1.40-dev libboost-wave1.40-dev doxygen docbook-xsl default-jdk fop libtk-img-doc libgle3
Ja tego nie wykonałem, tylko zrobiłem git clone git://git.linuxcnc.org/git/linuxcnc.git linuxcnc
i dalsze polecenia, pewnie przez to teraz się wywala.
A jak bym chciał tylko zupdatować wersję 5.2, która jest domyślnie na płycie to wystarczy tylko:
1. wstawić w sources źródła do wersji 2.5 i zainstalować ją przez apta
w /etc/apt/sources.list zamienić:
Kod:
deb http://www.linuxcnc.org/emc2 lucid base emc2.4
deb-src http://www.linuxcnc.org/emc2 lucid base emc2.4
na
Kod:
deb http://buildbot.linuxcnc.org/ lucid v2.5_branch-rt
deb-src http://buildbot.linuxcnc.org/ lucid v2.5_branch-rt
2. potem w konsoli:
sudo apt-get update
sudo apt-get upgrade
I to wszystko?
A co ze zmianą na 60 zmiennych
Sprubowałem odpalić ze skryptu i mam bład:
kw@kw:~/linuxcnc2/src$ cd ..
kw@kw:~/linuxcnc2$ cd scripts
kw@kw:~/linuxcnc2/scripts$ ./linuxcnc
LINUXCNC - 2.6.0~pre
Machine configuration directory is '/home/kw/linuxcnc/configs/sim/ngcgui'
Machine configuration file is 'ngcgui_lathe.ini'
Starting LinuxCNC...
module_helper is not setuid root
Realtime system did not load
Shutting down and cleaning up LinuxCNC...
RTAPI: ERROR: could not open shared memory (errno=2)
./linuxcnc: line 437: 21736 Segmentation fault $HALCMD stop
RTAPI: ERROR: could not open shared memory (errno=2)
./linuxcnc: line 437: 21737 Segmentation fault $HALCMD unload all
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
module_helper is not setuid root
module_helper is not setuid root
module_helper is not setuid root
module_helper is not setuid root
module_helper is not setuid root
module_helper is not setuid root
module_helper is not setuid root
Cleanup done
Napisałeś, że żeby zainstalować najnowszą wersję rozwojową 2.6 trzeba doinstalować gita i parę pakietów, wymaganych do kompilacji LinuxCNC. Wchodzimy w terminal i wklejamy, czy wklepujemy następujące polecenie:
Kod:
sudo apt-get install --no-install-recommends python-gtkglext1 build-essential devscripts debhelper libpth-dev tcl8.5-dev tk8.5-dev bwidget libxaw7-dev libreadline5-dev python-dev libglu1-mesa-dev libxinerama-dev autoconf python-tk libglib2.0-dev libxft-dev gettext libgtk2.0-dev python-imaging-tk libgnomeprintui2.2-dev libboost-python-dev libtk-img git-core gitk git-gui git-doc git-arch git-cvs git-svn git-email git-daemon-run gitweb libboost1.40-doc libboost-date-time1.40-dev libboost-filesystem1.40-dev libboost-graph1.40-dev libboost-iostreams1.40-dev libboost-math1.40-dev libboost-program-options1.40-dev libboost-regex1.40-dev libboost-serialization1.40-dev libboost-signals1.40-dev libboost-system1.40-dev libboost-test1.40-dev libboost-thread1.40-dev libboost-wave1.40-dev doxygen docbook-xsl default-jdk fop libtk-img-doc libgle3
Ja tego nie wykonałem, tylko zrobiłem git clone git://git.linuxcnc.org/git/linuxcnc.git linuxcnc
i dalsze polecenia, pewnie przez to teraz się wywala.
A jak bym chciał tylko zupdatować wersję 5.2, która jest domyślnie na płycie to wystarczy tylko:
1. wstawić w sources źródła do wersji 2.5 i zainstalować ją przez apta
w /etc/apt/sources.list zamienić:
Kod:
deb http://www.linuxcnc.org/emc2 lucid base emc2.4
deb-src http://www.linuxcnc.org/emc2 lucid base emc2.4
na
Kod:
deb http://buildbot.linuxcnc.org/ lucid v2.5_branch-rt
deb-src http://buildbot.linuxcnc.org/ lucid v2.5_branch-rt
2. potem w konsoli:
sudo apt-get update
sudo apt-get upgrade
I to wszystko?
A co ze zmianą na 60 zmiennych
- 17 kwie 2013, 21:24
- Forum: LinuxCNC (dawniej EMC2)
- Temat: Instalacja wersji rozwojowej LinuxCNC z NGCGUI
- Odpowiedzi: 59
- Odsłony: 26106
W dokumentacji jest:
If you have already installed LinuxCNC from the Live-CD do not use --prefix/make install. Use the 'run in place' method (the default) instead.
Run these commands in the directory created by git above (e.g., linuxcnc-dev):
cd src
./autogen.sh
./configure --enable-run-in-place
make
make install-menus
sudo make setuid
Ale dlaczego nie można nadinstalować obecnej instalacji(obecnie mam razem na płycie live cd LinuxCNC 5.2. Teraz ściągnąłem wersję 6 i chciałbym nią nadpisać skompiloowaną wersją, żebym mógł czytać 60 zmiennych ze skryptu Mikiego.
Bez kompilacji nie będę mógł go używać.
To w jakiej kolejności w końcu muszę to zrobić, żeby wszystko by ło zinstalowane tak jak trzeba?
If you have already installed LinuxCNC from the Live-CD do not use --prefix/make install. Use the 'run in place' method (the default) instead.
Run these commands in the directory created by git above (e.g., linuxcnc-dev):
cd src
./autogen.sh
./configure --enable-run-in-place
make
make install-menus
sudo make setuid
Ale dlaczego nie można nadinstalować obecnej instalacji(obecnie mam razem na płycie live cd LinuxCNC 5.2. Teraz ściągnąłem wersję 6 i chciałbym nią nadpisać skompiloowaną wersją, żebym mógł czytać 60 zmiennych ze skryptu Mikiego.
Bez kompilacji nie będę mógł go używać.
To w jakiej kolejności w końcu muszę to zrobić, żeby wszystko by ło zinstalowane tak jak trzeba?
- 17 kwie 2013, 12:18
- Forum: LinuxCNC (dawniej EMC2)
- Temat: Instalacja wersji rozwojowej LinuxCNC z NGCGUI
- Odpowiedzi: 59
- Odsłony: 26106
- 17 kwie 2013, 00:09
- Forum: LinuxCNC (dawniej EMC2)
- Temat: Instalacja wersji rozwojowej LinuxCNC z NGCGUI
- Odpowiedzi: 59
- Odsłony: 26106
dzięki za odpowiedź.
Czyli po make install dajemy dalej sudo make setuid i następnie odpalamy linuxcnc dalej według tej instrukcji, czy po make już nie trzeba tych dwóch opcji uruchamiać i można odpalać program z katalogu ze źródłami?
.
A gdzie wgrać pliki z twoich procedur:
- ngcgui.txt
- toczenie.ngc.txt
bo wyczytałem, że jeden z nich i tak jest czytany z katalogu systemowego usr?
Tropchę się w tym na razie gubię.
[ Dodano: 2013-04-17, 00:22 ]
Chyba cos zepsulem:
kw@kw:~/linuxcnc2/src$ cd ..
kw@kw:~/linuxcnc2$ cd scripts
kw@kw:~/linuxcnc2/scripts$ ./linuxcnc
LINUXCNC - 2.6.0~pre
Machine configuration directory is '/home/kw/linuxcnc/configs/sim/ngcgui'
Machine configuration file is 'ngcgui_lathe.ini'
Starting LinuxCNC...
module_helper is not setuid root
Realtime system did not load
Shutting down and cleaning up LinuxCNC...
RTAPI: ERROR: could not open shared memory (errno=2)
./linuxcnc: line 437: 21736 Segmentation fault $HALCMD stop
RTAPI: ERROR: could not open shared memory (errno=2)
./linuxcnc: line 437: 21737 Segmentation fault $HALCMD unload all
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
module_helper is not setuid root
module_helper is not setuid root
module_helper is not setuid root
module_helper is not setuid root
module_helper is not setuid root
module_helper is not setuid root
module_helper is not setuid root
Cleanup done
LinuxCNC terminated with an error. You can find more information in the log:
/home/kw/linuxcnc_debug.txt
and
/home/kw/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
kw@kw:~/linuxcnc2/scripts$ cd ..
kw@kw:~/linuxcnc2$ cd src
kw@kw:~/linuxcnc2/src$ make install
make: Entering directory `/home/kw/linuxcnc2/src'
Makefile:449: *** You configured run-in-place, but are trying to install.
For an installable version, run configure without --enable-run-in-place
and rebuild. Stop.
make: Leaving directory `/home/kw/linuxcnc2/src'
kw@kw:~/linuxcnc2/src$
Czyli po make install dajemy dalej sudo make setuid i następnie odpalamy linuxcnc dalej według tej instrukcji, czy po make już nie trzeba tych dwóch opcji uruchamiać i można odpalać program z katalogu ze źródłami?
.
A gdzie wgrać pliki z twoich procedur:
- ngcgui.txt
- toczenie.ngc.txt
bo wyczytałem, że jeden z nich i tak jest czytany z katalogu systemowego usr?
Tropchę się w tym na razie gubię.
[ Dodano: 2013-04-17, 00:22 ]
Chyba cos zepsulem:
kw@kw:~/linuxcnc2/src$ cd ..
kw@kw:~/linuxcnc2$ cd scripts
kw@kw:~/linuxcnc2/scripts$ ./linuxcnc
LINUXCNC - 2.6.0~pre
Machine configuration directory is '/home/kw/linuxcnc/configs/sim/ngcgui'
Machine configuration file is 'ngcgui_lathe.ini'
Starting LinuxCNC...
module_helper is not setuid root
Realtime system did not load
Shutting down and cleaning up LinuxCNC...
RTAPI: ERROR: could not open shared memory (errno=2)
./linuxcnc: line 437: 21736 Segmentation fault $HALCMD stop
RTAPI: ERROR: could not open shared memory (errno=2)
./linuxcnc: line 437: 21737 Segmentation fault $HALCMD unload all
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
module_helper is not setuid root
module_helper is not setuid root
module_helper is not setuid root
module_helper is not setuid root
module_helper is not setuid root
module_helper is not setuid root
module_helper is not setuid root
Cleanup done
LinuxCNC terminated with an error. You can find more information in the log:
/home/kw/linuxcnc_debug.txt
and
/home/kw/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
kw@kw:~/linuxcnc2/scripts$ cd ..
kw@kw:~/linuxcnc2$ cd src
kw@kw:~/linuxcnc2/src$ make install
make: Entering directory `/home/kw/linuxcnc2/src'
Makefile:449: *** You configured run-in-place, but are trying to install.
For an installable version, run configure without --enable-run-in-place
and rebuild. Stop.
make: Leaving directory `/home/kw/linuxcnc2/src'
kw@kw:~/linuxcnc2/src$
- 16 kwie 2013, 23:57
- Forum: LinuxCNC (dawniej EMC2)
- Temat: Instalacja wersji rozwojowej LinuxCNC z NGCGUI
- Odpowiedzi: 59
- Odsłony: 26106
Posiedziałem trochę i postanowiłem ściągnąć źródła, zmienić liczbe parametrów na 60 i skompilować program.
Wykonałem już wszystkie polecenia, łącznie z "make".
Teraz chciałbym zainstalować wszystko w katalogach systemowych.
Podobno po make trzeba użyć make install --prefix /usr i po tym dopiero sudo make setuid ?
jak powinno wyglądać polecenie make install --prefix /usr bo jak takie wklejam, to nie działa.
Coś trzeba podstawić pod prefix?
Wykonałem już wszystkie polecenia, łącznie z "make".
Teraz chciałbym zainstalować wszystko w katalogach systemowych.
Podobno po make trzeba użyć make install --prefix /usr i po tym dopiero sudo make setuid ?
jak powinno wyglądać polecenie make install --prefix /usr bo jak takie wklejam, to nie działa.
Coś trzeba podstawić pod prefix?
- 14 kwie 2013, 23:11
- Forum: LinuxCNC (dawniej EMC2)
- Temat: Instalacja wersji rozwojowej LinuxCNC z NGCGUI
- Odpowiedzi: 59
- Odsłony: 26106
Mam skonfigurowany Linux cnc do tokarki. Chciałem teraz dodać ncggui i zgodnie z tym co napisał Miki uruchomiłem konfigurację ncggui Lathe z katalogu SIM (skopiowało mi do mojego katalogu jakieś pliki. Następnie wkleiłem do mojego pliku konfiguracyjnego Tokarka.ini linijki odpowiadające za ngcgui,tk jak na 3 stronie tego postu.
Po tej operacji nadal nie widzę zakładek z ngcgui. Co mogę mieć źle zrobione. Jak to się powinno zrobić po kolei? Mam wersję linux cnc 2.5.2.
Po tej operacji nadal nie widzę zakładek z ngcgui. Co mogę mieć źle zrobione. Jak to się powinno zrobić po kolei? Mam wersję linux cnc 2.5.2.