LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-24-2006, 04:05 AM   #1
Quercus ruber
Member
 
Registered: Mar 2004
Location: Bocholt, Germany
Distribution: Slackware
Posts: 135

Rep: Reputation: 24
can't create a new project in kdevelop


hi

I have just installed kdevelop from my 2nd slack 10.2 distribution disk. I opened the application and tried to create a new project. I've never used kdevelop before. But it just crashed. Very quietly, no error message, nothing. I tried rebooting but the result was the same. I uninstalled it and went to the kde page and downloaded a precompiled binary for slack 10.2. It installed smoothly, even putting an entry in my kde menu, but the problem is the same; when I do the following, it crashes:

from the project menu -> new project

I've looked on google and haven't been able to find a solution.

Any help would be appreciated.

ros
 
Old 04-05-2006, 08:13 AM   #2
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
If you fire KDevelop up from the command line, you should get a load of verbose messages running through on screen detailing what has occured whilst attempting to create a new project. Have a look through this and see if it offers any clues, and check the bug reports from the KDE website. You might be looking at filing a new bug if it's occuring after installing from two different sources
 
Old 05-04-2006, 03:17 PM   #3
Quercus ruber
Member
 
Registered: Mar 2004
Location: Bocholt, Germany
Distribution: Slackware
Posts: 135

Original Poster
Rep: Reputation: 24
Hi again.

Now this is really silly; I must have made a fundamental mistake, or not installed something vital. I removed all traces of kdevelop (I checked with slocate), including the rc file, but not the icons (/opt/kde/share/icons), downloaded
kdevelop-3.3.2-i486-1.tgz and installed it with installpkg.

When I run this from the command line and try to open a new project, the application just disappears. There is no entry in .xsession-errors, and no message on the command line. Nothing. Just no more kdevelop. It must be me because:
a) last time I downloaded and installed 3.3.1 and this time its 3.3.2
b) creating a new project is fundamental and if everyone had this problem, it would have been reported and solved in seconds.

Do I have to set anything, initialise anything or do anything special before I create a new project? When I click on Project and highlight "New Project...", a message appears in the status bar "Generate a new project from template". Do I have to set up a template or anything like that?
 
Old 05-04-2006, 04:50 PM   #4
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Rep: Reputation: 47
is there a ~.kdevelop file? launching it as a different user, sometimes the files in a users home dir gets a little picky or something. If this works move, rename, or delete the .kdevelop dir. It might be under ~/.kde
 
Old 05-11-2006, 03:15 PM   #5
Quercus ruber
Member
 
Registered: Mar 2004
Location: Bocholt, Germany
Distribution: Slackware
Posts: 135

Original Poster
Rep: Reputation: 24
Hi

I searched for .kdevelop & got this

Code:
root@Einstein:/home/family/Downloads/kdevelop-3.3.2# slocate .kdevelop
/opt/kde/share/apps/kdevappwizard/importfiles/ruby.kdevelop
/opt/kde/share/apps/kdevappwizard/importfiles/ada.kdevelop
/opt/kde/share/apps/kdevappwizard/importfiles/qttmake.kdevelop
/opt/kde/share/apps/kdevappwizard/importfiles/java-auto.kdevelop
/opt/kde/share/apps/kdevappwizard/importfiles/java-ant.kdevelop
/opt/kde/share/apps/kdevappwizard/importfiles/cpp-auto.kdevelop
/opt/kde/share/apps/kdevappwizard/importfiles/kde.kdevelop
/opt/kde/share/apps/kdevappwizard/importfiles/gnome.kdevelop
/opt/kde/share/apps/kdevappwizard/importfiles/fortran.kdevelop
/opt/kde/share/apps/kdevappwizard/importfiles/fortran-auto.kdevelop
/opt/kde/share/apps/kdevappwizard/importfiles/perl.kdevelop
/opt/kde/share/apps/kdevappwizard/importfiles/pascal.kdevelop
/opt/kde/share/apps/kdevappwizard/importfiles/c-auto.kdevelop
/opt/kde/share/apps/kdevappwizard/importfiles/cpp.kdevelop
/opt/kde/share/apps/kdevappwizard/importfiles/qtqmake.kdevelop
/opt/kde/share/apps/kdevappwizard/importfiles/python.kdevelop
/opt/kde/share/apps/kdevappwizard/importfiles/java.kdevelop
/opt/kde/share/apps/kdevappwizard/importfiles/c.kdevelop
/opt/kde/share/apps/kdevappwizard/importfiles/php.kdevelop
root@Einstein:/home/family/Downloads/kdevelop-3.3.2# exit
which isn't the same as ~/.kdevelop.

I tried compiling kdevelop, having first installed the Berkeley DB
packages that came with Slackware 10.2, but the make crashed with the following error:
Code:
Making all in catalog
make[3]: Entering directory `/home/family/Downloads/kdevelop-3.3.2/lib/catalog'
if /bin/sh ../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/opt/kde/include -I/usr/lib/qt/include -I/usr/X11R6/include    -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -g3 -fno-inline -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -MT catalog.lo -MD -MP -MF ".deps/catalog.Tpo" -c -o catalog.lo catalog.cpp; \
then mv -f ".deps/catalog.Tpo" ".deps/catalog.Plo"; else rm -f ".deps/catalog.Tpo"; exit 1; fi
catalog.cpp:36:2: #error "BDB Version 4 required."
catalog.cpp: In member function `void Catalog::addIndex(const QCString&)':
catalog.cpp:205: error: invalid conversion from `int' to `DBTYPE'
catalog.cpp:205: error: too many arguments to function
catalog.cpp: In member function `virtual void Catalog::open(const QString&)':
catalog.cpp:273: error: invalid conversion from `int' to `DBTYPE'
catalog.cpp:273: error: too many arguments to function
catalog.cpp: In member function `QValueList<Tag> Catalog::query(const
   QValueList<QPair<QCString, QVariant> >&)':
catalog.cpp:434: warning: comparison between signed and unsigned integer
   expressions
make[3]: *** [catalog.lo] Error 1
make[3]: Leaving directory `/home/family/Downloads/kdevelop-3.3.2/lib/catalog'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/family/Downloads/kdevelop-3.3.2/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/family/Downloads/kdevelop-3.3.2'
make: *** [all] Error 2
I downloaded and installed Berkeley DB 4.0.14, and its in /usr/local/BerkeleyDB4.0/

Could it be that the path isn't set up properly?

I'm beginning to wonder whether I shouldn't just use vi and be done with it!

Any help to start a new project would be appreciated.

ros
 
Old 05-24-2006, 04:31 PM   #6
patrickdepingui
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 53

Rep: Reputation: 15
I've had the same problem, but 5 minutes ago I found the solution after running an strace.
You should install the kdesdk package, which is available on the slackware pkg site. There is a lib called libcvsservice you apparantly need. After installing this package it worked fine for me.
 
Old 05-27-2006, 03:51 PM   #7
Quercus ruber
Member
 
Registered: Mar 2004
Location: Bocholt, Germany
Distribution: Slackware
Posts: 135

Original Poster
Rep: Reputation: 24
Hi

thanks for the suggestion. I installed kdesdk 3.4.2, did ldconfig but still get the same error when I run make. I don't have strace and I've never heard of it so I'll google around to see what I can find out about it...
 
Old 05-27-2006, 04:13 PM   #8
patrickdepingui
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 53

Rep: Reputation: 15
after installing the kdesdk package you should be able to install and run the kdevelop package without errors.

Sorry if I wasn't clear, but I did not try to recompile kdevelop myself, since I can now use the precompiled package...

strace is a standard unix tool, that allows you to see which system calls are being used by a program. http://www.die.net/doc/linux/man/man1/strace.1.html

With kdevelop I got an output containing:
open("/opt/kde/lib/libcvsservice.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/./libcvsservice.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/qt/lib/libcvsservice.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libcvsservice.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/opt/kde/lib/libcvsservice.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/./libcvsservice.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/qt/lib/libcvsservice.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libcvsservice.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 14
fstat64(14, {st_mode=S_IFREG|0644, st_size=75029, ...}) = 0
mmap2(NULL, 75029, PROT_READ, MAP_PRIVATE, 14, 0) = 0xb5c44000
close(14) = 0
open("/lib/tls/libcvsservice.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libcvsservice.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libcvsservice.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)


Which suggested my that the file libcvsservice.so.0 was missing, which seemed to be contained in the kdesdk package.

I ran strace as follows:
strace kdevelop 2>kdeveloptrace.txt

"2>kdeveloptrace.txt" is there to redirect the standard error output to a text file so I can easily read it.





Ow, and about compiling, somewhere in the kdevelop bugs I read the slackware users wanting to compile kdevelop themselves, needed to explicitely specify the path to berkelydb to the configure script (there is an option for this, see "configure --help" in the kdevelop source dir.)

Last edited by patrickdepingui; 05-27-2006 at 04:16 PM.
 
Old 05-29-2006, 03:36 PM   #9
Quercus ruber
Member
 
Registered: Mar 2004
Location: Bocholt, Germany
Distribution: Slackware
Posts: 135

Original Poster
Rep: Reputation: 24
Hi

thanks a lot - it works! I ran a precompiled package and I could create a new project. I strongly suspect that the kdesdk package was the catalyst since that's the only thing I'm aware of that has changed. And thanks for the strace explanation.

ros
 
Old 05-29-2006, 05:41 PM   #10
patrickdepingui
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 53

Rep: Reputation: 15
Another topic (http://www.linuxquestions.org/questi...d.php?t=446140) suggests a simpler solution for those who do not want to install the kdesdk package: make a symbolic link from libcvsserviceintegrator, which is already in one of the other packages...

ln -s /opt/kde/lib/kde3/libcvsserviceintegrator.so /usr/lib/libcvsservice.so.0
 
  


Reply

Tags
kdevelop, project, slackware



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kdevelop project packaging sayantam Programming 0 11-16-2004 04:22 AM
kdevelop - deleting a file from a project lbmpm Linux - Software 4 09-08-2004 05:15 PM
Kdevelop project trouble. Help! gunslinger77 Linux - Newbie 0 09-06-2004 02:36 AM
KDevelop and no QT project possible? Misel Slackware 2 11-03-2003 02:18 PM
Cannot see Open GL project in KDevelop project wizard SparceMatrix Programming 2 08-07-2002 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration