Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multimon-ng: added support for building with cmake #24

Merged
merged 1 commit into from Nov 29, 2014

Conversation

lt-holman
Copy link
Contributor

Currently, multimon-ng builds with qmake. However, this requires pulling in X11
packages in order to install. Since multimon-ng is a console application the
requirement of X11 shouldn't be required. The fix is to use cmake to build
the project. This patch adds a CMakeLists.txt file in order to build the project.

The project was succesfully built on Mac OS (Darwin), Linux CentOS 7 with gcc and on
Microsoft Windows with Microsoft Visual Studio 2012. The resulting program was ran
on Linux CentOS 7 and succesfully processes POCSAG512 messages.

To build without X11 support on Linux:
$ cmake -DX11_SUPPORT=OFF .
$ make

To build without Pulse Audio support on Linux:
$ cmake -DPULSE_AUDIO_SUPPORT=OFF .
$ make

Note that: X11 and Pulse Audio libraries aren't searched for on either Microsoft Windows or
Macintosh

Currently, multimon-ng builds with qmake.  However, this requires pulling in X11
packages in order to install.  Since multimon-ng is a console application the
requirement of X11 shouldn't be required.  The fix is to use cmake to build
the project.  This patch adds a CMakeLists.txt file in order to build the project.

The project was succesfully built on Mac OS (Darwin), Linux CentOS 7 with gcc and on
Microsoft Windows with Microsoft Visual Studio 2012.  The resulting program was ran
on Linux CentOS 7 and succesfully processes POCSAG512 messages.

To build without X11 support on Linux:
$ cmake -DX11_SUPPORT=OFF .
$ make

To build without Pulse Audio support on Linux:
$ cmake -DPULSE_AUDIO_SUPPORT=OFF .
$ make

Note that: X11 and Pulse Audio libraries aren't searched for on either Microsoft Windows or
Macintosh
@EliasOenal
Copy link
Owner

I don't see how qmake pulls in X11 packages. It's a commandline tool and I can see no such dependency here: http://packages.ubuntu.com/trusty/qt5-qmake

@lt-holman
Copy link
Contributor Author

Elias,

You are probably correct on Debian/Ubuntu based systems. However, I'm
trying to set it up on a CentOS 7 headless server. In their packaging,
qmake is provided with all the QT development headers, libraries and
executables.

I've included the output of some yum commands below.

  • Keith

[root@server multimon-ng]# yum whatprovides */qmake

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

  • base: centos.mirror.ca.planethoster.net
  • extras: centos.mirror.ca.planethoster.net
  • updates: centos.cubiculestudio.com

1:qt-devel-4.8.5-8.el7.i686 : Development files for the Qt toolkit

Repo : base

Matched from:

Filename : /usr/lib/qt4/bin/qmake

1:qt-devel-4.8.5-8.el7.x86_64 : Development files for the Qt toolkit

Repo : base

Matched from:

Filename : /usr/lib64/qt4/bin/quake

qt3-devel-3.3.8b-51.el7.i686 : Development files for the Qt 3 GUI toolkit

Repo : base

Matched from:

Filename : /usr/lib/qt-3.3/bin/qmake

qt3-devel-3.3.8b-51.el7.x86_64 : Development files for the Qt 3 GUI toolkit

Repo : base

Matched from:

Filename : /usr/lib64/qt-3.3/bin/qmake

1:qt-devel-4.8.5-8.el7.x86_64 : Development files for the Qt toolkit

Repo : @base

Matched from:

Filename : /usr/lib64/qt4/bin/qmake

[root@server multimon-ng]# yum deplist qt-devel

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

  • base: centos.mirror.ca.planethoster.net
  • extras: centos.mirror.ca.planethoster.net
  • updates: centos.cubiculestudio.com

package: qt-devel.i686 1:4.8.5-8.el7

dependency: /bin/sh

provider: bash.x86_64 4.2.45-5.el7_0.4

dependency: /usr/bin/pkg-config

provider: pkgconfig.x86_64 1:0.27.1-4.el7

provider: pkgconfig.i686 1:0.27.1-4.el7

dependency: libQt3Support.so.4

provider: qt-x11.i686 1:4.8.5-8.el7

dependency: libQtCLucene.so.4

provider: qt-x11.i686 1:4.8.5-8.el7

dependency: libQtCore.so.4

provider: qt.i686 1:4.8.5-8.el7

dependency: libQtDBus.so.4

provider: qt.i686 1:4.8.5-8.el7

dependency: libQtDeclarative.so.4

provider: qt-x11.i686 1:4.8.5-8.el7

dependency: libQtDesigner.so.4

provider: qt-x11.i686 1:4.8.5-8.el7

dependency: libQtDesignerComponents.so.4

provider: qt-x11.i686 1:4.8.5-8.el7

dependency: libQtGui.so.4

provider: qt-x11.i686 1:4.8.5-8.el7

dependency: libQtHelp.so.4

provider: qt-x11.i686 1:4.8.5-8.el7

dependency: libQtMultimedia.so.4

provider: qt-x11.i686 1:4.8.5-8.el7

dependency: libQtNetwork.so.4

...

On Sun, Nov 16, 2014 at 2:56 PM, Elias Önal notifications@github.com
wrote:

I don't see how qmake pulls in X11 packages. It's a commandline tool and I
can see no such dependency here:
http://packages.ubuntu.com/trusty/qt5-qmake


Reply to this email directly or view it on GitHub
#24 (comment).

EliasOenal added a commit that referenced this pull request Nov 29, 2014
multimon-ng: added support for building with cmake
@EliasOenal EliasOenal merged commit 538a758 into EliasOenal:master Nov 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants