<p dir="ltr">Unfortunately emerge requires access to an gtihub external to the company I work for. <br>
So the standard method described in the emerge does not seem to work properly for me.</p>
<p dir="ltr">Do you have any recommendations to resolve that problem for people like myself who cannot access company external repositories via git or svn although in this particular case I can get a zip of the emerge master</p>
<div class="gmail_quote">On May 9, 2016 2:38 AM, "Kevin Funk" <<a href="mailto:kfunk@kde.org">kfunk@kde.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sunday, May 8, 2016 12:10:17 PM CEST Michael George Hart wrote:<br>
> I have gotten the latest version of cygwin and been attempting to build the<br>
> latest version of kdevelop 4.7.x<br>
<br>
Heya,<br>
<br>
Please try this with KDevelop 5.0 branch (check out kdevplatform.git 5.0<br>
branch, kdevelop.git 5.0 branch).<br>
<br>
We've spent tons of time streamlining KDevelop for Windows on 5.0 -- we didn't<br>
do this for 4.7. And we won't spend time on doing so for 4.7.<br>
<br>
When compiling KDevelop 5, you'll have to compile all of KF5, too, thus I<br>
recommend to use Emerge, a package manager-like user tool for building from<br>
source:<br>
  <a href="https://techbase.kde.org/Getting_Started/Build/Windows/emerge" rel="noreferrer" target="_blank">https://techbase.kde.org/Getting_Started/Build/Windows/emerge</a><br>
