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

build error on fedora 34 #221

Open
langfingaz opened this issue Jun 10, 2021 · 0 comments
Open

build error on fedora 34 #221

langfingaz opened this issue Jun 10, 2021 · 0 comments

Comments

@langfingaz
Copy link

Hi,
thanks for this project. I'm already using it as flatpak for quite some time.
However, when trying to build it today, it failed. Here the steps done and the error. I hope this may help you.

Note: I created a build directory inside pdfsilcer and not next to it (as opposed tho the instructions in the README), but this shouldn't be the cause of error I guess ...

# deps
sudo dnf install gtkmm30-devel poppler-cpp-devel cairomm-devel qpdf-devel libuuid-devel intltool gettext

# checkout the code
mkdir -p ~/Downloads/git
cd ~/Downloads/git
git clone --recursive https://github.com/junrrein/pdfslicer.git

# build
cd pdfslicer
mkdir build-pdfslicer
cd build-pdfslicer
cmake ../ -DCMAKE_BUILD_TYPE=Release
make
[ 56%] Building CXX object src/CMakeFiles/pdfslicer.dir/application/previewwindow.cpp.o
In file included from /home/yoda/Downloads/git/pdfslicer/src/application/pagewidget.hpp:20,
                 from /home/yoda/Downloads/git/pdfslicer/src/application/previewwindow.hpp:21,
                 from /home/yoda/Downloads/git/pdfslicer/src/application/previewwindow.cpp:17:
/home/yoda/Downloads/git/pdfslicer/src/application/task.hpp: In instantiation of ‘Slicer::RenderTask<T>::RenderTask(std::weak_ptr<_Tp>, int) [with T = Slicer::PageWidget]’:
/usr/include/c++/11/ext/new_allocator.h:162:4:   required from ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = Slicer::RenderTask<Slicer::PageWidget>; _Args = {std::shared_ptr<Slicer::PageWidget>&, int}; _Tp = Slicer::RenderTask<Slicer::PageWidget>]’
/usr/include/c++/11/bits/alloc_traits.h:512:17:   required from ‘static void std::allocator_traits<std::allocator<_Tp1> >::construct(std::allocator_traits<std::allocator<_Tp1> >::allocator_type&, _Up*, _Args&& ...) [with _Up = Slicer::RenderTask<Slicer::PageWidget>; _Args = {std::shared_ptr<Slicer::PageWidget>&, int}; _Tp = Slicer::RenderTask<Slicer::PageWidget>; std::allocator_traits<std::allocator<_Tp1> >::allocator_type = std::allocator<Slicer::RenderTask<Slicer::PageWidget> >]’
/usr/include/c++/11/bits/shared_ptr_base.h:519:39:   required from ‘std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_Sp_counted_ptr_inplace(_Alloc, _Args&& ...) [with _Args = {std::shared_ptr<Slicer::PageWidget>&, int}; _Tp = Slicer::RenderTask<Slicer::PageWidget>; _Alloc = std::allocator<Slicer::RenderTask<Slicer::PageWidget> >; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’
/usr/include/c++/11/bits/shared_ptr_base.h:650:16:   required from ‘std::__shared_count<_Lp>::__shared_count(_Tp*&, std::_Sp_alloc_shared_tag<_Alloc>, _Args&& ...) [with _Tp = Slicer::RenderTask<Slicer::PageWidget>; _Alloc = std::allocator<Slicer::RenderTask<Slicer::PageWidget> >; _Args = {std::shared_ptr<Slicer::PageWidget>&, int}; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’
/usr/include/c++/11/bits/shared_ptr_base.h:1342:14:   required from ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_alloc_shared_tag<_Tp>, _Args&& ...) [with _Alloc = std::allocator<Slicer::RenderTask<Slicer::PageWidget> >; _Args = {std::shared_ptr<Slicer::PageWidget>&, int}; _Tp = Slicer::RenderTask<Slicer::PageWidget>; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’
/usr/include/c++/11/bits/shared_ptr.h:409:59:   required from ‘std::shared_ptr<_Tp>::shared_ptr(std::_Sp_alloc_shared_tag<_Tp>, _Args&& ...) [with _Alloc = std::allocator<Slicer::RenderTask<Slicer::PageWidget> >; _Args = {std::shared_ptr<Slicer::PageWidget>&, int}; _Tp = Slicer::RenderTask<Slicer::PageWidget>]’
/usr/include/c++/11/bits/shared_ptr.h:862:14:   required from ‘std::shared_ptr<_Tp> std::allocate_shared(const _Alloc&, _Args&& ...) [with _Tp = Slicer::RenderTask<Slicer::PageWidget>; _Alloc = std::allocator<Slicer::RenderTask<Slicer::PageWidget> >; _Args = {std::shared_ptr<Slicer::PageWidget>&, int}]’
/usr/include/c++/11/bits/shared_ptr.h:878:39:   required from ‘std::shared_ptr<_Tp> std::make_shared(_Args&& ...) [with _Tp = Slicer::RenderTask<Slicer::PageWidget>; _Args = {std::shared_ptr<Slicer::PageWidget>&, int}]’
/home/yoda/Downloads/git/pdfslicer/src/application/previewwindow.cpp:121:57:   required from here
/home/yoda/Downloads/git/pdfslicer/src/application/task.hpp:51:34: error: no matching function for call to ‘Slicer::Task::Task()’
   51 |         , m_targetSize{targetSize}
      |                                  ^
/home/yoda/Downloads/git/pdfslicer/src/application/task.hpp:30:5: note: candidate: ‘Slicer::Task::Task(Slicer::Task&&)’ (deleted)
   30 |     Task(Task&&) = delete;
      |     ^~~~
/home/yoda/Downloads/git/pdfslicer/src/application/task.hpp:30:5: note:   candidate expects 1 argument, 0 provided
/home/yoda/Downloads/git/pdfslicer/src/application/task.hpp:28:5: note: candidate: ‘Slicer::Task::Task(const Slicer::Task&)’ (deleted)
   28 |     Task(const Task&) = delete;
      |     ^~~~
/home/yoda/Downloads/git/pdfslicer/src/application/task.hpp:28:5: note:   candidate expects 1 argument, 0 provided
make[2]: *** [src/CMakeFiles/pdfslicer.dir/build.make:290: src/CMakeFiles/pdfslicer.dir/application/previewwindow.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:435: src/CMakeFiles/pdfslicer.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant