[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-mac
Subject:    Re: [KDE/Mac] Frameworks build error on Mavericks
From:       Nicolas Pavillon <nicos () macports ! org>
Date:       2014-04-18 10:09:43
Message-ID: A6521CD9-C805-4C37-A52A-D3E17BAE8741 () macports ! org
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello, 

I am afraid I do not any good answer on the spot. I never tried to build Frameworks \
either, would it be independently or through Macports. 

The error also does not ring any bell. I encountered cases where it was necessary to \
add an explicit include to unistd.h to compile on Mac (but I can’t remember if it was \
for a KDE package or not), but no errors due to mismatching constants. 

One thing though is that to my understanding the port is built independently. In the \
case of Macports for KDE4, we have a whole port group (kde4-1.1.tcl) to define \
constants and environment variables to build KDE packages somewhat properly. It may \
be useful to look at its definitions. The file can be seen online (instead of \
downloading the whole package) at: \
http://trac.macports.org/browser/trunk/dports/_resources/port1.0/group/kde4-1.1.tcl?rev=115590. \


Cheers, 

Nicolas

On Apr18, 2014, at 11:43, Ian Wadham <iandw.au@gmail.com> wrote:

> Hello Allen and KDE/Mac guys,
> 
> On 18/04/2014, at 10:15 AM, Allen Winter wrote:
> > I'm trying to build frameworks on my old MacBook pro running mavericks.
> 
> I have not installed Mavericks yet, nor tried to build Frameworks yet.
> I will forward your query to the kde-mac mailing list and see if one
> of our KDE/MacPorts developers can answer it.  Brad?  Nicos?
> 
> Maybe you can help them too, Allen.  MacPorts is at an early stage
> with porting Qt5 and KF5 IIUC.
> 
> Frameworks is aka KF5 (the 5th generation of KDE software).  Allen is one
> of the longest-serving KDE guys https://community.kde.org/KDE_PIM/People
> I hope we can help him.  Please CC Allen in case he is not subscribed.
> 
> > One problem I encountered building karchive is the following:
> > [  5%] Building CXX object src/CMakeFiles/KF5Archive.dir/karchive.cpp.o
> > /data/kde/src/5/frameworks/karchive/src/karchive.cpp:231:19: error: use of \
> > undeclared identifier 'readlink' int len = readlink(encodedFileName.data(), \
> > s.data(), s.size() - 1); ^
> > 1 error generated.
> > 
> > seems that unistd.h isn't getting into  __DARWIN_C_LEVEL >= 200112L
> > conditional compile that declares readlink().
> > 
> > do you know what I'm doing wrong? or maybe there's a compile flag missing?
> > I tried adding -ansi but that didn't help.
> 
> Cheers, Ian W.
> 
> _______________________________________________
> kde-mac@kde.org
> List Information: https://mail.kde.org/mailman/listinfo/kde-mac
> KDE/Mac Information: \
> http://techbase.kde.org/index.php?title=Projects/KDE_on_Mac_OS_X


[Attachment #5 (unknown)]

<html><head><meta http-equiv="Content-Type" content="text/html \
charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: \
space; -webkit-line-break: after-white-space;">Hello,&nbsp;<br><br>I am afraid I do \
not any good answer on the spot. I never tried to build Frameworks either, would it \
be independently or through Macports.&nbsp;<br><br>The error also does not ring any \
bell. I encountered cases where it was necessary to add an explicit include to \
unistd.h to compile on Mac (but I can’t remember if it was for a KDE package or not), \
but no errors due to mismatching constants.&nbsp;<br><br>One thing though is that to \
my understanding the port is built independently. In the case of Macports for KDE4, \
we have a whole port group (kde4-1.1.tcl) to define constants and environment \
variables to build KDE packages somewhat properly. It may be useful to look at its \
definitions. The file can be seen online (instead of downloading the whole package) \
at:&nbsp;<a href="http://trac.macports.org/browser/trunk/dports/_resources/port1.0/gro \
up/kde4-1.1.tcl?rev=115590">http://trac.macports.org/browser/trunk/dports/_resources/p \
ort1.0/group/kde4-1.1.tcl?rev=115590</a>.&nbsp;<br><br>Cheers,&nbsp;<br><br>Nicolas<div><br><div \
style=""><div>On Apr18, 2014, at 11:43, Ian Wadham &lt;<a \
href="mailto:iandw.au@gmail.com">iandw.au@gmail.com</a>&gt; wrote:</div><br \
class="Apple-interchange-newline"><blockquote type="cite">Hello Allen and KDE/Mac \
guys,<br><br>On 18/04/2014, at 10:15 AM, Allen Winter wrote:<br><blockquote \
type="cite">I'm trying to build frameworks on my old MacBook pro running \
mavericks.<br></blockquote><br>I have not installed Mavericks yet, nor tried to build \
Frameworks yet.<br>I will forward your query to the kde-mac mailing list and see if \
one<br>of our KDE/MacPorts developers can answer it. &nbsp;Brad? \
&nbsp;Nicos?<br><br>Maybe you can help them too, Allen. &nbsp;MacPorts is at an early \
stage<br>with porting Qt5 and KF5 IIUC.<br><br>Frameworks is aka KF5 (the 5th \
generation of KDE software). &nbsp;Allen is one<br>of the longest-serving KDE guys <a \
href="https://community.kde.org/KDE_PIM/People">https://community.kde.org/KDE_PIM/People</a><br>I \
hope we can help him. &nbsp;Please CC Allen in case he is not \
subscribed.<br><br><blockquote type="cite">One problem I encountered building \
karchive is the following:<br>[ &nbsp;5%] Building CXX object \
src/CMakeFiles/KF5Archive.dir/karchive.cpp.o<br>/data/kde/src/5/frameworks/karchive/src/karchive.cpp:231:19: \
error: use of undeclared identifier 'readlink'<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int len = readlink(encodedFileName.data(), \
s.data(), s.size() - 1);<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^<br>1 \
error generated.<br><br>seems that unistd.h isn't getting into &nbsp;__DARWIN_C_LEVEL \
&gt;= 200112L<br>conditional compile that declares readlink().<br><br>do you know \
what I'm doing wrong? or maybe there's a compile flag missing?<br>I tried adding \
-ansi but that didn't help.<br></blockquote><br>Cheers, Ian \
W.<br><br>_______________________________________________<br><a \
href="mailto:kde-mac@kde.org">kde-mac@kde.org</a><br>List Information: \
https://mail.kde.org/mailman/listinfo/kde-mac<br>KDE/Mac Information: \
http://techbase.kde.org/index.php?title=Projects/KDE_on_Mac_OS_X<br></blockquote></div><br></div></body></html>




_______________________________________________
kde-mac@kde.org
List Information: https://mail.kde.org/mailman/listinfo/kde-mac
KDE/Mac Information: http://techbase.kde.org/index.php?title=Projects/KDE_on_Mac_OS_X

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic