vodka2 / vk-music-fs

FUSE file system for VK audios
37 stars 4 forks source link

Cant build an AUR package #5

Closed Mayurifag closed 3 years ago

Mayurifag commented 3 years ago

Hello! I have got some problems while building an AUR package, so I wish someone to help me how to fix, due to my unknowledge of C++ at all.

1) First error was due to missing tag library or something, so I installed the libtaginfo package from community arch repo and moved further. I guess it should be added to PKGBUILD as well @vodka2 :smiley_cat:

[ 51%] Linking CXX static library libtag.a
cd /home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/build/taglib_mod && /usr/bin/cmake -P CMakeFiles/tag.dir/cmake_clean_target.cmake
cd /home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/build/taglib_mod && /usr/bin/cmake -E cmake_link_script CMakeFiles/tag.dir/link.txt --verbose=1
/usr/bin/ar qc libtag.a CMakeFiles/tag.dir/mpeg/mpegfile.cpp.o CMakeFiles/tag.dir/mpeg/mpegproperties.cpp.o CMakeFiles/tag.dir/mpeg/mpegheader.cpp.o CMakeFiles/tag.dir/mpeg/xingheader.cpp.o CMakeFiles/tag.dir/mpeg/id3v1/id3v1genres.cpp.o CMakeFiles/tag.dir/mpeg/id3v2/id3v2framefactory.cpp.o CMakeFiles/tag.dir/mpeg/id3v2/id3v2synchdata.cpp.o CMakeFiles/tag.dir/mpeg/id3v2/id3v2tag.cpp.o CMakeFiles/tag.dir/mpeg/id3v2/id3v2header.cpp.o CMakeFiles/tag.dir/mpeg/id3v2/id3v2frame.cpp.o CMakeFiles/tag.dir/mpeg/id3v2/id3v2footer.cpp.o CMakeFiles/tag.dir/mpeg/id3v2/id3v2extendedheader.cpp.o CMakeFiles/tag.dir/mpeg/id3v2/frames/attachedpictureframe.cpp.o CMakeFiles/tag.dir/mpeg/id3v2/frames/commentsframe.cpp.o CMakeFiles/tag.dir/mpeg/id3v2/frames/eventtimingcodesframe.cpp.o CMakeFiles/tag.dir/mpeg/id3v2/frames/generalencapsulatedobjectframe.cpp.o CMakeFiles/tag.dir/mpeg/id3v2/frames/ownershipframe.cpp.o CMakeFiles/tag.dir/mpeg/id3v2/frames/popularimeterframe.cpp.o CMakeFiles/tag.dir/mpeg/id3v2/frames/privateframe.cpp.o CMakeFiles/tag.dir/mpeg/id3v2/frames/relativevolumeframe.cpp.o CMakeFiles/tag.dir/mpeg/id3v2/frames/synchronizedlyricsframe.cpp.o CMakeFiles/tag.dir/mpeg/id3v2/frames/textidentificationframe.cpp.o CMakeFiles/tag.dir/mpeg/id3v2/frames/uniquefileidentifierframe.cpp.o CMakeFiles/tag.dir/mpeg/id3v2/frames/unknownframe.cpp.o CMakeFiles/tag.dir/mpeg/id3v2/frames/unsynchronizedlyricsframe.cpp.o CMakeFiles/tag.dir/mpeg/id3v2/frames/urllinkframe.cpp.o CMakeFiles/tag.dir/mpeg/id3v2/frames/chapterframe.cpp.o CMakeFiles/tag.dir/mpeg/id3v2/frames/tableofcontentsframe.cpp.o CMakeFiles/tag.dir/mpeg/id3v2/frames/podcastframe.cpp.o CMakeFiles/tag.dir/toolkit/tstring.cpp.o CMakeFiles/tag.dir/toolkit/tstringlist.cpp.o CMakeFiles/tag.dir/toolkit/tbytevector.cpp.o CMakeFiles/tag.dir/toolkit/tbytevectorlist.cpp.o CMakeFiles/tag.dir/toolkit/tbytevectorstream.cpp.o CMakeFiles/tag.dir/toolkit/tiostream.cpp.o CMakeFiles/tag.dir/toolkit/tfile.cpp.o CMakeFiles/tag.dir/toolkit/tfilestream.cpp.o CMakeFiles/tag.dir/toolkit/tdebug.cpp.o CMakeFiles/tag.dir/toolkit/tpropertymap.cpp.o CMakeFiles/tag.dir/toolkit/trefcounter.cpp.o CMakeFiles/tag.dir/toolkit/tdebuglistener.cpp.o CMakeFiles/tag.dir/toolkit/tzlib.cpp.o CMakeFiles/tag.dir/tag.cpp.o CMakeFiles/tag.dir/tagunion.cpp.o CMakeFiles/tag.dir/fileref.cpp.o CMakeFiles/tag.dir/audioproperties.cpp.o CMakeFiles/tag.dir/tagutils.cpp.o
/usr/bin/ranlib libtag.a
make[3]: Leaving directory '/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/build'
[ 51%] Built target tag
make[2]: Leaving directory '/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/build'
make[1]: *** [CMakeFiles/Makefile2:518: src/CMakeFiles/vk_music_fs.dir/rule] Error 2
make[1]: Leaving directory '/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/build'
make: *** [Makefile:166: vk_music_fs] Error 2
==> ERROR: A failure occurred in build().

2) And the next issue blows my head, I dont know what I may do here:

[ 53%] Building CXX object src/mp3core/CMakeFiles/mp3core.dir/FileManager.cpp.o
cd /home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/build/src/mp3core && /usr/bin/c++ -DHAVE_CONFIG_H -DTAGLIB_STATIC -I/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/src -I/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/nowide/include -I/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/json -I/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/taglib_mod -I/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/taglib_mod/toolkit -I/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/taglib_mod/mpeg -I/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/taglib_mod/mpeg/id3v2 -I/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/taglib_mod/mpeg/id3v2/frames -I/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/taglib_mod/mpeg/id3v1 -I/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/taglib_mod/3rdparty -I/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/cpp-lru-cache-mod -I/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/di/extension/include -I/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/di/include -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt --std=gnu++17  -s -O3 -DNDEBUG -o CMakeFiles/mp3core.dir/FileManager.cpp.o -c /home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/src/mp3core/FileManager.cpp
In file included from /home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/src/mp3core/FileManager.h:6,
                 from /home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/src/mp3core/FileManager.cpp:1:
/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/di/include/boost/di.hpp: In member function ‘boost::di::v1_1_0::core::binder::resolve_template_t<boost::di::v1_1_0::core::injector<TConfig, TPolicies, TDeps>, boost::di::v1_1_0::aux::identity<T<> > > boost::di::v1_1_0::core::injector<TConfig, TPolicies, TDeps>::create() const’:
/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/di/include/boost/di.hpp:2575:77: error: ‘boost::di::v1_1_0::core::binder::resolve_template_t<boost::di::v1_1_0::core::injector<TConfig, TPolicies, TDeps>, boost::di::v1_1_0::aux::identity<T<> > > boost::di::v1_1_0::core::injector<TConfig, TPolicies, TDeps>::create() const’ is deprecated: creatable constraint not satisfied [-Werror=deprecated-declarations]
 2575 |     return __BOOST_DI_TYPE_WKND(type) create_impl<aux::true_type>(aux::type<type>{});
      |                                                                             ^~~~
/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/di/include/boost/di.hpp:2571:3: note: declared here
 2571 |   create()
      |   ^~~~~~
/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/di/include/boost/di.hpp: In member function ‘boost::di::v1_1_0::core::binder::resolve_template_t<boost::di::v1_1_0::core::injector<TConfig, boost::di::v1_1_0::core::pool<boost::di::v1_1_0::aux::type_list<> >, TDeps ...>, boost::di::v1_1_0::aux::identity<T<> > > boost::di::v1_1_0::core::injector<TConfig, boost::di::v1_1_0::core::pool<boost::di::v1_1_0::aux::type_list<> >, TDeps ...>::create() const’:
/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/di/include/boost/di.hpp:2805:77: error: ‘boost::di::v1_1_0::core::binder::resolve_template_t<boost::di::v1_1_0::core::injector<TConfig, boost::di::v1_1_0::core::pool<boost::di::v1_1_0::aux::type_list<> >, TDeps ...>, boost::di::v1_1_0::aux::identity<T<> > > boost::di::v1_1_0::core::injector<TConfig, boost::di::v1_1_0::core::pool<boost::di::v1_1_0::aux::type_list<> >, TDeps ...>::create() const’ is deprecated: creatable constraint not satisfied [-Werror=deprecated-declarations]
 2805 |     return __BOOST_DI_TYPE_WKND(type) create_impl<aux::true_type>(aux::type<type>{});
      |                                                                             ^~~~
/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/di/include/boost/di.hpp:2801:3: note: declared here
 2801 |   create()
      |   ^~~~~~
cc1plus: some warnings being treated as errors
make[3]: *** [src/mp3core/CMakeFiles/mp3core.dir/build.make:98: src/mp3core/CMakeFiles/mp3core.dir/FileManager.cpp.o] Error 1
make[3]: Leaving directory '/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/build'
make[2]: *** [CMakeFiles/Makefile2:625: src/mp3core/CMakeFiles/mp3core.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
make[3]: *** [src/net/CMakeFiles/net.dir/build.make:111: src/net/CMakeFiles/net.dir/HttpStreamCommon.cpp.o] Error 1
make[3]: Leaving directory '/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/build'
make[2]: *** [CMakeFiles/Makefile2:596: src/net/CMakeFiles/net.dir/all] Error 2
make[2]: Leaving directory '/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/build'
make[1]: *** [CMakeFiles/Makefile2:518: src/CMakeFiles/vk_music_fs.dir/rule] Error 2
make[1]: Leaving directory '/home/username/.cache/yay/vk-music-fs-git/src/vk-music-fs-git/build'
make: *** [Makefile:166: vk_music_fs] Error 2
==> ERROR: A failure occurred in build().

Thanks in advance for any help that my push this build!

vodka2 commented 3 years ago

@Mayurifag Thanks for reporting, I will look at these errors tomorrow. I also have some unpushed commits and some ideas for improving

You can use appimages for now, but I think it may be needed to unpack them first on Arch Linux.

Installing libtaginfo does not seem to be a good idea, since vk-music-fs uses a modified taglib, which is already included. The second error is probably related to bugs in older versions of boost::di.

vodka2 commented 3 years ago

@Mayurifag I've fixed these errors. yay -S vk-music-fs-git works now. Could you please try to build it again?

You might also want to remove libtaginfo

Mayurifag commented 3 years ago

Yep, everything seems to be working fine right now, thanks :+1: Removed libtaginfo before installation

Thanks a lot, closing this ticket due to new version fixes :smile: