![Alexis La Goutte](/assets/img/avatar_default.png)
Like say on -dev mailing https://www.wireshark.org/lists/wireshark-dev/201706/msg00113.html and also recommanded when install Qt via homebrew (brew install qt) [...] If you need to have this software first in your PATH instead consider running: echo 'export PATH="/usr/local/opt/qt/bin:$PATH"' >> ~/.bash_profile Fix following cmake error : - Found python module asn2wrs: /Users/travis/build/alagoutte/wireshark/tools/asn2wrs.py CMake Error at /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:15 (message): The imported target "Qt5::Core" references the file "/usr/local/.//mkspecs/macx-clang" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/local/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake" but not all the files it references. Change-Id: I47137109c6ddb30de653e424d9baef4a340faad3 Reviewed-on: https://code.wireshark.org/review/22512 Reviewed-by: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Michael Mann <mmann78@netscape.net>
44 lines
1.5 KiB
YAML
44 lines
1.5 KiB
YAML
language: cpp
|
|
sudo: required
|
|
dist: trusty
|
|
os:
|
|
- osx
|
|
- linux
|
|
compiler:
|
|
- clang
|
|
- gcc
|
|
env:
|
|
- BUILD_CMAKE=yes
|
|
- BUILD_CMAKE=yes CMAKE_OPTS="-DBUILD_wireshark_gtk=ON"
|
|
- BUILD_CMAKE=yes CMAKE_OPTS="-DENABLE_PCAP=OFF"
|
|
- BUILD_CMAKE=yes CMAKE_OPTS="-DENABLE_EXTCAP=OFF"
|
|
- BUILD_CMAKE=no AUTOTOOLS_OPTS="--with-gtk=3"
|
|
matrix:
|
|
exclude:
|
|
# Exclude gcc build (Need some work) with osx
|
|
- os: osx
|
|
compiler: gcc
|
|
# Exclude autotools build (missing libtool...) with osx
|
|
- os: osx
|
|
env: BUILD_CMAKE=no AUTOTOOLS_OPTS="--with-gtk=3"
|
|
# Exclude build with GTK+3
|
|
- os: osx
|
|
env: BUILD_CMAKE=yes CMAKE_OPTS="-DBUILD_wireshark_gtk=ON"
|
|
before_install:
|
|
- echo $TRAVIS_OS_NAME
|
|
- $CC --version
|
|
# macos
|
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then ./tools/macos-setup-brew.sh; fi
|
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then PATH=/usr/local/opt/qt5/bin:$PATH; fi
|
|
# linux
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test; fi
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -qq; fi
|
|
# libstdc++-4.8 is needed by Clang to build
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get -qq install libstdc++-4.8-dev; fi
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ./tools/debian-setup.sh --install-optional -qq; fi
|
|
- $CC --version
|
|
before_script:
|
|
if [ ${BUILD_CMAKE} == "yes" ]; then mkdir build && cd build && cmake ${CMAKE_OPTS} ..; else ./autogen.sh && ./configure ${AUTOTOOLS_OPTS} ; fi
|
|
script:
|
|
- make
|