PLEBTracker: cmdbar.cpp:150:16: error: 'get_wch' was not declared in this scope
I am trying to add a Dockerfile to this project, to ease installation (you can try it out by just installing docker)
I am having trouble getting it to run with this Dockerfile:
FROM alpine:3.7
COPY . /usr/local/plebtrk
WORKDIR /usr/local/plebtrk
RUN apk add --no-cache alpine-sdk ncurses-dev fftw-dev alsa-utils inotify-tools
RUN cd ./Tracker/src && make && ./INSTALL.sh && cd ../../Interpreter/src && make && ./INSTALL.sh
ENTRYPOINT ["plebtrk"]
docker build .
Sending build context to Docker daemon 58.77MB
Step 1/6 : FROM alpine:3.7
---> 3fd9065eaf02
Step 2/6 : COPY . /usr/local/plebtrk
---> Using cache
---> e456797f511b
Step 3/6 : WORKDIR /usr/local/plebtrk
---> Using cache
---> bf0c1788b56e
Step 4/6 : RUN apk add --no-cache alpine-sdk ncurses-dev fftw-dev alsa-utils inotify-tools
---> Using cache
---> e9ba090f6443
Step 5/6 : RUN cd ./Tracker/src && make && ./INSTALL.sh && cd ../../Interpreter/src && make && ./INSTALL.sh
---> Running in d5036bb0b085
g++ -c -o ../obj/cmdbar.o cmdbar.cpp -std=c++11 -I../include
cmdbar.cpp: In function 'bool editor::getCommand(const char*)':
cmdbar.cpp:150:16: error: 'get_wch' was not declared in this scope
get_wch(&in);
^
make: *** [Makefile:23: ../obj/cmdbar.o] Error 1
The command '/bin/sh -c cd ./Tracker/src && make && ./INSTALL.sh && cd ../../Interpreter/src && make && ./INSTALL.sh' returned a non-zero code: 2
do I need to install ncurses differently in alpine, maybe?
About this issue
- Original URL
- State: open
- Created 6 years ago
- Comments: 21 (21 by maintainers)
I got docker set up and
docker run --device /dev/snd --entrypoint ./Interpreter/src/plebplay -it plebtracker examples/intrepid.plbproduces audio!Unfortunately when I run
docker run --device /dev/snd -it plebtrackerthe interface looks really messed up and doesn’t produce sound. (Same result with and without the --device assignment)I built it on archlinux (recently) and debian (a year ago?) without needing to get fancy with the packages (arch is my preferred flavor). It takes some work to get arch set up, if you haven’t set it up before. But it is pretty light weight. Otherwise debian worked well, and you probably know more about debian than I do haha. I don’t know how heavy it is.
On Mon, Jun 4, 2018 at 6:19 PM, David Konsumer notifications@github.com wrote: