Author Topic: [PACKAGED] QtWeb - From source - Is it OK ?  (Read 1591 times)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Failure to find: $(QTDIR)/src/3rdparty/webkit/Source/WebCore/WebCore.qrc
« Reply #15 on: November 24, 2012, 11:32:08 AM »
2. I could not find an .srpm for libqtwebkit4 in our repository.
     
As I said previously, libqtwebkit4 is part of the QT4 package. Look for the QT4 SRPM.     

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Failure to find: $(QTDIR)/src/3rdparty/webkit/Source/WebCore/WebCore.qrc
« Reply #16 on: November 24, 2012, 12:03:17 PM »
2. I could not find an .srpm for libqtwebkit4 in our repository.
     
As I said previously, libqtwebkit4 is part of the QT4 package. Look for the QT4 SRPM.     

So that solves another mystery for me :)
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Failure to find: $(QTDIR)/src/3rdparty/webkit/Source/WebCore/WebCore.qrc
« Reply #17 on: November 24, 2012, 12:16:03 PM »
The problem here is that the source you have downloaded is for building a completely static version of QtWeb.
That means that the Makefile (generated by qmake) wants to build Webkit from source rather than dynamically link to the webkit which is built into our QT (libqtwebkit4). Without an in-depth knowledge of QT project building you are going to find this very difficult to build from source.  The qupzilla app is different because the project is set up dynamically link to the Webkit lib provided by the distro.

One possible way you could get around this is to see if the statically linked binary they provide works and if does you could package it that way (this is how we do firefox for example).

Terry

That binary works beautifully. Initially my idea was to just package that binary and the license file with it as a sort of "Hello World" example to packaging.
But I got distracted when I saw it create some directories where the binary exists. These are for settings and cache etc.
My thinking then went thus :
- The binary shall be installed, probably to /usr/bin but where will the temporary or user specific settings reside?
So I thought trying to package source may help.
The level of knowledge needed seems to be pretty high.

In order to get thing going I will probably have to get the whole Qt and WebKit source code, place them in some appropriate directory and then run the build from a suitably modified .spec file.

Lots more of reading to come.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1155
Re: Failure to find: $(QTDIR)/src/3rdparty/webkit/Source/WebCore/WebCore.qrc
« Reply #18 on: November 25, 2012, 08:49:10 AM »
Does the build script support enabling shared linking and disabling static linking?
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Failure to find: $(QTDIR)/src/3rdparty/webkit/Source/WebCore/WebCore.qrc
« Reply #19 on: November 25, 2012, 09:02:03 AM »
Does the build script support enabling shared linking and disabling static linking?

What are you referring to when you say build script?
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1155
Re: Failure to find: $(QTDIR)/src/3rdparty/webkit/Source/WebCore/WebCore.qrc
« Reply #20 on: November 25, 2012, 09:16:11 AM »
the .pro file.

when you have have a source which uses configure make makeinstall you mostly have the choice to add the options --enable-shared --disable-static

but i currently have no spec where this is defined for a program that uses qmake but try the following

export CONFIG="$CONFIG, shared"
qmake...
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Failure to find: $(QTDIR)/src/3rdparty/webkit/Source/WebCore/WebCore.qrc
« Reply #21 on: November 25, 2012, 10:01:23 AM »
[ghostbunny]
I have included your suggestions into this version of the .spec. Still the same error regarding the WebKit.qrc and WebCore.qrc. This is solved only by adding pure WebKit source to the packaging installations /lib/lib/qt4 as shown by the error line. This causes the build to proceed until the failure regarding jpeg, ico, png and language related dependency problem.

Here is the current .spec
Code: [Select]
Name: qtweb
Version: 3.7.5.101
Release: %mkrel 1
Summary: Portable, compact, fast, secure internet browser based on Qt and WebKit.
License: GPLv2 or later
Group: Networking/WWW
URL: http://qtweb.net
Source0: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
BuildRequires: libqt4-devel
BuildRequires: libqtwebkit4
AutoReqProv: no

%description
QtWeb Internet Browser - lightweight, secure and portable browser having unique user interface and privacy features.
QtWeb is an open source project based on Nokia's Qt framework and Apple's WebKit rendering engine (the same as being used in Apple Safari and Google Chrome).

%prep
%setup -q

%build
export CONFIG="$CONFIG, shared"
qmake -config release
make

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_datadir}/qtweb

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files

%changelog

This is the relevant QtWeb.pro file:
Code: [Select]
message("Running qmake...")


TEMPLATE = app
TARGET = QtWeb
DESTDIR = ./release
QT += network xml webkit
CONFIG += static
QTPLUGIN += qcncodecs qjpcodecs qkrcodecs qtwcodecs  qgif qjpeg qico
macx:QTPLUGIN -= qjpeg qgif
DEFINES += QT_NO_UITOOLS

INCLUDEPATH += ./tmp/moc/release_static \
    . \
    ./tmp/moc/Release_static \
    ./tmp/rcc/Release_static

DEPENDPATH += .
MOC_DIR += ./tmp/moc/release_static
OBJECTS_DIR += release
UI_DIR += .
RCC_DIR += ./tmp/rcc/release_static

#Include file(s)
include(QtWeb.pri)

#Windows resource file
win32:RC_FILE = QtWeb.rc

macx:ICON = qtweb.icns

message("qmake finished.")
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Failure to find: $(QTDIR)/src/3rdparty/webkit/Source/WebCore/WebCore.qrc
« Reply #22 on: November 25, 2012, 10:02:33 AM »
Here is the QtWeb.pri file with the offending lines at the bottom:

Code: [Select]
# -----------------------------------------------------------
# This file is generated by the Qt Visual Studio Integration.
# -----------------------------------------------------------


#Header files
HEADERS += ./aboutdialog.h \
    ./torrent/addtorrentdialog.h \
    ./autocomplete.h \
    ./autosaver.h \
    ./torrent/bencodeparser.h \
    ./bookmarks.h \
    ./bookmarksimport.h \
    ./browserapplication.h \
    ./browsermainwindow.h \
    ./certificateinfo.h \
    ./chasewidget.h \
    ./closeapp.h \
    ./commands.h \
    ./torrent/connectionmanager.h \
    ./cookiejar.h \
    ./downloadmanager.h \
    ./edittableview.h \
    ./edittreeview.h \
    ./exlineedit.h \
    ./torrent/filemanager.h \
    ./googlesuggest.h \
    ./history.h \
    ./findwidget.h \
    ./torrent/metainfo.h \
    ./modelmenu.h \
    ./networkaccessmanager.h \
    ./passwords.h \
    ./torrent/peerwireclient.h \
    ./torrent/ratecontroller.h \
    ./resetsettings.h \
    ./savepdf.h \
    ./searches.h \
    ./searchlineedit.h \
    ./settings.h \
    ./shortcuts.h \
    ./squeezelabel.h \
    ./tabbar.h \
    ./tabwidget.h \
    ./toolbarsearch.h \
    ./torrent/torrentclient.h \
    ./torrent/torrentserver.h \
    ./torrent/torrentwindow.h \
    ./torrent/trackerclient.h \
    ./urllineedit.h \
    ./viewsource.h \
    ./webpage.h \
    ./webview.h \
    ./xbel.h

#Source files
SOURCES += ./aboutdialog.cpp \
    ./torrent/addtorrentdialog.cpp \
    ./autocomplete.cpp \
    ./autosaver.cpp \
    ./torrent/bencodeparser.cpp \
    ./bookmarks.cpp \
    ./bookmarksimport.cpp \
    ./browserapplication.cpp \
    ./browsermainwindow.cpp \
    ./certificateinfo.cpp \
    ./chasewidget.cpp \
    ./closeapp.cpp \
    ./commands.cpp \
    ./torrent/connectionmanager.cpp \
    ./cookiejar.cpp \
    ./downloadmanager.cpp \
    ./edittableview.cpp \
    ./edittreeview.cpp \
    ./exlineedit.cpp \
    ./torrent/filemanager.cpp \
    ./googlesuggest.cpp \
    ./history.cpp \
    ./findwidget.cpp \
    ./main.cpp \
    ./torrent/metainfo.cpp \
    ./modelmenu.cpp \
    ./networkaccessmanager.cpp \
    ./passwords.cpp \
    ./torrent/peerwireclient.cpp \
    ./torrent/ratecontroller.cpp \
    ./resetsettings.cpp \
    ./savepdf.cpp \
    ./searches.cpp \
    ./searchlineedit.cpp \
    ./settings.cpp \
    ./shortcuts.cpp \
    ./squeezelabel.cpp \
    ./tabbar.cpp \
    ./tabwidget.cpp \
    ./toolbarsearch.cpp \
    ./torrent/torrentclient.cpp \
    ./torrent/torrentserver.cpp \
    ./torrent/torrentwindow.cpp \
    ./torrent/trackerclient.cpp \
    ./urllineedit.cpp \
    ./viewsource.cpp \
    ./webpage.cpp \
    ./webview.cpp \
    ./xbel.cpp

#Forms
FORMS += ./aboutdialog.ui \
    ./addbookmarkdialog.ui \
    ./torrent/forms/addtorrentform.ui \
    ./bookmarks.ui \
    ./certificateinfo.ui \
    ./closeapp.ui \
    ./cookies.ui \
    ./cookiesexceptions.ui \
    ./downloaditem.ui \
    ./downloads.ui \
    ./history.ui \
    ./master.ui \
    ./passworddialog.ui \
    ./passwords.ui \
    ./proxy.ui \
    ./resetsettings.ui \
    ./savepdf.ui \
    ./search.ui \
    ./searches.ui \
    ./settings.ui \
    ./shortcuts.ui

#Resource file(s)

macx {
RESOURCES += data/data.qrc \
    htmls/htmls.qrc \
    ./torrent/icons.qrc
} else {
RESOURCES += data/data.qrc \
    htmls/htmls.qrc \
    ./torrent/icons.qrc \
    $(QTDIR)/src/3rdparty/webkit/Source/WebCore/WebCore.qrc \
    $(QTDIR)/src/3rdparty/webkit/Source/WebCore/inspector/front-end/WebKit.qrc
}
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1155
Re: Failure to find: $(QTDIR)/src/3rdparty/webkit/Source/WebCore/WebCore.qrc
« Reply #23 on: November 25, 2012, 10:25:43 AM »
with -config ... in your qmake line you overwrite CONFIG.

in your case the it should look so

export CONFIG="$CONFIG, shared, release"
qmake

but also possible that this didn't work if it is really just for static linking
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Failure to find: $(QTDIR)/src/3rdparty/webkit/Source/WebCore/WebCore.qrc
« Reply #24 on: November 25, 2012, 10:34:19 AM »
That too did not work. I would request further guidance after assuming that this has been coded ONLY for static linking.

Is it possible to put the Qt/WebKit source code somewhere in the BUILDROOT virtual environment and make the QtWeb use that source while building?
(My solution of putting the sources in the installations /usr/lib/qt4 must be wrong because the packaging should happen only within the virtual environment right?)

I have just downloaded the qt4-common src.rpm. I will extract the source.

Is there a way to fool QtWeb.pri to look for WebKit.prc and WebCore.prc and whatever else it needs somewhere inside this virtual BUILDROOT environment?
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Failure to find: $(QTDIR)/src/3rdparty/webkit/Source/WebCore/WebCore.qrc
« Reply #25 on: November 26, 2012, 10:36:25 AM »
With the following change to the spec file, build exits with zero.

Code: [Select]
Name: qtweb
Version: 3.7.5.101
Release: %mkrel 1
Summary: Portable, compact, fast, secure internet browser based on Qt and WebKit.
License: GPLv2 or later
Group: Networking/WWW
URL: http://qtweb.net
Source0: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
BuildRequires: libqt4-devel
BuildRequires: libqtwebkit4
AutoReqProv: no

%description
QtWeb Internet Browser - lightweight, secure and portable browser having unique user interface and privacy features.
QtWeb is an open source project based on Nokia's Qt framework and Apple's WebKit rendering engine (the same as being used in Apple Safari and Google Chrome).

%prep
%setup -q

%build
export QTDIR="/home/testinstall/qt"
qmake
make

%changelog

I am unable to ascertain if the binary has been built or not. The buildroot is getting automatically deleted.

NOTE : I have extracted our qt4 src.rpm, took the Qt sources from it and placed under /home/testinstall/qt.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8583
  • Aurum nostrum non est aurum vulgi.
Re: Troubles packaging QtWeb browser
« Reply #26 on: November 26, 2012, 04:23:12 PM »
Late as usual ... ;)

Anyway, I skimmed through the two pages and did notice one very peculiar point in the spec...

I've seen specs that skipped %build altogether but in the spec that you provided, I noticed on the %install section the instructions to create containers in $RPM_BUILD_ROOT but other than the creation of these folders, there were no other instructions.

I'm not sure whether %build takes care of all but I suspect that $RPM_BUILD_ROOT will be empty thus you're gonna end up with an empty RPM.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Troubles packaging QtWeb browser
« Reply #27 on: November 28, 2012, 09:46:54 AM »
[Archie]

This is another updated version of the .spec file:
Code: [Select]
Name: qtweb
Version: 3.7.5.101
Release: %mkrel 1
Summary: Portable, compact, fast, secure internet browser based on Qt and WebKit.
License: GPLv2 or later
Group: Networking/WWW
URL: http://qtweb.net
Source0: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
BuildRequires: libqt4-devel
BuildRequires: libqtwebkit4
AutoReqProv: no

%description
QtWeb Internet Browser - lightweight, secure and portable browser having unique user interface and privacy features.
QtWeb is an open source project based on Nokia's Qt framework and Apple's WebKit rendering engine (the same as being used in Apple Safari and Google Chrome).

%prep
%setup -q

%build
export QTDIR="/home/testinstall/qt"
qmake
make

%install
rm -rf %buildroot
mkdir -p %{buildroot}/%{_bindir}
cd release
install -m 755 QtWeb %{buildroot}/%{_bindir}/QtWeb

%files
%{_bindir}/*

%changelog

Now with this, I get an .src.rpm and .rpm built.
But while the .src.rpm appears to be proper and complete, the .rpm is only about 3.2 MB in size while the expected binary should have been ~13MB in size.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Troubles packaging QtWeb browser
« Reply #28 on: November 28, 2012, 09:53:25 AM »
Here is the tail end of log file related to the above .spec:

Code: [Select]
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_UITOOLS -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtNetwork -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include/QtXml -I/usr/lib/qt4/include/QtWebKit -I/usr/lib/qt4/include -Itmp/moc/release_static -I. -I./tmp/moc/Release_static -I./tmp/rcc/Release_static -Itmp/moc/release_static -I. -o release/qrc_WebKit.o tmp/rcc/release_static/qrc_WebKit.cpp
g++ -Wl,-O1 -o release/QtWeb release/aboutdialog.o release/addtorrentdialog.o release/autocomplete.o release/autosaver.o release/bencodeparser.o release/bookmarks.o release/bookmarksimport.o release/browserapplication.o release/browsermainwindow.o release/certificateinfo.o release/chasewidget.o release/closeapp.o release/commands.o release/connectionmanager.o release/cookiejar.o release/downloadmanager.o release/edittableview.o release/edittreeview.o release/exlineedit.o release/filemanager.o release/googlesuggest.o release/history.o release/findwidget.o release/main.o release/metainfo.o release/modelmenu.o release/networkaccessmanager.o release/passwords.o release/peerwireclient.o release/ratecontroller.o release/resetsettings.o release/savepdf.o release/searches.o release/searchlineedit.o release/settings.o release/shortcuts.o release/squeezelabel.o release/tabbar.o release/tabwidget.o release/toolbarsearch.o release/torrentclient.o release/torrentserver.o release/torrentwindow.o release/trackerclient.o release/urllineedit.o release/viewsource.o release/webpage.o release/webview.o release/xbel.o release/moc_aboutdialog.o release/moc_addtorrentdialog.o release/moc_autocomplete.o release/moc_autosaver.o release/moc_bookmarks.o release/moc_browserapplication.o release/moc_browsermainwindow.o release/moc_certificateinfo.o release/moc_chasewidget.o release/moc_closeapp.o release/moc_commands.o release/moc_cookiejar.o release/moc_downloadmanager.o release/moc_edittableview.o release/moc_edittreeview.o release/moc_exlineedit.o release/moc_filemanager.o release/moc_googlesuggest.o release/moc_history.o release/moc_findwidget.o release/moc_modelmenu.o release/moc_networkaccessmanager.o release/moc_passwords.o release/moc_peerwireclient.o release/moc_ratecontroller.o release/moc_resetsettings.o release/moc_savepdf.o release/moc_searches.o release/moc_searchlineedit.o release/moc_settings.o release/moc_shortcuts.o release/moc_squeezelabel.o release/moc_tabbar.o release/moc_tabwidget.o release/moc_toolbarsearch.o release/moc_torrentclient.o release/moc_torrentserver.o release/moc_torrentwindow.o release/moc_trackerclient.o release/moc_urllineedit.o release/moc_viewsource.o release/moc_webpage.o release/moc_webview.o release/qrc_data.o release/qrc_htmls.o release/qrc_icons.o release/qrc_WebCore.o release/qrc_WebKit.o    -L/usr/lib -L/usr/lib/qt4/plugins/codecs -lqcncodecs -lqjpcodecs -lqkrcodecs -lqtwcodecs -L/usr/lib/qt4/plugins/imageformats -lqgif -lqjpeg -lqico -lQtWebKit -lQtXml -L/usr/lib -lQtGui -lEGL -lQtNetwork -lQtCore -lpthread
+ exit 0
Executing(%install): /bin/sh -e /home/testinstall/src/tmp/rpm-tmp.ninR7l
+ umask 022
+ cd /home/testinstall/src/rpm/BUILD
+ cd qtweb-3.7.5.101
+ '[' 1 -eq 1 ']'
+ rm -rf /home/testinstall/src/rpm/BUILDROOT/qtweb-3.7.5.101-1slingshot2012.i386
+ mkdir -p /home/testinstall/src/rpm/BUILDROOT/qtweb-3.7.5.101-1slingshot2012.i386//usr/bin
+ cd release
+ install -m 755 QtWeb /home/testinstall/src/rpm/BUILDROOT/qtweb-3.7.5.101-1slingshot2012.i386//usr/bin/QtWeb
+ '[' -n '' ']'
+ /usr/share/spec-helper/clean_files
+ '[' -n '' ']'
+ /usr/share/spec-helper/compress_files .bz2
+ '[' -n '' ']'
+ /usr/share/spec-helper/relink_symlinks
+ '[' -n '' ']'
+ /usr/share/spec-helper/clean_perl
+ '[' -n '' ']'
+ /usr/share/spec-helper/lib_symlinks
+ '[' -n '' ']'
+ /usr/share/spec-helper/gprintify
+ '[' -n '' ']'
+ /usr/share/spec-helper/fix_mo
+ '[' -n '' ']'
+ /usr/share/spec-helper/translate_menu
+ '[' -n '' ']'
+ /usr/share/spec-helper/fix_pamd
+ '[' -n '' ']'
+ /usr/share/spec-helper/remove_info_dir
+ '[' -n '' ']'
+ /usr/share/spec-helper/fix_eol
+ DONT_STRIP=
+ /usr/share/spec-helper/check_elf_files
Warning: unused libraries in /usr/bin/QtWeb: libqcncodecs.so
  libqjpcodecs.so
  libqkrcodecs.so
  libqtwcodecs.so
  libqgif.so
  libqjpeg.so
  libqico.so
 libEGL.so.1
 libpthread.so.0
 libm.so.6

Processing files: qtweb-3.7.5.101-1slingshot2012.i586
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/testinstall/src/rpm/BUILDROOT/qtweb-3.7.5.101-1slingshot2012.i386
Wrote: /home/testinstall/src/rpm/SRPMS/qtweb-3.7.5.101-1slingshot2012.src.rpm
Wrote: /home/testinstall/src/rpm/RPMS/i586/qtweb-3.7.5.101-1slingshot2012.i586.rpm
Executing(%clean): /bin/sh -e /home/testinstall/src/tmp/rpm-tmp.9IuQLO
+ umask 022
+ cd /home/testinstall/src/rpm/BUILD
+ cd qtweb-3.7.5.101
+ /bin/rm -rf /home/testinstall/src/rpm/BUILDROOT/qtweb-3.7.5.101-1slingshot2012.i386
+ exit 0

Earlier I did not know that the resulting binary would be in the "release" subfolder. So I had to add that "cd release" line.
Even after the process is complete /src/rpm/BUILD/qtweb-3.7.5.100/release directory contains many files ending with .o extension along with one QtWeb binary of about 3MB size.

Ideally the result should be only one binary called QtWeb of about 13MB size.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: [PACKAGED] QtWeb - From source - Is it OK ?
« Reply #29 on: December 27, 2012, 11:25:31 AM »
I got it to build from source with a few fixes.
1. Had to put QtWebkit source in a separate location and point $QTDIR there.
2. Had to patch a few lines after modifying a patch applied by an unknown packager at Chakra.
3. Renamed logo.png to qtweb.png so that it would be displayed in the panel.
4. Added a script to provide a lowercase command to launch QtWeb.

SRPM - http://dl.dropbox.com/u/37931428/qtweb/qtweb-3.7.5.101-1slingshot2012.src.rpm
RPM - http://dl.dropbox.com/u/37931428/qtweb/qtweb-3.7.5.101-1slingshot2012.i586.rpm
SPEC - http://dl.dropbox.com/u/37931428/qtweb/pclos-qtweb.spec
LOG - http://dl.dropbox.com/u/37931428/qtweb/pclos-qtweb.spec.log
PATCH - http://dl.dropbox.com/u/37931428/qtweb/qtweb-libraryfix.patch

I will continue to update the links on the first page so that it is easy to track.

I am not sure about how this will behave on LXDE or XFCE installs.

Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6