<br>
Hope that helps,<br>
Kevin<br>
<br>
> I managed to figure that the following get me pretty far, the 53% build<br>
> marker for<br>
> KDevPlatform:<br>
><br>
>      cmake -DCMAKE_INSTALL_PREFIX=/usr/local/kdevelop4<br>
> -D__KDE_HAVE_GCC_VISIBILITY=NO ../<br>
>      make<br>
><br>
> Has anyone successfully build kdevelop 4.7.x under cygwin; I have the<br>
> latest download of cygwin with gcc 5.3<br>
><br>
> I get the following compile errors that would indicate that the cygwin is<br>
> neither POSIX or BSD, (which seems strange since I am able to run a number<br>
> of KDE application under cygwin X KDE windows openbox)<br>
><br>
> gettimeofday, timersub (see <a href="http://linux.die.net/man/3/timersub" rel="noreferrer" target="_blank">http://linux.die.net/man/3/timersub</a>).<br>
><br>
> Setting -fpermissive does not stop the error as implied by the generated<br>
> error message above<br>
><br>
> The multiple parameter version of setenv does not seem to be availability<br>
> under cygwin<br>
> int setenv(const char *name, const char *value, int overwrite);<br>
><br>
> As the setenv documentation says<br>
> "_POSIX_C_SOURCE >= 200112L<br>
><br>
>                || /* Glibc versions <= 2.19: */ _BSD_SOURCE"<br>
><br>
> (See <a href="http://man7.org/linux/man-pages/man3/setenv.3.html" rel="noreferrer" target="_blank">http://man7.org/linux/man-pages/man3/setenv.3.html</a>)<br>
><br>
> My work environment limits me to what I can do on the windows; no admin<br>
> rights. However  we are allowed to install the latest version of cygwin,<br>
> which happens to have gcc 5.3 compiler and install or build from source<br>
> what ever we happen to be able to down from zip, tar files etc.<br>
><br>
> I really would like to continue working in a Linux like environment<br>
><br>
> Thanks for listening and any help that maybe available<br>
> Michael<br>
><br>
> /home/u43/Documents/kdevelop/kdevplatform-1.7.3/util/spinlock.h:70:43:<br>
> error: there are no arguments to ‘gettimeofday’ that depend on a template<br>
> parameter, so a declaration of ‘gettimeofday’ must be available<br>
> [-fpermissive]<br>
>                  gettimeofday(&startTime, 0);<br>
>                                            ^<br>
> /home/u43/Documents/kdevelop/kdevplatform-1.7.3/util/spinlock.h:70:43:<br>
> note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing<br>
> the use of an undeclared name is deprecated)<br>
><br>
> /home/u43/Documents/kdevelop/kdevplatform-1.7.3/util/spinlock.h:75:49:<br>
> error: there are no arguments to ‘gettimeofday’ that depend on a template<br>
> parameter, so a declaration of ‘gettimeofday’ must be available<br>
> [-fpermissive]<br>
>                      gettimeofday(&currentTime, 0);<br>
>                                                  ^<br>
> /home/u43/Documents/kdevelop/kdevplatform-1.7.3/util/spinlock.h:77:63:<br>
> error: there are no arguments to ‘timersub’ that depend on a template<br>
> parameter, so a declaration of ‘timersub’ must be available [-fpermissive]<br>
>                      timersub(&currentTime, &startTime, &waited);<br>
>                                                                ^<br>
> /home/u43/Documents/kdevelop/kdevplatform-1.7.3/util/spinlock.h: In<br>
> instantiation of ‘KDevelop::SpinLock<mSleep,<br>
> mTimeout>::SpinLock(KDevelop::SpinLockData&) [with unsigned int mSleep =<br>
> 10u; int mTimeout = 0]’:<br>
> /home/u43/Documents/kdevelop/kdevplatform-1.7.3/language/duchain/referenceco<br>
> unting.h:63:36: required from here<br>
> /home/u43/Documents/kdevelop/kdevplatform-1.7.3/util/spinlock.h:70:29:<br>
> error: ‘gettimeofday’ was not declared in this scope<br>
>                  gettimeofday(&startTime, 0);<br>
>                              ^<br>
> /home/u43/Documents/kdevelop/kdevplatform-1.7.3/util/spinlock.h:75:33:<br>
> error: ‘gettimeofday’ was not declared in this scope, and no declarations<br>
> were found by argument-dependent lookup at the point of instantiation<br>
> [-fpermissive]<br>
>                      gettimeofday(&currentTime, 0);<br>
>                                  ^<br>
> /home/u43/Documents/kdevelop/kdevplatform-1.7.3/util/spinlock.h:70:29:<br>
> note: ‘gettimeofday’ declared here, later in the translation unit<br>
>                  gettimeofday(&startTime, 0);<br>
>                              ^<br>
> /home/u43/Documents/kdevelop/kdevplatform-1.7.3/util/spinlock.h:77:29:<br>
> error: ‘timersub’ was not declared in this scope<br>
>                      timersub(&currentTime, &startTime, &waited);<br>
><br>
><br>
> /usr/include/kde4/qtest_kde.h:73:28: error: ‘setenv’ was not declared in<br>
> this scope<br>
>      setenv("LC_ALL", "C", 1); \<br>
>                             ^<br>
> /usr/include/kde4/qtest_kde.h:106:42: note: in expansion of macro<br>
> ‘QTEST_KDEMAIN_WITH_COMPONENTNAME’<br>
> #define QTEST_KDEMAIN(TestObject, flags)<br>
> QTEST_KDEMAIN_WITH_COMPONENTNAME(TestObject, flags, "qttest")<br>
>                                           ^<br>
> /home/u43/Documents/kdevelop/kdevplatform-1.7.3/sublime/tests/areaoperationt<br>
> est.cpp:728:1: note: in expansion of macro ‘QTEST_KDEMAIN’<br>
> QTEST_KDEMAIN(AreaOperationTest, GUI)<br>
> ^<br>
> /usr/include/kde4/qtest_kde.h:79:31: error: ‘unsetenv’ was not declared in<br>
> this scope<br>
>      unsetenv("KDE_COLOR_DEBUG"); \<br>
<br>
<br>
--<br>
Kevin Funk | <a href="mailto:kfunk@kde.org">kfunk@kde.org</a> | <a href="http://kfunk.org" rel="noreferrer" target="_blank">http://kfunk.org</a></blockquote></div>