Re: [Wireshark-dev] CMake: Disable building with QT ?

2015-12-29 Thread Guy Harris

On Dec 29, 2015, at 3:54 PM, Joerg Mayer  wrote:

> On Sat, Nov 14, 2015 at 03:58:13PM -0800, Guy Harris wrote:
>> 
>> On Nov 14, 2015, at 11:13 AM, Bálint Réczey  wrote:
>> 
>>> To enable completion you also need the bash-completion package
>>> installed and sourced in your bash session.
>> 
>> I.e., this isn't a feature of CMake, it's a feature of the combination of
>>  
>>  1) a version of bash with programmable completion
>> 
>> and
>> 
>>  2) a version of CMake that supplies completion rules
>> 
>> so you won't have that feature unless
>> 
>>  1) your shell is a version of bash with support for programmable 
>> completion
>> 
>> and
>> 
>>  2) your CMake has completion rules and those rules are installed for 
>> use by bash.
> 
> And 3) it actually works, which it doesn't for me: OS X 10.11, CMake 3.4.1,
> GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)
> dies with "cmake -D-bash: compopt: command not found"

So 1) in the first list should be changed to

1) a version of bash with programmable completion *and the compopt 
command*

and 1) in the second list should be changed similarly.

"A version of bash with programmable completion *and the compopt command*" 
means "bash 4.0 or later", which isn't the bash that ships with OS X.  Bash may 
have switched to GPL 3 in 4.0; I'm not sure Apple ships *any* GPL 3 code with 
OS X.
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] CMake: Disable building with QT ?

2015-12-29 Thread Joerg Mayer
On Sat, Nov 14, 2015 at 03:58:13PM -0800, Guy Harris wrote:
> 
> On Nov 14, 2015, at 11:13 AM, Bálint Réczey  wrote:
> 
> > To enable completion you also need the bash-completion package
> > installed and sourced in your bash session.
> 
> I.e., this isn't a feature of CMake, it's a feature of the combination of
>   
>   1) a version of bash with programmable completion
> 
> and
> 
>   2) a version of CMake that supplies completion rules
> 
> so you won't have that feature unless
> 
>   1) your shell is a version of bash with support for programmable 
> completion
> 
> and
> 
>   2) your CMake has completion rules and those rules are installed for 
> use by bash.

And 3) it actually works, which it doesn't for me: OS X 10.11, CMake 3.4.1,
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)
dies with "cmake -D-bash: compopt: command not found"

Ciao
Jörg
-- 
Joerg Mayer   
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] CMake: Disable building with QT ?

2015-11-14 Thread Bálint Réczey
Hi,

To enable completion you also need the bash-completion package
installed and sourced in your bash session.
Sometimes the bash-completion package is missing in VM-s to save
space, but on default Ubuntu Desktop it is installed and enabled.

Bash-completion performs the completion part and uses the rules
shipped by cmake:

$ dpkg -S /etc/bash_completion.d/cmake
cmake: /etc/bash_completion.d/cmake

Cheers,
Balint

2015-11-14 21:16 GMT+04:00 Dario Lombardo :
> cmake completion on ubuntu leverage the cmake build dir itself. If you run
> cmake once, then try the completion, it will do the trick
>
> $ mkdir build
> $ cd build
> $ cmake ..
> [build dir is populated]
> $ cmake -D
>
> It works for me in a freshly created build dir.
>
> On Fri, Nov 13, 2015 at 11:34 PM, Guy Harris  wrote:
>>
>>
>> On Nov 13, 2015, at 12:26 AM, Dario Lombardo 
>> wrote:
>>
>> > A useful feature of cmake that works at least on ubuntu is the tab
>> > completion. So you can run
>> >
>> > cmake -DBUILD
>> >
>> > and you get a list of build targets that can be enabled/disabled.
>>
>> Not on my Ubuntu 15.10 virtual machine it doesn't - not even if I run it
>> in the Wireshark source directory.   does nothing.
>>
>> $ cmake --version
>> cmake version 3.2.2
>> $ echo $SHELL
>> /bin/bash
>> $ bash --version
>> GNU bash, version 4.3.42(1)-release (x86_64-pc-linux-gnu)
>>
>>
>> ___
>> Sent via:Wireshark-dev mailing list 
>> Archives:https://www.wireshark.org/lists/wireshark-dev
>> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>>
>> mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe
>
>
>
> ___
> Sent via:Wireshark-dev mailing list 
> Archives:https://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>  mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] CMake: Disable building with QT ?

2015-11-14 Thread Dario Lombardo
cmake completion on ubuntu leverage the cmake build dir itself. If you run
cmake once, then try the completion, it will do the trick

$ mkdir build
$ cd build
$ cmake ..
[build dir is populated]
$ cmake -D

It works for me in a freshly created build dir.

On Fri, Nov 13, 2015 at 11:34 PM, Guy Harris  wrote:

>
> On Nov 13, 2015, at 12:26 AM, Dario Lombardo 
> wrote:
>
> > A useful feature of cmake that works at least on ubuntu is the tab
> completion. So you can run
> >
> > cmake -DBUILD
> >
> > and you get a list of build targets that can be enabled/disabled.
>
> Not on my Ubuntu 15.10 virtual machine it doesn't - not even if I run it
> in the Wireshark source directory.   does nothing.
>
> $ cmake --version
> cmake version 3.2.2
> $ echo $SHELL
> /bin/bash
> $ bash --version
> GNU bash, version 4.3.42(1)-release (x86_64-pc-linux-gnu)
>
> ___
> Sent via:Wireshark-dev mailing list 
> Archives:https://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>  mailto:wireshark-dev-requ...@wireshark.org
> ?subject=unsubscribe
>
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] CMake: Disable building with QT ?

2015-11-14 Thread Guy Harris

On Nov 14, 2015, at 11:13 AM, Bálint Réczey  wrote:

> To enable completion you also need the bash-completion package
> installed and sourced in your bash session.

I.e., this isn't a feature of CMake, it's a feature of the combination of

1) a version of bash with programmable completion

and

2) a version of CMake that supplies completion rules

so you won't have that feature unless

1) your shell is a version of bash with support for programmable 
completion

and

2) your CMake has completion rules and those rules are installed for 
use by bash.

___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] CMake: Disable building with QT ?

2015-11-13 Thread Dario Lombardo
A useful feature of cmake that works at least on ubuntu is the tab
completion. So you can run

cmake -DBUILD

and you get a list of build targets that can be enabled/disabled. You can
also try with

cmake -DENABLE

that gives you a list of features you can enable or disable.

cmake -D

gives you, of course, the complete list of what you can set in wireshark's
cmake.

Completion doesn't work on centos/redhat, and I don't know about other
distros. It doesn't work on windows, afaik.

Hope this helps ubuntu developers :).

On Thu, Nov 12, 2015 at 7:13 PM, Bill Meier  wrote:

> How do I disable building QT Wireshark when using CMake ?
>
> Thanks
>
> Bill
>
> ___
> Sent via:Wireshark-dev mailing list 
> Archives:https://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
> mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe
>
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] CMake: Disable building with QT ?

2015-11-13 Thread Michal Labedzki
I use:
  ccmake 
or
  ccmake . #(in build directory).

ccmake is (n)curses "browser" (configuration tool) of all options.

On 13 November 2015 at 09:26, Dario Lombardo
 wrote:
> A useful feature of cmake that works at least on ubuntu is the tab
> completion. So you can run
>
> cmake -DBUILD
>
> and you get a list of build targets that can be enabled/disabled. You can
> also try with
>
> cmake -DENABLE
>
> that gives you a list of features you can enable or disable.
>
> cmake -D
>
> gives you, of course, the complete list of what you can set in wireshark's
> cmake.
>
> Completion doesn't work on centos/redhat, and I don't know about other
> distros. It doesn't work on windows, afaik.
>
> Hope this helps ubuntu developers :).
>
> On Thu, Nov 12, 2015 at 7:13 PM, Bill Meier  wrote:
>>
>> How do I disable building QT Wireshark when using CMake ?
>>
>> Thanks
>>
>> Bill
>>
>>
>> ___
>> Sent via:Wireshark-dev mailing list 
>> Archives:https://www.wireshark.org/lists/wireshark-dev
>> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>> mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe
>
>
>
> ___
> Sent via:Wireshark-dev mailing list 
> Archives:https://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>  mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe



-- 

Pozdrawiam / Best regards
-
Michał Łabędzki, Software Engineer
Tieto Corporation

Product Development Services

http://www.tieto.com / http://www.tieto.pl
---
ASCII: Michal Labedzki
location: Swobodna 1 Street, 50-088 Wrocław, Poland
room: 5.01 (desk next to 5.08)
---
Please note: The information contained in this message may be legally
privileged and confidential and protected from disclosure. If the
reader of this message is not the intended recipient, you are hereby
notified that any unauthorised use, distribution or copying of this
communication is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to
the message and deleting it from your computer. Thank You.
---
Please consider the environment before printing this e-mail.
---
Tieto Poland spółka z ograniczoną odpowiedzialnością z siedzibą w
Szczecinie, ul. Malczewskiego 26. Zarejestrowana w Sądzie Rejonowym
Szczecin-Centrum w Szczecinie, XIII Wydział Gospodarczy Krajowego
Rejestru Sądowego pod numerem 124858. NIP: 8542085557. REGON:
812023656. Kapitał zakładowy: 4 271500 PLN
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] CMake: Disable building with QT ?

2015-11-13 Thread Alexis La Goutte
Nice tip ! thanks

On Fri, Nov 13, 2015 at 9:26 AM, Dario Lombardo  wrote:

> A useful feature of cmake that works at least on ubuntu is the tab
> completion. So you can run
>
> cmake -DBUILD
>
> and you get a list of build targets that can be enabled/disabled. You can
> also try with
>
> cmake -DENABLE
>
> that gives you a list of features you can enable or disable.
>
> cmake -D
>
> gives you, of course, the complete list of what you can set in wireshark's
> cmake.
>
> Completion doesn't work on centos/redhat, and I don't know about other
> distros. It doesn't work on windows, afaik.
>
> Hope this helps ubuntu developers :).
>
> On Thu, Nov 12, 2015 at 7:13 PM, Bill Meier  wrote:
>
>> How do I disable building QT Wireshark when using CMake ?
>>
>> Thanks
>>
>> Bill
>>
>>
>> ___
>> Sent via:Wireshark-dev mailing list 
>> Archives:https://www.wireshark.org/lists/wireshark-dev
>> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>> mailto:wireshark-dev-requ...@wireshark.org
>> ?subject=unsubscribe
>>
>
>
> ___
> Sent via:Wireshark-dev mailing list 
> Archives:https://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>  mailto:wireshark-dev-requ...@wireshark.org
> ?subject=unsubscribe
>
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] CMake: Disable building with QT ?

2015-11-13 Thread Guy Harris

On Nov 13, 2015, at 12:26 AM, Dario Lombardo  
wrote:

> A useful feature of cmake that works at least on ubuntu is the tab 
> completion. So you can run
> 
> cmake -DBUILD
> 
> and you get a list of build targets that can be enabled/disabled.

Not on my Ubuntu 15.10 virtual machine it doesn't - not even if I run it in the 
Wireshark source directory.   does nothing.

$ cmake --version
cmake version 3.2.2
$ echo $SHELL
/bin/bash
$ bash --version
GNU bash, version 4.3.42(1)-release (x86_64-pc-linux-gnu)

___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] CMake: Disable building with QT ?

2015-11-12 Thread Gerald Combs
On 11/12/15 10:51 AM, Bill Meier wrote:
> On 11/12/2015 1:13 PM, Bill Meier wrote:
>> How do I disable building QT Wireshark when using CMake ?
>>
>> Thanks
>>
>> Bill
> 
> 
> Answering my own question:
> 
> cmake -DBUILD_wireshark=OFF ...

You can also edit the corresponding BUILD_wireshark line in CMakeCache.txt.
The next time you run "make" it *should* re-run cmake, although this
doesn't seem to work reliably for MSBuild. I regularly do this with other
options such as ENABLE_QT5, ENABLE_HTML_GUIDES, and ENABLE_CHM_GUIDES.
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


[Wireshark-dev] CMake: Disable building with QT ?

2015-11-12 Thread Bill Meier

How do I disable building QT Wireshark when using CMake ?

Thanks

Bill

___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] CMake: Disable building with QT ?

2015-11-12 Thread Bill Meier

On 11/12/2015 1:13 PM, Bill Meier wrote:

How do I disable building QT Wireshark when using CMake ?

Thanks

Bill



Answering my own question:

cmake -DBUILD_wireshark=OFF ...




___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] CMake: Disable building with QT ?

2015-11-12 Thread Peter Wu
Try cmake -DBUILD_wireshark=0 (case is significant). These options are defined 
in CMakeOptions.txt which you can also find via invocation of cmake-gui.

Kind regards,
Peter
https://lekensteyn.nl
(pardon my brevity, top-posting and formatting, sent from my phone)


On 12 November 2015 19:13:07 CET, Bill Meier  wrote:
>How do I disable building QT Wireshark when using CMake ?
>
>Thanks
>
>Bill
>
>___
>Sent via:Wireshark-dev mailing list 
>Archives:https://www.wireshark.org/lists/wireshark-dev
>Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
> mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe