Add a CMake build
Bug #1311728 reported by
Alex Valavanis
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Quantum wells, wires and dots |
Fix Committed
|
Medium
|
Alex Valavanis |
Bug Description
This will allow faster builds (using Ninja) and hopefully make the build system a bit simpler. Jonny's currently working on it.
tags: | added: packaging |
Changed in qwwad: | |
assignee: | Jonathan Cooper (jdc-tas) → Alex Valavanis (valavanisalex) |
Changed in qwwad: | |
status: | In Progress → Fix Committed |
milestone: | 1.95 → 1.7 |
To post a comment you must log in.
Jonny - I just tested lp:qwwad r135. Build log through out a linker error (can't find pthread). Any immediate solution? I ran it as an out-of-source build. Here's a transcript
$ mkdir build-cmake devel/qwwad/ lp-qwwad- ch/build- cmake
$ cd build-cmake/
$ CC=clang CXX=clang++ cmake ../
-- The C compiler identification is Clang 3.4.0
-- The CXX compiler identification is Clang 3.4.0
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for dgemm_
-- Looking for dgemm_ - found
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- A library with BLAS API found.
-- Looking for cheev_
-- Looking for cheev_ - found
-- A library with LAPACK API found.
-- Boost version: 1.54.0
-- Configuring done
-- Generating done
-- Build files have been written to: /home/alex/
$ make s/gtest. dir/src/ gtest_main. cc.o s/gtest. dir/src/ gtest-all. cc.o s/tests. dir/some_ tests.cpp. o libgtest. a(gtest- all.cc. o): In function `testing: :internal: :ThreadLocal< std::vector< testing: :internal: :TraceInfo, std::allocator< testing: :internal: :TraceInfo> > >::~ThreadLocal()': devel/qwwad/ lp-qwwad- ch/gtest/ src/gtest- all.cc: (.text. _ZN7testing8int ernal11ThreadLo calISt6vectorIN S0_9TraceInfoES aIS3_EEED2Ev[ _ZN7testing8int ernal11ThreadLo calISt6vectorIN S0_9TraceInfoES aIS3_EEED2Ev] +0x16): undefined reference to `pthread_ getspecific' devel/qwwad/ lp-qwwad- ch/gtest/ src/gtest- all.cc: (.text. _ZN7testing8int ernal11ThreadLo calISt6vectorIN S0_9TraceInfoES aIS3_EEED2Ev[ _ZN7testing8int ernal11ThreadLo calISt6vectorIN S0_9TraceInfoES aIS3_EEED2Ev] +0x2e): undefined reference to `pthread_ key_delete' libgtest. a(gtest- all.cc. o): In function `testing: :internal: :ThreadLocal< testing: :TestPartResult ReporterInterfa ce*>::~ ThreadLocal( )': devel/qwwad/ lp-qwwad- ch/gtest/ src/gtest- all.cc: (.text. _ZN7testing8int ernal11ThreadLo calIPNS_ 31TestPartResul tReporterInterf aceEED2Ev[ _ZN7testing8int ernal11ThreadLo calIPNS_ 31TestPartResul tReporterInterf aceEED2Ev] +0x19): undefined reference to `pthread_ getspecific' devel/qwwad/ lp-qwwad- ch/gtest/ src/gtest- all.cc: (.text. _ZN7testing8int ernal11ThreadLo calIPNS_ 31TestPartResul tReporterInterf aceEED2Ev[ _ZN7testing8int ernal11ThreadLo calIPNS_ 31TestPartResul tReporterInterf aceEED2Ev] +0x2c): undefined reference to `pthread_key...
Scanning dependencies of target gtest
[ 33%] Building CXX object gtest/CMakeFile
[ 66%] Building CXX object gtest/CMakeFile
Linking CXX static library libgtest.a
[ 66%] Built target gtest
Scanning dependencies of target tests
[100%] Building CXX object tests/CMakeFile
Linking CXX executable tests
../gtest/
/home/alex/
/home/alex/
../gtest/
/home/alex/
/home/alex/