Complete HOW-TO Linux Mint 18.1 32/64 RTAI or PREEMPT with RIP install or deb

More
04 Jun 2018 08:08 #111577 by InMyDarkestHour
Try this:
./configure --enable-build-dokumentation 2>&1 | tee ~/Desktop/configure.txt

This will write both std output & std error to the terminal and to the file ~/Desktop/configure.txt .

Redirection still confuses me sometimes, but the above example does work.

Please Log in or Create an account to join the conversation.

More
04 Jun 2018 08:57 #111582 by AGK
Its done, here the output:

agk@debian:~/linuxcnc-dev/src$ ./configure --enable-build-dokumentation 2>&1 | tee ~/Desktop/configure.txt
tee: /home/agk/Desktop/configure.txt: Datei oder Verzeichnis nicht gefunden
configure: WARNING: unrecognized options: --enable-build-dokumentation
checking build toplevel... /home/agk/linuxcnc-dev
checking installation prefix... run in place
checking for grep... /bin/grep
checking for egrep... /bin/egrep
checking for RT dir... Using /usr/realtime-3.4-9-rtai-686-pae/bin/rtai-config as the RT signature
checking for location of kernel headers... using value from RTS: /usr/src/linux-headers-3.4-9-rtai-686-pae
checking for cc version... found gcc in rtai-config
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for usability of rdtscll from asm/msr.h... no
checking for usability of linux/hidraw.h... yes
checking for grep that handles long lines and -e... (cached) /bin/grep
checking for egrep... (cached) /bin/egrep
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking /usr/src/linux-headers-3.4-9-rtai-686-pae/include/linux/version.h usability... yes
checking /usr/src/linux-headers-3.4-9-rtai-686-pae/include/linux/version.h presence... yes
checking for /usr/src/linux-headers-3.4-9-rtai-686-pae/include/linux/version.h... yes
checking for kernel version string... 3.4-9-rtai-686-pae
checking for kernel module extension... .ko
checking kernel build system... kbuild
checking for module installation directory... configuring for run-in-place
/home/agk/linuxcnc-dev/rtlib
checking for glib... yes - 2.32.4
checking for GTK 2.4.0 or above... yes - 2.24.10
checking for libgnomeprintui-2.2... no -- printing from classicladder will not be possible
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for g++... /usr/bin/g++
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking for install... /usr/bin/install
checking for sed... /bin/sed
checking for ps... /bin/ps
checking for kill... /bin/kill
checking for whoami... /usr/bin/whoami
checking for awk... /usr/bin/awk
checking for insmod... /sbin/insmod
checking for rmmod... /sbin/rmmod
checking for lsmod... /bin/lsmod
checking for pidof... /bin/pidof
checking for ipcs... /usr/bin/ipcs
checking for fuser... /bin/fuser
checking for mandb... /usr/bin/mandb
checking for python... /usr/bin/python
checking whether to build documentation... no
checking for kernel math support... ok, using RTAI's libm kernel module
checking for adeos... not found
checking for rtai_hal... /usr/realtime-3.4-9-rtai-686-pae/modules/rtai_hal.ko
checking for rtai_ksched... /usr/realtime-3.4-9-rtai-686-pae/modules/rtai_ksched.ko
checking for rtai_fifos... not found
checking for rtai_shm... not found
checking for rtai_sem... not found
checking for rtai_math... /usr/realtime-3.4-9-rtai-686-pae/modules/rtai_math.ko
checking for rtai... not found
checking for rt_mem_mgr... not found
checking for rtai_sched... /usr/realtime-3.4-9-rtai-686-pae/modules/rtai_sched.ko
checking for rtai_libm... not found
checking for rtl... not found
checking for mbuff... not found
checking for rtl_time... not found
checking for rtl_sched... not found
checking for rtl_posixio... not found
checking for rtl_fifo... not found
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for semtimedop... yes
checking for sincos function... yes
checking for __sincos... no
checking for tcl... tclConfig.sh not found, trying tcl.h and libs.
If it doesn't work try running ./configure --with-tclConfig=<path to tclConfig.sh>
checking tcl.h usability... no
checking tcl.h presence... no
checking for tcl.h... no
checking for library containing Tcl_Init... no
configure: error: tcl lib not found
agk@debian:~/linuxcnc-dev/src$

Please Log in or Create an account to join the conversation.

More
04 Jun 2018 09:41 #111584 by InMyDarkestHour
Sorry language issue, my bad :blush:

--enable-build-dokumentation

should be

--enable-build-documentation

I have installed the Linuxcnc iso and have a script somewhere to install the required packages...just need to find it

Please Log in or Create an account to join the conversation.

More
04 Jun 2018 10:05 #111586 by AGK
This tread is long and has a lot of different matter. Can we continue here: forum.linuxcnc.org/32-documents/34648-pa...uxcnc-org-off#111475 ?

Please Log in or Create an account to join the conversation.

More
16 Jun 2018 07:36 #112459 by tecno
Hi guys,

Trying to follow STEP 2 but it all stops here on the first line marked below.
There must have been a change in file location as wget cannot open that link.

-Kernel creating a .deb to install

Copy / Paste these commands in sequence.

>>>>>>>>> wget ftp://ftp.kernel.org/pub/linux/kernel/v4.x/linux-4.8.11.tar.xz

wget www.kernel.org/pub/linux/kernel/projects...-4.8.11-rt7.patch.gz
tar -xpf linux-4.8.11.tar.xz
gunzip patch-4.8.11-rt7.patch.gz
cp patch-4.8.11-rt7.patch linux-4.8.11
cd linux-4.8.11
cat patch-4.8.11-rt7.patch | patch -p1
make xconfig
make -j4 deb-pkg


Any hints on how to proceed? Or is there any easier way to get LinuxCNC with RT Preempt on Mint 18.3 ?

Please Log in or Create an account to join the conversation.

More
16 Jun 2018 07:50 #112460 by rodw
Bengt, the FTP site has been retired. Later posts tell you how to revise the call. Its just a URL change

Please Log in or Create an account to join the conversation.

More
16 Jun 2018 07:56 #112461 by tecno

Hi guys,

Trying to follow STEP 2 but it all stops here on the first line marked below.
There must have been a change in file location as wget cannot open that link.

-Kernel creating a .deb to install

Copy / Paste these commands in sequence.

>>>>>>>>> wget ftp://ftp.kernel.org/pub/linux/kernel/v4.x/linux-4.8.11.tar.xz

wget www.kernel.org/pub/linux/kernel/projects...-4.8.11-rt7.patch.gz
tar -xpf linux-4.8.11.tar.xz
gunzip patch-4.8.11-rt7.patch.gz
cp patch-4.8.11-rt7.patch linux-4.8.11
cd linux-4.8.11
cat patch-4.8.11-rt7.patch | patch -p1
make xconfig
make -j4 deb-pkg


Any hints on how to proceed? Or is there any easier way to get LinuxCNC with RT Preempt on Mint 18.3 ?


Changed line to wget kernel.org/pub/linux/kernel/v4.x/linux-4.8.11.tar.xz and I am on my way now make -j4 deb-pkg

Please Log in or Create an account to join the conversation.

More
16 Jun 2018 12:17 #112465 by tecno
so far so good but it all stops here, HELP

bengt@CNC3000 ~/linuxcnc-dev/debian $ ./configure uspace
Package libxenomai-dev exists, but information about its source package
is not available. This most likely means that you do not have the
right deb-src lines in /etc/apt, or that you need to "apt-get update".
bengt@CNC3000 ~/linuxcnc-dev/debian $

what is missing?

Please Log in or Create an account to join the conversation.

More
16 Jun 2018 12:49 #112466 by tecno
this pops up after sudo apt-get update

W: The repository 'cdrom://Linux Mint 18.3 _Sylvia_ - Release amd64 20171124 xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Misslyckades med att hämta cdrom://Linux Mint 18.3 _Sylvia_ - Release amd64 20171124/dists/xenial/contrib/binary-amd64/Packages Använd apt-cdrom för att APT ska känna igen denna cd. apt-get update kan inte användas för att lägga till skivor
E: Vissa indexfiler kunde inte hämtas. De har ignorerats eller så har de gamla använts istället.
bengt@CNC3000 ~ $

Where does that cdrom come from??

Please Log in or Create an account to join the conversation.

More
16 Jun 2018 13:05 - 16 Jun 2018 13:20 #112467 by InMyDarkestHour
if you edit as sudo /etc/apt/sources.list comment out the line that starts with deb cdrom

Open Menu->Package Manager
Goto Settings -> Repositories
At the bottom of "Official Repositories" check Enable source code repositories
Then get out of there and close Package Manager, do not click Update-cache
Open a Terminal then run
sudo apt-get update
Then in ~/linuxcnc-dev/debian run
./configure uspace noauto
if that fails or gives an error just run
./configure uspace
Last edit: 16 Jun 2018 13:20 by InMyDarkestHour.

Please Log in or Create an account to join the conversation.

Time to create page: 0.122 seconds
Powered by Kunena Forum