llv22 commented on issue #10187: OpenCV 3.3.1 undefined reference to compiler 
CXX_3.4.21
URL: 
https://github.com/apache/incubator-mxnet/issues/10187#issuecomment-414912008
 
 
   @AlexTS1980 Perhaps you can check with how I solved with the similiar issue 
for pytorch.
   Basically it's linkable issue for 
/home/ICTDOMAIN/453615/anaconda2/lib/libopencv_imgcodecs.so.3.3.1.
   1. detect /home/ICTDOMAIN/453615/anaconda2/lib/libopencv_imgcodecs.so.3.3.1 
link symbol:
   ```bash
   ldd /home/ICTDOMAIN/453615/anaconda2/lib/libopencv_imgcodecs.so.3.3.1
   ```
   2. detect where system having libstdc++.so.6/libstdc++.so
   ```bash
   sudo find / -name libstdc++.so.6
   ```
   3. you can find actually you have 2 libstdc++.so.6 in system
   *  system library - /usr/lib/x86_64-linux-gnu/libstdc++.so.6
   *  anaconda library - /mnt/xvdb/jupyter/miniconda3/lib/./libstdc++.so.6 -> 
libstdc++.so.6.0.24
   4. The error is for anacoda library mismatched with your system library.
   * if you are on mac, using "install_name_tool -change", refer to  
https://stackoverflow.com/questions/33991581/install-name-tool-to-update-a-executable-to-search-for-dylib-in-mac-os-x
   * if you are on the linux/ubuntu, you can recreate symbol link for anaconda 
library libstdc++.so.6:
   sudo ln -s -f  /mnt/xvdb/jupyter/miniconda3/lib/./libstdc++.so.6 
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25
   
   Tips: please do check and change symbol links instead of library itself. 
Hope it will help

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to