sioyek icon indicating copy to clipboard operation
sioyek copied to clipboard

lastest commit build failed : pdf_viewer/document.cpp:563:17: error: member reference base type 'int' is not a structure or union

Open Imymirror opened this issue 3 years ago • 1 comments

  1. git pull (commit is 40725832bb2ab634d37db808f7d3ebe8942926e2)
  2. ./build_mac.sh , the log is :
MAKE_PARALLEL set to 1

make: Nothing to be done for `default'.
/Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -std=c++17 -O2 -std=gnu++1z  -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk -mmacosx-version-min=11 -Wall -Wextra -fPIC -DQT_3DINPUT_LIB -DQT_OPENGL_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_WIDGETS_LIB -DNON_PORTABLE -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_3DINPUT_LIB -DQT_3DCORE_LIB -DQT_GAMEPAD_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Ipdf_viewer -Imupdf/include -Izlib -I/usr/local/Cellar/qt@5/5.15.2/lib/QtOpenGL.framework/Headers -I/usr/local/Cellar/qt@5/5.15.2/lib/QtWidgets.framework/Headers -I/usr/local/Cellar/qt@5/5.15.2/lib/Qt3DInput.framework/Headers -I/usr/local/Cellar/qt@5/5.15.2/lib/Qt3DCore.framework/Headers -I/usr/local/Cellar/qt@5/5.15.2/lib/QtGamepad.framework/Headers -I/usr/local/Cellar/qt@5/5.15.2/include -I/usr/local/Cellar/qt@5/5.15.2/include/QtOpenGLExtensions -I/usr/local/Cellar/qt@5/5.15.2/lib/QtGui.framework/Headers -I/usr/local/Cellar/qt@5/5.15.2/lib/QtNetwork.framework/Headers -I/usr/local/Cellar/qt@5/5.15.2/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/AGL.framework/Headers -I/usr/local/Cellar/qt@5/5.15.2/mkspecs/macx-clang -F/usr/local/Cellar/qt@5/5.15.2/lib -o document.o pdf_viewer/document.cpp
pdf_viewer/document.cpp:563:17: error: member reference base type 'int' is not a structure or union
                if (root->page.page == -1) {
                    ~~~~~~~~~~^~~~~
pdf_viewer/document.cpp:570:35: error: member reference base type 'int' is not a structure or union
                        current_node->page = root->page.page;
                                             ~~~~~~~~~~^~~~~
pdf_viewer/document.cpp:760:49: warning: lambda capture 'force_load_now' is not used [-Wunused-lambda-capture]
        auto load_page_dimensions_function = [this, n, force_load_now]() {
                                                     ~~^~~~~~~~~~~~~~
pdf_viewer/document.cpp:1261:35: warning: unknown escape sequence '\.' [-Wunknown-escape-sequence]
        std::wregex regex(L"[a-zA-Z]{3,}(\.){0,1}[ \t]+[0-9]+(\.[0-9]+)*");
                                         ^~
pdf_viewer/document.cpp:1261:56: warning: unknown escape sequence '\.' [-Wunknown-escape-sequence]
        std::wregex regex(L"[a-zA-Z]{3,}(\.){0,1}[ \t]+[0-9]+(\.[0-9]+)*");
                                                              ^~
pdf_viewer/document.cpp:1575:29: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                                if ((current_char->next == nullptr)) {
                                     ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
pdf_viewer/document.cpp:1575:29: note: remove extraneous parentheses around the comparison to silence this warning
                                if ((current_char->next == nullptr)) {
                                    ~                   ^         ~
pdf_viewer/document.cpp:1575:29: note: use '=' to turn this equality comparison into an assignment
                                if ((current_char->next == nullptr)) {
                                                        ^~
                                                        =
pdf_viewer/document.cpp:2309:22: warning: comparison of integers of different signs: 'int' and 'std::__1::vector<fz_rect>::size_type' (aka 'unsigned long') [-Wsign-compare]
                        for (int i = 0; i < line_rects.size(); i++) {
                                        ~ ^ ~~~~~~~~~~~~~~~~~
5 warnings and 2 errors generated.
make: *** [document.o] Error 1
cp: build/sioyek.app/Contents/MacOS/shaders: No such file or directory
cp: pdf_viewer/shaders: unable to copy extended attributes to build/sioyek.app/Contents/MacOS/shaders: No such file or directory
cp: build/sioyek.app/Contents/MacOS/shaders/stencil.fragment: No such file or directory
cp: build/sioyek.app/Contents/MacOS/shaders/simple.vertex: No such file or directory
cp: build/sioyek.app/Contents/MacOS/shaders/unrendered_page.fragment: No such file or directory
cp: build/sioyek.app/Contents/MacOS/shaders/debug.fragment: No such file or directory
cp: build/sioyek.app/Contents/MacOS/shaders/custom_colors.fragment: No such file or directory
cp: build/sioyek.app/Contents/MacOS/shaders/highlight.fragment: No such file or directory
cp: build/sioyek.app/Contents/MacOS/shaders/stencil.vertex: No such file or directory
cp: build/sioyek.app/Contents/MacOS/shaders/separator.fragment: No such file or directory
cp: build/sioyek.app/Contents/MacOS/shaders/undendered_page.fragment: No such file or directory
cp: build/sioyek.app/Contents/MacOS/shaders/dark_mode.fragment: No such file or directory
cp: build/sioyek.app/Contents/MacOS/shaders/vertical_bar.fragment: No such file or directory
cp: build/sioyek.app/Contents/MacOS/shaders/vertical_bar_dark.fragment: No such file or directory
cp: build/sioyek.app/Contents/MacOS/shaders/simple.fragment: No such file or directory
cp: build/sioyek.app/Contents/MacOS/prefs.config: No such file or directory
cp: build/sioyek.app/Contents/MacOS/prefs_user.config: No such file or directory
cp: build/sioyek.app/Contents/MacOS/keys.config: No such file or directory
cp: build/sioyek.app/Contents/MacOS/keys_user.config: No such file or directory
cp: build/sioyek.app/Contents/MacOS/tutorial.pdf: No such file or directory
ERROR: Could not find bundle binary for "build/sioyek.app"
ERROR: "error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file:  (No such file or directory)\n"
ERROR: "error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file:  (No such file or directory)\n"
ERROR: "error: /Library/Developer/CommandLineTools/usr/bin/otool-classic: can't open file:  (No such file or directory)\n"
WARNING:
WARNING: Could not find any external Qt frameworks to deploy in "build/sioyek.app"
WARNING: Perhaps macdeployqt was already used on "build/sioyek.app" ?
WARNING: If so, you will need to rebuild "build/sioyek.app" before trying again.
ERROR: Could not find bundle binary for "build/sioyek.app"
ERROR: "error: /Library/Developer/CommandLineTools/usr/bin/strip: can't open file:  (No such file or directory)\n"
ERROR: ""
updating: build/sioyek.dmg (deflated 32%)

Imymirror avatar Sep 22 '22 19:09 Imymirror

We have switched to mupdf 1.20, I think you are using an older version of mupdf.

ahrm avatar Sep 22 '22 19:09 ahrm