Re: [Interest] Deploying QtWebEngine on Linux with Qt 5.6.0

2016-06-27 Thread Thiago Macieira
On segunda-feira, 27 de junho de 2016 08:27:35 PDT Mike Jackson wrote:
>I wonder if something is getting relinked during packaging? The main 
> application works ok so I don't think that is the problem. We use cpack 
> for our packaging into a .tar.gz

Only if cpack does it.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Deploying QtWebEngine on Linux with Qt 5.6.0

2016-06-27 Thread Kai Koehne
Setting LD_LIBRARY_PATH is the ultima ratio, but shouldn't be needed here.


I understand that you've been installing Qt 5.6.0 from the binary installer? Or 
did you configure/built it yourself?


For the binary installer, QtWebEngineProcess should have a RUNPATH set to 
$ORIGIN/../lib:


$ readelf --dynamic QtWebEngineProcess | grep PATH
0x001d (RUNPATH)Library runpath: [$ORIGIN/../lib]

Check whether libQt5Core.so.5 is found there (should be 
/opt/DREAM3D_SDK/Qt5.6.0/5.6/gcc_64/lib for you)

Regards

Kai


From: Interest <interest-bounces+kai.koehne=qt...@qt-project.org> on behalf of 
Thiago Macieira <thiago.macie...@intel.com>
Sent: Saturday, June 25, 2016 2:17:59 AM
To: interest@qt-project.org
Subject: Re: [Interest] Deploying QtWebEngine on Linux with Qt 5.6.0

On sexta-feira, 24 de junho de 2016 15:40:17 PDT Mike Jackson wrote:
> I am running Ubuntu 14.04 and Qt 5.6 downloaded from downloads.qt.io. I
> have built my application
> and the application runs but when I try to invoke the QWebEngine classes I
> just get an empty widget and the following error in the terminal:
>
> /opt/DREAM3D_SDK/Qt5.6.0/5.6/gcc_64/libexec/QtWebEngineProcess: error while
> loading shared libraries: libQt5WebEngineCore.so.5: cannot open shared
> object file: No such file or directory
>
> The same thing happens when I package my application. I have tried all
> sorts of ways of configuring the qt.conf directory, moving libs into other
> folders, renaming executables but nothing seems to work. Has anyone else
> run into a situation like this? Can anyone make recommendations on how to
> package QWebEngine?

You need to set the LD_LIBRARY_PATH environment variable before your
application is started. So replace your application with a shell script that
sets the environment and then starts the application.

--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Deploying QtWebEngine on Linux with Qt 5.6.0

2016-06-24 Thread Thiago Macieira
On sexta-feira, 24 de junho de 2016 15:40:17 PDT Mike Jackson wrote:
> I am running Ubuntu 14.04 and Qt 5.6 downloaded from downloads.qt.io. I
> have built my application
> and the application runs but when I try to invoke the QWebEngine classes I
> just get an empty widget and the following error in the terminal:
> 
> /opt/DREAM3D_SDK/Qt5.6.0/5.6/gcc_64/libexec/QtWebEngineProcess: error while
> loading shared libraries: libQt5WebEngineCore.so.5: cannot open shared
> object file: No such file or directory
> 
> The same thing happens when I package my application. I have tried all
> sorts of ways of configuring the qt.conf directory, moving libs into other
> folders, renaming executables but nothing seems to work. Has anyone else
> run into a situation like this? Can anyone make recommendations on how to
> package QWebEngine?

You need to set the LD_LIBRARY_PATH environment variable before your 
application is started. So replace your application with a shell script that 
sets the environment and then starts the application.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Deploying QtWebEngine on Linux with Qt 5.6.0

2016-06-24 Thread Mike Jackson
I am running Ubuntu 14.04 and Qt 5.6 downloaded from downloads.qt.io. I
have built my application
and the application runs but when I try to invoke the QWebEngine classes I
just get an empty widget and the following error in the terminal:

/opt/DREAM3D_SDK/Qt5.6.0/5.6/gcc_64/libexec/QtWebEngineProcess: error while
loading shared libraries: libQt5WebEngineCore.so.5: cannot open shared
object file: No such file or directory

The same thing happens when I package my application. I have tried all
sorts of ways of configuring the qt.conf directory, moving libs into other
folders, renaming executables but nothing seems to work. Has anyone else
run into a situation like this? Can anyone make recommendations on how to
package QWebEngine?

I have copied over all the resources and translations so that is not the
issue.

Thanks.
-- 
Mike Jackson
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest