Bug 214824

Summary: generator does not find libcppparser.so
Product: [Developer tools] bindings Reporter: Funda Wang <fundawang>
Component: generalAssignee: kde-bindings
Status: RESOLVED NOT A BUG    
Severity: normal CC: arno
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Funda Wang 2009-11-16 15:58:22 UTC
Version:           4.3.75 (using Devel)
Compiler:          gcc 4.4.1 
OS:                Linux
Installed from:    Compiled sources

When building smoke, it failed with:

[  9%] Built target cppparser
[ 11%] Built target generator
[ 11%] Generating smokedata.cpp, x_1.cpp, x_2.cpp, x_3.cpp, x_4.cpp, x_5.cpp, x_6.cpp, x_7.cpp, x_8.cpp, x_9.cpp, x_10.cpp, x_11.cpp, x_12.cpp, x_13.cpp, x_14.cpp, x_15.cpp, x_16.cpp, x_17.cpp, x_18.cpp, x_19.cpp, x_20.cpp
/home/fwang/rpm/BUILD/kdebindings-4.3.75svn1048496/build/generator/bin/generator: error while loading shared libraries: libcppparser.so: cannot open shared object file: No such file or directory

I'm using cmake with:
cmake -DKDE4_USE_ALWAYS_FULL_RPATH=OFF

Maybe we should tweak some rpath parameters regarding generator or libcpparser.so.
Comment 1 Arno Rehn 2009-11-16 19:08:05 UTC
Yes, you need to leave the RPATH for generator as it is (or at least still point to the generator binary dir).
The executable is needed during compilation, so it obviously has to find the libs it links to. We can't really do anything about it (except static linking, which I don't consider an option). Closing this as invalid.