lib

Linking Ipopt with Intel MKL

匿名 (未验证) 提交于 2019-12-03 01:06:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to link Ipopt with Intel MKL ( instructions ). Intel's Link Advisor suggests: Link line: -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_ilp64.a ${MKLROOT}/lib/intel64/libmkl_core.a ${MKLROOT}/lib/intel64/libmkl_intel_thread.a -Wl,--end-group -lpthread -lm -ldl Compiler options: -DMKL_ILP64 -qopenmp -I${MKLROOT}/include I try to configure Ipopt with: ../configure CXX=icpc CC=icc F77=ifort --with-blas=" -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_ilp64.a ${MKLROOT}/lib/intel64/libmkl_core.a ${MKLROOT}/lib/intel64

Import from ipython

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: If I use IDLE with python 2.7 import cv import cv2 and it works but if I use ipython notebook it gives me error ImportError Traceback (most recent call last) in () ----> 1 import cv ImportError: No module named cv So how to use OpenCV from iPython? EDIT: from IDLE ['', 'C:\Python27\Lib\idlelib', 'C:\Python27\lib\site-packages\pip-1.1-py2.7.egg', 'C:\Python27\lib\site-packages\gensim-0.8.6-py2.7.egg', 'C:\WINDOWS\system32\python27.zip', 'C:\Python27\DLLs', 'C:\Python27\lib', 'C:\Python27\lib\plat-win', 'C:\Python27\lib\lib-tk', 'C:\Python27',

mingw/libxml2 issue

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to use libxml2 (v2.2.6.0) with mingw under win7 I added the lib -llibmlx2, but each time I compile I get : error: undefined reference to ` imp _xmlFree' On Google I found this: http://osdir.com/ml/gnome.lib.xml.ge.../msg00003.html But still doesn't work. Any idea ? thanks... 回答1: I believe that this problem only happens when using precompiled libxml2 binaries prepared by Igor Zlatovic. I suspect that the problem goes away if using libxml2 lib natively compiled with mingw. Here is the declaration of xmlFree in libxml/globals.h:

How to fix “unrecognized option '-plugin`” when using gdc to compile D program?

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I download the GDC for Linux , and try to build a simple D Program. After executing " gdc hello.d -o hello ", it outputs: [root@localhost nan]# gdc hello.d -o hello /usr/bin/ld: unrecognized option '-plugin' /usr/bin/ld: use the --help option for usage information collect2: error: ld returned 1 exit status Then I use " gdc -v hello.d -o hello " command, and try to find the root cause. It displays: ...... COLLECT_GCC_OPTIONS='-v' '-o' 'hello' '-shared-libgcc' '-mtune=generic' '-march=x86-64' /home/nan/x86_64-gdcproject-linux-gnu/bin/..

What is the meaning of these ' undefined reference to __glut*WithExit ' OpenGL linker errors? [duplicate]

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This question already has an answer here: What is an undefined reference/unresolved external symbol error and how do I fix it? 28 answers Original Question: [Warning] passing GLfloat' for converting 2 of void glutSolidSphere(GLdouble, GLint, GLint)' [Warning] passing GLfloat' for converting 3 of void glutSolidSphere(GLdouble, GLint, GLint)' After applying one of the poster's suggestions of including glut.h, I now get this problem. I can't use glutSolidSphere() without it. [Linker error] undefined reference to `__glutInitWithExit@12' [Linker

linking OpenMP statically with GCC

匿名 (未验证) 提交于 2019-12-03 01:03:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Given the following file print.cpp #include <stdio.h> int main() { printf("asdf\n"); } I can link this statically like this g++ -static print.cpp or like this g++ -static-libgcc -Wl,-Bstatic -lc print.cpp -o print But now let's add a little OpenMP and call the file print_omp.cpp #include <omp.h> #include <stdio.h> int main() { printf("%d\n", omp_get_num_threads()); } I can link this statically like this (I checked it with ldd ) g++ -fopenmp -static print_omp.cpp However, this does not work g++ -fopenmp -static-libgcc -Wl,-Bstatic -lc print

Angular 6 custom lib No provider for ComponentFactoryResolver

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I rewriting library from NG4 -> NG6 (using angular-cli 6). This lib change dynamicli angular components so I using ComponentFactoryResolver and here I got stuck. When I add ComponentFactoryResolver to constructor: constructor( private componentFactoryResolver: ComponentFactoryResolver ) {} and build lib (with success) in target app (I add my lib in package.json from local file) I have this error: StaticInjectorError(AppModule)[MyLibComponent-> ComponentFactoryResolver]: StaticInjectorError(Platform: core)[MyLibComponent->

Using CMake's fixup_bundle for bundling linux-only application

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: We developing some CV application, based of OpenCV, Boost, LibVLC and Caffe. Some of our customers want to deploy it on outdated(or unpopular) Linux distributions, so we must bundle all it's dependencies(and some vlc plugins), most of them can be found in any actual distro, but we have custom build of libcaffe vendored in our repo. So, now i solve it with this bash script: #!/bin/bash set - uex export LD_LIBRARY_PATH =./ contrib / caffe . arch32 / lib / function copy_deps { libs = $ ( LD_TRACE_LOADED_OBJECTS = 1 / lib / ld - linux

tensorflow running error with cublas

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: when I successfully install tensorflow on cluster, I immediately running mnist demo to check if it's going well, but here I came up with a problem. I don't know what is this all about, but it looks like the error is coming from CUDA python3 -m tensorflow.models.image.mnist.convolutional I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcublas.so locally I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcudnn.so locally I tensorflow/stream_executor/dso_loader.cc:108]

Pervasive ODBC on Linux Error [01000][unixODBC][Driver Manager]Can&#039;t open lib &#039;/usr/local/psql/lib/odbcci.so&#039; : file not found

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm attempting to get Pervasive v10 client ODBC working on Centos 6. As I've learned, there is no 64 bit ODBC client so I have to use the 32 bit one. I've finally gotten it to install without error but attempting usage gives the following: # isql -v mydsn [01000][unixODBC][Driver Manager]Can't open lib '/usr/local/psql/lib/odbcci.so' : file not found [ISQL]ERROR: Could not SQLConnect ldd shows this: # ldd /usr/local/psql/lib/odbcci.so linux-gate.so.1 => (0x007d3000) libpscore.so.3 => /usr/local/psql/lib/libpscore.so.3 (0x00c32000) libpscl.so