List Info

Thread: Re: KDE/kdevelop




Re: KDE/kdevelop
user name
2007-04-24 13:33:20
On 24.04.07 00:50:33, David Nolden wrote:
> On Monday 23 April 2007 21:55:55 Andreas Pakulat
wrote:
> > As I suspected this doesn't work on windows
easily, so we definetly need
> > to replace this.
> >
> > Andreas
> 
> http://www.hyperrealm.com/commoncpp/commoncpp-faq.html
says 
> "Current platform support includes Mac OS X, POSIX
systems such as GNU/Linux 
> and Solaris, and Microsoft Windows (2000 and
later).", are you sure? And 
> don't you confuse it with GNU Common C++?(as seen in
the faq).

:( Unfortunately that library also uses autotools, which is
a PITA to
get to work on windows - AFAIK. Unfortunately the am2cmake
script from
kdesdk doesn't work with that project either. I guess we
have to convert
to Qt at least those parts.

David: Can you do us a favor (if you don't have the time to
do it), can
you point us at the files that use commonc++?

Andreas

-- 
You will be traveling and coming into a fortune.

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

Re: KDE/kdevelop
country flaguser name
Germany
2007-04-24 17:29:07
On Tuesday 24 April 2007 20:33:20 Andreas Pakulat wrote:
> On 24.04.07 00:50:33, David Nolden wrote:
> :( Unfortunately that library also uses autotools,
which is a PITA to
>
> get to work on windows - AFAIK. Unfortunately the
am2cmake script from
> kdesdk doesn't work with that project either. I guess
we have to convert
> to Qt at least those parts.
>
> David: Can you do us a favor (if you don't have the
time to do it), can
> you point us at the files that use commonc++?
>
> Andreas

It's windows, isn't there a precompiled library available
somewhere? I'm quite 
sure it is.. surely at least for dev-c++(mingw).

I've looked through the code, did some cleanup, and here's
all places where 
commonc++ is used:

plugins/teamwork/lib/network/pointer.h: 
Here common-c++'s AtomicCounter is used. AtomicCounter is a
thread-safe 
counter, qt4 provides something similar(the reason why
qstring is thread-safe 
now)

lib/network/basicsession.h/cpp:
TCPSession(which is based on a thread as well as on a
socket) is used as base 
for BasicTCPSession. This would probably be the biggest part
of work: A 
version of BasicTCPSession would have to be implemented that
would be based 
on qthread and used a qt-socket instead of the
commonc++-stuff. The good 
thing is that the inheritance from TCPSession is protected,
so only a few 
functions would have to be resembled, and there's probably
not much 
difference between qt's networking-architecture and
commonc++'s. Except 
isPending(..), there are only few calls to
commonc++-functions.

lib/network/helpers.h:
There's an implementation of a simple thread-safe list that
uses a 
commonc++-mutex, here porting would be a simple
string-replacement.

lib/network/basicserver.h/cpp:
TCPSocket and Thread is used for opening the server,
probably this too isn't 
too hard to replace by qt, it's not much code.

lib/network/teamworksession.h:
TCPSocket is passed through into the parent in the
constructor, trivial to 
change. 

I think that's about it.

greetings, David

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

Re: KDE/kdevelop
user name
2007-04-24 17:34:38
On 24.04.07 20:33:20, Andreas Pakulat wrote:
> On 24.04.07 00:50:33, David Nolden wrote:
> > On Monday 23 April 2007 21:55:55 Andreas Pakulat
wrote:
> > > As I suspected this doesn't work on windows
easily, so we definetly need
> > > to replace this.
> > >
> > > Andreas
> > 
> > http://www.hyperrealm.com/commoncpp/commoncpp-faq.html
says 
> > "Current platform support includes Mac OS X,
POSIX systems such as GNU/Linux 
> > and Solaris, and Microsoft Windows (2000 and
later).", are you sure? And 
> > don't you confuse it with GNU Common C++?(as seen
in the faq).
> 
> :( Unfortunately that library also uses autotools,
which is a PITA to
> get to work on windows - AFAIK. Unfortunately the
am2cmake script from
> kdesdk doesn't work with that project either. I guess
we have to convert
> to Qt at least those parts.
> 
> David: Can you do us a favor (if you don't have the
time to do it), can
> you point us at the files that use commonc++?

I tried to make the cmake stuff work a bit better, removing
static libs
(those don't work on windows, AFAIK) and making them shared
libs, fixing
boost and commonc++ finding and adding include_directories
instead of
directly including files from other subdirs. 

So far my impression is not that good, there seem to be many
unessecary
include's, it doesn't compile (strange erros in stl-headers,
I guess
some conflict between boost, commonc++ and stl) and it
produces lots of
warning (before I tried to clean the cmake files). 

I seriously start to think this should move back into a
branch until its
more mature.

Sorry David, I know you put a lot of work into this and its
definetly
something that would be cool to have in KDevelop, but I just
don't see
how somebody dives into this codebase when you don't have
time anymore.
And new plugins are supposed to be easily installable, so I
don't see a
problem if kdevelop doesn't ship teamwork out-of-the-box.

Andreas

-- 
If you think last Tuesday was a drag, wait till you see what
happens tomorrow!

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )