Сборка cuneiform-linux-0.8.0

Asked by Vermenko Yuriy

Попытался собрать cuneiform "по инструкции" на этапе выполнения cmake получаю ошибку:

CMake Error at ccom/CMakeLists.txt:9 (install_dll):
  Unknown CMake command "install_dll".

Дистрибутив Mandriva 2009.1
cmake 2.6.3

Это вот "dll" так виндовс напоминает, что аж сомнения берут что исходники под linux :-)

Question information

Language:
Russian Edit question
Status:
Solved
For:
Cuneiform for Linux Edit question
Assignee:
No assignee Edit question
Solved by:
Vermenko Yuriy
Solved:
Last query:
Last reply:
Revision history for this message
Yury V. Zaytsev (zyv) said :
#1

Just rebuilt current bzr trunk and it works for me. You must have done something wrong / didn't read readme.txt attentively enough etc. If you want further assistance post the commands you are executing literally.

Revision history for this message
Yury V. Zaytsev (zyv) said :
#2

P.S.:

zyv@mypride:~/Documents/test/cuneiform-linux$ cat /etc/issue
Ubuntu 8.04.3 LTS \n \l

zyv@mypride:~/Documents/test/cuneiform-linux$ cmake --version
cmake version 2.6-patch 2

Revision history for this message
Vermenko Yuriy (vyv) said :
#3

Почитал readme.txt ещё раз. Не помогло.

Моя последовательность действий такая
1. Скачиваю архив yagf-0.8.1.tar.gz
2. распаковываю в директорию ~/prog
У меня появляется директория ~/prog/cuneiform-linux-0.8.0
cd ~/prog/cuneiform-linux-0.8.0
mkdir builddir
cd builddir
cmake -DCMAKE_BUILD_TYPE=debug ..

На этом месте получаю следующий вывод в консоль:

[master@localhost builddir]$ cmake -DCMAKE_BUILD_TYPE=debug ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Performing Test HAVE_GCCVISIBILITY
-- Performing Test HAVE_GCCVISIBILITY - Success
-- Could NOT find ImageMagick (missing: ImageMagick_FOUND)
-- ImageMagick++ not found. Only uncompressed BMP images supported.
-- Adding __snp.c to individual libraries.
CMake Error at Kern/ccom/CMakeLists.txt:9 (install_dll):
  Unknown CMake command "install_dll".

Что я делаю не так?

Revision history for this message
Yury V. Zaytsev (zyv) said :
#4

This is not possible. yagf-0.8.1.tar.gz is a graphic shell for Cuneiform and it does not contain Cuneiform source code. Assuming that you used cuneiform-linux-0.8.0.tar.bz2, the sequence of your commands is correct and I can't reproduce this issue.

The macro install_dll is in the install_files.cmake which should get included from CMakeLists.txt in the root on the cuneiform-linux-0.8.0 folder. It's clearly not the case, but I have no idea why this might even happen. I have cmake 2.6.2 both on Ubuntu Hardy and Ubuntu Jaunty, but I have just rebuilt cmake 2.6.4 and it works for me.

You must be doing something wrong OR you have broken cmake installation or whatever. Do you have more adequate distributions to play with?

Revision history for this message
Yury V. Zaytsev (zyv) said :
#5

OK, great I was able to reproduce this.

zaytsev@davis:~/Documents/cuneiform-linux-0.8.0/cuneiform_src/builddir$ cmake -DCMAKE_BUILD_TYPE=debug ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Performing Test HAVE_GCCVISIBILITY
-- Performing Test HAVE_GCCVISIBILITY - Success
-- Could NOT find ImageMagick (missing: ImageMagick_FOUND)
-- ImageMagick++ not found. Only uncompressed BMP images supported.
-- Adding __snp.c to individual libraries.
CMake Error at Kern/ccom/CMakeLists.txt:9 (install_dll):
  Unknown CMake command "install_dll".

Now the question is whether you have actually read the readme.txt or not... The correct command is:

zaytsev@davis:~/Documents/cuneiform-linux-0.8.0/builddir$ cmake -DCMAKE_BUILD_TYPE=debug ..

Revision history for this message
Vermenko Yuriy (vyv) said :
#6

Ой, меня тут под руку отвлекали, я не то имя архива скопировал, имел в виду не yagf, конечно же, а cuneiform-linux-0.8.0.tar.bz2

Вот я чукча! Ну надо же.

Я первый раз действительно создал директорию builddir в cuneiform_src но после вашего первого ответа усомнился и перечитал readme.txt, заметил что есть CMakeLists.txt в корне, которого я сразу не заметил, а увидел его в директории с исходниками.

Я удалил из cuneiform_src директорию builddir, и создал её уровнем выше (это я так подумал, меня тут сильно отвлекали и я только подумал что поднялся на уровень выше и опять создал директорию builddir на том же месте.)

Всё прекрасно компилируется, извините за беспокойство и спасибо за внимание :-)

P.S. Проект cuneiform мне нравится и я с удовольствием попробую внести посильный вклад в его развитие :-)

Revision history for this message
Evgeny Muravyov (evgenymuraviev) said :
#7

> OK, great I was able to reproduce this.
> zaytsev@davis:~/Documents/cuneiform-linux-0.8.0/cuneiform_src/builddir$ cmake -DCMAKE_BUILD_TYPE=debug ..

Actually that's not the only way to reproduce this bug. I had the similar issue with Karmic Koala (Ubuntu 9.10) and i must claim I had NEVER changed working directory to /cuneiform_src. Reextracting the tarball worked for me, so now I'm able to use your software, thank you.

Please don't get so anxious about users who 'haven't read readme.txt'. The fact is that the way program is being built is quite different from the common way. I'm aware of CMake's advantages but running this tool is not what most of the users are used to. There must be a certain reason why the build process fails in some cases, unrelated to changing working dir to cuneiform_src.

Revision history for this message
Yury V. Zaytsev (zyv) said :
#8

Evgeny, what strikes me is that

1) One tries to build the software without expertise AND doesn't read the readme.txt attentively first;
2) Pastes rubbish instead of the commands he actually entered when asked to provide some evidence for me to reproduce the problem.

Not only this makes it increasingly difficult to *help* to solve the problem, but also wastes both this persons and MY time.

> Reextracting the tarball worked for me, so now
> I'm able to use your software, thank you.

This only means that you didn't extract it correctly the first time around and has nothing to do with Cuneiform.

> Please don't get so anxious about users who
> 'haven't read readme.txt'.

What's the problem with reading readme.txt ? This software is NOT packaged yet, unfortunately I still haven't made enough time to do so; therefore if you are NOT qualified to build it from sources you ARE expected to read the instructions before asking for assistance. Am I expecting too much or what? To me it looks like a reasonable argument.

> There must be a certain reason why the build
> process fails in some cases, unrelated to
> changing working dir to cuneiform_src.

If you've found a reproducible issue with Cuneiform you're welcome to file a bug so that we can take care of it.

Revision history for this message
Alexander Sashnov (sashnov) said :
#9

Может кто-нибудь закинет пакетики на getdeb.net или на PPA? ;)

Revision history for this message
Yury V. Zaytsev (zyv) said :
#10

What's the purpose of posting this fluff? Just do it if you can do it quicker than anyone or don't clutter the unrelated questions.