Ask Your Question
0

Cmake error: "Target "xxx" INTERFACE_INCLUDE_DIRECTORIES property contains path: ... which is prefixed in the build directory."

asked 2020-05-06 18:57:19 +0000

updated 2020-05-06 23:48:12 +0000

Guy Harris gravatar image

Sample output:

c:\repos\wireshark9>git status
On branch master-3.2
Your branch is up to date with 'origin/master-3.2'.

nothing to commit, working tree clean

c:\repos\wireshark9>git log
commit 5ce52f748553b9bf5d3ef1882af6ceb9cdb0f50a (grafted, HEAD -> master-3.2, origin/master-3.2)
Author: Tomasz Mo<C5><84> <[email protected]>
Date:   Sat May 2 22:36:46 2020 +0200

    Qt: Stretch last packet list header section

    Programatically show the master split widget before elements are added
    to prevent pending resize events from resizing packet columns to insane
    widths (in my case orders of magnitude higher than display resolution)

    Such resize was occuring when loading capture file if configuration file
    included hidden columns (e.g. 55 defined columns, 8 visible). The resize
    was not directly visible to user. Resize event call chain included calls
    to recent_set_column_width() that changed width stored in configuration.
    Modified configuration column width value would become effective after
    user added or removed columns.

    Hide PacketList when freezing and show it when thawing. Do not call
    setUpdatesEnabled(false) as it leads to widget/preferences columns
    missynchronization.

    Clear packet list before freeing frame data. This prevents accessing
    freed memory in ProtoTree on file close if packet list was in focus and
    the next widget to get focus is packet details.

    Ping-Bug: 16063
    Bug: 16491
    Change-Id: I2c21d928348681af1793b3263815c81ee73d41b0
    Reviewed-on: https://code.wireshark.org/review/37029

c:\repos\wireshark9>cd ..\wsbuild64

c:\repos\wsbuild64>cmake -G "Visual Studio 16 2019" -A x64 ..\wireshark9
-- Generating build using CMake 3.15.19101501-MSVC_2
-- Building for win64 using Visual Studio 16 2019
Working in C:\repos\wireshark9\wireshark-win64-libs-3.2
Tag 2020-04-08 found. Skipping.
-- CMake build type: RelWithDebInfo
-- V: 3.2.4, MaV: 3, MiV: 2, PL: 4, EV: .
-- Linker flags: /LARGEADDRESSAWARE /MANIFEST:NO /INCREMENTAL:NO /RELEASE /guard:cf
-- Could NOT find DOXYGEN (missing: DOXYGEN_EXECUTABLE)
-- Could NOT find SpeexDSP (missing: SPEEXDSP_LIBRARY SPEEXDSP_INCLUDE_DIR) (found version "")
-- _fseeki64 and _ftelli64 are present
-- C-Flags:  /MP /Zo /utf-8 /guard:cf /w34295 /w34100 /w34189 /wd4200 /DWIN32 /D_WINDOWS /W3 /MD /Zi /O2 /Ob1 /DNDEBUG
-- CXX-Flags:  /MP /Zo /utf-8 /guard:cf /w34295 /w34100 /w34189 /wd4200 /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MD /Zi /O2 /Ob1 /DNDEBUG
-- Warnings as errors disabled
-- The following OPTIONAL packages have been found:

 * Git
 * GMODULE2
 * LIBSSH (required version >= 0.6), Library for implementing SSH clients, <https://www.libssh.org/>
   extcap remote SSH interfaces (sshdump, ciscodump)
 * PCAP
 * AIRPCAP
 * MaxMindDB, C library for the MaxMind DB file format, <https://github.com/maxmind/libmaxminddb>
   Support for GeoIP lookup
 * SMI
 * GNUTLS (required version >= 3.2.0)
 * KERBEROS
 * CARES (required version >= 1.5.0), Library for asynchronous DNS requests, <https://c-ares.haxx.se/>
   DNS name resolution for captures
 * ZLIB
 * Minizip, C library for supporting zip/unzip functionality, <https://www.winimage.com/zLibDll/minizip.html>
   Support for profiles import/export
 * BROTLI
 * LZ4, LZ4 is lossless compression algorithm used in some protocol (CQL...), <http://www.lz4.org>
   LZ4 decompression in CQL and Kafka dissectors
 * SNAPPY, A fast compressor/decompressor from Google, <https://google.github.io/snappy/>
   Snappy decompression in CQL and Kafka dissectors
 * ZSTD (required version >= 1.0.0 ...
(more)
edit retag flag offensive close merge delete

Comments

CMake version:

c:\repos\wsbuild64>cmake --version
cmake version 3.15.19101501-MSVC_2

CMake suite maintained and supported by Kitware (kitware.com/cmake).
ChristerEkholm gravatar imageChristerEkholm ( 2020-05-06 18:59:18 +0000 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-05-06 19:12:47 +0000

Pascal Quantin gravatar image

Hi,

move the wireshark-win64-libs-3.2 folder outside of your build tree and update your WIRESHARK_LIB_DIR accordingly, ti should fix your issue. We also recommend you to do an out-of-tree build. See https://www.wireshark.org/docs/wsdg_h...

edit flag offensive delete link more

Comments

Thank you very much. Somebody with permissions could fix this. https://www.wireshark.org/docs/wsdg_h...

ChristerEkholm gravatar imageChristerEkholm ( 2020-05-07 01:18:43 +0000 )edit

So on what page is that broken link?

Guy Harris gravatar imageGuy Harris ( 2020-05-07 04:16:42 +0000 )edit

Not entirely on-topic, but the comment in the WSDG says:

rem Let CMake determine the library download directory name under rem WIRESHARK_BASE_DIR or set it explicitly by using WIRESHARK_LIB_DIR.

If you use WIRESHARK_BASE_DIR you only have one env var to set regardless of build type (x86 or x64) and everything else works automatically. If you use WIRESHARK_LIB_DIR then it must be set appropriately for the build type. WIRESHARK_BASE_DIR still allows you to put the libs somewhere that doesn't work though.

grahamb gravatar imagegrahamb ( 2020-05-07 07:46:23 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-05-06 18:57:19 +0000

Seen: 141 times

Last updated: May 07