Discussion:
Building Kdevelop 4.7.3 on Cygwin --Total success!!!!
Michael George Hart
2016-05-19 23:27:38 UTC
Permalink
This is how I got Kdevelop 4.7.3 seemly fully functional under the latest
version of Cygwin that I obtained about 3 weeks ago --for now, we will
forget about kdevelop 5.x until the default version of CygWin has the
correct version KF5

I offer no explanation at this time other than the fact this is what I had
to do to make kdevelop 4.7.3 work under CygWin;
Those people who are smart that me about this please fill in the gaps if
you can.

NOTE: during the build some file use “bcopy” and bzero which I replaced
with memset and memcpy. I did not note what file it was; however should you
get an error after following my process stated above, the source of the
errors will most likely bzero and bcopy

Good luck

*Building Kdev**platform* *1**.7.3*

*EDIT*
*view ~/Documents/4.7.3/kdevelop-4.7.3/kdevplatform-1.7.3/util/spinlock.h*
extern "C" int gettimeofday(struct timeval *tv, struct timezone *tz);

#define timersub(tvp, uvp, vvp)
\
do { \
(vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
(vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \
if ((vvp)->tv_usec < 0) { \
(vvp)->tv_sec--; \
(vvp)->tv_usec += 1000000; \
} \
} while (0)

*View **/usr/include/kde4/qtest_kde.h*
extern "C" int setenv(const char *name, const char *value, int overwrite);
extern "C" int unsetenv(const char *name)

*cmake **–D **KDE_HAVE_GCC_VISIBILITY=NO** ../*


*Building Kdevelop 4.7.3*

*Change in the following four file #include <QString> to #include
<qstring.h>*
view
~/Documents/4.7.3/kdevelop-4.7.3/debuggers/gdb/printers/tests/qstring.cpp
view
~/Documents/4.7.3/kdevelop-4.7.3/debuggers/gdb/printers/tests/qmapstring.cpp
view
~/Documents/4.7.3/kdevelop-4.7.3/debuggers/gdb/printers/tests/qlistcontainer.cpp
view
~/Documents/4.7.3/kdevelop-4.7.3/debuggers/gdb/printers/tests/qmapstringbool.cpp

*cmake **–D **KDE_HAVE_GCC_VISIBILITY=NO** ../*

*make **fails to build **and get some errors*; do the following edits

*This fil**e* *“*
*~/Documents/4.7.3/kdevelop-4.7.3/build/kdeintegration/kdeprovider/kdevkdeprovider_automoc.cpp*
*”** gets generated with multiple copies of **“**moc_kdeprojectsmodel.cpp*”
So edit
view
~/Documents/4.7.3/kdevelop-4.7.3/build/kdeintegration/kdeprovider/moc_kdeprojectsmodel.cpp
place the following as the very first two lines
#ifndef MEMEME
#define MEMEME
and #endif as the very last line

*make install*

*kbuildsycoca**4*

*kde4-config.exe --path data*
/home/u436735/.kde4/share/apps/:/usr/share/kde4/apps/
*cd **~/**.kde4/share/apps/*

*ln -s /usr/local/share/kde4/apps/* .*

You are done and ready to run kdevelop

All feedback or thoughts are welcome; for you can see I took the bruteforce
approach to get what I need. Something more elegant would be nice

Thanks again
Michael
--
*"...Hope is what makes us strong. It is why we are here. It is what we
fight with when all is lost..."*
Michael George Hart
2016-05-24 17:51:52 UTC
Permalink
Now to throw some bad news on my success.

KDE under cygwin is inherently unstable. Therefore Kdevelop 4.7.3 is also
unstable

I noticed this when I wanted to change the editors configuration on the
Kdevelop
This system Kdevelop simply locked up.

I even started the test kate and kwrite by starting their own menu for
editor configuration. ... kate consistently locked up.

I guess the day when KDE become stable under cygwin we will all happily be
able to use kdevelop

Later
On May 19, 2016 7:27 PM, "Michael George Hart" <
Post by Michael George Hart
This is how I got Kdevelop 4.7.3 seemly fully functional under the latest
version of Cygwin that I obtained about 3 weeks ago --for now, we will
forget about kdevelop 5.x until the default version of CygWin has the
correct version KF5
I offer no explanation at this time other than the fact this is what I had
to do to make kdevelop 4.7.3 work under CygWin;
Those people who are smart that me about this please fill in the gaps if
you can.
NOTE: during the build some file use “bcopy” and bzero which I replaced
with memset and memcpy. I did not note what file it was; however should you
get an error after following my process stated above, the source of the
errors will most likely bzero and bcopy
Good luck
*Building Kdev**platform* *1**.7.3*
*EDIT*
*view ~/Documents/4.7.3/kdevelop-4.7.3/kdevplatform-1.7.3/util/spinlock.h*
extern "C" int gettimeofday(struct timeval *tv, struct timezone *tz);
#define timersub(tvp, uvp,
vvp) \
do { \
(vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
(vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \
if ((vvp)->tv_usec < 0) { \
(vvp)->tv_sec--; \
(vvp)->tv_usec += 1000000; \
} \
} while (0)
*View **/usr/include/kde4/qtest_kde.h*
extern "C" int setenv(const char *name, const char *value, int overwrite);
extern "C" int unsetenv(const char *name)
*cmake **–D **KDE_HAVE_GCC_VISIBILITY=NO** ../*
*Building Kdevelop 4.7.3*
*Change in the following four file #include <QString> to #include
<qstring.h>*
view
~/Documents/4.7.3/kdevelop-4.7.3/debuggers/gdb/printers/tests/qstring.cpp
view
~/Documents/4.7.3/kdevelop-4.7.3/debuggers/gdb/printers/tests/qmapstring.cpp
view
~/Documents/4.7.3/kdevelop-4.7.3/debuggers/gdb/printers/tests/qlistcontainer.cpp
view
~/Documents/4.7.3/kdevelop-4.7.3/debuggers/gdb/printers/tests/qmapstringbool.cpp
*cmake **–D **KDE_HAVE_GCC_VISIBILITY=NO** ../*
*make **fails to build **and get some errors*; do the following edits
*This fil**e* *“*
*~/Documents/4.7.3/kdevelop-4.7.3/build/kdeintegration/kdeprovider/kdevkdeprovider_automoc.cpp*
*”** gets generated with multiple copies of **“**moc_kdeprojectsmodel.cpp*
”
So edit
view
~/Documents/4.7.3/kdevelop-4.7.3/build/kdeintegration/kdeprovider/moc_kdeprojectsmodel.cpp
place the following as the very first two lines
#ifndef MEMEME
#define MEMEME
and #endif as the very last line
*make install*
*kbuildsycoca**4*
*kde4-config.exe --path data*
/home/u436735/.kde4/share/apps/:/usr/share/kde4/apps/
*cd **~/**.kde4/share/apps/*
*ln -s /usr/local/share/kde4/apps/* .*
You are done and ready to run kdevelop
All feedback or thoughts are welcome; for you can see I took the
bruteforce approach to get what I need. Something more elegant would be nice
Thanks again
Michael
--
*"...Hope is what makes us strong. It is why we are here. It is what we
fight with when all is lost..."*
Kevin Funk
2016-05-24 18:09:59 UTC
Permalink
Post by Michael George Hart
Now to throw some bad news on my success.
KDE under cygwin is inherently unstable. Therefore Kdevelop 4.7.3 is also
unstable
Heya,

As I said before: I recommend trying KDevelop 5 (again). KDevelop 5 + its
dependent libraries (Qt5, KF5) have undergone *way* more testing under Windows
than the 4.x series had.

Can't help you a lot with KDevelop 4.x.

Cheers,
Kevin
Post by Michael George Hart
I noticed this when I wanted to change the editors configuration on the
Kdevelop
This system Kdevelop simply locked up.
I even started the test kate and kwrite by starting their own menu for
editor configuration. ... kate consistently locked up.
I guess the day when KDE become stable under cygwin we will all happily be
able to use kdevelop
Later
On May 19, 2016 7:27 PM, "Michael George Hart" <
Post by Michael George Hart
This is how I got Kdevelop 4.7.3 seemly fully functional under the latest
version of Cygwin that I obtained about 3 weeks ago --for now, we will
forget about kdevelop 5.x until the default version of CygWin has the
correct version KF5
I offer no explanation at this time other than the fact this is what I had
to do to make kdevelop 4.7.3 work under CygWin;
Those people who are smart that me about this please fill in the gaps if
you can.
NOTE: during the build some file use “bcopy” and bzero which I replaced
with memset and memcpy. I did not note what file it was; however should you
get an error after following my process stated above, the source of the
errors will most likely bzero and bcopy
Good luck
*Building Kdev**platform* *1**.7.3*
*EDIT*
*view ~/Documents/4.7.3/kdevelop-4.7.3/kdevplatform-1.7.3/util/spinlock.h*
extern "C" int gettimeofday(struct timeval *tv, struct timezone *tz);
#define timersub(tvp, uvp,
vvp) \
do { \
(vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
(vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \
if ((vvp)->tv_usec < 0) { \
(vvp)->tv_sec--; \
(vvp)->tv_usec += 1000000; \
} \
} while (0)
*View **/usr/include/kde4/qtest_kde.h*
extern "C" int setenv(const char *name, const char *value, int overwrite);
extern "C" int unsetenv(const char *name)
*cmake **–D **KDE_HAVE_GCC_VISIBILITY=NO** ../*
*Building Kdevelop 4.7.3*
*Change in the following four file #include <QString> to #include
<qstring.h>*
view
~/Documents/4.7.3/kdevelop-4.7.3/debuggers/gdb/printers/tests/qstring.cpp
view
~/Documents/4.7.3/kdevelop-4.7.3/debuggers/gdb/printers/tests/qmapstring.c
pp view
~/Documents/4.7.3/kdevelop-4.7.3/debuggers/gdb/printers/tests/qlistcontain
er.cpp view
~/Documents/4.7.3/kdevelop-4.7.3/debuggers/gdb/printers/tests/qmapstringbo
ol.cpp
*cmake **–D **KDE_HAVE_GCC_VISIBILITY=NO** ../*
*make **fails to build **and get some errors*; do the following edits
*This fil**e* *“*
*~/Documents/4.7.3/kdevelop-4.7.3/build/kdeintegration/kdeprovider/kdevkde
provider_automoc.cpp* *”** gets generated with multiple copies of
**“**moc_kdeprojectsmodel.cpp* ”
So edit
view
~/Documents/4.7.3/kdevelop-4.7.3/build/kdeintegration/kdeprovider/moc_kdep
rojectsmodel.cpp place the following as the very first two lines
#ifndef MEMEME
#define MEMEME
and #endif as the very last line
*make install*
*kbuildsycoca**4*
*kde4-config.exe --path data*
/home/u436735/.kde4/share/apps/:/usr/share/kde4/apps/
*cd **~/**.kde4/share/apps/*
*ln -s /usr/local/share/kde4/apps/* .*
You are done and ready to run kdevelop
All feedback or thoughts are welcome; for you can see I took the
bruteforce approach to get what I need. Something more elegant would be nice
Thanks again
Michael
--
*"...Hope is what makes us strong. It is why we are here. It is what we
fight with when all is lost..."*
--
Kevin Funk | ***@kde.org | http://kfunk.org
Michael George Hart
2016-05-24 18:19:10 UTC
Permalink
As I said before
This is a corporate Windows environment with no local admin rights on our
desktops with limited access to the internet.

Unless you guys can provide a self contained package that needs no access
to the internet the mrthod to get kdevelop 5 is pretty much useless to most
corporate developers wanting to us i
Post by Kevin Funk
Post by Michael George Hart
Now to throw some bad news on my success.
KDE under cygwin is inherently unstable. Therefore Kdevelop 4.7.3 is also
unstable
Heya,
As I said before: I recommend trying KDevelop 5 (again). KDevelop 5 + its
dependent libraries (Qt5, KF5) have undergone *way* more testing under Windows
than the 4.x series had.
Can't help you a lot with KDevelop 4.x.
Cheers,
Kevin
Post by Michael George Hart
I noticed this when I wanted to change the editors configuration on the
Kdevelop
This system Kdevelop simply locked up.
I even started the test kate and kwrite by starting their own menu for
editor configuration. ... kate consistently locked up.
I guess the day when KDE become stable under cygwin we will all happily
be
Post by Michael George Hart
able to use kdevelop
Later
On May 19, 2016 7:27 PM, "Michael George Hart" <
Post by Michael George Hart
This is how I got Kdevelop 4.7.3 seemly fully functional under the
latest
Post by Michael George Hart
Post by Michael George Hart
version of Cygwin that I obtained about 3 weeks ago --for now, we will
forget about kdevelop 5.x until the default version of CygWin has the
correct version KF5
I offer no explanation at this time other than the fact this is what I
had
Post by Michael George Hart
Post by Michael George Hart
to do to make kdevelop 4.7.3 work under CygWin;
Those people who are smart that me about this please fill in the gaps
if
Post by Michael George Hart
Post by Michael George Hart
you can.
NOTE: during the build some file use “bcopy” and bzero which I replaced
with memset and memcpy. I did not note what file it was; however should you
get an error after following my process stated above, the source of the
errors will most likely bzero and bcopy
Good luck
*Building Kdev**platform* *1**.7.3*
*EDIT*
*view
~/Documents/4.7.3/kdevelop-4.7.3/kdevplatform-1.7.3/util/spinlock.h*
Post by Michael George Hart
Post by Michael George Hart
extern "C" int gettimeofday(struct timeval *tv, struct timezone *tz);
#define timersub(tvp, uvp,
vvp) \
do {
\
Post by Michael George Hart
Post by Michael George Hart
(vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec;
\
Post by Michael George Hart
Post by Michael George Hart
(vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec;
\
Post by Michael George Hart
Post by Michael George Hart
if ((vvp)->tv_usec < 0) {
\
Post by Michael George Hart
Post by Michael George Hart
(vvp)->tv_sec--;
\
Post by Michael George Hart
Post by Michael George Hart
(vvp)->tv_usec += 1000000;
\
Post by Michael George Hart
Post by Michael George Hart
}
\
Post by Michael George Hart
Post by Michael George Hart
} while (0)
*View **/usr/include/kde4/qtest_kde.h*
extern "C" int setenv(const char *name, const char *value, int
overwrite);
Post by Michael George Hart
Post by Michael George Hart
extern "C" int unsetenv(const char *name)
*cmake **–D **KDE_HAVE_GCC_VISIBILITY=NO** ../*
*Building Kdevelop 4.7.3*
*Change in the following four file #include <QString> to #include
<qstring.h>*
view
~/Documents/4.7.3/kdevelop-4.7.3/debuggers/gdb/printers/tests/qstring.cpp
Post by Michael George Hart
Post by Michael George Hart
view
~/Documents/4.7.3/kdevelop-4.7.3/debuggers/gdb/printers/tests/qmapstring.c
Post by Michael George Hart
Post by Michael George Hart
pp view
~/Documents/4.7.3/kdevelop-4.7.3/debuggers/gdb/printers/tests/qlistcontain
Post by Michael George Hart
Post by Michael George Hart
er.cpp view
~/Documents/4.7.3/kdevelop-4.7.3/debuggers/gdb/printers/tests/qmapstringbo
Post by Michael George Hart
Post by Michael George Hart
ol.cpp
*cmake **–D **KDE_HAVE_GCC_VISIBILITY=NO** ../*
*make **fails to build **and get some errors*; do the following edits
*This fil**e* *“*
*~/Documents/4.7.3/kdevelop-4.7.3/build/kdeintegration/kdeprovider/kdevkde
Post by Michael George Hart
Post by Michael George Hart
provider_automoc.cpp* *”** gets generated with multiple copies of
**“**moc_kdeprojectsmodel.cpp* ”
So edit
view
~/Documents/4.7.3/kdevelop-4.7.3/build/kdeintegration/kdeprovider/moc_kdep
Post by Michael George Hart
Post by Michael George Hart
rojectsmodel.cpp place the following as the very first two lines
#ifndef MEMEME
#define MEMEME
and #endif as the very last line
*make install*
*kbuildsycoca**4*
*kde4-config.exe --path data*
/home/u436735/.kde4/share/apps/:/usr/share/kde4/apps/
*cd **~/**.kde4/share/apps/*
*ln -s /usr/local/share/kde4/apps/* .*
You are done and ready to run kdevelop
All feedback or thoughts are welcome; for you can see I took the
bruteforce approach to get what I need. Something more elegant would be nice
Thanks again
Michael
--
*"...Hope is what makes us strong. It is why we are here. It is what we
fight with when all is lost..."*
--
René J.V. Bertin
2016-05-24 19:08:59 UTC
Permalink
Post by Michael George Hart
This is a corporate Windows environment with no local admin rights on our
desktops with limited access to the internet.
You can apparently use thumb or other external drives?
Those will be accessible via /cygdrive/X (where X is the drive letter) under Cygwin.
IIRC you can even start a Cygwin session from an external drive meaning you could do your build at home.
Post by Michael George Hart
Unless you guys can provide a self contained package that needs no access
to the internet the mrthod to get kdevelop 5 is pretty much useless to most
corporate developers wanting to us i
But Kevin does provide a self-contained installer for KDevelop5/MSWin. Probably not for Cygwin, but the nice thing with that environment is that you can put its /usr/bin directory in the MSWin PATH and call the executables "as usual" from outside Cygwin.

R
Kevin Funk
2016-05-24 22:09:23 UTC
Permalink
Post by Kevin Funk
As I said before
This is a corporate Windows environment with no local admin rights on our
desktops with limited access to the internet.
Unless you guys can provide a self contained package that needs no access
to the internet the mrthod to get kdevelop 5 is pretty much useless to most
corporate developers wanting to us i
FTR:

I've zipped up my KDevelop installation folder -- which works just fine on
another machine I have access to.

Please try:
http://krf.kollide.net/files/work/kdevelop/KDevelop-x64-setup-5.0-20160502.7z

Unpack, run bin\kdevelop.exe.

Please report back!

Note: You might need to install the MSVC2015 VC runtime yourself

Cheers,
Kevin
Post by Kevin Funk
Post by Kevin Funk
Post by Michael George Hart
Now to throw some bad news on my success.
KDE under cygwin is inherently unstable. Therefore Kdevelop 4.7.3 is also
unstable
Heya,
As I said before: I recommend trying KDevelop 5 (again). KDevelop 5 + its
dependent libraries (Qt5, KF5) have undergone *way* more testing under Windows
than the 4.x series had.
Can't help you a lot with KDevelop 4.x.
Cheers,
Kevin
Post by Michael George Hart
I noticed this when I wanted to change the editors configuration on the
Kdevelop
This system Kdevelop simply locked up.
I even started the test kate and kwrite by starting their own menu for
editor configuration. ... kate consistently locked up.
I guess the day when KDE become stable under cygwin we will all happily
be
Post by Michael George Hart
able to use kdevelop
Later
On May 19, 2016 7:27 PM, "Michael George Hart" <
Post by Michael George Hart
This is how I got Kdevelop 4.7.3 seemly fully functional under the
latest
Post by Michael George Hart
Post by Michael George Hart
version of Cygwin that I obtained about 3 weeks ago --for now, we will
forget about kdevelop 5.x until the default version of CygWin has the
correct version KF5
I offer no explanation at this time other than the fact this is what I
had
Post by Michael George Hart
Post by Michael George Hart
to do to make kdevelop 4.7.3 work under CygWin;
Those people who are smart that me about this please fill in the gaps
if
Post by Michael George Hart
Post by Michael George Hart
you can.
NOTE: during the build some file use “bcopy” and bzero which I
replaced
with memset and memcpy. I did not note what file it was; however
should
you
get an error after following my process stated above, the source of the
errors will most likely bzero and bcopy
Good luck
*Building Kdev**platform* *1**.7.3*
*EDIT*
*view
~/Documents/4.7.3/kdevelop-4.7.3/kdevplatform-1.7.3/util/spinlock.h*
Post by Michael George Hart
Post by Michael George Hart
extern "C" int gettimeofday(struct timeval *tv, struct timezone *tz);
#define timersub(tvp, uvp,
vvp) \
do {
\
Post by Michael George Hart
Post by Michael George Hart
(vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec;
\
Post by Michael George Hart
Post by Michael George Hart
(vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec;
\
Post by Michael George Hart
Post by Michael George Hart
if ((vvp)->tv_usec < 0) {
\
Post by Michael George Hart
Post by Michael George Hart
(vvp)->tv_sec--;
\
Post by Michael George Hart
Post by Michael George Hart
(vvp)->tv_usec += 1000000;
\
Post by Michael George Hart
Post by Michael George Hart
}
\
Post by Michael George Hart
Post by Michael George Hart
} while (0)
*View **/usr/include/kde4/qtest_kde.h*
extern "C" int setenv(const char *name, const char *value, int
overwrite);
Post by Michael George Hart
Post by Michael George Hart
extern "C" int unsetenv(const char *name)
*cmake **–D **KDE_HAVE_GCC_VISIBILITY=NO** ../*
*Building Kdevelop 4.7.3*
*Change in the following four file #include <QString> to #include
<qstring.h>*
view
~/Documents/4.7.3/kdevelop-4.7.3/debuggers/gdb/printers/tests/qstring.cpp
Post by Michael George Hart
Post by Michael George Hart
view
~/Documents/4.7.3/kdevelop-4.7.3/debuggers/gdb/printers/tests/qmapstring.c
Post by Michael George Hart
Post by Michael George Hart
pp view
~/Documents/4.7.3/kdevelop-4.7.3/debuggers/gdb/printers/tests/qlistcontain
Post by Michael George Hart
Post by Michael George Hart
er.cpp view
~/Documents/4.7.3/kdevelop-4.7.3/debuggers/gdb/printers/tests/qmapstringbo
Post by Michael George Hart
Post by Michael George Hart
ol.cpp
*cmake **–D **KDE_HAVE_GCC_VISIBILITY=NO** ../*
*make **fails to build **and get some errors*; do the following edits
*This fil**e* *“*
*~/Documents/4.7.3/kdevelop-4.7.3/build/kdeintegration/kdeprovider/kdevkde
Post by Michael George Hart
Post by Michael George Hart
provider_automoc.cpp* *”** gets generated with multiple copies of
**“**moc_kdeprojectsmodel.cpp* ”
So edit
view
~/Documents/4.7.3/kdevelop-4.7.3/build/kdeintegration/kdeprovider/moc_kdep
Post by Michael George Hart
Post by Michael George Hart
rojectsmodel.cpp place the following as the very first two lines
#ifndef MEMEME
#define MEMEME
and #endif as the very last line
*make install*
*kbuildsycoca**4*
*kde4-config.exe --path data*
/home/u436735/.kde4/share/apps/:/usr/share/kde4/apps/
*cd **~/**.kde4/share/apps/*
*ln -s /usr/local/share/kde4/apps/* .*
You are done and ready to run kdevelop
All feedback or thoughts are welcome; for you can see I took the
bruteforce approach to get what I need. Something more elegant would
be
nice
Thanks again
Michael
--
*"...Hope is what makes us strong. It is why we are here. It is what we
fight with when all is lost..."*
--
--
Kevin Funk | ***@kde.org | http://kfunk.org
Loading...