Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

почему не собралось?

39 views
Skip to first unread message

Ivan Petrov

unread,
Mar 20, 2017, 11:50:02 PM3/20/17
to
$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
~/Загрузки/libktorrent-1.1.2/build/CMakeCache.txt
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- broken
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52
(MESSAGE):
The C compiler "/usr/bin/gcc" is not able to compile a simple test
program.

It fails with the following output:

Change Dir:
/home/dmitry/Загрузки/libktorrent-1.1.2/build/CMakeFiles/CMakeTmp



Run Build Command:/usr/bin/make "cmTryCompileExec683905708/fast"

/usr/bin/make -f CMakeFiles/cmTryCompileExec683905708.dir/build.make
CMakeFiles/cmTryCompileExec683905708.dir/build

make[1]: Entering directory
`/home/dmitry/Загрузки/libktorrent-1.1.2/build/CMakeFiles/CMakeTmp'


/usr/bin/cmake -E cmake_progress_report

/home/dmitry/Загрузки/libktorrent-1.1.2/build/CMakeFiles/CMakeTmp/CMakeFiles
1

Building C object
CMakeFiles/cmTryCompileExec683905708.dir/testCCompiler.c.o

/usr/bin/gcc -o
CMakeFiles/cmTryCompileExec683905708.dir/testCCompiler.c.o
-c

/home/dmitry/Загрузки/libktorrent-1.1.2/build/CMakeFiles/CMakeTmp/testCCompiler.c


Linking C executable cmTryCompileExec683905708

/usr/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec683905708.dir/link.txt --verbose=1

/usr/bin/gcc
CMakeFiles/cmTryCompileExec683905708.dir/testCCompiler.c.o -o
cmTryCompileExec683905708 -rdynamic

/usr/bin/ld: cannot find crt1.o: Нет такого файла или
каталога

/usr/bin/ld: cannot find crti.o: Нет такого файла или
каталога

/usr/bin/ld: cannot find -lc

/usr/bin/ld: cannot find crtn.o: Нет такого файла или
каталога

collect2: error: ld returned 1 exit status

make[1]: Leaving directory
`/home/dmitry/Загрузки/libktorrent-1.1.2/build/CMakeFiles/CMakeTmp'


make[1]: *** [cmTryCompileExec683905708] Ошибка 1

make: *** [cmTryCompileExec683905708/fast] Ошибка 2





CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:1 (project)


CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not
found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.8)

should be added at the top of the file. The version specified may be
lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!

Alexander Galanin

unread,
Mar 21, 2017, 3:10:02 AM3/21/17
to
On Tue, 21 Mar 2017 10:42:05 +0700
Ivan Petrov <ip...@yandex.ru> wrote:

> ~/Загрузки/libktorrent-1.1.2/build/CMakeCache.txt

Попробуй собрать в каталоге без кириллицы. Да, XXI век, а глюки с
не-ASCII символами всё ещё могут быть живы.

> /usr/bin/ld: cannot find -lc

libc6-dev стоит?

--
Alexander Galanin
0 new messages