Displaying 5 results from an estimated 5 matches for "dbuild_testing".
2019 Apr 14
1
Opus cmake build
...r it then does not build a static library. The autotools build
builds both by default, although --disable-shared or --disable-static
may be used to disable them. Normally an installation would have both.
How can both be built with cmake? Is it it necessary to build twice?
When configured with -DBUILD_TESTING=ON, ctest runs only 2 tests if
-DBUILD_SHARED_LIBS=ON was also used, or 4 tests without that option.
How would someone run all 14 of the tests that are run using the
autotools "make check"? I wouldn't expect fewer tests to be run when
shared libraries are built; the autotools build r...
2019 Dec 12
0
opus Digest, Vol 128, Issue 4
Hi Max,
cmake .. -G "Visual Studio 16 2019" -A ARM64 -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=ON
cmake --build . -j 10
Is building for me, but I don't have any Windows Arm64 device so cannot test it.
Note that: Neon will not work on windows out of the box builds due renamed header: https://developercommunity.visualstudio.com/content/problem/201662/arm-neonh-doenst-support-arm64-compil...
2019 Apr 10
0
Opus cmake build
...BUILD_SHARED_LIBS.html>
BUILD_SHARED_LIBSĀ¶. Global flag to cause add_library() to create shared libraries if on.. If present and true, this will cause all libraries to be built shared unless the library was explicitly added as a static library.
cmake.org
To build tests use the following flags:
-DBUILD_TESTING=ON
Then you can use: ctest -j 4 to run the test in parallel
For programs use:
-DBUILD_PROGRAMS=ON
For the missing build flags this is great feedback and I will to fix those:
Add:
-DENABLE_HARDENING,
-D_FORTIFY_SOURCE=2
Add option:
-fstack-protector-strong (on compilers where it is supported, u...
2019 Apr 11
2
Opus cmake build
On Wed, Apr 10, 2019 at 5:30 PM Marcus Asteborg <xnorpx at outlook.com> wrote:
> Hi Mark,
>
> Thanks for the feedback.
>
> By default CMake is building the static library in debug, to get other
> things one has to explicit turn it on.
>
>
Hi,
By default CMake uses the "empty" build, which is used in combination with
the environment variables CFLAGS and
2019 Apr 10
2
Opus cmake build
I tried the new cmake-based build system to build Opus on Linux and
macOS. I'm not familiar with cmake but based on instructions I found
online I used it as follows:
- mkdir build
- cd build
- cmake -DCMAKE_INSTALL_PREFIX:PATH=<install-path> ..
- make
- ctest
- make install
Although the "make" command completed, it reported that optimizations
were disabled: