Open octos opened 9 years ago
I'm honestly not sure. I wrote it on Linux. If you could provide assistance making it more mac friendly, it'd be greatly appreciated.
@octos I write a Homebrew Formula. Please try:
$ brew install --HEAD https://gist.githubusercontent.com/saitoha/08175fc1e82906966256/raw/e5c6795ff4619661b5a1e335ddaafd09cb3959fa/hiptext.rb
That's awesome! I'll check it out next week and probably do some more dev work on hiptext.
I didn't get that Homebrew Formula to work. Getting this error.
$ hiptext libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: collate_byname
::collate_byname failed to construct for en_US.utf8 * Aborted at 1446194691 (unix time) try "date -d @1446194691" if you are using GNU date * PC: @ 0x7fff90853286 pthread_kill * SIGABRT (@0x7fff90853286) received by PID 42905 (TID 0x7fff74ad1300) stack trace: * @ 0x7fff88ac8f1a _sigtramp @ 0x7fff5228bde8 (unknown) @ 0x7fff8babc9b3 abort @ 0x7fff90811a21 abort_message @ 0x7fff908399b9 default_terminate_handler() @ 0x7fff84f017eb _objc_terminate() @ 0x7fff908370a1 std::terminate() @ 0x7fff90836d48 cxa_rethrow @ 0x7fff8cc9342f std::1::locale::imp::imp() @ 0x7fff8cc94ab0 std::__1::locale::locale() @ 0x10d97473e main @ 0x7fff9017e5c9 start Abort trap: 6
This worked for me. Quoting out these three lines from hiptext.cc with //'s
https://github.com/jart/hiptext/issues/15#issuecomment-17148097
Forked Formula to add Commenting out 3 lines from hiptext.cc
to the patch. Please try:
brew install --HEAD https://gist.githubusercontent.com/tcyrus/b984bd04a9852cf2d1ee/raw/a05caaee284775d7dfd62d5d09b169f68890b22e/hiptext.rb
Tried @tcyrus formula and got the following brew error:
...
==> Checking out branch master
==> Patching
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/font.cc b/font.cc
|index e3b3218..b9cf579 100644
|--- a/font.cc
|+++ b/font.cc
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 18
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/hiptext.cc b/hiptext.cc
|index a23fa02..da0c96f 100644
|--- a/hiptext.cc
|+++ b/hiptext.cc
--------------------------
No file to patch. Skipping patch.
patch unexpectedly ends in middle of line
1 out of 1 hunk ignored
Error: Failure while executing: /usr/bin/patch -g 0 -f -p1
FWIW I have a working formula:
brew install bfontaine/utils/hiptext
libc++abi.dylib:
terminating with uncaught exception of type std::runtime_error:
collate_byname<char>::collate_byname
failed to construct for en_US.utf8
*** Aborted at 1494772311 (unix time) try "date -d @1494772311" if you are using GNU date ***
PC: @ 0x7fff8f6ec286 pthread_kill
*** SIGABRT (@0x7fff8f6ec286) received by PID 26811 (TID 0x7fff780a1300) stack trace: ***
@ 0x7fff866c8f1a _sigtramp
@ 0x7fff5352fbf8 (unknown)
@ 0x7fff8f63c9a3 abort
@ 0x7fff94452a21 abort_message
@ 0x7fff9447a9b9 default_terminate_handler()
@ 0x7fff86e7d7eb _objc_terminate()
@ 0x7fff944780a1 std::terminate()
` @ 0x7fff94477d48 cxa_rethrow
` @ 0x7fff8c01142f std::1::locale::imp::imp()
@ 0x7fff8c012ab0 std::__1::locale::locale()
@ 0x10c6d3aad main
@ 0x7fff9023c5c9 start
Abort trap: 6
Same here.
@WangElectronics try using gdate within homebrew
@WangElectronics try using gdate within homebrew
Tried to run
brew install gdate
but to no avail.
Error: No formulae found in taps.
gdate
is installed with brew install coreutils
. However I can’t reproduce –with or without coreutils
–, so I can’t help you:
==> Installing bfontaine/utils/hiptext
==> ./configure --prefix=/usr/local/Cellar/hiptext/0.2
==> make install
🍺 /usr/local/Cellar/hiptext/0.2: 4 files, 284.9KB, built in 18 seconds
Manage to build it now but it gives me
libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: collate_byname<char>::collate_byname failed to construct for en_US.utf8 *** Aborted at 1614627239 (unix time) try "date -d @1614627239" if you are using GNU date *** PC: @ 0x0 (unknown) *** SIGABRT (@0x7fff690fc33a) received by PID 89820 (TID 0x10a962dc0) stack trace: *** @ 0x7fff691ad5fd _sigtramp [1] 89820 abort hiptext
Author here. One thing that's worth mentioning is we now have more modern alternatives to hiptext:
Author here. One thing that's worth mentioning is we now have more modern alternatives to hiptext:
* https://justine.lol/printvideo.html * https://justine.lol/printimage.html
Oh, how do I run these in MacOS-terminal?
You can do something like this:
curl -o printvideo https://justine.lol/printvideo.com
chmod u+x printvideo
curl -o printimage https://justine.lol/printimage.com
chmod u+x printimage
Then:
./printvideo ...
./printimage ...
I just get
zsh: exec format error: ./printvideo
Changed to bash and it works! ⭕
Zsh is a KI. Last month I upstreamed a patch addressing the issue. If you build the revision then you won't need bash! https://github.com/zsh-users/zsh/commit/326d9c203b3980c0f841bc62b06e37134c6e51ea
Instructions are welcome :)