Skip to content

Instantly share code, notes, and snippets.

@cedriczirtacic
Last active June 20, 2022 21:22
Show Gist options
  • Save cedriczirtacic/f6e4c200a91dbf4840dde15fda35eff9 to your computer and use it in GitHub Desktop.
Save cedriczirtacic/f6e4c200a91dbf4840dde15fda35eff9 to your computer and use it in GitHub Desktop.

Compile steghide in macOS X

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 :)

@MatthewBoyle
Copy link

"make check" is revealing a lot of problems with the system tests. Is anyone else running into these?

systemtests

@lillois59
Copy link

Hello world

Disipe all you're advice steghide (last version) is not working using High Sierra; but is working good when I install and configure this version :
MacBook-Pro:steghide Apple$ steghide
steghide version 0.4.3

Enjoy

Error when make after patch.

image

Hello world

Disipe all you're advice steghide (last version) is not working using High Sierra; but is working good when I install and configure this version :
MacBook-Pro:steghide Apple$ steghide
steghide version 0.4.3

Enjoy

@lillois59
Copy link

Hey excuse me all
can someone can help me to solve this issue ?

steghide: the file format of the file "/Users/Apple/Desktop/edkMac2/img/core-img/logo.png" is not supported.

camillegroult ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment