Using KColorButton in QT application by QTCreator : linker error
Hi,
I am using OpenSuse 11.2 which I just installed. I was working on one QT application in OpenSuse 10.3 with few KColorButton in it and it was compiling fine under that dist. Now after copying the project to 11.2 environment , I can't make the project . It's now throwing linker error : Quote:
I thought there was some problem while porting my application to QT 4.3.2 (current build) . So I created a demo project using Qt Creator with a KColorButton and I recreated the linker cache , but it also shows same symptom. Is this Qt build broken ? Or /usr/lib64/kde4/plugins/designer/kdewidgets.so library missing from current linker cache ? Any other way to fix this issue ? |
Still error !
I tried adding
/usr/lib64/kde4/plugins/designer/kdewidgets.so to g++ argument . It compiled fine but throws another linker error while lunching the app : Quote:
:banghead: |
Solved
Got it ! :hattip:
Quote:
Added the shared library to makefile LIBS variable. LIBS = $(SUBLIBS) /usr/lib64/kde4/plugins/designer/kdewidgets.so -L/usr/lib64 ... ... And the problem with not loading the shared library while lunching the application was because of not setting LD_LIBRARY_PATH to point correct shared library path . Changed LD_LIBRARY_PATH to include /usr/lib64/kde4/plugins/designer also and my application loaded successfully . Credit goes to An Introduction to GCC - for the GNU compilers gcc and g++ |
All times are GMT -5. The time now is 11:32 PM. |