Skip to main content

Posts

Showing posts from September, 2020

Winter garden with Charles Dowding, see the results of seven years no dig

In more simple case: print_properties TARGET:

 --- (20200926: ) $ cd build $ cmake .. CMake Error: The current CMakeCache.txt directory / .../src/20200926/build/CMakeCache.txt is different than the directory /home/ .../src/20200924/build where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt CMake Error: The source "/ .../src/20200926/CMakeLists.txt" does not match the source "/ .../src/20200924/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory. $ --- CMakeLists.txt --- cmake_minimum_required(VERSION 2.8.12.2) project(lib_a) #add_executable(Tutorial main.c) #configure_file(TutorialConfig.h.in TutorialConfig.h) #configure_file(array_counter.h.in array_counter.h) set(wxSOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) set(wxBINARY_DIR ${CMAKE_BINARY_DIR}) set(wxOUTPUT_DIR ${wxBINARY_DIR}/lib) print_properties ( TARGET, "../20200924" ) --- CMakeLists.txt ---   (20200927: ) Add includion of ...

40 FINGERS - Africa (TOTO) - Official Video

wxWidgets: audacity: From All compilation

 From All compilation, we can stand on the excutable directory path. wxWidget is one of  Linking libraries, so, we cam edit CMakeLists.txt in the audacity main directory. Add library: https://lefestyle101.blogspot.com/2020/09/about-pthread-in-simple-project.html https://cmake.org/cmake/help/latest/guide/tutorial/index.html#adding-a-library-step-2 The below is the example the above link. add_library(MathFunctions mysqrt.cxx) # add the MathFunctions library add_subdirectory(MathFunctions) # add the executable add_executable(Tutorial tutorial.cxx) target_link_libraries(Tutorial PUBLIC MathFunctions) # add the binary tree to the search path for include files # so that we will find TutorialConfig.h target_include_directories(Tutorial PUBLIC "${PROJECT_BINARY_DIR}" "${PROJECT_SOURCE_DIR}/MathFunctions" ) Add: 1. sub directory, which is sure path. 2. execute, which is execute file. 3. link ...

CMake: wxWidgets: Library compilation only:

 Project wxWidgets has a CMakeLists.txt. Clean build folder which is command "rm -rf *". --- $ cmake .. -- Setting build type to 'Debug' as none was specified. CMake Error at CMakeLists.txt:35 (include):   include could not find load file:     build/cmake/policies.cmake -- The C compiler identification is GNU 4.4.7 -- The CXX compiler identification is GNU 4.4.7 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- 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 CMake Error at CMakeLists.txt:69 (include):   include could not find load file:     build/cmake/main.cmake -- Configuring incomplete, errors occurred! See also "/home.../download/audacity-minsrc-2.4.2/wxWidgets/wxWidgets/build/CMakeFiles...

cmake : the simplest case:

 I could not find the case of definition of HAVE_PTHREAD without the src directory after "cmake .." and "cmake .". The sets are the blow: --- CmakeLists.txt: cmake_minimum_required(VERSION 2.8.12.2) project(lib_a) #add_executable(Tutorial main.c) #configure_file(TutorialConfig.h.in TutorialConfig.h) #configure_file(array_counter.h.in array_counter.h) set(wxSOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) set(wxBINARY_DIR ${CMAKE_BINARY_DIR}) set(wxOUTPUT_DIR ${wxBINARY_DIR}/lib) --- $ tree . ├── CMakeLists.txt ├── build ├── lib └── src     ├── main.c     └── main.h 3 directories, 3 files --- $ cmake .. -- The C compiler identification is GNU 4.4.7 -- The CXX compiler identification is GNU 4.4.7 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- 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++ -- ...

About pthread: in the simplest project : cmake good:

 (20200923: work) Determining if the pthread_create exist failed with the following output: ... CheckSymbolExists.c:(.text+0x4): undefined reference to `pthread_create' ... Check if HAVE_PTHREAD_CREATE exists or not. ------ check starts. --------- grep -R . | grep HAVE_PTHREAD_CREATE 001-HAVE-002.txt:001-HAVE-001.txt:build/CMakeCache.txt:CMAKE_HAVE_PTHREAD_CREATE:INTERNAL=1 001-HAVE-002.txt:build/CMakeCache.txt:CMAKE_HAVE_PTHREAD_CREATE:INTERNAL=1 001-HAVE-001.txt:build/CMakeCache.txt:CMAKE_HAVE_PTHREAD_CREATE:INTERNAL=1 build/CMakeCache.txt:CMAKE_HAVE_PTHREAD_CREATE:INTERNAL=1 ------ check ends. --------- We can understand CMAKE_BINARY_DIR is already set assumed, which is automation-parameters. CMakeLists.txt:set(wxBINARY_DIR ${CMAKE_BINARY_DIR}) 1. Create in "main.h" #define PTHREAD  1 2. Write the below in CMakeLists.txt set(wxSOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) set(wxBINARY_DIR ${CMAKE_BINARY_DIR}) set(wxOUTPUT_DIR ${wxBINARY_DIR}/lib) 3. Compilation as "cmak...

#897 Guess whats built here? This is where the MAGIC Happens! Wolfe Ridg...

ASM: might be: or wxWidget: Use git --recursive: we could find "wx" anyway:

 ASM: might be: https://en.cppreference.com/w/c/atomic https://code.woboq.org/linux/linux/arch/x86/include/asm/atomic.h.html Because by use of option "-latomic" and "<wx/atomic.h>", so, we have to find wxWidget. We can not find like the blow: $ yum update No Packages marked for Update $ yum install wxBase.i686 Package wxBase-2.8.12-1.el6.centos.i686 already installed and latest version Nothing to do $ yum search asm libdasm-devel.i686 : Development files for libdasm libdasm.i686 : Simple x86 disassembly library $ yum install libdasm-devel.i686 libdasm.i686 $ yum search x86 binutils-x86_64-linux-gnu.i686 : Cross-build binary utilities for                                : x86_64-linux-gnu gcc-x86_64-linux-gnu.i686 : Cross-build binary utilities for x86_64-linux-gnu $ yum install binutils-x86_64-linux-gnu.i686 gcc-x86_64-linux-gnu....

where is atomic.h with option -latomic

  where is atomic.h with option -latomic we could find "stdatomic.h" on the c++ inclusion like the below. /usr/include/c++/4.4.4/stdatomic.h we think, there is it in the "wxWidgets Library". https://docs.wxwidgets.org/3.0/atomic_8h.html written in as manner. --- Something wrong happened in the audacity, which might be right. Anyway, we can find "atomic.h" in another "libavutil". where is atomic.h on the compatible libatomic.i686 we can not find the atomic.h in the directory of libavutil on the adacity. $ tree . . ├── adler32.h ├── aes.h ├── attributes.h ├── audio_fifo.h ├── audioconvert.h ├── avassert.h ├── avconfig.h ├── avstring.h ├── avutil.h ├── base64.h ├── blowfish.h ├── bprint.h ├── bswap.h ├── buffer.h ├── channel_layout.h ├── common.h ├── cpu.h ├── crc.h ├── dict.h ├── downmix_info.h ├── error.h ├── eval.h ├── ffversion.h ├── fifo.h ├── file.h ├── frame.h ├── hmac.h ├── imgutils.h ├── intfloat.h ├── intfloat_readwrite.h ├── intreadwrite....

About audacity: Using cmake:

About audacity: Usually, we compile it on the assumed guide. https://lefestyle101.blogspot.com/2020/08/instructions-for-building-on-linux.html --- Error: $ cmake3 .. CMake Error at CMakeLists.txt:6 (cmake_minimum_required):   CMake 3.15 or higher is required.  You are running version 3.6.1 -- Configuring incomplete, errors occurred! --- Error: $ cmake .. CMake Error at CMakeLists.txt:6 (cmake_minimum_required):   CMake 3.15 or higher is required.  You are running version 2.8.12.2 -- Configuring incomplete, errors occurred! --- In audacity, VERSION changed like the below: #cmake_minimum_required( VERSION 3.15 ) cmake_minimum_required( VERSION 3.6.1 ) And, we could find the errors, on the option "-latomic", we can not compile and must find Library "atomic". --- CMakeError.log: Linking C executable cmTC_d3141 /usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_d3141.dir/link.txt --verbose=1 /usr/bin/cc   -DCHECK_FUNCTION_EXISTS=__atomic_fetch_add_4 ...

How to CMake Good - 1a - A "Hello, world" executable

To the Hello world! (20200917: Empty cmake3) https://lefestyle101.blogspot.com/2020/09/cmake-guide.html

"My Flower" Wuauquikuna (Official Music Video)

Step1: cmake3

 (20200912: Empty cmake3) tree . . └── build 1 directory, 0 files --- cmake3 .. CMake Error: The source directory "/home/nakagawa/src" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. ---  (20200913: only main code and cmake3)   . ├── CMakeLists.txt ├── build ├── directory.txt └── main.c 1 directory, 3 files --- $ cmake3 .. -- The C compiler identification is GNU 4.4.7 -- The CXX compiler identification is GNU 4.4.7 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - 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 -- Detecting CXX compile features -- Detecting CXX compile features - done -- ...

How to CMake Good - 0b - Running CMake

Nice person, helpful for us. Abou cache they they explained well. Thank you very much. Create directory, first, which is empty and build folder. We could easily understand this tool well. * We've thought which is code-analyzer and create auto-configure well. * about audacity they created it by use of cmake. so, we could compiled it well and cmake is very useful for that creation, so that we could use makefiles already thank you very much.

I Will Look Up | Live | Elevation Worship

cmake-gui

We could yum-search cmake-gui, install it and boot it so that easily create project files for compilation, which means almost make files as configured: cmake-gui can use VERSION 3.6.1 if you add entry: message is the below: CMake Error: The source directory "...../read_005/src" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. We must create CMakeLists.txt but we can select "from UNIX makefile" as "Configure". "cmake-gui" itself is CMake 2.8.12.2 displayed. We could see CmakeCache.txt like the below so that we could not create tags by use of cmak-gui. ######################## # EXTERNAL cache entries ######################## cmake_minimum_required:STRING=VERSION 3.6.1 We'd rather love: cmake_minimum_required(VERSION 3.6.1) cmake-gui version itself must be higher, at least, we think.  (20200911: cmake3-gui) Configured and Generator: Now they are same. --- CMake Error: The source dir...

Willow Osborne - Foggy Mountain Breakdown

Roy Clark - Foggy Mountain Breakdown 1970

Cmake Guide:

 In the middle parts of the below: https://cmake.org/runningcmake/ "For larger projects like VTK, using ccmake, cmake -i, or CMakeSetup is recommended." Option -i means interactive.    CMake Guide: ---  CMake Tutorial: https://cmake.org/cmake/help/latest/guide/tutorial/index.html#a-basic-starting-point-step-1   ---  CMakeLists.txt: cmake_minimum_required(VERSION 3.6.1) project(Tutorial) add_executable(Tutorial main_001.c) --- cmake3 .. -- The C compiler identification is GNU 4.4.7 -- The CXX compiler identification is GNU 4.4.7 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - 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 -- Detecting...

180 VR Life Footage Cachicamo Traditional Clombian Song