LINUX.ORG.RU
ФорумAdmin

recipe for target 'all' failed

 , ,


0

1

Добрый день. Я хочу установить tesseract, так же нужно поставить зависимость leptonica, но в обоих случаях ошибка типа такой

make  all-recursive
make[1]: Entering directory '/home/serrrgggeee/leptonica'
Making all in src
make[2]: Entering directory '/home/serrrgggeee/leptonica/src'
make[2]: *** No rule to make target 'all'.  Stop.
make[2]: Leaving directory '/home/serrrgggeee/leptonica/src'
Makefile:476: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/serrrgggeee/leptonica'
Makefile:385: recipe for target 'all' failed
make: *** [all] Error 2
Могу предположить что не хватает какойто системной библиотеки, но ошибка будто бы нет метки но эта метка на которую ошибка в файле Make.in существует

Ответ на: комментарий от serrrgggeee

Не понял, у вас есть файл ″src/makefile″? Или ./configure завешрилась с ошибкой?

mky ★★★★★ ()

лол. собиратель 99лвл.

mos ★★☆☆☆ ()
Ответ на: комментарий от imb
serrrgggeee@serrrgggeee-X55U:~/leptonica$ make V=1
make  all-recursive
make[1]: Entering directory '/home/serrrgggeee/leptonica'
Making all in src
make[2]: Entering directory '/home/serrrgggeee/leptonica/src'
make[2]: *** No rule to make target 'all'.  Stop.
make[2]: Leaving directory '/home/serrrgggeee/leptonica/src'
Makefile:476: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/serrrgggeee/leptonica'
Makefile:385: recipe for target 'all' failed
make: *** [all] Error 2
serrrgggeee ()

Пальцем в небо

cd /home/serrrgggeee/leptonica
./configure
make

anc ★★★★★ ()

Дело не в библиотеке, вы неправильно собираете. См файл README, COMPILE, BUILD и подобные, там сказано как и после чего вызывать make.

legolegs ★★★★★ ()
Ответ на: комментарий от legolegs

Делал по инструкции

serrrgggeee@serrrgggeee-X55U:~/leptonica$ ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... no
checking for mawk... mawk
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking dependency style of gcc... gcc3
checking for gawk... (cached) mawk
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for cos in -lm... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ZLIB... yes
checking for LIBPNG... yes
checking for JPEG... yes
checking for DGifOpenFileHandle in -lgif... no
checking for LIBTIFF... yes
checking for LIBWEBP... yes
checking for LIBJP2K... no
checking for opj_create_decompress in -lopenjp2... no
checking whether make supports nested variables... (cached) yes
checking for size_t... yes
checking whether byte ordering is bigendian... no
checking whether compiler supports -Wl,--as-needed... yes
checking for fmemopen... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/endianness.h
config.status: creating src/Makefile
config.status: creating prog/Makefile
config.status: creating lept.pc
config.status: creating config_auto.h
config.status: config_auto.h is unchanged
config.status: executing libtool commands
config.status: executing depfiles commands
serrrgggeee@serrrgggeee-X55U:~/leptonica$ make
make  all-recursive
make[1]: Entering directory '/home/serrrgggeee/leptonica'
Making all in src
make[2]: Entering directory '/home/serrrgggeee/leptonica/src'
make[2]: *** No rule to make target 'all'.  Stop.
make[2]: Leaving directory '/home/serrrgggeee/leptonica/src'
Makefile:476: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/serrrgggeee/leptonica'
Makefile:385: recipe for target 'all' failed
make: *** [all] Error 2
serrrgggeee@serrrgggeee-X55U:~/leptonica$ 

serrrgggeee ()
Ответ на: комментарий от serrrgggeee

Try this:

   (3) Using cmake (supported by Egor Pugin).
        The build must always be in a different directory from the root
        of the source (here).  It is common to build in a subdirectory
        of the root.  From the root directory, do this:
            mkdir build
            cd build
          Then to make only the library:
            cmake ..
            make
          To make both the library and the programs:
            cmake .. -DBUILD_PROG=1
            make
        To clean out the current build, just remove everything in
        the build subdirectory.
https://github.com/DanBloomberg/leptonica/blob/master/README.html

kostik87 ★★★★★ ()
Ответ на: комментарий от kostik87

да получилось в итоге я получил разные либы и программы в bin, теперь по аналогии попробую поставить tesseract, только не понял зачем нужна папка buil.

serrrgggeee ()
Ответ на: комментарий от kostik87

пытаюсь скомпилировать tesseract но теперь ругатся именно на библиотеку

serrrgggeee@serrrgggeee-X55U:~/tesseract$ LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include" make
make  all-recursive
make[1]: Entering directory '/home/serrrgggeee/tesseract'
Making all in arch
make[2]: Entering directory '/home/serrrgggeee/tesseract/arch'
make[3]: Entering directory '/home/serrrgggeee/tesseract/arch'
--------------------------------------------------------------
-- Check if the system is big endian - little endian
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
leptonica_OUTPUT_NAME
    linked by target "libtesseract" in directory /home/serrrgggeee/tesseract

-- Configuring incomplete, errors occurred!
See also "/home/serrrgggeee/tesseract/build/CMakeFiles/CMakeOutput.log".
See also "/home/serrrgggeee/tesseract/build/CMakeFiles/CMakeError.log".

serrrgggeee ()
Ответ на: комментарий от serrrgggeee

Всем привет, в итоге я выявил проблему, leptonica была не актуальной, я просто удалил папку и залил ее с гита, установил, и потом установил tesseract и на этот раз ошибок не было и в общем что бы поставить все нужно пройти по этим шагам:

git clone https://github.com/DanBloomberg/leptonica.git
cd leptonica/
git branch
master
mkdir build
cd build/
cmake ..
make
sudo make install
cd ../../tesseract/
cd build/
../configure --with-extra-libraries=/usr/lib
make
sudo make install 
sudo ldconfig
tesseract -h
tesseract -v
пропущен только шаг закачки tesseract и создания в нем папки build, но это и так понятно.

serrrgggeee ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.