Fedora Linux Support Community & Resources Center
  #1  
Old 20th April 2009, 12:48 PM
SpectrumDT Offline
Registered User
 
Join Date: Jan 2008
Location: Farum, Denmark
Age: 30
Posts: 314
Having trouble building KGtk

Hello.

I am trying to install KGtk. Apparently, in order to make it work with all applications I need to build KGtk for both Qt3 and Qt4. KGtk is in the Fedora repositories, but installing via yum only builds KGtk for Qt3, not Qt4. So, as far as I can see, in order to get Qt4 support I must build KGtk for Qt4 manually.

The installation guide includes these steps:

Quote:
So, to compile everything I suggest the following:

1. mkdir build3
2. cd build3
3. cmake .. -DCMAKE_INSTALL_PREFIX=/usr
[ This will build KDialogD for KDE3, and create the LD_PRELOAD libraries for
Qt3 and Gtk2 ]
4. make
5. sudo make install

6. set up Qt4/KDE4 env variables
7. clean build folder

8. mkdir build4
9. cd build4
10. cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DKGTK_KDE4=true -DKGTK_QT4=true -DKGTK_GTK2=false
11. make
12. sudo make install
I have skipped steps 1-5, because AFAIR yum has taken care of that for me. (At least, KGtk works for certain applications, such as Firefox.) But I do not understand what step 6 entails ("set up Qt4/KDE4 env variables"). And if I try to skip step 6, the cmake (step 10) fails:

Quote:
[ore@localhost build4]$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DKGTK_KDE4=true -DKGTK_QT4=true -DKGTK_GTK2=false
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for getpeereid
-- Looking for getpeereid - not found
** INFORMATION: Compiling Qt4/KDE4, Qt3/KDE3 disabled
** ERROR : Could not locate Qt4/KDE4 headers, KDialogD for KDE4 will not be built.
** ERROR : Could not locate Qt4 headers, Qt4 LD_PRELOAD library will not be built.

** INFORMATION: Using installation prefix: /usr
-- Configuring done
-- Generating done
-- Build files have been written to: /big/Linux/KGtk-0.10.1/build4
[ore@localhost build4]$
Can someone help? What am I supposed to do in step 6?

Thanks in advance.
Reply With Quote
  #2  
Old 20th April 2009, 01:14 PM
leigh123linux
Guest
 
Posts: n/a
Try
Code:
su
yum install qt-devel kdelibs-devel
Then try again (step 6 isn't needed, steps 1- 7 are all surplus).
Reply With Quote
  #3  
Old 20th April 2009, 01:51 PM
SpectrumDT Offline
Registered User
 
Join Date: Jan 2008
Location: Farum, Denmark
Age: 30
Posts: 314
Thanks for the help. Your instructions made the Qt4 part work.

It turned out there there was also trouble with the Qt3/Gtk2 part. Apparently that was not installed correctly after all. Step 3 gave similar error messages. But I fixed that, inspired by your recommends, by installing some packages (kdelibs3-devel, qt3-devel, gtk+ and gtk2-devel).
Reply With Quote
  #4  
Old 13th June 2009, 07:11 PM
SpectrumDT Offline
Registered User
 
Join Date: Jan 2008
Location: Farum, Denmark
Age: 30
Posts: 314
Hello.

It's me again. After a fresh installation of Fedora Core 11, I am again having trouble building KGtk. This time it is the Qt3 part that causes problems.

The "cmake" part goes through with no error messages, but the "make" part gives this error:

Code:
[ore@Spectrum build3]$ make
[  7%] Generating kdialogd.moc                                    
Scanning dependencies of target kdialogd3                                                                                                                                   
[ 15%] Building CXX object kdialogd3/CMakeFiles/kdialogd3.dir/kdialogd.o                                                                                                    
In file included from /usr/lib/qt-3.3/include/qstrlist.h:45,                                                                                                                
                 from /usr/lib/qt-3.3/include/qdir.h:46,                                                                                                                    
                 from /usr/include/kde/kfile.h:21,                                                                                                                          
                 from /big/Linux/KGtk-0.10.1/kdialogd3/kdialogd.h:4,                                                                                                        
                 from /big/Linux/KGtk-0.10.1/kdialogd3/kdialogd.cpp:3:                                                                                                      
/usr/lib/qt-3.3/include/qstring.h: In member function ‘char QChar::latin1() const’:                                                                                         
/usr/lib/qt-3.3/include/qstring.h:197: warning: conversion to ‘char’ from ‘int’ may alter its value                                                                         
/usr/lib/qt-3.3/include/qstring.h: In member function ‘void QChar::setCell(uchar)’:                                                                                         
/usr/lib/qt-3.3/include/qstring.h:222: warning: conversion to ‘ushort’ from ‘int’ may alter its value                                                                       
/usr/lib/qt-3.3/include/qstring.h: In member function ‘void QChar::setRow(uchar)’:                                                                                          
/usr/lib/qt-3.3/include/qstring.h:223: warning: conversion to ‘ushort’ from ‘int’ may alter its value                                                                       
/usr/lib/qt-3.3/include/qstring.h: In constructor ‘QChar::QChar(uchar, uchar)’:                                                                                             
/usr/lib/qt-3.3/include/qstring.h:267: warning: conversion to ‘ushort’ from ‘int’ may alter its value                                                                       
/usr/lib/qt-3.3/include/qstring.h: In constructor ‘QStringData::QStringData(QChar*, uint, uint)’:                                                                           
/usr/lib/qt-3.3/include/qstring.h:365: warning: conversion to ‘unsigned int:30’ from ‘uint’ may alter its value                                                             
/usr/lib/qt-3.3/include/qstring.h:365: warning: conversion to ‘unsigned int:30’ from ‘uint’ may alter its value                                                             

(An awful lot of lines with similar warnings)

[100%] Building CXX object qt3/CMakeFiles/kqt3.dir/kqt3.o
/big/Linux/KGtk-0.10.1/qt3/kqt3.cpp:28:1: warning: "_GNU_SOURCE" redefined
<command-line>: warning: this is the location of the previous definition
In file included from /big/Linux/KGtk-0.10.1/qt3/kqt3.cpp:56:
/big/Linux/KGtk-0.10.1/common/connect.h:98:5: warning: #warning "Using sloppy security checks"
/big/Linux/KGtk-0.10.1/qt3/kqt3.cpp: In function ‘const char* getAppName(bool)’:
/big/Linux/KGtk-0.10.1/qt3/kqt3.cpp:113: error: invalid conversion from ‘const char*’ to ‘char*’
make[2]: *** [qt3/CMakeFiles/kqt3.dir/kqt3.o] Error 1
make[1]: *** [qt3/CMakeFiles/kqt3.dir/all] Error 2
make: *** [all] Error 2
[ore@Spectrum build3]$
The "invalid conversion" part looks like a bug in the program, but I am trying to compile the exact same source code that once used to work, so I guess it must be an error in my configuration.

Can anyone help fix this? Thanks in advance.
Reply With Quote
  #5  
Old 27th June 2009, 07:18 PM
SpectrumDT Offline
Registered User
 
Join Date: Jan 2008
Location: Farum, Denmark
Age: 30
Posts: 314
Sorry to bump, but can anyone help me build KGtk in Fedora 11?

Thanks in advance.
Reply With Quote
Reply

Tags
build, kgtk, qt4

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Still having trouble building TrueCrypt dhjdhjdhj Security and Privacy 10 23rd September 2009 07:37 PM
building VTK/tk/tcl ryanmcgarry Using Fedora 2 26th February 2008 01:49 PM
Trouble building module for rt2500 on FC4 chmims Servers & Networking 2 10th October 2005 05:20 PM
freezing during screensaver and trouble on reboot + gnome panel trouble bwalsh Using Fedora 0 5th July 2005 03:45 AM
Building RPM flachi Programming & Packaging 1 3rd May 2005 11:12 AM


Current GMT-time: 07:17 (Thursday, 18-12-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Torium AVM Cinetech Sinema Instagram Photos - Insight Coffee Roasters - Capital Cafe Instagram Photos - Anthony's Key, Roatan - Playa Mansa, Punta del Este, Uruguay Travel Photos - IKEA Photos