Note that there are some explanatory texts on larger screens.

plurals
  1. POlibQtScript.so.4 not found when compiling Qt application
    primarykey
    data
    text
    <p>I'm having troubles with compiling a Qt application on Solaris 10 (ugh). The application depends on libQtDesigner. It compiles fine on everything else I've tried (Win 7, Mac, Ubuntu, RedHat). However, on Solaris 10, I get the following error:</p> <pre><code>ld: warning: file libQtScript.so.4: required by /tools/Qt-4.6.1_32/lib/libQtDesigner.so, not found Undefined first referenced symbol in file QScriptValue QScriptEngine::newQObject(QObject*,QScriptEngine::ValueOwnership,const QFlags&lt;QScriptEngine::QObjectWrapOption&gt;&amp;) /tools/Qt-4.6.1_32/lib/libQtDesigner.so QScriptEngine::~QScriptEngine() /tools/Qt-4.6.1_32/lib/libQtDesigner.so QString QScriptValue::toString()const /tools/Qt-4.6.1_32/lib/libQtDesigner.so void QScriptEngine::popContext() /tools/Qt-4.6.1_32/lib/libQtDesigner.so bool QScriptValue::isValid()const /tools/Qt-4.6.1_32/lib/libQtDesigner.so QScriptValue::~QScriptValue() /tools/Qt-4.6.1_32/lib/libQtDesigner.so void QScriptValue::setProperty(const QString&amp;,const QScriptValue&amp;,const QFlags&lt;QScriptValue::PropertyFlag&gt;&amp;) /tools/Qt-4.6.1_32/lib/libQtDesigner.so void QScriptValue::setProperty(unsigned,const QScriptValue&amp;,const QFlags&lt;QScriptValue::PropertyFlag&gt;&amp;) /tools/Qt-4.6.1_32/lib/libQtDesigner.so QScriptValue QScriptContext::activationObject()const /tools/Qt-4.6.1_32/lib/libQtDesigner.so int QScriptEngine::uncaughtExceptionLineNumber()const /tools/Qt-4.6.1_32/lib/libQtDesigner.so bool QScriptEngine::hasUncaughtException()const /tools/Qt-4.6.1_32/lib/libQtDesigner.so QScriptContext*QScriptEngine::pushContext() /tools/Qt-4.6.1_32/lib/libQtDesigner.so QScriptValue QScriptEngine::evaluate(const QString&amp;,const QString&amp;,int) /tools/Qt-4.6.1_32/lib/libQtDesigner.so bool QScriptEngine::canEvaluate(const QString&amp;)const /tools/Qt-4.6.1_32/lib/libQtDesigner.so QScriptValue QScriptEngine::newArray(unsigned) /tools/Qt-4.6.1_32/lib/libQtDesigner.so QScriptEngine::QScriptEngine() /tools/Qt-4.6.1_32/lib/libQtDesigner.so ld: fatal: Symbol referencing errors. No output written to builder make[2]: *** [builder/builder] Error 1 make[1]: *** [builder/CMakeFiles/builder.dir/all] Error 2 make: *** [all] Error 2 </code></pre> <p>I figured that libQtScript.so.4 must be missing, so I poked around, but it's definitely there. When I run ldd on libQtDesigner.so, it says it's linked to libQtScript.so.4 properly. Furthermore it's in the same directory as libQtDesigner.so. Anyway, I'm at a complete loss. </p> <p>Any suggestions? Thanks in advance. </p> <p>EDIT: I think I've found the problem, but I'm unsure how to fix it. </p> <p>I ran ldd from the directory that libQtDesigner.so is in, and it gave me this output.</p> <pre><code>$ ldd libQtDesigner.so libQtScript.so.4 =&gt; ./libQtScript.so.4 libQtXml.so.4 =&gt; ./libQtXml.so.4 libQtGui.so.4 =&gt; ./libQtGui.so.4 libQtCore.so.4 =&gt; ./libQtCore.so.4 ... </code></pre> <p>I didn't catch it first, but the paths are relative, which is a problem when I'm anywhere but the same directory. </p> <p>How should I resolve this? Do I have to recompile Qt?</p> <p>EDIT. I'm an idiot. I had a typo in my LD_LIBRARY_PATH</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload