LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   can't create a new project in kdevelop (https://www.linuxquestions.org/questions/linux-software-2/cant-create-a-new-project-in-kdevelop-427945/)

Quercus ruber 03-24-2006 04:05 AM

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

fouldsy 04-05-2006 08:13 AM

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 :)

Quercus ruber 05-04-2006 03:17 PM

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?

bosewicht 05-04-2006 04:50 PM

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

Quercus ruber 05-11-2006 03:15 PM

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

patrickdepingui 05-24-2006 04:31 PM

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.

Quercus ruber 05-27-2006 03:51 PM

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...

patrickdepingui 05-27-2006 04:13 PM

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.)

Quercus ruber 05-29-2006 03:36 PM

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

patrickdepingui 05-29-2006 05:41 PM

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


All times are GMT -5. The time now is 12:23 PM.