Menu

#259 Python branch build: fatal error: lirc_client.h: No such file or directory

0.9.5
closed
nobody
None
fixed
2017-01-19
2017-01-19
pylover
No

Python branch:

$ ./authogen.sh
$ ./configure

Summary of selected options:
----------------------------------------
prefix:                         /usr/local
lockdir:                        /var/lock
sysconfdir:                     ${prefix}/etc
x_progs:                        irxevent xmode2
host:                           x86_64-pc-linux-gnu
host_os:                        linux-gnu
forkpty:                        -lutil
LIBUSB_LIBS:                     -lusb-1.0
PORTAUDIO_LIBS:                 

Conditionals:

BUILD_ALSA_SB_RC:   yes         BUILD_DSP:          yes         
BUILD_FTDI:         yes         BUILD_HIDDEV:       yes         
BUILD_I2CUSER:      yes         BUILD_LIBALSA:      yes         
BUILD_LIBPORTAUDIO: no          BUILD_USB:          no          
BUILD_XTOOLS:       yes         HAVE_DOXYGEN:       no          
HAVE_MAN2HTML:      yes         HAVE_PYMOD_YAML:    yes         
ENABLE_UINPUT:      yes         INSTALL_ETC:        yes         
DEVEL:              yes         DARWIN:             no          
LINUX_KERNEL:       yes         HAVE_DEVINPUT:      yes  

$ make

/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -I/usr/include/python3.5m -I/usr/include/x86_64-linux-gnu/python3.5m    -g -O2  -MT python-pkg/lirc/python_pkg_lirc__client_la-_client.lo -MD -MP -MF python-pkg/lirc/.deps/python_pkg_lirc__client_la-_client.Tpo -c -o python-pkg/lirc/python_pkg_lirc__client_la-_client.lo `test -f 'python-pkg/lirc/_client.c' || echo './'`python-pkg/lirc/_client.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/include/python3.5m -I/usr/include/x86_64-linux-gnu/python3.5m -g -O2 -MT python-pkg/lirc/python_pkg_lirc__client_la-_client.lo -MD -MP -MF python-pkg/lirc/.deps/python_pkg_lirc__client_la-_client.Tpo -c python-pkg/lirc/_client.c  -fPIC -DPIC -o python-pkg/lirc/.libs/python_pkg_lirc__client_la-_client.o
python-pkg/lirc/_client.c:2:25: fatal error: lirc_client.h: No such file or directory

What i missed?

Discussion

  • Alec Leamas

    Alec Leamas - 2017-01-19

    OK... I think understand what's going on... my bad. Stay tuned.

     
    • Alec Leamas

      Alec Leamas - 2017-01-19

      Could you please try this patch?

      --- a/Makefile.am
      +++ b/Makefile.am
      @@ -86,7 +86,7 @@ py_LTLIBRARIES          = python-pkg/lirc/_client.la
       python_pkg_lirc__client_la_SOURCES = \
                                 python-pkg/lirc/_client.c
       python_pkg_lirc__client_la_CPPFLAGS = \
      
      -                          $(PYTHON_CFLAGS) $(AM_CPPFLAGS)
      +                          $(PYTHON_CFLAGS) $(AM_CPPFLAGS) -I./lib
       python_pkg_lirc__client_la_LDFLAGS  = \
                                 -module -avoid-version -export-symbols-regex client \
                                 $(PYTHON_LIBS)
      
       
  • pylover

    pylover - 2017-01-19

    As you mentioned before, No reason to apologize! lol

     

    Last edit: pylover 2017-01-19
  • pylover

    pylover - 2017-01-19

    Make:

    ./tools/lirc-make-devinput >> devinput.lircd.conf
    cp ./VERSION /home/vahid/workspace/lirc-git/python-pkg
    cd /home/vahid/workspace/lirc-git/python-pkg; python3 setup.py -q sdist
    Package lirc was not found in the pkg-config search path.
    Perhaps you should add the directory containing `lirc.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'lirc' found
    Traceback (most recent call last):
      File "setup.py", line 10, in <module>
        ["pkg-config", "--cflags",  "--libs", "lirc"]
      File "/usr/lib/python3.5/subprocess.py", line 626, in check_output
        **kwargs).stdout
      File "/usr/lib/python3.5/subprocess.py", line 708, in run
        output=stdout, stderr=stderr)
    subprocess.CalledProcessError: Command '['pkg-config', '--cflags', '--libs', 'lirc']' returned non-zero exit status 1
    Makefile:1502: recipe for target 'python-pkg/dist/lirc-0.9.5.tar.gz' failed
    make[2]: *** [python-pkg/dist/lirc-0.9.5.tar.gz] Error 1
    make[2]: Leaving directory '/home/vahid/workspace/lirc-git'
    Makefile:990: recipe for target 'all-recursive' failed
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory '/home/vahid/workspace/lirc-git'
    Makefile:543: recipe for target 'all' failed
    make: *** [all] Error 2
    vahid@vahid-laptop:~/workspace/lirc-git$ 
    
     

    Last edit: pylover 2017-01-19
    • Alec Leamas

      Alec Leamas - 2017-01-19

      Yup, already reproduced. This is not that trivial, though... Hang on

       
  • Alec Leamas

    Alec Leamas - 2017-01-19

    OK, got it building without a lirc-devek installed. Please try attached patch

     
  • pylover

    pylover - 2017-01-19

    Ah, thanks

     
  • pylover

    pylover - 2017-01-19

    That's it, thanks.

     
  • pylover

    pylover - 2017-01-19

    It was built successfully, but :

    cd /home/vahid/workspace/lirc-git/python-pkg; python3 setup.py -q sdist
    Package lirc was not found in the pkg-config search path.
    Perhaps you should add the directory containing `lirc.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'lirc' found
    warning: no files found matching '*.*' under directory 'api-docs/html'
    make[2]: Leaving directory '/home/vahid/workspace/lirc-git'
    make[1]: Leaving directory '/home/vahid/workspace/lirc-git'
    
     

    Last edit: pylover 2017-01-19
  • Alec Leamas

    Alec Leamas - 2017-01-19

    Seems actually OK. One prerequisite to install that package is to first install lirc. And when you have done that, there is no point installing the pypi package - the lirc package install into something like /usr/lib/python3.5/site-packages/lirc. It really depends on ./configure paraneters.

    The pypi package is just a reference thing, primarely for a virtualenv. Is that what you are doing?

     
  • pylover

    pylover - 2017-01-19

    Yes actually i'm making it to use in venv, so the lirc-git/python-pkg/dist/lirc-0.9.5.tar.gz is exists.

    That's ok, thanks a lot,

    Another unrelevant question. How could i write codes? which repo?

     
  • pylover

    pylover - 2017-01-19

    Successfully built lirc
    Installing collected packages: lirc
    Successfully installed lirc-0.9.5

     
  • Alec Leamas

    Alec Leamas - 2017-01-19
    • status: open --> closed
    • Resolution: na --> fixed
     
  • Alec Leamas

    Alec Leamas - 2017-01-19

    Closing this bug without references since it's a feature branch

     

Log in to post a comment.

MongoDB Logo MongoDB