Discussion:
Well Kdevelop and Kdevplatform 4.90.92 build on cygwin.
Michael George Hart
2016-05-17 20:13:13 UTC
Permalink
Kevin 4.90.92 build with very little effort on my part but running it there
is a problem

After commenting out “KCrash::initialize()”, the only build error kdevelop
build and install.
[ 36%] Building CXX object
projectbuilders/ninjabuilder/CMakeFiles/kdevninja.dir/kdevninjabuilderplugin.cpp.o
/kdevelop-5/4.90.92/kdevelop-4.90.92/app/main.cpp: In function ‘int
main(int, char**)’:
kdevelop-5/4.90.92/kdevelop-4.90.92/app/main.cpp:380:5: error: ‘initialize’
is not a member of ‘KCrash’
KCrash::initialize();
^
app/CMakeFiles/kdevelop.dir/build.make:69: recipe for target
'app/CMakeFiles/kdevelop.dir/main.cpp.o' failed
make[2]: *** [app/CMakeFiles/kdevelop.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:1126: recipe for target
'app/CMakeFiles/kdevelop.dir/all' failed
make[1]: *** [app/CMakeFiles/kdevelop.dir/all] Error 2

Unfortunately proceeding to run it stopped at the 10% splash screen,
showing on the command line
$ kdevelop
Fontconfig error: "/etc/fonts/conf.d/66-google-noto-nastaliq-urdu.conf",
line 35: mismatched tag
QXcbShmImage: shmget() failed (88) for size 179960 (409x110)

So although build and installing kdevelop 5 was less effort on my part
running it I basically go nowhere compared with building and installing
kdevelop 4.7.3
With kdevelop 4.7.3, with the intrusive modification of build files (see
above) I was able to run it without incident. It issues was important menu
items were missing; eg the entire ability to create an initial project. It
did look like I could open an existing project but I didn’t test it

So my next step is concerned in where I invest my time;
Hopefully someone will know a simple fix to get beyond splash screen
displaying 10% in the upper right corner after starting Kdevelop 4.90.92
If not I will return to back to kdevelop 4.7.3 which at least started and
seem to work without issues just missing some import menu items

I would rather go the kdevelop 5 route; so hopefully someone has a simple
solution to my issue in running it
Thanks
Michael

FYI
How I was able to build Kdevelop 4.7.3 under Cygwin
In all cases use
cmake -D__KDE_HAVE_GCC_VISIBILITY=NO ../

Kdevplatform:
EDIT the file Documents/kdevelop/kdevplatform-1.7.3/util/spinlock.h
Add the following lines after the #includes
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)

To file /usr/include/kde4/qtest_kde.h add the following two lines
extern "C" int setenv(const char *name, const char *value, int overwrite);
extern "C" int unsetenv(const char *name);

DO THE BUILD for kdevelop and you will get some errors. The cause of my
errors
Can be found in the file
Documents/kdevelop/kdevelop-4.7.3/build/kdeintegration/kdeprovider/kdevkdeprovider_automoc.cpp
It has multiple entries for "moc_kdeprojectsmodel.cpp"
eg.
#include "moc_kdeproviderwidget.cpp"
#include "moc_kdeprojectsmodel.cpp"
#include "moc_kdeproviderplugin.cpp"
#include "moc_kdeprojectsreader.cpp"
#include "moc_kdeprojectsmodel.cpp"

So not to get too smart, my solution was to edit "moc_kdeprojectsmodel.cpp"
and place code within

#ifndef MEMEME
#define MEMEME

#endif

Rerun the make (not cmake) and kdevelop will build and install
Kevin Funk
2016-05-18 08:53:53 UTC
Permalink
Post by Michael George Hart
Kevin 4.90.92 build with very little effort on my part but running it there
is a problem
After commenting out “KCrash::initialize()”, the only build error kdevelop
build and install.
[ 36%] Building CXX object
projectbuilders/ninjabuilder/CMakeFiles/kdevninja.dir/kdevninjabuilderplugin
.cpp.o /kdevelop-5/4.90.92/kdevelop-4.90.92/app/main.cpp: In function ‘int
kdevelop-5/4.90.92/kdevelop-4.90.92/app/main.cpp:380:5: error: ‘initialize’
is not a member of ‘KCrash’
KCrash::initialize();
^
Okay, see the other mail about this particular issue.
Post by Michael George Hart
app/CMakeFiles/kdevelop.dir/build.make:69: recipe for target
'app/CMakeFiles/kdevelop.dir/main.cpp.o' failed
make[2]: *** [app/CMakeFiles/kdevelop.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:1126: recipe for target
'app/CMakeFiles/kdevelop.dir/all' failed
make[1]: *** [app/CMakeFiles/kdevelop.dir/all] Error 2
Unfortunately proceeding to run it stopped at the 10% splash screen,
showing on the command line
$ kdevelop
Fontconfig error: "/etc/fonts/conf.d/66-google-noto-nastaliq-urdu.conf",
line 35: mismatched tag
QXcbShmImage: shmget() failed (88) for size 179960 (409x110)
Phew, no idea about this one.

Can you try to get a backtrace? And check where the program hangs?

See:
https://cygwin.com/cygwin-ug-net/gdb.html
Post by Michael George Hart
So although build and installing kdevelop 5 was less effort on my part
running it I basically go nowhere compared with building and installing
kdevelop 4.7.3
With kdevelop 4.7.3, with the intrusive modification of build files (see
above) I was able to run it without incident. It issues was important menu
items were missing; eg the entire ability to create an initial project. It
did look like I could open an existing project but I didn’t test it
So my next step is concerned in where I invest my time;
Hopefully someone will know a simple fix to get beyond splash screen
displaying 10% in the upper right corner after starting Kdevelop 4.90.92
If not I will return to back to kdevelop 4.7.3 which at least started and
seem to work without issues just missing some import menu items
I would rather go the kdevelop 5 route; so hopefully someone has a simple
solution to my issue in running it
Please try to get KDevelop 5 working, that'd be appreciated!

Cheers,
Kevin
Post by Michael George Hart
Thanks
Michael
FYI
How I was able to build Kdevelop 4.7.3 under Cygwin
In all cases use
cmake -D__KDE_HAVE_GCC_VISIBILITY=NO ../
EDIT the file Documents/kdevelop/kdevplatform-1.7.3/util/spinlock.h
Add the following lines after the #includes
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)
To file /usr/include/kde4/qtest_kde.h add the following two lines
extern "C" int setenv(const char *name, const char *value, int overwrite);
extern "C" int unsetenv(const char *name);
DO THE BUILD for kdevelop and you will get some errors. The cause of my
errors
Can be found in the file
Documents/kdevelop/kdevelop-4.7.3/build/kdeintegration/kdeprovider/kdevkdepr
ovider_automoc.cpp It has multiple entries for "moc_kdeprojectsmodel.cpp"
eg.
#include "moc_kdeproviderwidget.cpp"
#include "moc_kdeprojectsmodel.cpp"
#include "moc_kdeproviderplugin.cpp"
#include "moc_kdeprojectsreader.cpp"
#include "moc_kdeprojectsmodel.cpp"
So not to get too smart, my solution was to edit "moc_kdeprojectsmodel.cpp"
and place code within
#ifndef MEMEME
#define MEMEME
#endif
Rerun the make (not cmake) and kdevelop will build and install
--
Kevin Funk | ***@kde.org | http://kfunk.org
René J.V. Bertin
2016-05-18 08:56:17 UTC
Permalink
Post by Michael George Hart
Unfortunately proceeding to run it stopped at the 10% splash screen,
showing on the command line
$ kdevelop
Fontconfig error: "/etc/fonts/conf.d/66-google-noto-nastaliq-urdu.conf",
line 35: mismatched tag
QXcbShmImage: shmget() failed (88) for size 179960 (409x110)
I'm not sure that's related. What do other Qt5 applications show (if they run), like Qt's Assistant for instance?

If they too get stuck on this or a comparable error, the 1st thing to try would be to move aside all .conf files from etc/fonts/conf.d .

FWIW, I'm also seeing QXcbShmImage smget errors when I use the XCB qpa plugin on OS X, but they're apparently benign.

And that brings me to the 64k$ question: is it expected that Qt5/KF5 applications use X11 under Cygwin, rather than some native display engine (QPA)?

R.
Michael George Hart
2016-05-18 19:33:32 UTC
Permalink
For some unknowable I am now getting a dialog with the following message:
"Now I get the error dialog box:
Could not find any plugins during startup.
Please make sure QT_PLUGIN_PATH is set correctly.
Refer to this article for more information."

To tell the truth, after reading the article and doing some research via
Google. setting QT_PLUGIN_PATH does not seem that obvious in the Cygwin
environment.

The source of the shared memory problem can be found in the main.cpp file
kdevelop-5/4.90.92/kdevelop-4.90.92/app/main.cph

See code above is the source of my grief under Cygwin ---Years ago coding
similar to a known kdevelop bug (https://bugs.kde.org/show_bug.cgi?id=249107
)

Intrestingly when I commented out line the lines
"if
(!QProcessEnvironment::systemEnvironment().contains("KDEV_DISABLE_SPLASH"))
{
splash = new KDevSplashScreen;
splash->show();
}"

I started getting the Dialog box; now it always appears even when below
lines of code are uncomment

KDevSplashScreen* splash = nullptr;
if
(!QProcessEnvironment::systemEnvironment().contains("KDEV_DISABLE_SPLASH"))
{
splash = new KDevSplashScreen;
splash->show();
}

if(!Core::initialize(splash, Core::Default, session))
return 5;


I read KCrash::initialize does no do anything when in debug mode. Where can
I get the source code to this so I may try the latest build under cygwin?

I have tracked down that QXcbShmImage: shmget() failed (88) for size 179960
(409x110) may have something to do with how xserver is started on MS
WINDOWS

Anything you guys want me to try
Post by René J.V. Bertin
Post by Michael George Hart
Unfortunately proceeding to run it stopped at the 10% splash screen,
showing on the command line
$ kdevelop
Fontconfig error: "/etc/fonts/conf.d/66-google-noto-nastaliq-urdu.conf",
line 35: mismatched tag
QXcbShmImage: shmget() failed (88) for size 179960 (409x110)
I'm not sure that's related. What do other Qt5 applications show (if they
run), like Qt's Assistant for instance?
If they too get stuck on this or a comparable error, the 1st thing to try
would be to move aside all .conf files from etc/fonts/conf.d .
FWIW, I'm also seeing QXcbShmImage smget errors when I use the XCB qpa
plugin on OS X, but they're apparently benign.
And that brings me to the 64k$ question: is it expected that Qt5/KF5
applications use X11 under Cygwin, rather than some native display engine
(QPA)?
R.
Michael George Hart
2016-05-19 13:32:19 UTC
Permalink
I figured out the unknowable reason; the splash screen was blocking the
view of the dialog box with the message about QT_PLUGIN_PATH

On May 18, 2016 3:33 PM, "Michael George Hart" <
Post by Michael George Hart
Could not find any plugins during startup.
Please make sure QT_PLUGIN_PATH is set correctly.
Refer to this article for more information."
To tell the truth, after reading the article and doing some research via
Google. setting QT_PLUGIN_PATH does not seem that obvious in the Cygwin
environment.
Post by Michael George Hart
The source of the shared memory problem can be found in the main.cpp file
kdevelop-5/4.90.92/kdevelop-4.90.92/app/main.cph
See code above is the source of my grief under Cygwin ---Years ago coding
similar to a known kdevelop bug (https://bugs.kde.org/show_bug.cgi?id=249107
)
Post by Michael George Hart
Intrestingly when I commented out line the lines
"if
(!QProcessEnvironment::systemEnvironment().contains("KDEV_DISABLE_SPLASH"))
{
Post by Michael George Hart
splash = new KDevSplashScreen;
splash->show();
}"
I started getting the Dialog box; now it always appears even when below
lines of code are uncomment
Post by Michael George Hart
KDevSplashScreen* splash = nullptr;
if
(!QProcessEnvironment::systemEnvironment().contains("KDEV_DISABLE_SPLASH"))
{
Post by Michael George Hart
splash = new KDevSplashScreen;
splash->show();
}
if(!Core::initialize(splash, Core::Default, session))
return 5;
I read KCrash::initialize does no do anything when in debug mode. Where
can I get the source code to this so I may try the latest build under
cygwin?
Post by Michael George Hart
I have tracked down that QXcbShmImage: shmget() failed (88) for size
179960 (409x110) may have something to do with how xserver is started on MS
WINDOWS
Post by Michael George Hart
Anything you guys want me to try
Post by René J.V. Bertin
Post by Michael George Hart
Unfortunately proceeding to run it stopped at the 10% splash screen,
showing on the command line
$ kdevelop
Fontconfig error: "/etc/fonts/conf.d/66-google-noto-nastaliq-urdu.conf",
line 35: mismatched tag
QXcbShmImage: shmget() failed (88) for size 179960 (409x110)
I'm not sure that's related. What do other Qt5 applications show (if
they run), like Qt's Assistant for instance?
Post by Michael George Hart
Post by René J.V. Bertin
If they too get stuck on this or a comparable error, the 1st thing to
try would be to move aside all .conf files from etc/fonts/conf.d .
Post by Michael George Hart
Post by René J.V. Bertin
FWIW, I'm also seeing QXcbShmImage smget errors when I use the XCB qpa
plugin on OS X, but they're apparently benign.
Post by Michael George Hart
Post by René J.V. Bertin
And that brings me to the 64k$ question: is it expected that Qt5/KF5
applications use X11 under Cygwin, rather than some native display engine
(QPA)?
Post by Michael George Hart
Post by René J.V. Bertin
R.
Kevin Funk
2016-05-19 13:38:09 UTC
Permalink
Post by Michael George Hart
I figured out the unknowable reason; the splash screen was blocking the
view of the dialog box with the message about QT_PLUGIN_PATH
Hehe, nice.

