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

Undefined Reference error #853

Closed
antoniomerlin opened this issue Oct 3, 2016 · 9 comments
Closed

Undefined Reference error #853

antoniomerlin opened this issue Oct 3, 2016 · 9 comments
Labels

Comments

@antoniomerlin
Copy link

`Android NDK: WARNING: APP_PLATFORM android-24 is larger than android:minSdkVersi
on 8 in ./AndroidManifest.xml
Android NDK: WARNING:jni/Android.mk:mupdfcore: LOCAL_LDLIBS is always ignored fo
r static libraries
[armeabi-v7a] SharedLibrary : libmupdf_java.so
jni/../../../../thirdparty/openjpeg/src/lib/openjp2/j2k.c:5953: error: undefined
reference to 'opj_has_thread_support'
jni/../../../../thirdparty/openjpeg/src/lib/openjp2/j2k.c:5955: error: undefined
reference to 'opj_thread_pool_destroy'
jni/../../../../thirdparty/openjpeg/src/lib/openjp2/j2k.c:5958: error: undefined
reference to 'opj_thread_pool_create'
jni/../../../../thirdparty/openjpeg/src/lib/openjp2/j2k.c:5962: error: undefined
reference to 'opj_thread_pool_create'
jni/../../../../thirdparty/openjpeg/src/lib/openjp2/j2k.c:6017: error: undefined
reference to 'opj_thread_pool_create'
jni/../../../../thirdparty/openjpeg/src/lib/openjp2/j2k.c:6020: error: undefined
reference to 'opj_thread_pool_create'
jni/../../../../thirdparty/openjpeg/src/lib/openjp2/j2k.c:7614: error: undefined
reference to 'opj_thread_pool_destroy'
jni/../../../../thirdparty/openjpeg/src/lib/openjp2/j2k.c:5973: error: undefined
reference to 'opj_has_thread_support'
jni/../../../../thirdparty/openjpeg/src/lib/openjp2/j2k.c:5976: error: undefined
reference to 'opj_get_num_cpus'
jni/../../../../thirdparty/openjpeg/src/lib/openjp2/tcd.c:1606: error: undefined
reference to 'opj_thread_pool_wait_completion'
jni/../../../../thirdparty/openjpeg/src/lib/openjp2/dwt.c:647: error: undefined
reference to 'opj_thread_pool_get_thread_count'
jni/../../../../thirdparty/openjpeg/src/lib/openjp2/dwt.c:729: error: undefined
reference to 'opj_thread_pool_submit_job'
jni/../../../../thirdparty/openjpeg/src/lib/openjp2/dwt.c:731: error: undefined
reference to 'opj_thread_pool_wait_completion'
jni/../../../../thirdparty/openjpeg/src/lib/openjp2/dwt.c:793: error: undefined
reference to 'opj_thread_pool_submit_job'
jni/../../../../thirdparty/openjpeg/src/lib/openjp2/dwt.c:795: error: undefined
reference to 'opj_thread_pool_wait_completion'
jni/../../../../thirdparty/openjpeg/src/lib/openjp2/dwt.c:706: error: undefined
reference to 'opj_thread_pool_wait_completion'
jni/../../../../thirdparty/openjpeg/src/lib/openjp2/t1.c:1772: error: undefined
reference to 'opj_thread_pool_submit_job'
jni/../../../../thirdparty/openjpeg/src/lib/openjp2/t1.c:1656: error: undefined
reference to 'opj_tls_get'
jni/../../../../thirdparty/openjpeg/src/lib/openjp2/t1.c:1660: error: undefined
reference to 'opj_tls_set'
clang++.exe: error: linker command failed with exit code 1 (use -v to see invoca
tion)
make: *** [obj/local/armeabi-v7a/libmupdf_java.so] Error 1

I am not able to understand what is this error is regarding please help if possible`

@szukw000
Copy link
Contributor

szukw000 commented Oct 4, 2016

This error report is obvious. [lib]mupdf has been compiled with an old version of OPENJPEG.
If possible, recompile.

Please report, what you have done.

winfried

----- Original Nachricht ----
Von: Gaurav Singh notifications@github.com
An: uclouvain/openjpeg openjpeg@noreply.github.com
Datum: 03.10.2016 08:15
Betreff: [uclouvain/openjpeg] Undefined Reference error (#853)

`Android NDK: WARNING: APP_PLATFORM android-24 is larger than
android:minSdkVersi
on 8 in ./AndroidManifest.xml
Android NDK: WARNING:jni/Android.mk:mupdfcore: LOCAL_LDLIBS is always
ignored fo
r static libraries
[armeabi-v7a] SharedLibrary : libmupdf_java.so
jni/../../../../thirdparty/openjpeg/src/lib/openjp2/j2k.c:5953: error:
undefined
reference to 'opj_has_thread_support'
jni/../../../../thirdparty/openjpeg/src/lib/openjp2/j2k.c:5955: error:
undefined
reference to 'opj_thread_pool_destroy'
jni/../../../../thirdparty/openjpeg/src/lib/openjp2/j2k.c:5958: error:
undefined
reference to 'opj_thread_pool_create'
jni/../../../../thirdparty/openjpeg/src/lib/openjp2/j2k.c:5962: error:
undefined
reference to 'opj_thread_pool_create'
(...)

@antoniomerlin
Copy link
Author

i've followed instruction from this url http://mupdf.com/docs/how-to-build-mupdf-for-android,
after make generate i've compiled the android version using ndk-build in that build i've got this error.

@szukw000
Copy link
Contributor

szukw000 commented Oct 4, 2016

Sorry, I can not help you. I have trie to compile NDK but found that a lot of
requirements are not met.

winfried

----- Original Nachricht ----
Von: Gaurav Singh notifications@github.com
An: uclouvain/openjpeg openjpeg@noreply.github.com
Datum: 04.10.2016 13:52
Betreff: Re: [uclouvain/openjpeg] Undefined Reference error (#853)

i've followed instruction from this url
http://mupdf.com/docs/how-to-build-mupdf-for-android,
after make generate i've compiled the android version using ndk-build in
that build i've got this error.

You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#853 (comment)

@antoniomerlin
Copy link
Author

can you specify which requirements.

@szukw000
Copy link
Contributor

szukw000 commented Oct 5, 2016

@antoniomerlin ,
please forget comment 2.

It is not an issue of LIBOPENJPEG but ANDROID.

The file 'thread.c' was missing. The current LIBOPENJPEG version in ANDROID
is '2.1.0', so I suppose the files are pasted from an older version where no files
'thread.c' and 'thread.h' existed.

But now I am stuck:

ant debug
Buildfile: /home/szukw000/Desktop/MUPDF/mupdf/platform/android/viewer/build.xml

BUILD FAILED
/home/szukw000/Desktop/MUPDF/mupdf/platform/android/viewer/build.xml:80: Cannot find /usr/local/android-studio/tools/ant/build.xml imported from /home/szukw000/Desktop/MUPDF/mupdf/platform/android/viewer/build.xml

Total time: 0 seconds

winfried
mupdf-report.txt

@szukw000
Copy link
Contributor

szukw000 commented Oct 5, 2016

@antoniomerlin ,
no it is not an issue of ANDROID but MUPDF.

winfried

@antoniomerlin
Copy link
Author

antoniomerlin commented Oct 6, 2016

@szukw000
Did you got success in ndk-build.

@szukw000
Copy link
Contributor

szukw000 commented Oct 6, 2016

@antoniomerlin ,
the bug has been reported to the MUPDF bugzilla as [Bug 697196] .

I do not understand the line above:

just if possible can you clear me out regarding these method and how to access them.

What do you mean with 'regarding these method and how to access them'?

And the general problem is: As the bug is not an OPENJPEG bug, this issue list is no longer
the correct list to talk about MUPDF and ANDROID.

winfried

@rouault
Copy link
Collaborator

rouault commented Jul 29, 2017

Closing under the assumption the issue is in mupdf

@rouault rouault closed this as completed Jul 29, 2017
@detonin detonin added the bug label Aug 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants