LinuxCNC / linuxcnc

LinuxCNC controls CNC machines. It can drive milling machines, lathes, 3d printers, laser cutters, plasma cutters, robot arms, hexapods, and more.
http://linuxcnc.org/
GNU General Public License v2.0
1.8k stars 1.15k forks source link

Dependencies problem while building from source #2538

Closed nomi-ramzan closed 1 year ago

nomi-ramzan commented 1 year ago

Here are the steps I follow to reproduce the issue:

  1. Install Fedora IOT and clone linuxcnc repo using git this link
  2. Install dependencies ie tcl-devel, libtirpc-devel, libusb1-devel, intltool, boost-devel ...
  3. autoreconf --install
  4. ./autogen.sh
  5. ./configure --with-realtime=uspace

This is what I expected to happen:

Successfully build linuxcnc for Fedora

This is what happened instead:

checking for BWidget using /usr/bin/tclsh8.6... found
checking for BLT using /usr/bin/tclsh8.6... not found
checking for tclX using /usr/bin/tclsh8.6... no
configure: error: Tclx not found!
    install with "sudo apt-get install tclx"
[root@localhost src]# sudo apt-get install tclx
Reading package lists... Done
Building dependency tree... Done
E: Unable to locate package tclx

Information about my hardware and software:

petterreinholdtsen commented 1 year ago

[Nauman]

  1. Install dependencies ie tcl-devel, libtirpc-devel, libusb1-devel, intltool, boost-devel ...

I guess this list was incomplete.

checking for BLT using /usr/bin/tclsh8.6... not found checking for tclX using /usr/bin/tclsh8.6... no configure: error: Tclx not found! install with "sudo apt-get install tclx" @.*** src]# sudo apt-get install tclx

Any idea which Fedora package provide the tclx stuff?

I use Debian myself, and have no idea about Fedora package names.

-- Happy hacking Petter Reinholdtsen

SebKuzminsky commented 1 year ago

The src/configure script looks for runtime dependencies as well as build dependencies. Install them or configure with --disable-check-runtime-deps.

nomi-ramzan commented 1 year ago

[Nauman]

  1. Install dependencies ie tcl-devel, libtirpc-devel, libusb1-devel, intltool, boost-devel ... I guess this list was incomplete. checking for BLT using /usr/bin/tclsh8.6... not found checking for tclX using /usr/bin/tclsh8.6... no configure: error: Tclx not found! install with "sudo apt-get install tclx" @.*** src]# sudo apt-get install tclx Any idea which Fedora package provide the tclx stuff? I use Debian myself, and have no idea about Fedora package names. -- Happy hacking Petter Reinholdtsen

I found the solution. install with "sudo dnf install tclx"

nomi-ramzan commented 1 year ago

I complete build process in Fedora but didn't find linuxcnc command. where should I find this ?

zz912 commented 1 year ago

./linuxcnc-2.9/scripts/linuxcnc

SebKuzminsky commented 1 year ago

I complete build process in Fedora but didn't find linuxcnc command. where should I find this ?

Your original message shows that you are building for run-in-place. Per the build instructions at http://linuxcnc.org/docs/devel/html/code/building-linuxcnc.html#Quick-Start, you next need to run the rip-environment script. It will add your just-built LinuxCNC executables to your shell's PATH.