Another reason for getting rid off the splash screen :)

Glad you figured it out!

Cheers,
Kevin
Post by Michael George Hart
On May 18, 2016 3:33 PM, "Michael George Hart" <
Post by Michael George Hart
Could not find any plugins during startup.
Please make sure QT_PLUGIN_PATH is set correctly.
Refer to this article for more information."
To tell the truth, after reading the article and doing some research via
Google. setting QT_PLUGIN_PATH does not seem that obvious in the Cygwin
environment.
Post by Michael George Hart
The source of the shared memory problem can be found in the main.cpp file
kdevelop-5/4.90.92/kdevelop-4.90.92/app/main.cph
See code above is the source of my grief under Cygwin ---Years ago coding
similar to a known kdevelop bug (https://bugs.kde.org/show_bug.cgi?id=249107
)
Post by Michael George Hart
Intrestingly when I commented out line the lines
"if
(!QProcessEnvironment::systemEnvironment().contains("KDEV_DISABLE_SPLASH"))
{
Post by Michael George Hart
splash = new KDevSplashScreen;
splash->show();
}"
I started getting the Dialog box; now it always appears even when below
lines of code are uncomment
Post by Michael George Hart
KDevSplashScreen* splash = nullptr;
if
(!QProcessEnvironment::systemEnvironment().contains("KDEV_DISABLE_SPLASH"))
{
Post by Michael George Hart
splash = new KDevSplashScreen;
splash->show();
}
if(!Core::initialize(splash, Core::Default, session))
return 5;
I read KCrash::initialize does no do anything when in debug mode. Where
can I get the source code to this so I may try the latest build under
cygwin?
Post by Michael George Hart
I have tracked down that QXcbShmImage: shmget() failed (88) for size
179960 (409x110) may have something to do with how xserver is started on MS
WINDOWS
Post by Michael George Hart
Anything you guys want me to try
Post by René J.V. Bertin
Post by Michael George Hart
Unfortunately proceeding to run it stopped at the 10% splash screen,
showing on the command line
$ kdevelop
Fontconfig error: "/etc/fonts/conf.d/66-google-noto-nastaliq-urdu.conf",
line 35: mismatched tag
QXcbShmImage: shmget() failed (88) for size 179960 (409x110)
I'm not sure that's related. What do other Qt5 applications show (if
they run), like Qt's Assistant for instance?
Post by Michael George Hart
Post by René J.V. Bertin
If they too get stuck on this or a comparable error, the 1st thing to
try would be to move aside all .conf files from etc/fonts/conf.d .
Post by Michael George Hart
Post by René J.V. Bertin
FWIW, I'm also seeing QXcbShmImage smget errors when I use the XCB qpa
plugin on OS X, but they're apparently benign.
Post by Michael George Hart
Post by René J.V. Bertin
And that brings me to the 64k$ question: is it expected that Qt5/KF5
applications use X11 under Cygwin, rather than some native display engine
(QPA)?
Post by Michael George Hart
Post by René J.V. Bertin
R.
--
Kevin Funk | ***@kde.org | http://kfunk.org
Loading...