LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 02-08-2018, 03:11 AM   #16
Syndacate
Member
 
Registered: Aug 2008
Location: Santa Clara, CA
Distribution: Ubuntu, mainly. Too much stuff works out of the box O.o
Posts: 71

Rep: Reputation: 52

Quote:
Originally Posted by percy_vere_uk View Post
Code:
/sources/libvpx-1.6.1

$ ./configure --prefix=/usr --enable-shared --disable-static

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_GB.iso88591"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
enabling shared
disabling static
enabling vp8_encoder
enabling vp8_decoder
enabling vp9_encoder
enabling vp9_decoder
Configuring for target 'x86_64-linux-gcc'
enabling x86_64
enabling pic
enabling runtime_cpu_detect
enabling mmx
enabling sse
enabling sse2
enabling sse3
enabling ssse3
enabling sse4_1
enabling avx
enabling avx2
using yasm
enabling postproc
enabling unit_tests
enabling webm_io
enabling libyuv
Creating makefiles for x86_64-linux-gcc libs
Creating makefiles for x86_64-linux-gcc examples
Creating makefiles for x86_64-linux-gcc tools
Creating makefiles for x86_64-linux-gcc docs
/sources/libvpx-1.6.1_old3 ]$[
Well doesn't look like any errors, but right after you ran this, you checked the build dir and no vpx_config.h file was generated? If this is the case, I think you should add some debug statements. There's a counterpart to the configure file in the build directory (<src_dir>/build/make/configure.sh). Half of the functions for configure are in there. So 2 files: src/configure and src/build/make/configure.sh

So first dbg I'd add is inside configure.sh.
There is a function called: write_common_target_config_h
As the first line of that function, I would add:
Code:
echo "write_common_target_config_h() called"
echo "Destination=$1"
echo "TMP_H=$TMP_H"
This function is called from configure, from a function called: process_targets
As the first line of that function I'd add:
Code:
echo "configure process_targets() called"
There is a function inside configure.sh also called: process_targets
I'd add a similar line to the first line of that function:
Code:
echo "configure.sh process_targets() called"
Perhaps that empty function is being called, which is why no config is generated. Though if that's the case I have no idea why that empty function is there, and where the correct one would be called. Perhaps you can try removing the empty process_targets function inside of configure.sh, and see if the output changes.

If that doesn't lead us in the right direction I'll have to try it myself and see if I can find out on my side where the file is produced. Right now all my libvpx stuff is in windows.

Last edited by Syndacate; 02-08-2018 at 03:15 AM.
 
1 members found this post helpful.
Old 02-08-2018, 08:22 AM   #17
percy_vere_uk
Member
 
Registered: Oct 2008
Location: Dorset, UK
Distribution: Arch, Lfs, Gentoo, Debian, Slackware
Posts: 98

Original Poster
Rep: Reputation: 12
Quote:
#9 After trying for quite some time and getting the same error I decided to build libvpx-1.7.0 from book 'blfs Version 2018-01-31'. This built sucessfully.
So I modified the configure script for libvpx-1.7.0 to stop short of showing an error.

Code:
../configure --prefix=/usr    \
             --enable-shared  \
             --disable-static &&
 # make

By stopping the script here jhalfs thinks it has installed libvpx and that this dependency is satisfied. Hopefully it is now seeing the libvpx that I have built from the book.

Now the jhalfs KDE build script has continued to run OK. So I will have to see if any other packages call for libvpx.

Thank you very much for the amount of work you have put into this.

percy
 
Old 02-10-2018, 03:34 AM   #18
Syndacate
Member
 
Registered: Aug 2008
Location: Santa Clara, CA
Distribution: Ubuntu, mainly. Too much stuff works out of the box O.o
Posts: 71

Rep: Reputation: 52
Quote:
Originally Posted by percy_vere_uk View Post
So I modified the configure script for libvpx-1.7.0 to stop short of showing an error.

Code:
../configure --prefix=/usr    \
             --enable-shared  \
             --disable-static &&
 # make

By stopping the script here jhalfs thinks it has installed libvpx and that this dependency is satisfied. Hopefully it is now seeing the libvpx that I have built from the book.

Now the jhalfs KDE build script has continued to run OK. So I will have to see if any other packages call for libvpx.

Thank you very much for the amount of work you have put into this.

percy
The problem there is you're not building anything, no libraries are produced. If the lib is truly needed, this will be a problem in 1 of 2 ways:
1. You will go to launch some program (of which libvpx is a dependency) which will have a run-time link dependency on libvpx, and the program will fail to start, as the library cannot be found.
2. If the library is loaded dynamically, you'll be using a program at some point and it can just suddenly die, when it goes to dynamically load libvpx.

You could make the same change in libvpx-1.6.1. By not doing the actual build, you won't get this build error.

Hopefully nothing makes use of libvpx, or that component won't really be usable, or functionality will be limited. Now that being said, libvpx isn't an entirely popular library. Outside of Google you don't see it used in industry often. It's a beautiful codec, but industry is what it is, and it's not very popular. Hopefully because of that jhalfs's "dependency" on libvpx is either a very small corner case, or isn't utilized at all.

2 more notes, in case you end up trying further:

1. In the official build instructions, the call is done like this:
Code:
    $ mkdir build
    $ cd build
    $ ../libvpx/configure <options>
    $ make
The fact that the build dir is at the same level as libvpx dir MAY make a difference....but I doubt it.

2. Here is my vpx_config.h. If the only problem is the config not being generated, then just drop the file in what I believe will be the build dir (is on my system), and make should work. I didn't modify the config, I don't think. If there's more problems, though, it will just error somewhere else..
Code:
/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */
/*  */
/* Use of this source code is governed by a BSD-style license */
/* that can be found in the LICENSE file in the root of the source */
/* tree. An additional intellectual property rights grant can be found */
/* in the file PATENTS.  All contributing project authors may */
/* be found in the AUTHORS file in the root of the source tree. */
/* This file automatically generated by configure. Do not edit! */
#ifndef VPX_CONFIG_H
#define VPX_CONFIG_H
#define RESTRICT    
#define INLINE      __forceinline
#define ARCH_ARM 0
#define ARCH_MIPS 0
#define ARCH_X86 1
#define ARCH_X86_64 0
#define HAVE_NEON 0
#define HAVE_NEON_ASM 0
#define HAVE_MIPS32 0
#define HAVE_DSPR2 0
#define HAVE_MSA 0
#define HAVE_MIPS64 0
#define HAVE_MMX 1
#define HAVE_SSE 1
#define HAVE_SSE2 1
#define HAVE_SSE3 1
#define HAVE_SSSE3 1
#define HAVE_SSE4_1 1
#define HAVE_AVX 1
#define HAVE_AVX2 1
#define HAVE_VPX_PORTS 1
#define HAVE_PTHREAD_H 0
#define HAVE_UNISTD_H 0
#define CONFIG_DEPENDENCY_TRACKING 1
#define CONFIG_EXTERNAL_BUILD 1
#define CONFIG_INSTALL_DOCS 0
#define CONFIG_INSTALL_BINS 1
#define CONFIG_INSTALL_LIBS 1
#define CONFIG_INSTALL_SRCS 0
#define CONFIG_DEBUG 0
#define CONFIG_GPROF 0
#define CONFIG_GCOV 0
#define CONFIG_RVCT 0
#define CONFIG_GCC 0
#define CONFIG_MSVS 1
#define CONFIG_PIC 0
#define CONFIG_BIG_ENDIAN 0
#define CONFIG_CODEC_SRCS 0
#define CONFIG_DEBUG_LIBS 0
#define CONFIG_DEQUANT_TOKENS 0
#define CONFIG_DC_RECON 0
#define CONFIG_RUNTIME_CPU_DETECT 1
#define CONFIG_POSTPROC 1
#define CONFIG_VP9_POSTPROC 0
#define CONFIG_MULTITHREAD 1
#define CONFIG_INTERNAL_STATS 0
#define CONFIG_VP8_ENCODER 1
#define CONFIG_VP8_DECODER 1
#define CONFIG_VP9_ENCODER 1
#define CONFIG_VP9_DECODER 1
#define CONFIG_VP8 1
#define CONFIG_VP9 1
#define CONFIG_ENCODERS 1
#define CONFIG_DECODERS 1
#define CONFIG_STATIC_MSVCRT 1
#define CONFIG_SPATIAL_RESAMPLING 1
#define CONFIG_REALTIME_ONLY 0
#define CONFIG_ONTHEFLY_BITPACKING 0
#define CONFIG_ERROR_CONCEALMENT 0
#define CONFIG_SHARED 0
#define CONFIG_STATIC 1
#define CONFIG_SMALL 0
#define CONFIG_POSTPROC_VISUALIZER 0
#define CONFIG_OS_SUPPORT 1
#define CONFIG_UNIT_TESTS 1
#define CONFIG_WEBM_IO 1
#define CONFIG_LIBYUV 1
#define CONFIG_DECODE_PERF_TESTS 0
#define CONFIG_ENCODE_PERF_TESTS 0
#define CONFIG_MULTI_RES_ENCODING 0
#define CONFIG_TEMPORAL_DENOISING 1
#define CONFIG_VP9_TEMPORAL_DENOISING 0
#define CONFIG_COEFFICIENT_RANGE_CHECKING 0
#define CONFIG_VP9_HIGHBITDEPTH 0
#define CONFIG_BETTER_HW_COMPATIBILITY 0
#define CONFIG_EXPERIMENTAL 0
#define CONFIG_SIZE_LIMIT 0
#define CONFIG_SPATIAL_SVC 0
#define CONFIG_FP_MB_STATS 0
#define CONFIG_EMULATE_HARDWARE 0
#define CONFIG_MISC_FIXES 0
#endif /* VPX_CONFIG_H */
No problem for helping, man. Whether you try to by-pass this lib, or continue messing with it, best of luck to you!

Last edited by Syndacate; 02-10-2018 at 03:35 AM.
 
Old 02-12-2018, 05:03 AM   #19
percy_vere_uk
Member
 
Registered: Oct 2008
Location: Dorset, UK
Distribution: Arch, Lfs, Gentoo, Debian, Slackware
Posts: 98

Original Poster
Rep: Reputation: 12
Quote:
#1 I have been trying to build libvpx-1.6.1 from Beyond Linux® From Scratch Version 8.1
using jhalfs but get the error as below:
Code:
[++++-make: *** [Makefile:836: 052-z-libvpx] Error 2         ] 0 min. 4 sec

     [CC] vpx_mem/vpx_mem.c.o
     In file included from ../vpx_mem/vpx_mem.c:11:0:
     ../vpx_mem/vpx_mem.h:14:10: fatal error: vpx_config.h: No such file or directory
      #include "vpx_config.h"
                ^~~~~~~~~~~~~~
                compilation terminated.
                make[2]: *** [Makefile:150: vpx_mem/vpx_mem.c.o] Error 1
                make[2]: *** Waiting for unfinished jobs....
                ../vpx/src/vpx_encoder.c:17:10: fatal error: vpx_config.h: No such file or directory
                 #include "vpx_config.h"
                           ^~~~~~~~~~~~~~
                           compilation terminated.
                           make[2]: *** [Makefile:150: vpx/src/vpx_encoder.c.o] Error 1
                           In file included from ../vpx/src/vpx_image.c:16:0:
                           ../vpx_mem/vpx_mem.h:14:10: fatal error: vpx_config.h: No such file or directory
                            #include "vpx_config.h"
                                      ^~~~~~~~~~~~~~
                                      compilation terminated.
                                      make[2]: *** [Makefile:150: vpx/src/vpx_image.c.o] Error 1
                                      ../vpx/src/vpx_codec.c:19:10: fatal error: vpx_version.h: No such file or directory
                                       #include "vpx_version.h"
                                                 ^~~~~~~~~~~~~~~
                                                 compilation terminated.
                                                 make[2]: *** [Makefile:150: vpx/src/vpx_codec.c.o] Error 1
                                                 make[1]: *** [Makefile:17: .DEFAULT] Error 2
                                                 make[1]: Leaving directory '/sources/libvpx/libvpx-1.6.1/libvpx-build'


Quote:
#1 After trying for quite some time and getting the same error I decicded to build libvpx-1.6.1 from 'blfs Version 2018-01-31'. This built sucessfully.

But when I return to jhalfs starting from 'blfs_root make' to continue the the build for 'Introduction to KDE' {which depends on libvpx} It still wants to build libvpx-1.6.1.[


in /var/lib/jhalfs/BLFS/instpkg.xml I added.

Code:
<package>
    <name>libvpx</name>
    <version>1.6.1</version>
</package>

Then:


Code:
cd /home/user/blfs_root
make
Code:
 KDE  --->     KDE Frameworks 5  --->[*] kf5-frameworks 5.37.0  and[*] kf5-intro 1.0.0
exit
cd /home/graham/blfs_root/work
../gen-makefile.sh
sudo  make

I have found that jhalfs brings up errors on some packages most can be resolved by adjustments to the build scripts 'blfs_root/scripts/' But for the occasional ones that I have been unable to resolve I have built these from the book.

I eventually found 'instpkg.xml' which is the tracking system for installed files. But jhalfs does not seem to recognise files installed from the book so these need to be added manually.

libvpx-1.6.1 is built and jhalfs is now running through the rest of the packages.
 
Old 02-13-2018, 11:52 PM   #20
Syndacate
Member
 
Registered: Aug 2008
Location: Santa Clara, CA
Distribution: Ubuntu, mainly. Too much stuff works out of the box O.o
Posts: 71

Rep: Reputation: 52
Quote:
Originally Posted by percy_vere_uk View Post
libvpx-1.6.1 is built and jhalfs is now running through the rest of the packages.
Sounds like you should be in good shape then!
 
  


Reply

Tags
libvpx



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] build problem with libvpx justwantin Slackware - ARM 7 05-20-2015 03:50 PM
[SOLVED] Problems with ffmpeg and libvpx lancherider Linux - Software 4 01-10-2014 09:07 AM
[slackbuilds.org, slack14.0]: libvpx compile failed h-warp Slackware 2 10-21-2012 08:39 AM
Error when cross-compile libvpx 0.9.1 for ARM - Contex A9 on QEMU hero132 Linux - Distributions 0 08-27-2010 09:23 AM
Help again with jhalfs please bines Linux From Scratch 5 03-17-2009 05:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration