Discussion:
Latest version of cygwin; Building kdevelop 4.7.x
Michael George Hart
2016-05-08 16:10:17 UTC
Permalink
I have gotten the latest version of cygwin and been attempting to build the
latest version of kdevelop 4.7.x

I managed to figure that the following get me pretty far, the 53% build
marker for
KDevPlatform:

cmake -DCMAKE_INSTALL_PREFIX=/usr/local/kdevelop4
-D__KDE_HAVE_GCC_VISIBILITY=NO ../
make

Has anyone successfully build kdevelop 4.7.x under cygwin; I have the
latest download of cygwin with gcc 5.3

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)

gettimeofday, timersub (see http://linux.die.net/man/3/timersub).

Setting -fpermissive does not stop the error as implied by the generated
error message above

The multiple parameter version of setenv does not seem to be availability
under cygwin
int setenv(const char *name, const char *value, int overwrite);

As the setenv documentation says
"_POSIX_C_SOURCE >= 200112L
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE"
(See http://man7.org/linux/man-pages/man3/setenv.3.html)

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.

I really would like to continue working in a Linux like environment

Thanks for listening and any help that maybe available
Michael

/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]
gettimeofday(&startTime, 0);
^
/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)

/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]
gettimeofday(&currentTime, 0);
^
/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]
timersub(&currentTime, &startTime, &waited);
^
/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]’:
/home/u43/Documents/kdevelop/kdevplatform-1.7.3/language/duchain/referencecounting.h:63:36:
required from here
/home/u43/Documents/kdevelop/kdevplatform-1.7.3/util/spinlock.h:70:29:
error: ‘gettimeofday’ was not declared in this scope
gettimeofday(&startTime, 0);
^
/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]
gettimeofday(&currentTime, 0);
^
/home/u43/Documents/kdevelop/kdevplatform-1.7.3/util/spinlock.h:70:29:
note: ‘gettimeofday’ declared here, later in the translation unit
gettimeofday(&startTime, 0);
^
/home/u43/Documents/kdevelop/kdevplatform-1.7.3/util/spinlock.h:77:29:
error: ‘timersub’ was not declared in this scope
timersub(&currentTime, &startTime, &waited);


/usr/include/kde4/qtest_kde.h:73:28: error: ‘setenv’ was not declared in
this scope
setenv("LC_ALL", "C", 1); \
^
/usr/include/kde4/qtest_kde.h:106:42: note: in expansion of macro
‘QTEST_KDEMAIN_WITH_COMPONENTNAME’
#define QTEST_KDEMAIN(TestObject, flags)
QTEST_KDEMAIN_WITH_COMPONENTNAME(TestObject, flags, "qttest")
^
/home/u43/Documents/kdevelop/kdevplatform-1.7.3/sublime/tests/areaoperationtest.cpp:728:1:
note: in expansion of macro ‘QTEST_KDEMAIN’
QTEST_KDEMAIN(AreaOperationTest, GUI)
^
/usr/include/kde4/qtest_kde.h:79:31: error: ‘unsetenv’ was not declared in
this scope
unsetenv("KDE_COLOR_DEBUG"); \
Kevin Funk
2016-05-09 06:38:34 UTC
Permalink
Post by Michael George Hart
I have gotten the latest version of cygwin and been attempting to build the
latest version of kdevelop 4.7.x
Heya,

Please try this with KDevelop 5.0 branch (check out kdevplatform.git 5.0
branch, kdevelop.git 5.0 branch).

We've spent tons of time streamlining KDevelop for Windows on 5.0 -- we didn't
do this for 4.7. And we won't spend time on doing so for 4.7.

When compiling KDevelop 5, you'll have to compile all of KF5, too, thus I
recommend to use Emerge, a package manager-like user tool for building from
source:
https://techbase.kde.org/Getting_Started/Build/Windows/emerge

