Skip to content
This repository has been archived by the owner on Dec 19, 2020. It is now read-only.

Win32 porting #8

Merged
merged 3 commits into from Apr 8, 2019
Merged

Conversation

jmonesti
Copy link
Contributor

@jmonesti jmonesti commented Apr 5, 2019

Using Mingw toolchain in a Cygwin64 shell.

Then, build with:
make CXX=/cygdrive/c/mingw/bin/g++.exe BOOST_ROOT=c:/mingw/include

Jean-Francois Monestier and others added 2 commits April 5, 2019 10:28
@jrahmeh
Copy link
Collaborator

jrahmeh commented Apr 5, 2019

Hi Jmonesti,

This pull request has three components:

  1. Port linenoise to c++.
  2. Fix/improve printf formatting (use STDC_FORMAT_MACROS).
  3. Port to MINGW.

I would prefer to keep linenoise as is to simplify upgrading to new versions as they become available.
Are the changes in 1 essential to your work. Will you be willing to re-submit without 1?

Thanks,

Joe

@jmonesti
Copy link
Contributor Author

jmonesti commented Apr 8, 2019

Hi Joe,

Unfortunately, antirez/linenoise is not portable to Win32. Please refer to issue #113. I went into the exact same trouble (#include <termios.h> not found).

I found several alternatives, eg.
arangodb/linenoise-ng
msteveb/linenoise
yhirose/cpp-linenoise

I chose the last one, as it's the most straightforward to drop in Whisper.

Any thought ?
Jean-François

@jrahmeh
Copy link
Collaborator

jrahmeh commented Apr 8, 2019 via email

@jrahmeh jrahmeh merged commit 4b3d972 into westerndigitalcorporation:master Apr 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants