<p dir="ltr"> I have gotten the latest version of cygwin and been attempting to build the latest version of kdevelop 4.7.x</p>
<p dir="ltr">I managed to figure that the following get me pretty far, the 53% build marker for <br>
KDevPlatform:<br>
<br>
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/kdevelop4 -D__KDE_HAVE_GCC_VISIBILITY=NO ../<br>
make<br>
<br>
Has anyone successfully build kdevelop 4.7.x under cygwin; I have the latest download of cygwin with gcc 5.3</p>
<p dir="ltr">I get the following compile errors that would indicate that the cygwin is neither POSIX or BSD, (which seems strange since I am able to run a number of KDE application under cygwin X KDE windows openbox)</p>
<p dir="ltr">gettimeofday, timersub (see <a href="http://linux.die.net/man/3/timersub">http://linux.die.net/man/3/timersub</a>).</p>
<p dir="ltr">Setting -fpermissive does not stop the error as implied by the generated error message above</p>
<p dir="ltr">The multiple parameter version of setenv does not seem to be availability under cygwin <br>
int setenv(const char *name, const char *value, int overwrite);</p>
<p dir="ltr">As the setenv documentation says <br>
"_POSIX_C_SOURCE >= 200112L<br>
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE"<br>
(See <a href="http://man7.org/linux/man-pages/man3/setenv.3.html">http://man7.org/linux/man-pages/man3/setenv.3.html</a>)</p>
<p dir="ltr">My work environment limits me to what I can do on the windows; no admin rights. However we are allowed to install the latest version of cygwin, which happens to have gcc 5.3 compiler and install or build from source what ever we happen to be able to down from zip, tar files etc.</p>
<p dir="ltr">I really would like to continue working in a Linux like environment </p>
<p dir="ltr">Thanks for listening and any help that maybe available <br>
Michael</p>
<p dir="ltr">/home/u43/Documents/kdevelop/kdevplatform-1.7.3/util/spinlock.h:70:43: error: there are no arguments to ‘gettimeofday’ that depend on a template parameter, so a declaration of ‘gettimeofday’ must be available [-fpermissive]<br>
gettimeofday(&startTime, 0);<br>
^<br>
/home/u43/Documents/kdevelop/kdevplatform-1.7.3/util/spinlock.h:70:43: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)</p>
<p dir="ltr">/home/u43/Documents/kdevelop/kdevplatform-1.7.3/util/spinlock.h:75:49: error: there are no arguments to ‘gettimeofday’ that depend on a template parameter, so a declaration of ‘gettimeofday’ must be available [-fpermissive]<br>
gettimeofday(¤tTime, 0);<br>
^<br>
/home/u43/Documents/kdevelop/kdevplatform-1.7.3/util/spinlock.h:77:63: error: there are no arguments to ‘timersub’ that depend on a template parameter, so a declaration of ‘timersub’ must be available [-fpermissive]<br>
timersub(¤tTime, &startTime, &waited);<br>
^<br>
/home/u43/Documents/kdevelop/kdevplatform-1.7.3/util/spinlock.h: In instantiation of ‘KDevelop::SpinLock<mSleep, mTimeout>::SpinLock(KDevelop::SpinLockData&) [with unsigned int mSleep = 10u; int mTimeout = 0]’:<br>
/home/u43/Documents/kdevelop/kdevplatform-1.7.3/language/duchain/referencecounting.h:63:36: required from here<br>
/home/u43/Documents/kdevelop/kdevplatform-1.7.3/util/spinlock.h:70:29: 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: error: ‘gettimeofday’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]<br>
gettimeofday(¤tTime, 0);<br>
^<br>
/home/u43/Documents/kdevelop/kdevplatform-1.7.3/util/spinlock.h:70:29: 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: error: ‘timersub’ was not declared in this scope<br>
timersub(¤tTime, &startTime, &waited);<br>
<br>
<br>
/usr/include/kde4/qtest_kde.h:73:28: error: ‘setenv’ was not declared in this scope<br>
setenv("LC_ALL", "C", 1); \<br>
^<br>
/usr/include/kde4/qtest_kde.h:106:42: note: in expansion of macro ‘QTEST_KDEMAIN_WITH_COMPONENTNAME’<br>
#define QTEST_KDEMAIN(TestObject, flags) QTEST_KDEMAIN_WITH_COMPONENTNAME(TestObject, flags, "qttest")<br>
^<br>
/home/u43/Documents/kdevelop/kdevplatform-1.7.3/sublime/tests/areaoperationtest.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 this scope<br>
unsetenv("KDE_COLOR_DEBUG"); \<br>
<br>
</p>