mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

Facing issue with dmlc::Stream::Create

Open amanaman118 opened this issue 10 years ago • 5 comments

Below is what i am getting upon running below code in predictor.cc class

const char* fPath = env->GetStringUTFChars(filePath, 0);
const char* fFlag = env->GetStringUTFChars(fileFlag, 0);
dmlc::Stream *fStream = dmlc::Stream::Create(fPath, fFlag);

Issue generated is as below

 java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZN4dmlc6Stream6CreateEPKcS2_b" referenced by "/data/app/com.happen.it.make.whatsthis-2/lib/arm/libmxnet_predict.so"...
                                                       at java.lang.Runtime.loadLibrary(Runtime.java:372)
                                                       at java.lang.System.loadLibrary(System.java:1076)
                                                       at org.dmlc.mxnet.Predictor.<clinit>(Predictor.java:5)

amanaman118 avatar Aug 03 '16 07:08 amanaman118

@SlipknotTN can you help me with this issue.

amanaman118 avatar Aug 04 '16 05:08 amanaman118

@amanaman118 which gcc version do you use? is it gcc-5 or 4.8 something?

phunterlau avatar Aug 09 '16 08:08 phunterlau

@amanaman118 seems like you have updated some package but the old link libs are not yet removed, so the code is trying to link to an old lib but failed. It usually happens on dmlc-core since it is one of the most dependent. Please check out a very fresh repo and try again.

phunterlau avatar Aug 09 '16 09:08 phunterlau

Hello @phunterlau ,

Below is my gcc version

Amans-MacBook-Pro:platform-tools aman$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Well i have been building amalgamation part of mxnet, i haven't changed anything in dmlc-core. Even though i would give it a try again with fresh repo.

amanaman118 avatar Aug 10 '16 04:08 amanaman118

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!

phunterlau avatar Sep 28 '17 06:09 phunterlau