Skip to main content

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.i686

---

We can change option like the below.
--recurse-submodules https://github.com/audacity/wxWidgets/
->
--recursive https://github.com/audacity/wxWidgets/

...
Receiving objects: 100% (5068/5068), 2.70 MiB | 807 KiB/s, done.
Resolving deltas: 100% (3559/3559), done.
Submodule path 'src/zlib': checked out '5888671274cde770edbe683b435f052de2b03681'

$ find . -name wx
./include/msvc/wx
./include/wx
./3rdparty/catch/.git/refs/heads/wx
./3rdparty/catch/.git/logs/refs/heads/wx
./interface/wx
./src/tiff/.git/refs/heads/wx
./src/tiff/.git/logs/refs/heads/wx
./src/jpeg/.git/refs/heads/wx
./src/jpeg/.git/logs/refs/heads/wx
./src/png/.git/refs/heads/wx
./src/png/.git/logs/refs/heads/wx
./src/expat/.git/refs/heads/wx
./src/expat/.git/logs/refs/heads/wx
./src/zlib/.git/refs/heads/wx
./src/zlib/.git/logs/refs/heads/wx

(20200921: )
At least, we put X11 library to the :
FindX11.cmake
    /opt/graphics/OpenGL/include
    /opt/X11/include
  )

  set(X11_LIB_SEARCH_PATH
    /usr/pkg/xorg/lib
    /usr/X11R6/lib
    /usr/X11R7/lib
    /usr/openwin/lib
    /opt/X11/lib
#ADD 20200921
    /usr/lib/X11
  )

we understand the reason why we can not cmake is we can not find "X.h", so installed.

$ yum search X11
$ yum install libX11-devel.i686
$ find / -name X.h
/usr/include/X11/X.h

-- cotire 1.8.0 loaded.
-- Looking for XOpenDisplay in /usr/lib/libX11.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found

---

(20200921: )
about "-lpthread"

-lpthread
mingw32-winpthreads.noarch
mingw32-winpthreads-static.noarch

CMAKE_HAVE_CONNECT:INTERNAL=1
//Have function gethostbyname
CMAKE_HAVE_GETHOSTBYNAME:INTERNAL=1
//Have symbol pthread_create
CMAKE_HAVE_LIBC_CREATE:INTERNAL=
//Have library pthreads
CMAKE_HAVE_PTHREADS_CREATE:INTERNAL=
//Have library pthread
CMAKE_HAVE_PTHREAD_CREATE:INTERNAL=1
//Have include pthread.h
CMAKE_HAVE_PTHREAD_H:INTERNAL=1
//Have function remove
CMAKE_HAVE_REMOVE:INTERNAL=1
//Have function shmat
CMAKE_HAVE_SHMAT:INTERNAL=1
---

in the small project, we should write once about pthread which is "p-thread".

Program thread:

---

(20200922: work: audacity: )
We coud find HAVE_PTHREAD in the tif_config.h
./src/tiff/libtiff/tif_config.h:#define HAVE_PTHREAD 1
so, we understand "HAVE_PTHREAD" if the above is only keyword "HAVE_PTHREAD".
so, in the CmakeCache.txt, "CMAKE_" is prefix and "_H" is a header which they found.

(20200922: tutorial)
We set just only #define.

---

(20200922: simple case)
We could build with inclusion in the simple case.
We ignore "#define HAVE_PTHREAD 1" in tiff library.
---
$ cmake3 --build .
-- Configuring done
-- Generating done
-- Build files have been written to: /home/nakagawa/src/build
Scanning dependencies of target Tutorial
[ 50%] Building C object CMakeFiles/Tutorial.dir/main.c.o
[100%] Linking C executable Tutorial
[100%] Built target Tutorial

---

There is no keyword "HAVE_PTHREAD" CMakeLists.txt in audacity and in the tiff.

We must rebuild as same as first.

---

Good reference to: 

About Additional definition:

[1] https://cmake.org/cmake/help/latest/command/add_definitions.html?highlight=s

---

---

Comments

Popular posts from this blog

ffmpeg: compilation: Makefile

1. Find sub-directory and ... 2. Care of the literature and ... * Parameter print - - - - CONFIG_POSTPROC - - - .PHONY ...  there is a file named  clean . ... - - - - - - - - - - - - .\Makefile File changed time Fri Jun 04 12:29:06 2021 1 :MAIN_MAKEFILE=1 2 :include config.mak 3 : 4 :vpath %.c $(SRC_PATH) 5 :vpath %.cpp $(SRC_PATH) 6 :vpath %.h $(SRC_PATH) 7 :vpath %.inc $(SRC_PATH) 8 :vpath %.m $(SRC_PATH) 9 :vpath %.S $(SRC_PATH) 10 :vpath %.asm $(SRC_PATH) 11 :vpath %.rc $(SRC_PATH) 12 :vpath %.v $(SRC_PATH) 13 :vpath %.texi $(SRC_PATH) 14 :vpath %/fate_config.sh.template $(SRC_PATH) 15 : 16 :AVPROGS-$(CONFIG_FFMPEG) += ffmpeg 17 :AVPROGS-$(CONFIG_FFPLAY) += ffplay 18 :AVPROGS-$(CONFIG_FFPROBE) += ffprobe 19 :AVPROGS-$(CONFIG_FFSERVER) += ffserver 20 : 21 :AVPROGS := $(AVPROGS-yes:%=%$(PROGSSUF)$(EXESUF)) 22 :INSTPROGS = $(AVPROGS-yes:%=%$(PROGSSUF)$(EXESUF)) ...

Big Leaves:

They are growing this year.Dirt is well for any leaves.Weirds are cut by the machine on the line. 2022/10/09 10:24:08 *

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...