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

Function locationFromPageNumber not defined in Document #1

Open
rami-alloush opened this issue Apr 7, 2020 · 1 comment
Open

Function locationFromPageNumber not defined in Document #1

rami-alloush opened this issue Apr 7, 2020 · 1 comment

Comments

@rami-alloush
Copy link

I've followed all the steps to build the library, and I get the following errors that seems to be related to a missing function definition or something.
Not sure if I'm missing something on my side.
Thanks

> Task :lib:compileReleaseJavaWithJavac FAILED
/home/rami/mupdf-android-viewer/lib/src/main/java/com/artifex/mupdf/viewer/MuPDFCore.java:72: error: cannot find symbol
                        long mark = doc.makeBookmark(doc.locationFromPageNumber(oldPage));
                                                        ^
  symbol:   method locationFromPageNumber(int)
  location: variable doc of type Document
/home/rami/mupdf-android-viewer/lib/src/main/java/com/artifex/mupdf/viewer/MuPDFCore.java:82: error: cannot find symbol
                        return doc.pageNumberFromLocation(doc.findBookmark(mark));
                                  ^
  symbol:   method pageNumberFromLocation(int)
  location: variable doc of type Document
/home/rami/mupdf-android-viewer/lib/src/main/java/com/artifex/mupdf/viewer/MuPDFCore.java:162: error: cannot find symbol
                return doc.pageNumberFromLocation(doc.resolveLink(link));
                                                     ^
  symbol:   method resolveLink(Link)
  location: variable doc of type Document
/home/rami/mupdf-android-viewer/lib/src/main/java/com/artifex/mupdf/viewer/MuPDFCore.java:184: error: cannot find symbol
                                int page = doc.pageNumberFromLocation(doc.resolveLink(node));
                                                                         ^
  symbol:   method resolveLink(Outline)
  location: variable doc of type Document
/home/rami/mupdf-android-viewer/lib/src/main/java/com/artifex/mupdf/viewer/PageView.java:493: error: cannot find symbol
                if (link.isExternal()) {
                        ^
  symbol:   method isExternal()
  location: variable link of type Link
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
5 errors

FAILURE: Build failed with an exception.

@ccxvii
Copy link
Contributor

ccxvii commented Apr 8, 2020

Have you checked out and made sure all the submodules are at the correct version?

If you are using the Maven repositories for the submodules, you must use a tagged version of the main repository since the current master may use changes in submodules that haven't been released yet.

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

2 participants