I have made some progress in diagnosing this problem.
In source code file samples/qt/Tutorial/src/Main.cxx there are four (4) calls to member function load(...) in instances of Qt class QTranslator.
Here is a snippet with all four (4) of these calls:
=============================
QString resTutDir = ApplicationTut::getTutResourceDir();QTranslator strTrans( 0 );
Standard_Boolean isOK = strTrans.load( "Common-string", resDir );
if( isOK )
a.installTranslator( &strTrans );
QTranslator iconTrans( 0 );
isOK = iconTrans.load( "Common-icon", resDir );
if( isOK )
a.installTranslator( &iconTrans );
QTranslator strTutTrans( 0 );
isOK = strTutTrans.load( "Tutorial-string", resTutDir );
if( isOK )
a.installTranslator( &strTutTrans );
QTranslator iconTutTrans( 0 );
isOK = iconTutTrans.load( "Tutorial-icon", resTutDir );
if( isOK )
a.installTranslator( &iconTutTrans );
=============================
Note: there is no "else" clause with the " if( isOK )" conditional statements, so a failure to load(...) the related item:
1. is silently ignored;
2. does not stop execution of the program.
* * *
* * *
I have introduced diagnostic reporting for these four(4) calls to load(...), revealing that in fact the load(..) calls are all failing.
Here is the modified first call to the load(...) member function.
=============================
QTranslator strTrans( 0 );
// 20180705 Author ...
Standard_Boolean isOK = strTrans.load( "/home/Author/apps/OpenCASCADE-7.3.0/_download/opencascade-7.3.0/samples/qt/Common/src/Common-string.ts" );
// Standard_Boolean isOK = strTrans.load( "Common-string", resDir, "", ".ts" );
// Standard_Boolean isOK = strTrans.load( "Common-string", resDir );
// Standard_Boolean isOK = strTrans.load( "Common-string.ts", resDir );
// ... Author.
if( isOK )
// 20180705 Author ...
{a.installTranslator( &strTrans );}
else {const std::string CoutMsg3("FAILED TO LOAD <Common-string>"); cout << CoutPfx + CoutMsg3 << endl;}
// ... Author.
=============================
* * *
* * *
Here is paste from the bash shell console window, from which the Tutorial executable is launched:
=============================
root@debian1:/home/Author/apps/OpenCASCADE-7.3.0/_test/Open CASCADE Tutorial/bin/Debug# ./run_tutorial.sh
START: run_tutorial.sh ...
START: env.sh ...
START: custom.sh ...
... FINISH: custom.sh
... FINISH: env.sh
---------------------
Environment Variables:
---------------------
SESSION_MANAGER=
QTDIR=/usr/lib/x86_64-linux-gnu/qt5
PATH=/usr/lib/x86_64-linux-gnu/qt5/bin:/home/Author/apps/OpenCASCADE-7.3.0/_test/Open CASCADE Tutorial/bin/Debug:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
STATION=Linux
RES_DIR=/home/Author/apps/OpenCASCADE-7.3.0/_test/Open CASCADE Tutorial/bin/Debug/res
---------------------
CASROOT=
---------------------
CSF_ResourcesDefaults=/home/Author/apps/OpenCASCADE-7.3.0/_download/opencascade-7.3.0/samples/qt
CSF_XmlOcafResource=
CSF_MDTVTexturesDirectory=
CSF_ShadersDirectory=
---------------------
CSF_OCCTBinPath=
CSF_OCCTLibPath=
CSF_OCCTIncludePath=
CSF_OCCTResourcePath=
CSF_OCCTDataPath=
CSF_OCCTSamplesPath=
CSF_OCCTTestsPath=
CSF_OCCTDocPath=
---------------------
TCL_DIR=
TCL_VERSION_WITH_DOT=
TK_DIR=
TK_VERSION_WITH_DOT=
FREETYPE_DIR=
FREEIMAGE_DIR=
GL2PS_DIR=
TBB_DIR=
VTK_DIR=
FFMPEG_DIR=
---------------------
Main.cxx:main(...): resDir</home/Author/apps/OpenCASCADE-7.3.0/_download/opencascade-7.3.0/samples/qt/Common/src>
Main.cxx:main(...):resTutDir</samples>
Main.cxx:main(...):FAILED TO LOAD <Common-string>
Main.cxx:main(...):FAILED TO LOAD <Common-icon>
Main.cxx:main(...):FAILED TO LOAD <Tutorial-string>
Main.cxx:main(...):FAILED TO LOAD <Tutorial-icon>
QCursor: Cannot create bitmap cursor; invalid bitmap(s)
QCursor: Cannot create bitmap cursor; invalid bitmap(s)
TKOpenGl | Type: Other | ID: 0 | Severity: Medium | Message:
OpenGl_Window::CreateWindow: window Visual is incomplete: no depth buffer, no stencil buffer
QObject::connect: No such signal QMdiArea::windowActivated (QWidget*) in /home/Author/apps/OpenCASCADE-7.3.0/_test/Open CASCADE Tutorial/Common/ApplicationCommon.cxx:421
... FINISH: run_tutorial.sh
root@debian1:/home/Author/apps/OpenCASCADE-7.3.0/_test/Open CASCADE Tutorial/bin/Debug#
=============================
Note the diagnostic messages produced by my modifications to Main.cxx:
=============================
Main.cxx:main(...): resDir</home/Author/apps/OpenCASCADE-7.3.0/_download/opencascade-7.3.0/samples/qt/Common/src>
Main.cxx:main(...):resTutDir</samples>
Main.cxx:main(...):FAILED TO LOAD <Common-string>
Main.cxx:main(...):FAILED TO LOAD <Common-icon>
Main.cxx:main(...):FAILED TO LOAD <Tutorial-string>
Main.cxx:main(...):FAILED TO LOAD <Tutorial-icon>
=============================
I have tried many different values for the parameters of the call to load(...), but nothing seems to work.
Since the load(...) member function returns only a boolean result, no details are available indicating the cause of the failure.
Next, I am going to examine the source code of the load(...) function to try to determine the cause of the load failures.
Meanwhile, any comments / suggestions from Forum members would be greatly appreciated !!
Author