Skip to content

Commit c0b0448

Browse files
authored
Merge pull request #3815 from BsAtHome/fix_linuxcncrsh
Major overhaul/rewrite of linuxcncrsh
2 parents ce0e074 + 042a7f8 commit c0b0448

File tree

13 files changed

+4552
-3936
lines changed

13 files changed

+4552
-3936
lines changed

debian/control.top.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Build-Depends:
4848
tk@TCLTK_VERSION@-dev,
4949
xvfb <!nocheck>,
5050
x11-xserver-utils <!nocheck>,
51+
libfmt-dev,
5152
yapps2
5253
Build-Depends-Indep:
5354
@DOC_DEPENDS@,

docs/src/man/man1/linuxcncrsh.1.adoc

Lines changed: 602 additions & 386 deletions
Large diffs are not rendered by default.

src/configure.ac

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,6 +1524,13 @@ fi
15241524
temp_LIBS=$LIBS
15251525
LIBS=
15261526

1527+
AC_LANG_PUSH([C++])
1528+
AC_CHECK_HEADERS([fmt/format.h],[HAVE_LIBFMT=yes],[HAVE_LIBFMT=no])
1529+
AC_LANG_POP([C++])
1530+
if test "x$HAVE_LIBFMT" = "xno"; then
1531+
AC_MSG_ERROR([libfmt header not found. Install with 'sudo apt-get install libfmt-dev'])
1532+
fi
1533+
15271534
# check for readline.h and friends, optional for halcmd
15281535
AC_CHECK_HEADERS(readline/readline.h, [HAVE_READLINE=yes], [HAVE_READLINE=no])
15291536
AC_CHECK_HEADERS(readline/history.h, [], [HAVE_READLINE=no])

src/emc/usr_intf/Submakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ TARGETS += ../tcl/linuxcnc.so
2222

2323
../bin/linuxcncrsh: $(call TOOBJS, $(EMCRSHSRCS)) ../lib/liblinuxcnchal.so.0 ../lib/liblinuxcnc.a ../lib/libnml.so.0 ../lib/liblinuxcncini.so.0
2424
$(ECHO) Linking $(notdir $@)
25-
$(Q)$(CXX) -o $@ $(ULFLAGS) $^ -lpthread $(LDFLAGS)
25+
$(Q)$(CXX) -o $@ $(ULFLAGS) $^ -lfmt $(LDFLAGS)
2626
TARGETS += ../bin/linuxcncrsh
2727

2828
../bin/schedrmt: $(call TOOBJS, $(EMCSCHEDSRCS)) ../lib/liblinuxcnchal.so.0 ../lib/liblinuxcnc.a ../lib/libnml.so.0 ../lib/liblinuxcncini.so.0

0 commit comments

Comments
 (0)