Buildroot: Unable to build webkitgtk v2.12.4 - c++

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.

Related

Building TBB on Windows using MingW & Cmake

Hey I'm trying to build TBB on my Windows computer using MinGW & CMake. (gcc,,g++, ..)
I have already tried using the premade binaries but I keep getting undefined reference issues.
My cmake for the project I'm trying to import it in looks as following:
find_package(TBB REQUIRED tbb)
target_link_libraries(projectName PRIVATE ${TBB_IMPORTED_TARGETS})
I use the source code of https://github.com/oneapi-src/oneTBB/releases/tag/v2021.3.0 (latest)
and I make a build dir and cd into it and execute:
cmake .. -G "MinGW Makefiles"
followed by:
cmake --build .
also tried:
mingw32-make
Both result into
[ 1%] Building CXX object src/tbb/CMakeFiles/tbb.dir/address_waiter.cpp.obj
In file included from c:\users\refactor\downloads\onetbb-2021.3.0\onetbb-2021.3.0\include\oneapi\tbb\detail\_utils.h:26,
from C:\Users\Refactor\Downloads\oneTBB-2021.3.0\oneTBB-2021.3.0\src\tbb\address_waiter.cpp:17:
c:\users\refactor\downloads\onetbb-2021.3.0\onetbb-2021.3.0\include\oneapi\tbb\detail\_machine.h:67: error: ignoring '#pragma intrinsic ' [-Werror=unknown-pragmas]
67 | #pragma intrinsic(_mm_mfence)
|
compilation terminated due to -Wfatal-errors.
cc1plus.exe: all warnings being treated as errors
mingw32-make[2]: *** [src\tbb\CMakeFiles\tbb.dir\build.make:76: src/tbb/CMakeFiles/tbb.dir/address_waiter.cpp.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:454: src/tbb/CMakeFiles/tbb.dir/all] Error 2
mingw32-make: *** [makefile:165: all] Error 2```
As mentioned in the comments there are issues building with MinGW with the latest versions of TBB.
The last version of TBB I was able to build was 2020.0 using this command (replace intel64 with ia32 for 32-bit):
mingw32-make compiler=gcc arch=intel64 runtime=mingw tbb tbbmalloc CPLUS="g++ -static-libstdc++ -static-libgcc"

a problem with the raylib installation on linux

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

cmake error when building a c library

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?

CMake is not found when running through make

I'm trying to build https://github.com/AlbertWerner/cryptonotecoinwallet and facing an issue.
According to the README of the repo, I can run cmake command and it completes without any errors. But then, when I run make, it gives me the below error.
$ make
make: /usr/bin/cmake: Command not found
make: *** [Makefile:5138: cmake_check_build_system] Error 127
I'm using MSYS on Windows and here are the corresponding details.
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/mingw32/bin
$ which cmake
/mingw32/bin/cmake
Seems like it's looking for cmake in the wrong path.
Makefile
cmake_check_build_system:
$(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system # <== Line 5139
I'm not sure what's wrong. Please help me out.
Thanks.
Make sure that you launch MSYS2 using the mingw32.exe executable at the top level of your MSYS2 installation, and that you use that environment when you first run cmake. If you ran CMake in a different environment, remove all the files it created. The commands for running cmake and building the project should be something like this, assuming the developers have set it up in a reasonable way:
mkdir build
cd build
cmake .. -G"MSYS Makefiles"
make
I didn't try this myself because I am wary of running random code from the internet, but I found this note in the CMakefile indicating that the developers do not support MSYS2:
if (WIN32)
if (NOT MSVC)
message(FATAL_ERROR "Only MSVC is supported on this platform")
endif ()
...
So you will have to spend some effort on porting the Windows-specific code in this program to GCC if you really want to do this.

ubuntu 16.04LTS compile obfuscator-llvm

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