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    CMakeFiles/cmTC_d3141.dir/CheckFunctionExists.c.o  -o cmTC_d3141 -latomic -lm
/usr/bin/ld: cannot find -latomic

---


(20200920: installation atomic and compilation option)
$ yum search atomic
$ yum install libatomic.i686
, which is specification.

---
(in base )
mkdir build
cd build
cmake ..
---

CMake Error at modules/mod-null/CMakeLists.txt:56 (target_link_options):
  Unknown CMake command "target_link_options".


-- Configuring incomplete, errors occurred!

CMakeError.log
Checking whether the ASM_NASM compiler is GNU using "--version" did not match "(GNU assembler)|(GCC)|(Free Software Foundation)":
Checking whether the ASM_NASM compiler is HP using "-V" did not match "HP C":
Checking whether the ASM_NASM compiler is Intel using "--version" did not match "(ICC)":
Checking whether the ASM_NASM compiler is SunPro using "-V" did not match "Sun C":
Checking whether the ASM_NASM compiler is XL using "-qversion" did not match "XL C":
Checking whether the ASM_NASM compiler is MSVC using "/?" did not match "Microsoft":
Checking whether the ASM_NASM compiler is TI using "-h" did not match "Texas Instruments":
Checking whether the ASM_NASM compiler is GNU using "--version" did not match "(GNU assembler)|(GCC)|(Free Software Foundation)":
Checking whether the ASM_NASM compiler is IAR using "" did not match "IAR Assembler":
Checking whether the ASM_NASM compiler is ARMCC using "" did not match "(ARM Compiler)|(ARM Assembler)":

, which ia all error and checking comiplation check.
they use cc-compiler, we've checked.

---


コメント