mkrufky / libdvbtee

dvbtee: a digital television streamer / parser / service information aggregator supporting various interfaces including telnet CLI & http control
GNU Lesser General Public License v2.1
79 stars 31 forks source link

Error when running ./build-auto.sh #43

Closed vitorsilvadeus closed 6 years ago

vitorsilvadeus commented 6 years ago

OS: Ubuntu SERVER 16.04.3 LTS (GNU/Linux 4.4.0-112-generic x86_64)

./configure: line 17269: syntax error near unexpected token 0.20' ./configure: line 17269:PKG_PROG_PKG_CONFIG(0.20)' make: Entering directory '/home/user/libdvbtee-master' make: *** No targets specified and no makefile found. Stop. make: Leaving directory '/home/user/libdvbtee-master' make failed

mkrufky commented 6 years ago

I saw this once myself, it is actually due to missing pkg-config package. Please try: sudo apt-get install pkgconf and try again. If that doesn't work, it may be in a different package. You can force it to build by removing the the PKG_PROG_PKG_CONFIG(0.20) from configure.ac and running the script again.

mkrufky commented 6 years ago

@VitorSDDF if apt-get install pkg-config doesn't resolve this for you, then please reopen this ticket.

vitorsilvadeus commented 6 years ago

Sorry for the lateness.It solved the problem.

ponasromas commented 5 years ago

Sorry to re-open this issue, but issue is not resolved on Ubuntu 18.04 LTS. pkgconf or pkg-conf installation does not resolve this problem.

mkrufky commented 5 years ago

I am running Ubuntu 18.04.1 LTS and it runs fine for me. Can you show the error that you are encountering?

ponasromas commented 5 years ago

Sure. Here are the last line:

> checking for InetPton... no
> ./configure: line 17269: syntax error near unexpected token `0.20'
> ./configure: line 17269: `PKG_PROG_PKG_CONFIG(0.20)'
> make: *** libdvbpsi: No such file or directory.  Stop.
> make (libdvbpsi) failed
mkrufky commented 5 years ago

autoreconf -i doesnt help?

ponasromas commented 5 years ago

Nope, I have tried these actions:

apt-get install pkg-config
apt-get install pkgconf
autoreconf -i
libtoolize

None of those actions are helpful. Also, I have commented out "PKG_PROG_PKG_CONFIG" lines in configure.ac file - same error.

ponasromas commented 5 years ago

Hm, actually after autoreconf -i I got this:

config.status: executing libtool commands

libdvbtee configuration
-----------------------
libdvbtee version     : 0.6.6
compile flags         : -g -O2
target os             : linux-gnu

make: *** libdvbpsi: No such file or directory.  Stop.
make (libdvbpsi) failed
mkrufky commented 5 years ago

I was able to reproduce the first issue, and adding pkg-config fixed it. In order to try to reproduce this on a "clean" system, I make a Dockerfile:

FROM ubuntu:18.04

RUN apt-get update
RUN apt-get install -y build-essential git automake libtool pkg-config

RUN git clone https://github.com/mkrufky/libdvbtee

WORKDIR /libdvbtee

RUN /libdvbtee/build-auto.sh

...and it works.

Please make do:

apt-get update
apt-get install -y build-essential git automake libtool pkg-config

and then try again.

mkrufky commented 5 years ago

I haven't been able to reproduce the second issue. You might have some artifacts leftover from a bad build. Can you try wiping the entire libdvbtee and building again from a fresh clone?