Registered Member
|
I've got a somewhat weird problem in KDevelop. When compiling my code (written in Fortran, using CMake to build and with MPI), everything goes well, upto the linking stage:
If I then go to the Konsole (potentially KDevelops internal konsole), all builts well. This was never a problem in the past (up to a few months ago), so I don't quite understand what to do. I've already tried to add an LD_RUN_PATH to Settings>Environment, but that didn't really help. Fedora 16, KDE 4.8 and KDevelop 4.2.3 by the way. |
Global Moderator
|
I've no idea about the reason, but to debug it, you could put a few commands which print environment variables (echo $LD_LIBRARY_PATH, env, ...) into the makefile, maybe you'll notice something there?
I'm working on the KDevelop IDE.
|
KDE Developer
|
Yes that looks odd indeed. does that rely on some env vars set in your ~/.profile or similar?
Anyhow, we'd need a way to reproduce this to figure out a solution. Please post a bug report on bugs.kde.org if you find a small project that exhibits this behavior. cheers
current KDE projects: Quanta, KDevelop, Kate
|
Registered Member
|
Yes, LD_LIBRARY_PATH is set in .bashrc - Not clean at all, but that's to counter the mpi wrapper on fedora that apparently cannot set its own libraries. That I may consider a bug, but not KDevelops
So the question boils down to: (How) can I set an environment variable in KDevelop? Putting variable LD_LIBRARY_PATH with value /usr/lib64/mpich2/lib doesnt seem to do it. |
KDE Developer
|
using 4.3 at least (final will be released soon) you can configure the cmake configure environment:
configure project -> cmake -> advanced -> configure environment -> wrench button -> "some name" -> add group -> green "+" button -> ...
current KDE projects: Quanta, KDevelop, Kate
|
Registered Member
|
OK, thanks. My home computer has Arch on it, which put me on the 4.3 RCs already. Will check tonight whether I can at least manipulate the environment.
|
Registered Member
|
Somewhat later than expected, but Fedora just updated Kdevelop as well, so this is testable. And suggestion works. Thanks!
|
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell