Check if gettext is installed, if not use Homebrew to get it:
$ brew install gettext
Get the gettext library and cpp flags, and configure with those flags:
$ brew info gettext | grep FLAGS
LDFLAGS: -L/usr/local/opt/gettext/lib
CPPFLAGS: -I/usr/local/opt/gettext/include
$ LDFLAGS=-L/usr/local/opt/gettext/lib CPPFLAGS=-I/usr/local/opt/gettext/include ./configure
Apply this patch:
$ wget -q https://github.com/sabotage-linux/sabotage/raw/master/KEEP/steghide-gcc.patch
$ patch --verbose -p0 < steghide-0.5.1/steghide-gcc.patch
And this other patch to use glibtool
and specify the --tag
flag:
$ diff -u src/Makefile.old src/Makefile
--- src/Makefile.old 2018-08-06 19:03:10.000000000 -0600
+++ src/Makefile 2018-08-06 19:05:29.000000000 -0600
@@ -106,7 +106,7 @@
POSUB = po
RANLIB = ranlib
SET_MAKE =
-SHELL = /bin/sh
+SHELL = /bin/bash
STRIP =
USE_INCLUDED_LIBINTL = no
USE_INTLDIR_FALSE =
@@ -190,7 +190,7 @@
WavPCMSampleValue.cc error.cc main.cc msg.cc SMDConstructionHeuristic.cc
localedir = $(datadir)/locale
-LIBTOOL = $(SHELL) libtool
+LIBTOOL = $(SHELL) glibtool --tag CXX
MAINTAINERCLEANFILES = Makefile.in
subdir = src
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
Then make
:)
@Jason-Ko I've also been trying to compile Steghide on OSX but no success :/ it was throwing me errors even after I've followed everything in the tutorial.