Hope that helps,
Kevin
Post by Michael George Hart
I managed to figure that the following get me pretty far, the 53% build
marker for
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/kdevelop4
-D__KDE_HAVE_GCC_VISIBILITY=NO ../
make
Has anyone successfully build kdevelop 4.7.x under cygwin; I have the
latest download of cygwin with gcc 5.3
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)
gettimeofday, timersub (see http://linux.die.net/man/3/timersub).
Setting -fpermissive does not stop the error as implied by the generated
error message above
The multiple parameter version of setenv does not seem to be availability
under cygwin
int setenv(const char *name, const char *value, int overwrite);
As the setenv documentation says
"_POSIX_C_SOURCE >= 200112L
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE"
(See http://man7.org/linux/man-pages/man3/setenv.3.html)
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.
I really would like to continue working in a Linux like environment
Thanks for listening and any help that maybe available
Michael
error: there are no arguments to ‘gettimeofday’ that depend on a template
parameter, so a declaration of ‘gettimeofday’ must be available
[-fpermissive]
gettimeofday(&startTime, 0);
^
note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing
the use of an undeclared name is deprecated)
error: there are no arguments to ‘gettimeofday’ that depend on a template
parameter, so a declaration of ‘gettimeofday’ must be available
[-fpermissive]
gettimeofday(&currentTime, 0);
^
error: there are no arguments to ‘timersub’ that depend on a template
parameter, so a declaration of ‘timersub’ must be available [-fpermissive]
timersub(&currentTime, &startTime, &waited);
^
/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 =
/home/u43/Documents/kdevelop/kdevplatform-1.7.3/language/duchain/referenceco
unting.h:63:36: required from here
error: ‘gettimeofday’ was not declared in this scope
gettimeofday(&startTime, 0);
^
error: ‘gettimeofday’ was not declared in this scope, and no declarations
were found by argument-dependent lookup at the point of instantiation
[-fpermissive]
gettimeofday(&currentTime, 0);
^
note: ‘gettimeofday’ declared here, later in the translation unit
gettimeofday(&startTime, 0);
^
error: ‘timersub’ was not declared in this scope
timersub(&currentTime, &startTime, &waited);
/usr/include/kde4/qtest_kde.h:73:28: error: ‘setenv’ was not declared in
this scope
setenv("LC_ALL", "C", 1); \
^
/usr/include/kde4/qtest_kde.h:106:42: note: in expansion of macro
‘QTEST_KDEMAIN_WITH_COMPONENTNAME’
#define QTEST_KDEMAIN(TestObject, flags)
QTEST_KDEMAIN_WITH_COMPONENTNAME(TestObject, flags, "qttest")
^
/home/u43/Documents/kdevelop/kdevplatform-1.7.3/sublime/tests/areaoperationt
est.cpp:728:1: note: in expansion of macro ‘QTEST_KDEMAIN’
QTEST_KDEMAIN(AreaOperationTest, GUI)
^
/usr/include/kde4/qtest_kde.h:79:31: error: ‘unsetenv’ was not declared in
this scope
unsetenv("KDE_COLOR_DEBUG"); \
--
Kevin Funk | ***@kde.org | http://kfunk.org
Michael George Hart
2016-05-09 12:50:58 UTC
Permalink
Unfortunately emerge requires access to an gtihub external to the company I
work for.
So the standard method described in the emerge does not seem to work
properly for me.

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
Post by Kevin Funk
Post by Michael George Hart
I have gotten the latest version of cygwin and been attempting to build
the
Post by Michael George Hart
latest version of kdevelop 4.7.x
Heya,
Please try this with KDevelop 5.0 branch (check out kdevplatform.git 5.0
branch, kdevelop.git 5.0 branch).
We've spent tons of time streamlining KDevelop for Windows on 5.0 -- we didn't
do this for 4.7. And we won't spend time on doing so for 4.7.
When compiling KDevelop 5, you'll have to compile all of KF5, too, thus I
recommend to use Emerge, a package manager-like user tool for building from
https://techbase.kde.org/Getting_Started/Build/Windows/emerge
Hope that helps,
Kevin
Post by Michael George Hart
I managed to figure that the following get me pretty far, the 53% build
marker for
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/kdevelop4
-D__KDE_HAVE_GCC_VISIBILITY=NO ../
make
Has anyone successfully build kdevelop 4.7.x under cygwin; I have the
latest download of cygwin with gcc 5.3
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
Post by Michael George Hart
of KDE application under cygwin X KDE windows openbox)
gettimeofday, timersub (see http://linux.die.net/man/3/timersub).
Setting -fpermissive does not stop the error as implied by the generated
error message above
The multiple parameter version of setenv does not seem to be availability
under cygwin
int setenv(const char *name, const char *value, int overwrite);
As the setenv documentation says
"_POSIX_C_SOURCE >= 200112L
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE"
(See http://man7.org/linux/man-pages/man3/setenv.3.html)
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.
I really would like to continue working in a Linux like environment
Thanks for listening and any help that maybe available
Michael
error: there are no arguments to ‘gettimeofday’ that depend on a template
parameter, so a declaration of ‘gettimeofday’ must be available
[-fpermissive]
gettimeofday(&startTime, 0);
^
note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing
the use of an undeclared name is deprecated)
error: there are no arguments to ‘gettimeofday’ that depend on a template
parameter, so a declaration of ‘gettimeofday’ must be available
[-fpermissive]
gettimeofday(&currentTime, 0);
^
error: there are no arguments to ‘timersub’ that depend on a template
parameter, so a declaration of ‘timersub’ must be available
[-fpermissive]
Post by Michael George Hart
timersub(&currentTime, &startTime, &waited);
^
/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 =
/home/u43/Documents/kdevelop/kdevplatform-1.7.3/language/duchain/referenceco
Post by Michael George Hart
unting.h:63:36: required from here
error: ‘gettimeofday’ was not declared in this scope
gettimeofday(&startTime, 0);
^
error: ‘gettimeofday’ was not declared in this scope, and no declarations
were found by argument-dependent lookup at the point of instantiation
[-fpermissive]
gettimeofday(&currentTime, 0);
^
note: ‘gettimeofday’ declared here, later in the translation unit
gettimeofday(&startTime, 0);
^
error: ‘timersub’ was not declared in this scope
timersub(&currentTime, &startTime, &waited);
/usr/include/kde4/qtest_kde.h:73:28: error: ‘setenv’ was not declared in
this scope
setenv("LC_ALL", "C", 1); \
^
/usr/include/kde4/qtest_kde.h:106:42: note: in expansion of macro
‘QTEST_KDEMAIN_WITH_COMPONENTNAME’
#define QTEST_KDEMAIN(TestObject, flags)
QTEST_KDEMAIN_WITH_COMPONENTNAME(TestObject, flags, "qttest")
^
/home/u43/Documents/kdevelop/kdevplatform-1.7.3/sublime/tests/areaoperationt
Post by Michael George Hart
est.cpp:728:1: note: in expansion of macro ‘QTEST_KDEMAIN’
QTEST_KDEMAIN(AreaOperationTest, GUI)
^
/usr/include/kde4/qtest_kde.h:79:31: error: ‘unsetenv’ was not declared
in
Post by Michael George Hart
this scope
unsetenv("KDE_COLOR_DEBUG"); \
--
Kevin Funk
2016-05-09 13:00:46 UTC
Permalink
Post by Michael George Hart
Unfortunately emerge requires access to an gtihub external to the company I
work for.
You mean just 'git', right? Not 'github'.
Post by Michael George Hart
So the standard method described in the emerge does not seem to work
properly for me.
Ok.
Post by Michael George Hart
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
I don't think that's easy to achieve. Emerge is a development tool after all,
it inherently requires you to have some control about your environment
(administrator rights, network access to Git, etc.).

FYI, if it helps, there's an installer for KDevelop 5 on Windows these days,
which you might want to try as well:
http://comments.gmane.org/gmane.comp.kde.devel.kdevelop/43599

Or is there any particular reason you need to compile KDevelop from source?

Cheers,
Kevin
Post by Michael George Hart
Post by Kevin Funk
Post by Michael George Hart
I have gotten the latest version of cygwin and been attempting to build
the
Post by Michael George Hart
latest version of kdevelop 4.7.x
Heya,
Please try this with KDevelop 5.0 branch (check out kdevplatform.git 5.0
branch, kdevelop.git 5.0 branch).
We've spent tons of time streamlining KDevelop for Windows on 5.0 -- we didn't
do this for 4.7. And we won't spend time on doing so for 4.7.
When compiling KDevelop 5, you'll have to compile all of KF5, too, thus I
recommend to use Emerge, a package manager-like user tool for building from
https://techbase.kde.org/Getting_Started/Build/Windows/emerge
Hope that helps,
Kevin
Post by Michael George Hart
I managed to figure that the following get me pretty far, the 53% build
marker for
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/kdevelop4
-D__KDE_HAVE_GCC_VISIBILITY=NO ../
make
Has anyone successfully build kdevelop 4.7.x under cygwin; I have the
latest download of cygwin with gcc 5.3
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
Post by Michael George Hart
of KDE application under cygwin X KDE windows openbox)
gettimeofday, timersub (see http://linux.die.net/man/3/timersub).
Setting -fpermissive does not stop the error as implied by the generated
error message above
The multiple parameter version of setenv does not seem to be availability
under cygwin
int setenv(const char *name, const char *value, int overwrite);
As the setenv documentation says
"_POSIX_C_SOURCE >= 200112L
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE"
(See http://man7.org/linux/man-pages/man3/setenv.3.html)
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.
I really would like to continue working in a Linux like environment
Thanks for listening and any help that maybe available
Michael
error: there are no arguments to ‘gettimeofday’ that depend on a template
parameter, so a declaration of ‘gettimeofday’ must be available
[-fpermissive]
gettimeofday(&startTime, 0);
^
note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing
the use of an undeclared name is deprecated)
error: there are no arguments to ‘gettimeofday’ that depend on a template
parameter, so a declaration of ‘gettimeofday’ must be available
[-fpermissive]
gettimeofday(&currentTime, 0);
^
error: there are no arguments to ‘timersub’ that depend on a template
parameter, so a declaration of ‘timersub’ must be available
[-fpermissive]
Post by Michael George Hart
timersub(&currentTime, &startTime, &waited);
^
/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 =
/home/u43/Documents/kdevelop/kdevplatform-1.7.3/language/duchain/reference
co>
Post by Michael George Hart
unting.h:63:36: required from here
error: ‘gettimeofday’ was not declared in this scope
gettimeofday(&startTime, 0);
^
error: ‘gettimeofday’ was not declared in this scope, and no declarations
were found by argument-dependent lookup at the point of instantiation
[-fpermissive]
gettimeofday(&currentTime, 0);
^
note: ‘gettimeofday’ declared here, later in the translation unit
gettimeofday(&startTime, 0);
^
error: ‘timersub’ was not declared in this scope
timersub(&currentTime, &startTime, &waited);
/usr/include/kde4/qtest_kde.h:73:28: error: ‘setenv’ was not declared in
this scope
setenv("LC_ALL", "C", 1); \
^
/usr/include/kde4/qtest_kde.h:106:42: note: in expansion of macro
‘QTEST_KDEMAIN_WITH_COMPONENTNAME’
#define QTEST_KDEMAIN(TestObject, flags)
QTEST_KDEMAIN_WITH_COMPONENTNAME(TestObject, flags, "qttest")
^
/home/u43/Documents/kdevelop/kdevplatform-1.7.3/sublime/tests/areaoperatio
nt>
Post by Michael George Hart
est.cpp:728:1: note: in expansion of macro ‘QTEST_KDEMAIN’
QTEST_KDEMAIN(AreaOperationTest, GUI)
^
/usr/include/kde4/qtest_kde.h:79:31: error: ‘unsetenv’ was not declared
in
Post by Michael George Hart
this scope
unsetenv("KDE_COLOR_DEBUG"); \
--
--
Kevin Funk | ***@kde.org | http://kfunk.org
Michael George Hart
2016-05-15 20:41:22 UTC
Permalink
I work for a bank so they are have a lot of security around access to sites
many web sites;
cygwin, for now, seems to be the exception

The company is basically a windows shop on the desktop;
Post by Michael George Hart
Post by Michael George Hart
Unfortunately emerge requires access to an gtihub external to the
company I
Post by Michael George Hart
work for.
You mean just 'git', right? Not 'github'.
Post by Michael George Hart
So the standard method described in the emerge does not seem to work
properly for me.
Ok.
Post by Michael George Hart
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
I don't think that's easy to achieve. Emerge is a development tool after all,
it inherently requires you to have some control about your environment
(administrator rights, network access to Git, etc.).
FYI, if it helps, there's an installer for KDevelop 5 on Windows these days,
http://comments.gmane.org/gmane.comp.kde.devel.kdevelop/43599
Or is there any particular reason you need to compile KDevelop from source?
Cheers,
Kevin
Post by Michael George Hart
Post by Kevin Funk
Post by Michael George Hart
I have gotten the latest version of cygwin and been attempting to
build
Post by Michael George Hart
Post by Kevin Funk
the
Post by Michael George Hart
latest version of kdevelop 4.7.x
Heya,
Please try this with KDevelop 5.0 branch (check out kdevplatform.git
5.0
Post by Michael George Hart
Post by Kevin Funk
branch, kdevelop.git 5.0 branch).
We've spent tons of time streamlining KDevelop for Windows on 5.0 -- we didn't
do this for 4.7. And we won't spend time on doing so for 4.7.
When compiling KDevelop 5, you'll have to compile all of KF5, too,
thus I
Post by Michael George Hart
Post by Kevin Funk
recommend to use Emerge, a package manager-like user tool for building from
https://techbase.kde.org/Getting_Started/Build/Windows/emerge
Hope that helps,
Kevin
Post by Michael George Hart
I managed to figure that the following get me pretty far, the 53%
build
Post by Michael George Hart
Post by Kevin Funk
Post by Michael George Hart
marker for
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/kdevelop4
-D__KDE_HAVE_GCC_VISIBILITY=NO ../
make
Has anyone successfully build kdevelop 4.7.x under cygwin; I have the
latest download of cygwin with gcc 5.3
I get the following compile errors that would indicate that the
cygwin
Post by Michael George Hart
Post by Kevin Funk
Post by Michael George Hart
is
neither POSIX or BSD, (which seems strange since I am able to run a
number
Post by Michael George Hart
of KDE application under cygwin X KDE windows openbox)
gettimeofday, timersub (see http://linux.die.net/man/3/timersub).
Setting -fpermissive does not stop the error as implied by the
generated
Post by Michael George Hart
Post by Kevin Funk
Post by Michael George Hart
error message above
The multiple parameter version of setenv does not seem to be availability
under cygwin
int setenv(const char *name, const char *value, int overwrite);
As the setenv documentation says
"_POSIX_C_SOURCE >= 200112L
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE"
(See http://man7.org/linux/man-pages/man3/setenv.3.html)
My work environment limits me to what I can do on the windows; no
admin
Post by Michael George Hart
Post by Kevin Funk
Post by Michael George Hart
rights. However we are allowed to install the latest version of
cygwin,
Post by Michael George Hart
Post by Kevin Funk
Post by Michael George Hart
which happens to have gcc 5.3 compiler and install or build from
source
Post by Michael George Hart
Post by Kevin Funk
Post by Michael George Hart
what ever we happen to be able to down from zip, tar files etc.
I really would like to continue working in a Linux like environment
Thanks for listening and any help that maybe available
Michael
error: there are no arguments to ‘gettimeofday’ that depend on a
template
parameter, so a declaration of ‘gettimeofday’ must be available
[-fpermissive]
gettimeofday(&startTime, 0);
^
note: (if you use ‘-fpermissive’, G++ will accept your code, but
allowing
the use of an undeclared name is deprecated)
error: there are no arguments to ‘gettimeofday’ that depend on a
template
parameter, so a declaration of ‘gettimeofday’ must be available
[-fpermissive]
gettimeofday(&currentTime, 0);
^
error: there are no arguments to ‘timersub’ that depend on a template
parameter, so a declaration of ‘timersub’ must be available
[-fpermissive]
Post by Michael George Hart
timersub(&currentTime, &startTime, &waited);
^
/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 =
/home/u43/Documents/kdevelop/kdevplatform-1.7.3/language/duchain/reference
Post by Michael George Hart
Post by Kevin Funk
co>
Post by Michael George Hart
unting.h:63:36: required from here
error: ‘gettimeofday’ was not declared in this scope
gettimeofday(&startTime, 0);
^
error: ‘gettimeofday’ was not declared in this scope, and no
declarations
were found by argument-dependent lookup at the point of instantiation
[-fpermissive]
gettimeofday(&currentTime, 0);
^
note: ‘gettimeofday’ declared here, later in the translation unit
gettimeofday(&startTime, 0);
^
error: ‘timersub’ was not declared in this scope
timersub(&currentTime, &startTime, &waited);
/usr/include/kde4/qtest_kde.h:73:28: error: ‘setenv’ was not
declared in
Post by Michael George Hart
Post by Kevin Funk
Post by Michael George Hart
this scope
setenv("LC_ALL", "C", 1); \
^
/usr/include/kde4/qtest_kde.h:106:42: note: in expansion of macro
‘QTEST_KDEMAIN_WITH_COMPONENTNAME’
#define QTEST_KDEMAIN(TestObject, flags)
QTEST_KDEMAIN_WITH_COMPONENTNAME(TestObject, flags, "qttest")
^
/home/u43/Documents/kdevelop/kdevplatform-1.7.3/sublime/tests/areaoperatio
Post by Michael George Hart
Post by Kevin Funk
nt>
Post by Michael George Hart
est.cpp:728:1: note: in expansion of macro ‘QTEST_KDEMAIN’
QTEST_KDEMAIN(AreaOperationTest, GUI)
^
/usr/include/kde4/qtest_kde.h:79:31: error: ‘unsetenv’ was not
declared
Post by Michael George Hart
Post by Kevin Funk
in
Post by Michael George Hart
this scope
unsetenv("KDE_COLOR_DEBUG"); \
--
--
--
*"...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-16 21:07:38 UTC
Permalink
Post by Michael George Hart
I work for a bank so they are have a lot of security around access to sites
many web sites;
cygwin, for now, seems to be the exception
So, what's the problem with the installer? No Administrator rights on your
machine?

Would a portable app package help...?

Cheers,
Kevin
Post by Michael George Hart
The company is basically a windows shop on the desktop;
Post by Michael George Hart
Post by Michael George Hart
Unfortunately emerge requires access to an gtihub external to the
company I
Post by Michael George Hart
work for.
You mean just 'git', right? Not 'github'.
Post by Michael George Hart
So the standard method described in the emerge does not seem to work
properly for me.
Ok.
Post by Michael George Hart
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
I don't think that's easy to achieve. Emerge is a development tool after all,
it inherently requires you to have some control about your environment
(administrator rights, network access to Git, etc.).
FYI, if it helps, there's an installer for KDevelop 5 on Windows these days,
http://comments.gmane.org/gmane.comp.kde.devel.kdevelop/43599
Or is there any particular reason you need to compile KDevelop from source?
Cheers,
Kevin
Post by Michael George Hart
Post by Kevin Funk
Post by Michael George Hart
I have gotten the latest version of cygwin and been attempting to
build
Post by Michael George Hart
Post by Kevin Funk
the
Post by Michael George Hart
latest version of kdevelop 4.7.x
Heya,
Please try this with KDevelop 5.0 branch (check out kdevplatform.git
5.0
Post by Michael George Hart
Post by Kevin Funk
branch, kdevelop.git 5.0 branch).
We've spent tons of time streamlining KDevelop for Windows on 5.0 --
we
didn't
do this for 4.7. And we won't spend time on doing so for 4.7.
When compiling KDevelop 5, you'll have to compile all of KF5, too,
thus I
Post by Michael George Hart
Post by Kevin Funk
recommend to use Emerge, a package manager-like user tool for building from
https://techbase.kde.org/Getting_Started/Build/Windows/emerge
Hope that helps,
Kevin
Post by Michael George Hart
I managed to figure that the following get me pretty far, the 53%
build
Post by Michael George Hart
Post by Kevin Funk
Post by Michael George Hart
marker for
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/kdevelop4
-D__KDE_HAVE_GCC_VISIBILITY=NO ../
make
Has anyone successfully build kdevelop 4.7.x under cygwin; I have the
latest download of cygwin with gcc 5.3
I get the following compile errors that would indicate that the
cygwin
Post by Michael George Hart
Post by Kevin Funk
Post by Michael George Hart
is
neither POSIX or BSD, (which seems strange since I am able to run a
number
Post by Michael George Hart
of KDE application under cygwin X KDE windows openbox)
gettimeofday, timersub (see http://linux.die.net/man/3/timersub).
Setting -fpermissive does not stop the error as implied by the
generated
Post by Michael George Hart
Post by Kevin Funk
Post by Michael George Hart
error message above
The multiple parameter version of setenv does not seem to be availability
under cygwin
int setenv(const char *name, const char *value, int overwrite);
As the setenv documentation says
"_POSIX_C_SOURCE >= 200112L
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE"
(See http://man7.org/linux/man-pages/man3/setenv.3.html)
My work environment limits me to what I can do on the windows; no
admin
Post by Michael George Hart
Post by Kevin Funk
Post by Michael George Hart
rights. However we are allowed to install the latest version of
cygwin,
Post by Michael George Hart
Post by Kevin Funk
Post by Michael George Hart
which happens to have gcc 5.3 compiler and install or build from
source
Post by Michael George Hart
Post by Kevin Funk
Post by Michael George Hart
what ever we happen to be able to down from zip, tar files etc.
I really would like to continue working in a Linux like environment
Thanks for listening and any help that maybe available
Michael
error: there are no arguments to ‘gettimeofday’ that depend on a
template
parameter, so a declaration of ‘gettimeofday’ must be available
[-fpermissive]
gettimeofday(&startTime, 0);
^
note: (if you use ‘-fpermissive’, G++ will accept your code, but
allowing
the use of an undeclared name is deprecated)
error: there are no arguments to ‘gettimeofday’ that depend on a
template
parameter, so a declaration of ‘gettimeofday’ must be available
[-fpermissive]
gettimeofday(&currentTime, 0);
^
error: there are no arguments to ‘timersub’ that depend on a
template
parameter, so a declaration of ‘timersub’ must be available
[-fpermissive]
Post by Michael George Hart
timersub(&currentTime, &startTime, &waited);
^
/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 =
/home/u43/Documents/kdevelop/kdevplatform-1.7.3/language/duchain/reference
Post by Michael George Hart
Post by Kevin Funk
co>
Post by Michael George Hart
unting.h:63:36: required from here
error: ‘gettimeofday’ was not declared in this scope
gettimeofday(&startTime, 0);
^
error: ‘gettimeofday’ was not declared in this scope, and no
declarations
were found by argument-dependent lookup at the point of instantiation
[-fpermissive]
gettimeofday(&currentTime, 0);
^
note: ‘gettimeofday’ declared here, later in the translation unit
gettimeofday(&startTime, 0);
^
error: ‘timersub’ was not declared in this scope
timersub(&currentTime, &startTime, &waited);
/usr/include/kde4/qtest_kde.h:73:28: error: ‘setenv’ was not
declared in
Post by Michael George Hart
Post by Kevin Funk
Post by Michael George Hart
this scope
setenv("LC_ALL", "C", 1); \
^
/usr/include/kde4/qtest_kde.h:106:42: note: in expansion of macro
‘QTEST_KDEMAIN_WITH_COMPONENTNAME’
#define QTEST_KDEMAIN(TestObject, flags)
QTEST_KDEMAIN_WITH_COMPONENTNAME(TestObject, flags, "qttest")
^
/home/u43/Documents/kdevelop/kdevplatform-1.7.3/sublime/tests/areaoperatio
Post by Michael George Hart
Post by Kevin Funk
nt>
Post by Michael George Hart
est.cpp:728:1: note: in expansion of macro ‘QTEST_KDEMAIN’
QTEST_KDEMAIN(AreaOperationTest, GUI)
^
/usr/include/kde4/qtest_kde.h:79:31: error: ‘unsetenv’ was not
declared
Post by Michael George Hart
Post by Kevin Funk
in
Post by Michael George Hart
this scope
unsetenv("KDE_COLOR_DEBUG"); \
--
--
--
Kevin Funk | ***@kde.org | http://kfunk.org
Loading...