[Kst] MacOS build
Berse, Matthias
Matthias.Berse at raith.de
Wed Jan 7 15:46:30 UTC 2015
Hi Niclas,
good hint, after having this tried the script originally without success, I had the idea to call it from the main source Directory. Now it is compiling.
Does anyone have an idea why the deploy item in qt-creator is greyed out? I wanted to give this a try, without success. All in all I can conclude, so far I have built KST with qt-creator only and macdeployqt somehow messed up that build when I wanted to create an app bundle which will run on other machines than mine.
Now I guess plugins do not compile without errors. This is what I get before the build fails:
In file included from /Users/matt/src/kst-plot/3rdparty/netcdf/src/netcdf/ncgen3/load.c:14:
/Users/matt/src/kst-plot/3rdparty/netcdf/src/netcdf/ncgen3/genlib.h:84:15: error:
expected parameter declarator
extern size_t strlcat(char *dst, const char *src, size_t siz);
^
/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
^
/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
^
/usr/include/secure/_common.h:30:32: note: expanded from macro
'_USE_FORTIFY_LEVEL'
# define _USE_FORTIFY_LEVEL 2
^
In file included from /Users/matt/src/kst-plot/3rdparty/netcdf/src/netcdf/ncgen3/load.c:14:
/Users/matt/src/kst-plot/3rdparty/netcdf/src/netcdf/ncgen3/genlib.h:84:15: error:
expected ')'
/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
^
/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
^
/usr/include/secure/_common.h:30:32: note: expanded from macro
'_USE_FORTIFY_LEVEL'
# define _USE_FORTIFY_LEVEL 2
^
/Users/matt/src/kst-plot/3rdparty/netcdf/src/netcdf/ncgen3/genlib.h:84:15: note:
to match this '('
/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
^
/usr/include/secure/_common.h:39:53: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
^
In file included from /Users/matt/src/kst-plot/3rdparty/netcdf/src/netcdf/ncgen3/load.c:14:
/Users/matt/src/kst-plot/3rdparty/netcdf/src/netcdf/ncgen3/genlib.h:84:15: warning:
type specifier missing, defaults to 'int' [-Wimplicit-int]
extern size_t strlcat(char *dst, const char *src, size_t siz);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
^~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_common.h:39:31: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
^~~~~~~~~~~~~~~~~~~~~
In file included from /Users/matt/src/kst-plot/3rdparty/netcdf/src/netcdf/ncgen3/load.c:14:
/Users/matt/src/kst-plot/3rdparty/netcdf/src/netcdf/ncgen3/genlib.h:84:15: error:
conflicting types for '__builtin___strlcat_chk'
/usr/include/secure/_string.h:111:3: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
^
/Users/matt/src/kst-plot/3rdparty/netcdf/src/netcdf/ncgen3/genlib.h:84:15: note:
'__builtin___strlcat_chk' is a builtin with type 'unsigned long (char *,
const char *, unsigned long, unsigned long)'
/usr/include/secure/_string.h:111:3: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
^
1 warning and 3 errors generated.
make[5]: *** [load.o] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all] Error 2
make[2]: *** [3rdparty/netcdf/src/netcdf-stamp/netcdf-build] Error 2
make[1]: *** [cmake/3rdparty/CMakeFiles/netcdf.dir/all] Error 2
make: *** [all] Error 2
I try to build from git sources. This is the revision:
commit c0ed2122f4eca7ed5f21e0a3f287692e58c3b771
Author: Barth Netterfield <netterfield at astro.utoronto.ca>
Date: Thu Dec 4 00:22:49 2014 -0500
Fix crash in Zoom Mean Centered and shared axis boxes
Will investigate further. Any tips appreciated. Consider me as a hobby self compile guy, but not a very skilled programmer...
Thanks,
Matthias
-----------------------------------------------------------------------
Raith GmbH
Matthias Berse
Development Engineer - R & D
email: mailto:Matthias.Berse at raith.de
phone: +49 (231) 95004 351
fax: +49 (231) 95004 460
web: http://www.raith.com
-----------------------------------------------------------------------
Raith GmbH - Konrad-Adenauer-Allee 8 - 44263 Dortmund - Deutschland / Germany
Geschaeftsfuehrer / managing director: Dr. Ralf Jede // Handelsregister / trade register: Dortmund HRB 8984
Steuer-Nr. / tax number: 315/5765/0135 // Ust.-IdNr. / VAT number: DE 124 727 617
-----Original Message-----
From: Brisset, Nicolas [mailto:nicolas.brisset at airbus.com]
Sent: Mon 1/5/2015 12:21 PM
To: Berse, Matthias
Subject: TR: MacOS build
Hi Matthias,
Since I'm not sure you received this mail via the list, I'm sending it directly to you.
I'd avise you to use cmake and the cmake-gui tool to configure the build, I've had good success with that getting Kst and dependencies to build on Windows.
I don't know the details of all that Peter did to compile and package the Mac version, but if you ask specific questions on the list he should be able to answer you. I believe he basically used the script referenced below.
Thanks for your help,
Nicolas
De : Brisset, Nicolas
Envoyé : lundi 5 janvier 2015 09:42
À : 'kst at kde.org'
Objet : RE: MacOS build
Hi Matthias,
Thanks for your contribution. I can't test it right now (I don't own a Mac), but if you add the info to the existing bug report and now that you've sent the message to the list, I guess there will be people to try it out.
One hint: I just realized there is a mac build script under kst-plot\cmake\mac-release.sh which uses cmake to build the .dmg packages. Have you tried it? I believe the script was made by Peter, who used to prepare the .dmg packages.
And one further question: have you succeeded to build plugins (in particular the gsl-based ones, which are a large part of the data analysis plugins)?
Thanks again for your efforts,
Nicolas
De : kst-bounces at kde.org<mailto:kst-bounces at kde.org> [mailto:kst-bounces at kde.org] De la part de Berse, Matthias
Envoyé : samedi 3 janvier 2015 20:14
À : kst at kde.org<mailto:kst at kde.org>
Objet : [Kst] MacOS build
Hi,
since Nicolas asked, I messed a bit with homebrew and cask. The result being that I have forked the unofficial repro and included a cask for kst-plot.
You can find it here:
https://github.com/f0rdprefect/homebrew-unofficial/blob/kst-plot/Casks/kst-plot.rb
Right now I just zipped the binaries and uploaded them to my dropbox. If someone can test it and tell me that they actually work without the qtcreator installed, I will be happy to build snapshots every once in a while.
Thanks,
Matthias
-----------------------------------------------------------------------
Raith GmbH
Matthias Berse
Development Engineer - R & D
email: Matthias.Berse at raith.de<mailto:Matthias.Berse at raith.de>
phone: +49 (231) 95004 351
fax: +49 (231) 95004 460
web: www.raith.com<http://www.raith.com>
-----------------------------------------------------------------------
Raith GmbH - Konrad-Adenauer-Allee 8 - 44263 Dortmund - Deutschland / Germany
Geschaeftsfuehrer / managing director: Dr. Ralf Jede // Handelsregister / trade register: Dortmund HRB 8984
Steuer-Nr. / tax number: 315/5765/0135 // Ust.-IdNr. / VAT number: DE 124 727 617
AIRBUS HELICOPTERS DEUTSCHLAND GmbH
Sitz der Gesellschaft / Registered Office: Donauwoerth
Registergericht / Registration Court: Amtsgericht Augsburg HRB 16508
Vorsitzender des Aufsichtsrates / Chairman of the Supervisory Board: Guillaume Faury
Geschaeftsfuehrung / Board of Management:
Dr. Wolfgang Schoder, Vorsitzender / CEO; Ralf Barnscheidt; Johannes Kleidorfer; Oliver Schenzle
CONFIDENTIALITY NOTICE
This communication and the information it contains is intended for the addressee ( s ) named above and for no other persons or organizations.
It is confidential and may be legally privileged and protected by law. The unauthorized use, copying or disclosure of this communication
or any part of it is prohibited and may be unlawful.
If you have received this communication in error, kindly notify us by return e-mail and discard and/or delete the communication.
Thank you very much.
It is possible for e-mails to be intercepted or affected by viruses. Whilst we maintain virus checks on our e-mails, we accept no liability for viruses
or other material which might be introduced with this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kst/attachments/20150107/f626ffc2/attachment.html>
More information about the Kst
mailing list