Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fresh install from source crash on make process #27

Closed
gustavonecore opened this issue Feb 28, 2018 · 2 comments
Closed

Fresh install from source crash on make process #27

gustavonecore opened this issue Feb 28, 2018 · 2 comments

Comments

@gustavonecore
Copy link

I have followed the steps to build the tifig tool without success...
This is the make output

root@11308599ef5e:/home/lib/tifig/build# cmake ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Checking for module 'libavcodec'
--   Found libavcodec, version 56.60.100
-- Checking for module 'libavutil'
--   Found libavutil, version 54.31.100
-- Checking for module 'libswscale'
--   Found libswscale, version 3.1.101
-- Checking for module 'vips-cpp'
--   Found vips-cpp, version 8.6.1
-- System name       : Linux
-- Project Name      : HEIF
-- Project directory : /home/lib/tifig/lib/heif
-- Executables in    : /home/lib/tifig/lib/heif/Bins
-- File-list         : 
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- Performing Test COMPILER_SUPPORTS_CXX0X
-- Performing Test COMPILER_SUPPORTS_CXX0X - Success
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/lib/tifig/build
root@11308599ef5e:/home/lib/tifig/build# make
Scanning dependencies of target h265parser
[  1%] Building CXX object lib/heif/Srcs/parser/h265parser/CMakeFiles/h265parser.dir/h265parser.cpp.o
[  2%] Linking CXX static library libh265parser.a
/usr/bin/ar qc libh265parser.a  CMakeFiles/h265parser.dir/h265parser.cpp.o
/usr/bin/ranlib libh265parser.a
[  2%] Built target h265parser
Scanning dependencies of target avcparser
[  3%] Building CXX object lib/heif/Srcs/parser/avcparser/CMakeFiles/avcparser.dir/avcparser.cpp.o
[  4%] Linking CXX static library libavcparser.a
/usr/bin/ar qc libavcparser.a  CMakeFiles/avcparser.dir/avcparser.cpp.o
/usr/bin/ranlib libavcparser.a
[  4%] Built target avcparser
Scanning dependencies of target common
[  5%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/auxiliarytypeproperty.cpp.o
[  7%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/avcconfigurationbox.cpp.o
[  8%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/avcdecoderconfigrecord.cpp.o
[  9%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/avcsampleentry.cpp.o
[ 10%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/bbox.cpp.o
[ 11%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/bitstream.cpp.o
[ 13%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/chunkoffsetbox.cpp.o
[ 14%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/cleanaperture.cpp.o
[ 15%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/codingconstraintsbox.cpp.o
[ 16%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/compositionoffsetbox.cpp.o
[ 17%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/compositiontodecodebox.cpp.o
[ 19%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/datainformationbox.cpp.o
[ 20%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/datareferencebox.cpp.o
[ 21%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/decodepts.cpp.o
[ 22%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/editbox.cpp.o
[ 23%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/entitytogroupbox.cpp.o
[ 25%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/filetypebox.cpp.o
[ 26%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/fourccint.cpp.o
[ 27%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/fullbox.cpp.o
[ 28%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/groupslistbox.cpp.o
[ 29%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/handlerbox.cpp.o
[ 30%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/hevcconfigurationbox.cpp.o
[ 32%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/hevcdecoderconfigrecord.cpp.o
[ 33%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/hevcsampleentry.cpp.o
[ 34%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/idspace.cpp.o
[ 35%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/imagemirror.cpp.o
[ 36%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/imagespatialextentsproperty.cpp.o
[ 38%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/imagerotation.cpp.o
[ 39%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/imagerelativelocationproperty.cpp.o
[ 40%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/imagegrid.cpp.o
[ 41%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/imageoverlay.cpp.o
[ 42%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/itemdatabox.cpp.o
[ 44%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/iteminfobox.cpp.o
[ 45%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/itemlocationbox.cpp.o
[ 46%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/itempropertiesbox.cpp.o
[ 47%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/itempropertyassociation.cpp.o
[ 48%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/itempropertycontainer.cpp.o
[ 50%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/itemprotectionbox.cpp.o
[ 51%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/itemreferencebox.cpp.o
[ 52%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/layeredhevcconfigurationitemproperty.cpp.o
[ 53%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/layerselectorproperty.cpp.o
[ 54%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/lhevcdecoderconfigrecord.cpp.o
[ 55%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/log.cpp.o
[ 57%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/mediabox.cpp.o
[ 58%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/mediadatabox.cpp.o
[ 59%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/mediaheaderbox.cpp.o
[ 60%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/mediainformationbox.cpp.o
[ 61%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/metabox.cpp.o
[ 63%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/moviebox.cpp.o
[ 64%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/movieheaderbox.cpp.o
[ 65%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/operatingpointsinformation.cpp.o
[ 66%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/primaryitembox.cpp.o
[ 67%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/protectionschemeinfobox.cpp.o
[ 69%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/sampledescriptionbox.cpp.o
[ 70%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/sampleentrybox.cpp.o
[ 71%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/samplesizebox.cpp.o
[ 72%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/sampletablebox.cpp.o
[ 73%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/sampletochunkbox.cpp.o
[ 75%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/sampletogroupbox.cpp.o
[ 76%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/samplegroupdescriptionbox.cpp.o
[ 77%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/samplegroupentry.cpp.o
[ 78%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/syncsamplebox.cpp.o
[ 79%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/targetolsproperty.cpp.o
[ 80%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/timetosamplebox.cpp.o
[ 82%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/trackbox.cpp.o
[ 83%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/trackheaderbox.cpp.o
[ 84%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/trackreferencebox.cpp.o
[ 85%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/trackreferencetypebox.cpp.o
[ 86%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/videomediaheaderbox.cpp.o
[ 88%] Building CXX object lib/heif/Srcs/common/CMakeFiles/common.dir/visualsampleentrybox.cpp.o
[ 89%] Linking CXX static library libcommon.a
/usr/bin/ar qc libcommon.a  CMakeFiles/common.dir/auxiliarytypeproperty.cpp.o CMakeFiles/common.dir/avcconfigurationbox.cpp.o CMakeFiles/common.dir/avcdecoderconfigrecord.cpp.o CMakeFiles/common.dir/avcsampleentry.cpp.o CMakeFiles/common.dir/bbox.cpp.o CMakeFiles/common.dir/bitstream.cpp.o CMakeFiles/common.dir/chunkoffsetbox.cpp.o CMakeFiles/common.dir/cleanaperture.cpp.o CMakeFiles/common.dir/codingconstraintsbox.cpp.o CMakeFiles/common.dir/compositionoffsetbox.cpp.o CMakeFiles/common.dir/compositiontodecodebox.cpp.o CMakeFiles/common.dir/datainformationbox.cpp.o CMakeFiles/common.dir/datareferencebox.cpp.o CMakeFiles/common.dir/decodepts.cpp.o CMakeFiles/common.dir/editbox.cpp.o CMakeFiles/common.dir/entitytogroupbox.cpp.o CMakeFiles/common.dir/filetypebox.cpp.o CMakeFiles/common.dir/fourccint.cpp.o CMakeFiles/common.dir/fullbox.cpp.o CMakeFiles/common.dir/groupslistbox.cpp.o CMakeFiles/common.dir/handlerbox.cpp.o CMakeFiles/common.dir/hevcconfigurationbox.cpp.o CMakeFiles/common.dir/hevcdecoderconfigrecord.cpp.o CMakeFiles/common.dir/hevcsampleentry.cpp.o CMakeFiles/common.dir/idspace.cpp.o CMakeFiles/common.dir/imagemirror.cpp.o CMakeFiles/common.dir/imagespatialextentsproperty.cpp.o CMakeFiles/common.dir/imagerotation.cpp.o CMakeFiles/common.dir/imagerelativelocationproperty.cpp.o CMakeFiles/common.dir/imagegrid.cpp.o CMakeFiles/common.dir/imageoverlay.cpp.o CMakeFiles/common.dir/itemdatabox.cpp.o CMakeFiles/common.dir/iteminfobox.cpp.o CMakeFiles/common.dir/itemlocationbox.cpp.o CMakeFiles/common.dir/itempropertiesbox.cpp.o CMakeFiles/common.dir/itempropertyassociation.cpp.o CMakeFiles/common.dir/itempropertycontainer.cpp.o CMakeFiles/common.dir/itemprotectionbox.cpp.o CMakeFiles/common.dir/itemreferencebox.cpp.o CMakeFiles/common.dir/layeredhevcconfigurationitemproperty.cpp.o CMakeFiles/common.dir/layerselectorproperty.cpp.o CMakeFiles/common.dir/lhevcdecoderconfigrecord.cpp.o CMakeFiles/common.dir/log.cpp.o CMakeFiles/common.dir/mediabox.cpp.o CMakeFiles/common.dir/mediadatabox.cpp.o CMakeFiles/common.dir/mediaheaderbox.cpp.o CMakeFiles/common.dir/mediainformationbox.cpp.o CMakeFiles/common.dir/metabox.cpp.o CMakeFiles/common.dir/moviebox.cpp.o CMakeFiles/common.dir/movieheaderbox.cpp.o CMakeFiles/common.dir/operatingpointsinformation.cpp.o CMakeFiles/common.dir/primaryitembox.cpp.o CMakeFiles/common.dir/protectionschemeinfobox.cpp.o CMakeFiles/common.dir/sampledescriptionbox.cpp.o CMakeFiles/common.dir/sampleentrybox.cpp.o CMakeFiles/common.dir/samplesizebox.cpp.o CMakeFiles/common.dir/sampletablebox.cpp.o CMakeFiles/common.dir/sampletochunkbox.cpp.o CMakeFiles/common.dir/sampletogroupbox.cpp.o CMakeFiles/common.dir/samplegroupdescriptionbox.cpp.o CMakeFiles/common.dir/samplegroupentry.cpp.o CMakeFiles/common.dir/syncsamplebox.cpp.o CMakeFiles/common.dir/targetolsproperty.cpp.o CMakeFiles/common.dir/timetosamplebox.cpp.o CMakeFiles/common.dir/trackbox.cpp.o CMakeFiles/common.dir/trackheaderbox.cpp.o CMakeFiles/common.dir/trackreferencebox.cpp.o CMakeFiles/common.dir/trackreferencetypebox.cpp.o CMakeFiles/common.dir/videomediaheaderbox.cpp.o CMakeFiles/common.dir/visualsampleentrybox.cpp.o
/usr/bin/ranlib libcommon.a
[ 89%] Built target common
Scanning dependencies of target heifreader
[ 90%] Building CXX object lib/heif/Srcs/reader/CMakeFiles/heifreader.dir/hevcimagefilereader.cpp.o
[ 91%] Building CXX object lib/heif/Srcs/reader/CMakeFiles/heifreader.dir/imagefilereaderfactory.cpp.o
[ 92%] Linking CXX static library libheifreader.a
/usr/bin/ar qc libheifreader.a  CMakeFiles/heifreader.dir/hevcimagefilereader.cpp.o CMakeFiles/heifreader.dir/imagefilereaderfactory.cpp.o
/usr/bin/ranlib libheifreader.a
[ 92%] Built target heifreader
Scanning dependencies of target tifig
[ 94%] Building CXX object CMakeFiles/tifig.dir/src/main.cpp.o
In file included from /home/lib/tifig/src/loader.hpp:7:0,
                 from /home/lib/tifig/src/main.cpp:5:
/home/lib/tifig/src/hevc_decode.hpp: In function 'RgbData decodeFrame(DataVector)':
/home/lib/tifig/src/hevc_decode.hpp:83:40: error: 'av_packet_alloc' was not declared in this scope
     AVPacket* packet = av_packet_alloc();
                                        ^
/home/lib/tifig/src/hevc_decode.hpp:89:45: error: 'avcodec_send_packet' was not declared in this scope
     int sent = avcodec_send_packet(c, packet);
                                             ^
/home/lib/tifig/src/hevc_decode.hpp:97:49: error: 'avcodec_receive_frame' was not declared in this scope
     int success = avcodec_receive_frame(c, frame);
                                                 ^
CMakeFiles/tifig.dir/build.make:62: recipe for target 'CMakeFiles/tifig.dir/src/main.cpp.o' failed
make[2]: *** [CMakeFiles/tifig.dir/src/main.cpp.o] Error 1
CMakeFiles/Makefile2:68: recipe for target 'CMakeFiles/tifig.dir/all' failed
make[1]: *** [CMakeFiles/tifig.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

My env (docker container)

make

root@11308599ef5e:/home# make -v
GNU Make 4.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

SO: Ubuntu 16.04 (LTS)

ffmpeg

root@11308599ef5e:/home# ffmpeg -version
ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
libavutil      54. 31.100 / 54. 31.100
libavcodec     56. 60.100 / 56. 60.100
libavformat    56. 40.101 / 56. 40.101
libavdevice    56.  4.100 / 56.  4.100
libavfilter     5. 40.101 /  5. 40.101
libavresample   2.  1.  0 /  2.  1.  0
libswscale      3.  1.101 /  3.  1.101
libswresample   1.  2.101 /  1.  2.101
libpostproc    53.  3.100 / 53.  3.100

Also, I have tried to use the binary directly, but the tool output show me this:

root@11308599ef5e:/home# ./tifig  -v -p image.heic out.jpg
No ftyp box found! This cannot be a HEIF image.

This is the image that I'm using:
https://drive.google.com/open?id=1N193Zf4NO7EsMzW28O3JD7OUwUoMq_0P

Any idea how to get running tifig ?

Regards

@gustavonecore
Copy link
Author

Ok, after installing the missing ffmpeg libs the make process almost finished... just died at 94%

root@340eaa0beff1:/home/tifig/build# make
[  2%] Built target h265parser
[  4%] Built target avcparser
[ 89%] Built target common
Scanning dependencies of target heifreader
[ 90%] Building CXX object lib/heif/Srcs/reader/CMakeFiles/heifreader.dir/hevcimagefilereader.cpp.o
[ 91%] Linking CXX static library libheifreader.a
/usr/bin/ar qc libheifreader.a  CMakeFiles/heifreader.dir/hevcimagefilereader.cpp.o CMakeFiles/heifreader.dir/imagefilereaderfactory.cpp.o
/usr/bin/ranlib libheifreader.a
[ 92%] Built target heifreader
[ 94%] Linking CXX executable tifig
/usr/bin/ld: cannot find -lavcodec-ffmpeg
/usr/bin/ld: cannot find -lavutil-ffmpeg
/usr/bin/ld: cannot find -lswscale-ffmpeg
collect2: error: ld returned 1 exit status
CMakeFiles/tifig.dir/build.make:101: recipe for target 'tifig' failed
make[2]: *** [tifig] Error 1
CMakeFiles/Makefile2:68: recipe for target 'CMakeFiles/tifig.dir/all' failed
make[1]: *** [CMakeFiles/tifig.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Any ideas how to fix this error messages?

/usr/bin/ld: cannot find -lavcodec-ffmpeg
/usr/bin/ld: cannot find -lavutil-ffmpeg
/usr/bin/ld: cannot find -lswscale-ffmpeg

@gustavonecore
Copy link
Author

Alright, finally I found the issue.
My docker instance was not fully ok... I have to install the locate command and update the related db, in that way the script was able to find out those libs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants