I'm trying to build the RabbitMQ C AMQP client library on Ubuntu 16.04.
When I try to run the commands below it gives the error:
mkdir build && cd build
cmake ..
cmake --build [--config Release] .
Unknown argument Release]
Unknown argument .
What should the correct command be?
Related
I'm trying to build doxygen from source, with MSYS2.
I've installed make, bison, flex, and libiconv using the command $ pacman -S <package> and I've installed gcc, cmake and ninja using the explicit environment naming, e.g. $ pacman -S mingw-w64-ucrt-x86_64-<package>.
The build procedure:
git clone https://github.com/doxygen/doxygen.git
cd doxygen
mkdir build
cd build
cmake -G "MSYS Makefiles" ..
make
I'm getting 24% ready without warnings, but when building portable.cpp I get errors. The CMakeError.log shows two failures:
Determining if the function iconv_open exists failed
Performing C++ SOURCE FILE Test ICONV_ACCEPTS_CONST_INPUT failed
I've tried to install the iconv library using both the short libiconv name and the mingw-w64-ucrt-x86_64-iconv name.
I am attempting to build a custom linux based OS for raspberrypi 3B by using buildroot.
I am using buildroot version 2017.05, Ubuntu 16.04. While attempting to "make", I get the following error.
webkitgtk 2.12.4 Configuring
(mkdir -p /home/deekshith/final-project-DeekshithPatil/buildroot/output/build/webkitgtk-2.12.4/ && cd /home/deekshith/final-project-DeekshithPatil/buildroot/output/build/webkitgtk-2.12.4/ && rm -f CMakeCache.txt && PATH="/home/deekshith/final-project-DeekshithPatil/buildroot/output/host/bin:/home/deekshith/final-project-DeekshithPatil/buildroot/output/host/sbin:/home/deekshith/final-project-DeekshithPatil/buildroot/output/host/usr/bin:/home/deekshith/final-project-DeekshithPatil/buildroot/output/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" cmake /home/deekshith/final-project-DeekshithPatil/buildroot/output/build/webkitgtk-2.12.4/ -DCMAKE_TOOLCHAIN_FILE="/home/deekshith/final-project-DeekshithPatil/buildroot/output/host/usr/share/buildroot/toolchainfile.cmake" -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_COLOR_MAKEFILE=OFF -DBUILD_DOC=OFF -DBUILD_DOCS=OFF -DBUILD_EXAMPLE=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TEST=OFF -DBUILD_TESTS=OFF -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON -DENABLE_API_TESTS=OFF -DENABLE_GEOLOCATION=OFF -DENABLE_GTKDOC=OFF -DENABLE_INTROSPECTION=OFF -DENABLE_MINIBROWSER=ON -DENABLE_SPELLCHECK=ON -DPORT=GTK -DUSE_LIBNOTIFY=OFF -DUSE_LIBHYPHEN=OFF -DENABLE_JIT=ON -DENABLE_VIDEO=OFF -DENABLE_WEB_AUDIO=OFF -DENABLE_ACCELERATED_2D_CANVAS=ON -DENABLE_GLES2=OFF -DENABLE_OPENGL=ON -DENABLE_X11_TARGET=ON -DENABLE_PLUGIN_PROCESS_GTK2=OFF )
CMake Error at CMakeLists.txt:67 (message):
Unknown CPU 'l'
-- Configuring incomplete, errors occurred!
See also "/home/deekshith/final-project-DeekshithPatil/buildroot/output/build/webkitgtk-2.12.4/CMakeFiles/CMakeOutput.log".
package/pkg-generic.mk:217: recipe for target '/home/deekshith/final-project-DeekshithPatil/buildroot/output/build/webkitgtk-2.12.4/.stamp_configured' failed
make: *** [/home/deekshith/final-project-DeekshithPatil/buildroot/output/build/webkitgtk-2.12.4/.stamp_configured] Error 1
I am unable to understand what exactly is the issue. Any suggestions on how I can get past this error is much appreciated.
im using Peppermint 10 an ubuntu based distro
so i did the following commands here and everything went well until this
(the input)
cmake -DBUILD_SHARED_LIBS=ON ..
(the output)
-- Testing if -Werror=pointer-arith can be used -- compiles
-- Testing if -Werror=implicit-function-declaration can be used -- compiles
-- Testing if -fno-strict-aliasing can be used -- compiles
-- Using raylib's GLFW
-- Using X11 for window creation
-- Audio Backend: miniaudio
-- Building raylib shared library
-- Generated build type: Debug
-- Compiling with the flags:
-- PLATFORM=PLATFORM_DESKTOP
-- GRAPHICS=GRAPHICS_API_OPENGL_33
-- Building examples is enabled
-- Testing if -std=c11 can be used -- compiles
-- Configuring done
CMake Error at src/CMakeLists.txt:57 (add_library):
Error evaluating generator expression:
$<TARGET_OBJECTS:glfw>
Objects of target "glfw" referenced but is not an OBJECT library.
CMake Error: CMake can not determine linker language for target: raylib
CMake Error: Cannot determine link language for target "raylib".
-- Generating done
-- Build files have been written to: /home/anas/raylib/build
how do i even fix these cmake errors?
but then i ignored these thought it was normal but when i tried to do the following command
(the command aka the input)
make
(the output)
[ 7%] Built target glfw
make[2]: *** No rule to make target 'raylib/CMakeFiles/raylib.dir/build'. Stop.
CMakeFiles/Makefile2:87: recipe for target 'raylib/CMakeFiles/raylib.dir/all' failed
make[1]: *** [raylib/CMakeFiles/raylib.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
it shows the same thing when i try sudo make install
help
i still dont know what is the problem here
btw im following the wiki here
Do this:
sudo apt install g++
sudo apt install cmake (should be in version 3.11 or higher)
download to your project folder ex. 'new-game' folder those three files from https://github.com/RobLoach/raylib-cpp/tree/master/projects/CMake (main.cpp, README.md, CMakeLists.txt)
then cd new-game && mkdir build && cd build && cmake .. && make
run ./raylib-cpp-example
I have MacOS Catalina, Cmake, Ninja and QtCreator installed with the following versions and paths:
[#bin]$ sw_vers -productVersion
10.15.6
[#bin]$ which cmake
/usr/local/bin/cmake
[#bin]$ cmake --version
cmake version 3.18.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
[#bin]$ which ninja
/usr/local/bin/ninja
I'm trying to build a project with QT creator using Cmake. However, the following message appears in QT Creator
Running /usr/local/Cellar/cmake/3.18.2/bin/cmake '-GCodeBlocks - Ninja' -C /private/var/folders/jq/yyp9q2fs1z5780k9l1_2ph4r0000gn/T/QtCreator-HXderc/qtc-cmake-TuClFWan/qtcsettings.cmake /Users/mymac/Documents/programming/Cpp/Qt/try6 in /private/var/folders/jq/yyp9q2fs1z5780k9l1_2ph4r0000gn/T/QtCreator-HXderc/qtc-cmake-TuClFWan.
loading initial cache file /private/var/folders/jq/yyp9q2fs1z5780k9l1_2ph4r0000gn/T/QtCreator-HXderc/qtc-cmake-TuClFWan/qtcsettings.cmake
-- Configuring incomplete, errors occurred!
See also "/private/var/folders/jq/yyp9q2fs1z5780k9l1_2ph4r0000gn/T/QtCreator-HXderc/qtc-cmake-TuClFWan/CMakeFiles/CMakeOutput.log".
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake process exited with exit code 1.
Elapsed time: 00:00.
As indicated on several websites (such as this SO question I tried the following command but it didn't work:
[#bin]$ ln -s /usr/bin/ninja /usr/bin/ninja-build
ln: /usr/bin/ninja-build: Operation not permitted
As indicated in the comments I tried also the following:
[#bin]$ sudo ln -s /usr/bin/ninja /usr/bin/ninja-build
Password:
ln: /usr/bin/ninja-build: Operation not permitted
I also tried:
[#bin]$ sudo ln -s /usr/bin/ninja /usr/local/bin/ninja-build
It didn't cause any error message but the problem in QT creator persisted
cmake version 3.5.1
ubuntu 16.04LTS
I want to compile llvm on ubuntu follow git wiki:
$ git clone -b llvm-4.0 https://github.com/obfuscator-llvm/obfuscator.git
$ mkdir build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Release ../obfuscator/
When I execute cmake -DCMAKE_BUILD_TYPE=Release ../obfuscator/,report ab error:
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG - Failed
CMake Error at cmake/modules/AddLLVM.cmake:1163 (add_custom_target):
add_custom_target cannot create target "check-llvm-bindings-ocaml"
because another target with the same name already exists.The
existing target is a custom target created in source directory
"/home/ryu/Ollvm/obfuscator/test". See documentation for policy
CMP0002 for more details.
Call Stack (most recent call first):
cmake/modules/AddLLVM.cmake:1226 (add_lit_target)
test/CMakeLists.txt:150 (add_lit_testsuites)
I don't konw what check-llvm-bindings-ocaml is,and how cam I solve this problem? Can you help me? Thank you, thank you, thank you!!!
I had the same problem and the bellow command can solve it:
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release DLLVM_INCLUDE_TESTS=OFF
FYI:
https://github.com/obfuscator-llvm/obfuscator/issues/71