Jak zainstalowa

Tematy związane z oprogramowaniem, instalacją, konfiguracją
Shakez
Beginner
Posty: 179
Rejestracja: 18 stycznia 2009, 14:36
Lokalizacja: Wronki

Jak zainstalować Emc2 axis?

Post autor: Shakez »

Jak w temacie jak zainstalować ten program
fnmirk
Senior Member
Posty: 8324
Rejestracja: 03 grudnia 2007, 06:37

Post autor: fnmirk »

Shakez, podałbyś przynajmniej nazwę programu w opisie lub temacie. Sam odnośnik wcale nie jest taki oczywisty. Co będzie jak przestanie działać?
Shakez
Beginner
Posty: 179
Rejestracja: 18 stycznia 2009, 14:36
Lokalizacja: Wronki

Post autor: Shakez »

To jest program który się zwie "emc2 axis" i służy do sterowania obrabiarek CNC (takie nowoczesne tokarki frezarki itp). Co za oporne ustrojstwo. :-x

Obrazek

Link pochodzi ze strony systemu linux dedykowanego urządzeniom CNC (http://www.linuxcnc.org) w dziale download pierwszy po lewej.
AdeBe
Junior Member
Posty: 825
Rejestracja: 01 grudnia 2007, 14:41

Post autor: AdeBe »

Shakez, a przeczytałeś chociaż plik README zawarty w tamtych archiwum?
Przecież tam wyraźnie pisze, krok po kroku, co należy wpisać w konsoli.
Shakez
Beginner
Posty: 179
Rejestracja: 18 stycznia 2009, 14:36
Lokalizacja: Wronki

Post autor: Shakez »

Zwykle lekceważe ten plik bo nie najlepiej u mnie z angielskim ale rzeczywiście był pomocny.
Niestety kompilacja nie zakończyła się powodzeniem i na końcu zwróciła
.........
rtapi/rtai_ulapi.c:70:48: error: rtai_shm.h: Nie ma takiego pliku ani katalogu
rtapi/rtai_ulapi.c: In function ‘rtapi_init’:
rtapi/rtai_ulapi.c:110: warning: implicit declaration of function ‘rtai_malloc’
rtapi/rtai_ulapi.c:110: warning: assignment makes pointer from integer without a cast
rtapi/rtai_ulapi.c:125: warning: implicit declaration of function ‘rtai_free’
rtapi/rtai_ulapi.c: In function ‘rtapi_shmem_new’:
rtapi/rtai_ulapi.c:447: warning: assignment makes pointer from integer without a cast
rtapi/rtai_ulapi.c:482: warning: assignment makes pointer from integer without a cast
make: *** [objects/rtapi/rtai_ulapi.o] Błąd 1
shakez@debian:~/Desktop/cnc/emc2-2.3.4/src$

Wyczytałem tutaj że potrzebny jet do prawidłowego działania Real Time. Zainstalowałem więc moduł Real Time (pakiet o nazwie rtai). Ponowna kompilacja dała taki sam błąd.

Czy ktoś wie jak uruchomić obsługe RT w jajku?
AdeBe
Junior Member
Posty: 825
Rejestracja: 01 grudnia 2007, 14:41

Post autor: AdeBe »

A zainstalowałeś pakiet librtai-dev?
Shakez
Beginner
Posty: 179
Rejestracja: 18 stycznia 2009, 14:36
Lokalizacja: Wronki

Post autor: Shakez »

Tak librtai-dev mam zainstalowany w wersji 3.6.1-1
AdeBe
Junior Member
Posty: 825
Rejestracja: 01 grudnia 2007, 14:41

Post autor: AdeBe »

No to trochę dziwne, bo wg. tego ten plik jest w systemie. Spróbuj go przenieść do odpowiedniego katalogu ze źródłami emc2 axis.
Shakez
Beginner
Posty: 179
Rejestracja: 18 stycznia 2009, 14:36
Lokalizacja: Wronki

Post autor: Shakez »

Po przeniesieniu pliku:
In file included from rtapi/rtai_ulapi.c:70:
rtapi/rtai_shm.h:182:23: error: rtai_lxrt.h: Nie ma takiego pliku ani katalogu
In file included from rtapi/rtai_ulapi.c:70:
rtapi/rtai_shm.h: In function ‘_rt_shm_alloc’:
rtapi/rtai_shm.h:200: error: ‘SHM_ALLOC’ undeclared (first use in this function)
rtapi/rtai_shm.h:200: error: (Each undeclared identifier is reported only once
rtapi/rtai_shm.h:200: error: for each function it appears in.)
rtapi/rtai_shm.h:206: error: ‘SHM_FREE’ undeclared (first use in this function)
rtapi/rtai_shm.h:213: error: ‘HEAP_SET’ undeclared (first use in this function)
rtapi/rtai_shm.h: In function ‘rt_shm_free’:
rtapi/rtai_shm.h:336: error: ‘SHM_SIZE’ undeclared (first use in this function)
rtapi/rtai_shm.h: At top level:
rtapi/rtai_shm.h:368: error: expected declaration specifiers or ‘...’ before ‘rt_halloc’
rtapi/rtai_shm.h:368: error: expected declaration specifiers or ‘...’ before ‘(’ token
rtapi/rtai_shm.h:369: warning: return type defaults to ‘int’
rtapi/rtai_shm.h: In function ‘RTAI_PROTO’:
rtapi/rtai_shm.h:368: error: parameter name omitted
rtapi/rtai_shm.h:370: error: ‘size’ undeclared (first use in this function)
rtapi/rtai_shm.h:371: warning: implicit declaration of function ‘rtai_lxrt’
rtapi/rtai_shm.h:371: error: ‘BIDX’ undeclared (first use in this function)
rtapi/rtai_shm.h:371: error: ‘SIZARG’ undeclared (first use in this function)
rtapi/rtai_shm.h:371: error: ‘HEAP_ALLOC’ undeclared (first use in this function)
rtapi/rtai_shm.h:371: error: request for member ‘v’ in something not a structure or union
rtapi/rtai_shm.h:371: error: ‘LOW’ undeclared (first use in this function)
rtapi/rtai_shm.h: At top level:
rtapi/rtai_shm.h:374: error: expected declaration specifiers or ‘...’ before ‘rt_hfree’
rtapi/rtai_shm.h:374: error: expected declaration specifiers or ‘...’ before ‘(’ token
rtapi/rtai_shm.h:375: warning: return type defaults to ‘int’
rtapi/rtai_shm.h:374: error: conflicting types for ‘RTAI_PROTO’
rtapi/rtai_shm.h:369: error: previous definition of ‘RTAI_PROTO’ was here
rtapi/rtai_shm.h: In function ‘RTAI_PROTO’:
rtapi/rtai_shm.h:376: error: ‘addr’ undeclared (first use in this function)
rtapi/rtai_shm.h:377: error: ‘BIDX’ undeclared (first use in this function)
rtapi/rtai_shm.h:377: error: ‘SIZARG’ undeclared (first use in this function)
rtapi/rtai_shm.h:377: error: ‘HEAP_FREE’ undeclared (first use in this function)
rtapi/rtai_shm.h: At top level:
rtapi/rtai_shm.h:380: error: expected declaration specifiers or ‘...’ before ‘rt_named_halloc’
rtapi/rtai_shm.h:380: error: expected declaration specifiers or ‘...’ before ‘(’ token
rtapi/rtai_shm.h:381: warning: return type defaults to ‘int’
rtapi/rtai_shm.h:380: error: redefinition of ‘RTAI_PROTO’
rtapi/rtai_shm.h:369: error: previous definition of ‘RTAI_PROTO’ was here
rtapi/rtai_shm.h: In function ‘RTAI_PROTO’:
rtapi/rtai_shm.h:380: error: parameter name omitted
rtapi/rtai_shm.h:382: error: ‘name’ undeclared (first use in this function)
rtapi/rtai_shm.h:382: error: ‘size’ undeclared (first use in this function)
rtapi/rtai_shm.h:383: error: ‘BIDX’ undeclared (first use in this function)
rtapi/rtai_shm.h:383: error: ‘SIZARG’ undeclared (first use in this function)
rtapi/rtai_shm.h:383: error: ‘HEAP_NAMED_ALLOC’ undeclared (first use in this function)
rtapi/rtai_shm.h:383: error: request for member ‘v’ in something not a structure or union
rtapi/rtai_shm.h:383: error: ‘LOW’ undeclared (first use in this function)
rtapi/rtai_shm.h: At top level:
rtapi/rtai_shm.h:386: error: expected declaration specifiers or ‘...’ before ‘rt_named_hfree’
rtapi/rtai_shm.h:386: error: expected declaration specifiers or ‘...’ before ‘(’ token
rtapi/rtai_shm.h:387: warning: return type defaults to ‘int’
rtapi/rtai_shm.h:386: error: conflicting types for ‘RTAI_PROTO’
rtapi/rtai_shm.h:369: error: previous definition of ‘RTAI_PROTO’ was here
rtapi/rtai_shm.h: In function ‘RTAI_PROTO’:
rtapi/rtai_shm.h:388: error: ‘addr’ undeclared (first use in this function)
rtapi/rtai_shm.h:389: error: ‘BIDX’ undeclared (first use in this function)
rtapi/rtai_shm.h:389: error: ‘SIZARG’ undeclared (first use in this function)
rtapi/rtai_shm.h:389: error: ‘HEAP_NAMED_FREE’ undeclared (first use in this function)
rtapi/rtai_shm.h: At top level:
rtapi/rtai_shm.h:392: error: expected declaration specifiers or ‘...’ before ‘rt_malloc’
rtapi/rtai_shm.h:392: error: expected declaration specifiers or ‘...’ before ‘(’ token
rtapi/rtai_shm.h:393: warning: return type defaults to ‘int’
rtapi/rtai_shm.h:392: error: redefinition of ‘RTAI_PROTO’
rtapi/rtai_shm.h:369: error: previous definition of ‘RTAI_PROTO’ was here
rtapi/rtai_shm.h: In function ‘RTAI_PROTO’:
rtapi/rtai_shm.h:392: error: parameter name omitted
rtapi/rtai_shm.h:394: error: ‘size’ undeclared (first use in this function)
rtapi/rtai_shm.h:395: error: ‘BIDX’ undeclared (first use in this function)
rtapi/rtai_shm.h:395: error: ‘SIZARG’ undeclared (first use in this function)
rtapi/rtai_shm.h:395: error: ‘MALLOC’ undeclared (first use in this function)
rtapi/rtai_shm.h:395: error: request for member ‘v’ in something not a structure or union
rtapi/rtai_shm.h:395: error: ‘LOW’ undeclared (first use in this function)
rtapi/rtai_shm.h: At top level:
rtapi/rtai_shm.h:398: error: expected declaration specifiers or ‘...’ before ‘rt_free’
rtapi/rtai_shm.h:398: error: expected declaration specifiers or ‘...’ before ‘(’ token
rtapi/rtai_shm.h:399: warning: return type defaults to ‘int’
rtapi/rtai_shm.h:398: error: conflicting types for ‘RTAI_PROTO’
rtapi/rtai_shm.h:369: error: previous definition of ‘RTAI_PROTO’ was here
rtapi/rtai_shm.h: In function ‘RTAI_PROTO’:
rtapi/rtai_shm.h:400: error: ‘addr’ undeclared (first use in this function)
rtapi/rtai_shm.h:401: error: ‘BIDX’ undeclared (first use in this function)
rtapi/rtai_shm.h:401: error: ‘SIZARG’ undeclared (first use in this function)
rtapi/rtai_shm.h:401: error: ‘FREE’ undeclared (first use in this function)
rtapi/rtai_shm.h: At top level:
rtapi/rtai_shm.h:404: error: expected declaration specifiers or ‘...’ before ‘rt_named_malloc’
rtapi/rtai_shm.h:404: error: expected declaration specifiers or ‘...’ before ‘(’ token
rtapi/rtai_shm.h:405: warning: return type defaults to ‘int’
rtapi/rtai_shm.h:404: error: redefinition of ‘RTAI_PROTO’
rtapi/rtai_shm.h:369: error: previous definition of ‘RTAI_PROTO’ was here
rtapi/rtai_shm.h: In function ‘RTAI_PROTO’:
rtapi/rtai_shm.h:404: error: parameter name omitted
rtapi/rtai_shm.h:406: error: ‘name’ undeclared (first use in this function)
rtapi/rtai_shm.h:406: error: ‘size’ undeclared (first use in this function)
rtapi/rtai_shm.h:407: error: ‘BIDX’ undeclared (first use in this function)
rtapi/rtai_shm.h:407: error: ‘SIZARG’ undeclared (first use in this function)
rtapi/rtai_shm.h:407: error: ‘NAMED_MALLOC’ undeclared (first use in this function)
rtapi/rtai_shm.h:407: error: request for member ‘v’ in something not a structure or union
rtapi/rtai_shm.h:407: error: ‘LOW’ undeclared (first use in this function)
rtapi/rtai_shm.h: At top level:
rtapi/rtai_shm.h:410: error: expected declaration specifiers or ‘...’ before ‘rt_named_free’
rtapi/rtai_shm.h:410: error: expected declaration specifiers or ‘...’ before ‘(’ token
rtapi/rtai_shm.h:411: warning: return type defaults to ‘int’
rtapi/rtai_shm.h:410: error: conflicting types for ‘RTAI_PROTO’
rtapi/rtai_shm.h:369: error: previous definition of ‘RTAI_PROTO’ was here
rtapi/rtai_shm.h: In function ‘RTAI_PROTO’:
rtapi/rtai_shm.h:412: error: ‘addr’ undeclared (first use in this function)
rtapi/rtai_shm.h:413: error: ‘BIDX’ undeclared (first use in this function)
rtapi/rtai_shm.h:413: error: ‘SIZARG’ undeclared (first use in this function)
rtapi/rtai_shm.h:413: error: ‘NAMED_FREE’ undeclared (first use in this function)
make: *** [objects/rtapi/rtai_ulapi.o] Błąd 1
szuka kolejnej biblioteki rtai_lxrt.h w swoim katalogu zamiast w katalogu
sda1/usr/include/rtai/rtai_lxrt
AdeBe
Junior Member
Posty: 825
Rejestracja: 01 grudnia 2007, 14:41

Post autor: AdeBe »

Czyli makefile jest jakiś "dziwny" i zrobiony tylko pod Ubuntu (jakby to był problem trochę nad nim popracować).
W takim razie poprzenoś wszystkie potrzebne Ci pliki nagłówkowe.
ODPOWIEDZ