Where is configure in libpng? - caffe

I was installing Caffe and ran into an error:
make all CXX/LD -o .build_release/tools/compute_image_mean.bin
//home/ivan/anaconda3/lib/libpng16.so.16: undefined reference to
`inflateValidate#ZLIB_1.2.9' collect2: error: ld returned 1 exit
status Makefile:625: recipe for target
'.build_release/tools/compute_image_mean.bin' failed make: ***
[.build_release/tools/compute_image_mean.bin] Error 1
the possible solution is to run ./configure --prefix=/usr/local/, however, which configure is it about, and where can I find it?

Related

Linking error using community edition 2021 on Fedora 36

I have used Ada successfully for years; but I am trying to create "hello world," and I am getting the following error:
/opt/GNAT/2021/bin/../libexec/gcc/x86_64-pc-linux-gnu/10.3.1/ld:
.gnu.build.attributes has both ordered
[.gnu.build.attributes.lo.exit in /lib/../lib64/crt1.o] and unordered
[.gnu.build.attributes in /lib/../lib64/crt1.o] sections
/opt/GNAT/2021/bin/../libexec/gcc/x86_64-pc-linux-gnu/10.3.1/ld:
final link failed: bad value collect2: error: ld returned 1 exit status
Try to replace GNAT CE ld with system one:
cd /opt/GNAT/2021/libexec/gcc/x86_64-pc-linux-gnu/10.3.1/
mv ld ld_
ln -s /usr/bin/ld ./ld

Tesseract installation error in "Make" file

I am using following system
* Tesseract Version: 4.0.0-324-gb67f
* Platform: Ubuntu16.04 64-bit
I want to retrain tesseract, I am referring to Googles documentation at https://github.com/tesseract-ocr/tesseract/blob/master/INSTALL. Here are the steps that I am following
1. git pull https://github.com/tesseract-ocr/tesseract.git
2. cd tesseract/
3. ./autogen.sh
4. ./configure
5. make
6. make check
After doing make check I am observing this error:
make[1]: Entering directory '/home/ajinkya/Documents/tesseract/doc'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/ajinkya/Documents/tesseract/doc'
Making check in unittest
make[1]: Entering directory '/home/ajinkya/Documents/tesseract/unittest'
make libgtest.la libgtest_main.la libgmock.la libgmock_main.la libabseil.la apiexample_test applybox_test baseapi_test bitvector_test cleanapi_test colpartition_test dawg_test denorm_test fileio_test heap_test imagedata_test indexmapbidi_test intfeaturemap_test intsimdmatrix_test lang_model_test layout_test linlsq_test loadlang_test mastertrainer_test matrix_test nthitem_test osd_test paragraphs_test progress_test qrsequence_test recodebeam_test rect_test resultiterator_test shapetable_test stats_test stringrenderer_test tablefind_test tablerecog_test tabvector_test tfile_test commandlineflags_test lstm_recode_test lstm_squashed_test lstm_test lstmtrainer_test unichar_test unicharcompress_test unicharset_test validate_grapheme_test validate_indic_test validate_khmer_test validate_myanmar_test validator_test
make[2]: Entering directory '/home/ajinkya/Documents/tesseract/unittest'
make[2]: *** No rule to make target '../googletest/googletest/src/gtest-all.cc', needed by '../googletest/googletest/src/libgtest_la-gtest-all.lo'. Stop.
make[2]: Leaving directory '/home/ajinkya/Documents/tesseract/unittest'
Makefile:2207: recipe for target 'check-am' failed
make[1]: *** [check-am] Error 2
make[1]: Leaving directory '/home/ajinkya/Documents/tesseract/unittest'
Makefile:495: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1
How do I resolve this error?
You run version from git you have to follow https://github.com/tesseract-ocr/tesseract/blob/master/INSTALL.GIT.md instruction.
Also why are you running make check? Do you understand what are you doing? Even instruction you posted above marks it as optional...

On Ubuntu 16.04, v8 build error

asiagaming#ubuntu:~/v8/v8$ make
make[1]: Entering directory '/home/asiagaming/v8/v8/out'
TOUCH bdc92efe44eca1954fdff70fd086c7e138d0fbb1.intermediate
ACTION Generating inspector protocol sources from protocol json bdc92efe44eca1954fdff70fd086c7e138d0fbb1.intermediate
CXX(target) /home/asiagaming/v8/v8/out/ia32.release/obj.target/v8_base/gen/src/inspector/protocol/Protocol.o
In file included from /home/asiagaming/v8/v8/out/ia32.release/obj/gen/src/inspector/protocol/Protocol.cpp:7:
In file included from /home/asiagaming/v8/v8/out/ia32.release/obj/gen/src/inspector/protocol/Protocol.h:8:
In file included from /home/asiagaming/v8/v8/out/ia32.release/obj/gen/src/inspector/protocol/Forward.h:8:
.././src/inspector/string-util.h:8:10: fatal error: 'memory' file not found
#include <memory>
^~~~~~~~
1 error generated.
src/v8_base.target.ia32.release.mk:750: recipe for target '/home/asiagaming/v8/v8/out/ia32.release/obj.target/v8_base/gen/src/inspector/protocol/Protocol.o' failed
make[1]: *** [/home/asiagaming/v8/v8/out/ia32.release/obj.target/v8_base/gen/src/inspector/protocol/Protocol.o] Error 1
rm bdc92efe44eca1954fdff70fd086c7e138d0fbb1.intermediate
make[1]: Leaving directory '/home/asiagaming/v8/v8/out'
Makefile:319: recipe for target 'ia32.release' failed
make: *** [ia32.release] Error 2
I've tried to build V8 engine, but above error msg is printed.
How to solve it ?
Does sudo apt-get install build-essential help?
(Side note: Simply invoking make is probably not what you want. Check out https://github.com/v8/v8/wiki/Building-with-GN.)

Error message when installing Hg

I've been trying to download Mercurial, using the following code:
brew install hg
However, I keep coming across the same error message.
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:47:10: fatal error: 'CarbonCore/TextCommon.h' file not found
#include <CarbonCore/TextCommon.h>
^
1 error generated.
error: command 'clang' failed with exit status 1
make: *** [build] Error 1
I'm very new to this, so I'm unsure what to do.
Thank you.

Unable to find lmdb while installing caffe with make all

/usr/bin/ld: cannot find -lmdb
collect2: error: ld returned 1 exit status
Makefile:568: recipe for target '.build_release/lib/libcaffe.so.1.0.0-rc3' failed
make: *** [.build_release/lib/libcaffe.so.1.0.0-rc3] Error 1
How to get rid of this problem.
Make sure that the library file your are trying to use while compiling is present in the path that your have given while compiling...