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
---
---
コメント
コメントを投稿