I'm trying to compile caffe without GPU support. I successfully ran "make all" and "make test", but when I try to run "make runtest", I get the following output:
.build_release/tools/caffe
dyld: Library not loaded: libcaffe.so.1.0.0-rc3
Referenced from: /Users/SullyChen/Desktop/caffe/.build_release/tools/caffe
Reason: image not found
make: *** [runtest] Trace/BPT trap: 5
Any ideas on how to fix?
Copying the lib files from $CAFFE_ROOT/.build_release/lib to /usr/local/lib fixed the problem for me!
This is because caffe library is not linked by default after make all, make test. I manually did the following in terminal:
export DYLD_LIBRARY_PATH=/YourPathToCaffeMasterFolder/.build_release/lib:$DYLD_LIBRARY_PATH
It fixed the problem for me, for now. Caffe's installation is so much pain.
Related
I don't understand what is the problem? Webpack does not compile the project and shows the following error:
ERROR in Error: Child compilation failed: Module parse failed: Unexpected character '�' (1:4)
But I can't figure out where the error derives from, in which module or file, where to look for it? This is the error from my IDE.
At the moment, it gives only 1 error when compiling, before that there were 22 errors. Actions that could lead to this - trying to solve the problem through CSS.
After I removed everything in the code (-webkit-min-device-pixel-ratio: 2), the number of errors was reduced to 1, but I don’t understand what to do next.
My webpack 5 config: webpack.config
If someone knows how to solve this problem, or where to look for the root of evil, please help.
Problem solved! It turned out that in my webpack.config in the image processor, I did not add webp support. And when I added it on the fly, the already assembled project did not take this moment into account. As a result, after restarting the build with the npm run dev command, the updated webpack config file started working as it should! Thank you all for your attention to the issue and the desire to help figure it out! enter image description here
I am trying to compile file which have GFLAGS inside.
My compiling command :
g++ -I ../eigen-eigen-b9cd8366d4e8/ -I/caffe_path/distribute/include my_file.cpp -std=c++0x -lpthread -lglog -lboost_system -DUSE_OPENCV
My error message is:
/usr/bin/ld: /tmp/ccv5GAaZ.o: undefined reference to symbol '_ZN6google26ShowUsageWithFlagsRestrictEPKcS1_'
//usr/lib/x86_64-linux-gnu/libgflags.so.2: error adding symbols: DSO missing from command line
It is my first time working with Gflags. Based on the suggestion on internet i tried to comment lines with#ifndef and #endif in the following lines but it did not help.
#ifndef GFLAGS_GFLAGS_H_
namespace gflags = google;
#endif
I also tried suggestions on this thread , but it did not fix anything.
The gflags installed inside the caffe and seperately were somehow causing conflict. Uninstalling any of them did not help. Solution for me was uninstallation (all) of the whole caffe and gflags (internals and externals) solved the problem. When I was sure that there is no trace of gflags/glogs and caffe on my system I was able to install caffe again.
If I try building the newest version of Caffe, it leads to this error:
$ make all
CXX/LD -o .build_release/tools/caffe.bin
clang: warning: argument unused during compilation: '-pthread'
Undefined symbols for architecture x86_64:
"caffe::Net<float>::Forward(float*)", referenced from:
test() in caffe.o
time() in caffe.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [.build_release/tools/caffe.bin] Error 1
I'm building on osx, OpenBLAS, and CPU_ONLY. I found a kind of similar issue on here but it appears to have been a resolved issue, and I'm not getting the exact same error, though perhaps it's related? I can also build and run an older version of Caffe from a month ago, so I think something has changed very recently.
Any ideas on how to overcome this error?
It shows a link problem when compile.On osx this problem will happen usually.I guess the problem happened in Makefile.config.You can change to
# To customize your choice of compiler, uncomment and set the following.
# N.B. the default for Linux is g++ and the default for OSX is clang++
CUSTOM_CXX := g++
and confirm some path is correct.
I had exactly the same problem. Its now resolved.
Do check if you already have a libcaffe.so in your system library paths (maybe /usr/local/lib). If so, delete the existing libcaffe.so and build again.
I started to use Caffe framework on Linux as non-admin, Caffe was installed on my account. I went to usr/local/caffe path and started to run a cifar10 example by ./create_cifar10.sh.But I got this error:
./create_cifar10.sh: 12: ./create_cifar10.sh: ./build/examples/cifar10/convert_cifar_data.bin: not found
I have checked the build directory and there is file named convert_cifar_data.binthere. How can I solve it?
You should execute the script 'create_cifar10.sh' from the $CAFFE_ROOT directory.
cd $CAFFE_ROOT
./examples/cifar10/create_cifar10.sh
I am having the following error when building for ios
ld: file too small (length=0) file '/Users/………./.robovm/cache/ios/x86/default/Users/ ……/.m2/repository/org/robovm/robovm-dist/0.0.13/unpacked/robovm-0.0.13/lib/robovm- rt.jar/java/nio/PipeImpl$PipeSinkChannel.class.o' for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
:ios:launchIPhoneSimulator FAILED
FAILURE: Build failed with an exception.
Any ideas? The desktop configuration is working. The JDK is 1.7+
I have installed the latest gradle setup for libgdx
Thanks
See for solution here: https://github.com/robovm/robovm/issues/238
You need to remove zero-length class from cache and run build again.