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

error compile opensuse #62

Open
heiheshang opened this issue Jun 21, 2020 · 0 comments
Open

error compile opensuse #62

heiheshang opened this issue Jun 21, 2020 · 0 comments

Comments

@heiheshang
Copy link

-- The C compiler identification is GNU 10.1.1
-- The CXX compiler identification is GNU 10.1.1
-- 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 "1.6.3")
-- Checking for module 'libavcodec'
-- Found libavcodec, version 58.54.100
-- Checking for module 'libavutil'
-- Found libavutil, version 56.31.100
-- Checking for module 'libswscale'
-- Found libswscale, version 5.5.100
-- Checking for module 'vips-cpp'
-- Found vips-cpp, version 8.9.2
-- System name : Linux
-- Project Name : HEIF
-- Project directory : /home/oper/Programs/tifig/lib/heif
-- Executables in : /home/oper/Programs/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
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.16") found components: doxygen dot
-- Configuring done
-- Generating done
-- Build files have been written to: /home/oper/Programs/tifig/build

[ 94%] Building CXX object CMakeFiles/tifig.dir/src/main.cpp.o /home/oper/Programs/tifig/src/main.cpp: In function ‘int convert(const string&, Opts&)’: /home/oper/Programs/tifig/src/main.cpp:58:26: warning: ‘void avcodec_register_all()’ is deprecated [-Wdeprecated-declarations] 58 | avcodec_register_all(); | ^ In file included from /home/oper/Programs/tifig/src/hevc_decode.hpp:9, from /home/oper/Programs/tifig/src/loader.hpp:7, from /home/oper/Programs/tifig/src/main.cpp:5: /usr/include/ffmpeg/libavcodec/avcodec.h:4159:6: note: declared here 4159 | void avcodec_register_all(void); | ^~~~~~~~~~~~~~~~~~~~ [ 95%] Linking CXX executable tifig /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/tifig.dir/src/main.cpp.o: in function createVipsThumbnail(vips::VImage&, Opts&)':
main.cpp:(.text+0x4018): undefined reference to vips::VImage::autorot(vips::VOption*)' /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: main.cpp:(.text+0x405c): undefined reference to vips::VImage::tiffsave_buffer(vips::VOption*)'
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/tifig.dir/src/main.cpp.o: in function printOutputImageToStdout(vips::VImage&, Opts&)': main.cpp:(.text+0x4148): undefined reference to vips::VImage::jpegsave_buffer(vips::VOption*)'
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/tifig.dir/src/main.cpp.o: in function getImage(HevcImageFileReader&, unsigned int, unsigned int, Opts&)': main.cpp:(.text+0x5347): undefined reference to vips::VImage::extract_area(int, int, int, int, vips::VOption*)'
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/tifig.dir/src/main.cpp.o: in function saveOutputImageToFile(vips::VImage&, Opts&)': main.cpp:(.text+0x58a3): undefined reference to vips::VImage::jpegsave(char*, vips::VOption*)'
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: main.cpp:(.text+0x59a8): undefined reference to vips::VImage::autorot(vips::VOption*)' /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: main.cpp:(.text+0x59ee): undefined reference to vips::VImage::tiffsave(char*, vips::VOption*)'
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: main.cpp:(.text+0x5a22): undefined reference to vips::VImage::autorot(vips::VOption*)' /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: main.cpp:(.text+0x5a30): undefined reference to vips::VImage::pngsave(char*, vips::VOption*)'
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: main.cpp:(.text+0x5a6c): undefined reference to vips::VImage::autorot(vips::VOption*)' /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: main.cpp:(.text+0x5a7a): undefined reference to vips::VImage::ppmsave(char*, vips::VOption*)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/tifig.dir/build.make:111: tifig] Error 1
make[1]: *** [CMakeFiles/Makefile2:336: CMakeFiles/tifig.dir/all] Error 2
make: *** [Makefile:150: all] Error 2
`

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

1 participant