Unsolved No possible to handle accents in QMessageBox
-
Hello,
I am trying to put accents in my the message box. I read many posts about it but I haven´t
found the solution yet.I have tried to use:
QString::fromUtf8("El caso actual se perder\u00E1.\n"
"Esta seguro que desea continuar?")QString::fromUtf8("El caso actual se perderá.\n"
"Esta seguro que desea continuar?")I have also tried fromLocal8Bit()
I have tried to change the codec QTextCodec::setCodecForLocale(QTextCodec::codecForName("ISO 8859-1"));
I have tried many other things without any success and variations of that changing codecs.
But any thing worked but using QLatin1String.
QLatin1String("El caso actual se perderá.\n"
"Esta seguro que desea continuar?")I accepted this solution the problem is now that I want to translate the app. I cannot use
tr(QLatin1String("")). I thought of using a macro if we are translating we do tr without
QLatin1String otherwise we keep using it. But my project is full of subprojects so it can be very
tedious. I am using qt5 so the codec for string is not implemented. Only this setCodecForLocale
but it does not work for me.Any idea?. Thank you very much
-
@zandarina said in No possible to handle accents in QMessageBox:
I accepted this solution the problem is now that I want to translate the app.
Disclaimer: the following statement is highly old school.
What I normally do is keep all the text inside the code pure ASCII, no accents or stuff like that. Linguist then allows you to easily implement those features in the translation file, just create a translation even for your native languace (spanish).
I'd use
tr("El caso actual se perdera'\nEsta seguro que desea continuar?")
and then put the correct accent in the spanish translation file that would get loaded -
Thank you very much. I was thinking to do something like this, if i do not find any solution.
Because it is not possible to use by defalt QString in Latin-1 by default? and I do not have
to include the QLatin1String in each string and then I could use tr directly and I can put the
accents.Thanks !!
-
if your text editor save the souce files in utf-8 format that it should work out of the box. Actually, I'm surprised it works with
QLatin1String
, it shouldn't -
@VRonin said in No possible to handle accents in QMessageBox:
f
yes latin-1 is the only thing i can use to put accents. I can´t use utf8 or anything else
maybe it is a problem of the file. I do not know. I checked in notepad and the codec
was undefined. So i will do what you recommend me. I will translate
it from spanish with no accents to spanish with accents as tr is in latin-1. Thank you very much !!! -
can´t use utf8 or anything else
maybe it is a problem of the fileMore likely a compiler problem. Is that MSVC?
Can you share the compile output showing the compiler call?
Regards
-
@aha_1980 said in No possible to handle accents in QMessageBox:
compile output
Hi thanks for answering. Yes i think the problem might be the compiler or the files codec. It is visual c++ 2015.
The out put is the following. Thanks'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\project_bin2\Release\project.exe'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Qt_final\5.12.3\msvc2015_64\bin\Qt5Sql.dll'. Symbols loaded.
'project.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkGUISupportQt-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Qt_final\5.12.3\msvc2015_64\bin\Qt5Widgets.dll'. Symbols loaded.
'project.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Unloaded 'C:\Windows\System32\ucrtbase.dll'
'project.exe' (Win32): Unloaded 'C:\Windows\System32\ucrtbase.dll'
'project.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Unloaded 'C:\Windows\System32\ucrtbase.dll'
'project.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkIOGeometry-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Qt_final\5.12.3\msvc2015_64\bin\Qt5Gui.dll'. Symbols loaded.
'project.exe' (Win32): Loaded 'C:\Qt_final\5.12.3\msvc2015_64\bin\Qt5Core.dll'. Symbols loaded.
'project.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkImagingStencil-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkInteractionImage-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkRenderingVolumeOpenGL2-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkRenderingOpenGL2-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkImagingMath-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Windows\System32\umpdc.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\cryptsp.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkInteractionWidgets-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkFiltersHybrid-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkFiltersModeling-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkImagingGeneral-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkInteractionStyle-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkIOImage-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkRenderingAnnotation-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkRenderingVolume-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkImagingCore-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkIOXML-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkFiltersGeometry-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkRenderingCore-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkRenderingFreeType-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkFiltersSources-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkCommonComputationalGeometry-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkFiltersGeneral-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkFiltersCore-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkCommonExecutionModel-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkCommonDataModel-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkCommonMisc-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkCommonTransforms-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkCommonMath-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkCommonCore-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkFiltersExtraction-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\uxtheme.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\dwmapi.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\mpr.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkIOCore-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Qt_final\5.12.3\msvc2015_64\bin\Qt5PrintSupport.dll'. Symbols loaded.
'project.exe' (Win32): Loaded 'C:\Windows\System32\netapi32.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkCommonSystem-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Windows\System32\userenv.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\comdlg32.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkzlib-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtksys-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Windows\System32\psapi.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkImagingColor-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Windows\System32\opengl32.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkglew-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Windows\System32\winmm.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkImagingHybrid-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkImagingSources-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkDICOMParser-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkjpeg-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkmetaio-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkpng-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtktiff-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkIOXMLParser-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkfreetype-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkCommonColor-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkFiltersStatistics-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtklz4-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtklzma-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkdoubleconversion-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Windows\System32\winspool.drv'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.18362.836_none_2a2600ea466b531c\comctl32.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\glu32.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\winmmbase.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\winmmbase.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Unloaded 'C:\Windows\System32\winmmbase.dll'
'project.exe' (Win32): Loaded 'C:\Windows\System32\winmmbase.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Unloaded 'C:\Windows\System32\winmmbase.dll'
'project.exe' (Win32): Loaded 'C:\Windows\System32\wsock32.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkexpat-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Windows\System32\propsys.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Users\user_name\Desktop\vtk_final\bin\Release\vtkImagingFourier-8.2.dll'. Module was built without symbols.
'project.exe' (Win32): Loaded 'C:\Windows\System32\IPHLPAPI.DLL'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\netutils.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\DXCore.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\srvcli.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\cryptbase.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Qt_final\5.12.3\msvc2015_64\plugins\platforms\qwindows.dll'. Symbols loaded.
'project.exe' (Win32): Loaded 'C:\Windows\System32\wtsapi32.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Qt_final\5.12.3\msvc2015_64\plugins\styles\qwindowsvistastyle.dll'. Symbols loaded.
'project.exe' (Win32): Loaded 'C:\Qt_final\5.12.3\msvc2015_64\plugins\imageformats\qgif.dll'. Symbols loaded.
'project.exe' (Win32): Loaded 'C:\Qt_final\5.12.3\msvc2015_64\plugins\imageformats\qicns.dll'. Symbols loaded.
'project.exe' (Win32): Loaded 'C:\Qt_final\5.12.3\msvc2015_64\plugins\imageformats\qico.dll'. Symbols loaded.
'project.exe' (Win32): Loaded 'C:\Qt_final\5.12.3\msvc2015_64\plugins\imageformats\qjpeg.dll'. Symbols loaded.
'project.exe' (Win32): Loaded 'C:\Qt_final\5.12.3\msvc2015_64\plugins\imageformats\qsvg.dll'. Symbols loaded.
'project.exe' (Win32): Loaded 'C:\Qt_final\5.12.3\msvc2015_64\bin\Qt5Svg.dll'. Symbols loaded.
'project.exe' (Win32): Loaded 'C:\Qt_final\5.12.3\msvc2015_64\plugins\imageformats\qtga.dll'. Symbols loaded.
'project.exe' (Win32): Loaded 'C:\Qt_final\5.12.3\msvc2015_64\plugins\imageformats\qtiff.dll'. Symbols loaded.
'project.exe' (Win32): Loaded 'C:\Qt_final\5.12.3\msvc2015_64\plugins\imageformats\qwbmp.dll'. Symbols loaded.
'project.exe' (Win32): Loaded 'C:\Qt_final\5.12.3\msvc2015_64\plugins\imageformats\qwebp.dll'. Symbols loaded.
'project.exe' (Win32): Loaded 'C:\Qt_final\5.12.3\msvc2015_64\plugins\sqldrivers\qsqlite.dll'. Symbols loaded.
'project.exe' (Win32): Loaded 'C:\Windows\System32\msctf.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.18362.836_none_e6c4b943130f18ed\comctl32.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\TextInputFramework.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\CoreMessaging.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\CoreUIComponents.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\ntmarta.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Unloaded 'C:\Windows\System32\WinTypes.dll'
'project.exe' (Win32): Loaded 'C:\Windows\System32\iertutil.dll'. Cannot find or open the PDB file.
ERROR: In C:\Users\user_name\Desktop\vtk\IO\Geometry\vtkSTLReader.cxx, line 99
vtkSTLReader (0000021693C17850): A FileName must be specified.ERROR: In C:\Users\user_name\Desktop\vtk\Common\ExecutionModel\vtkExecutive.cxx, line 782
vtkCompositeDataPipeline (0000021693C0AA10): Algorithm vtkSTLReader(0000021693C17850) returned failure for request: vtkInformation (0000021694E1C3B0)
Debug: Off
Modified Time: 4555
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA
FORWARD_DIRECTION: 0
ALGORITHM_AFTER_FORWARD: 1
FROM_OUTPUT_PORT: 0ERROR: In C:\Users\user_name\Desktop\vtk\IO\Geometry\vtkSTLReader.cxx, line 99
vtkSTLReader (0000021693C16BF0): A FileName must be specified.ERROR: In C:\Users\user_name\Desktop\vtk\Common\ExecutionModel\vtkExecutive.cxx, line 782
vtkCompositeDataPipeline (0000021693C090C0): Algorithm vtkSTLReader(0000021693C16BF0) returned failure for request: vtkInformation (0000021694E1F600)
Debug: Off
Modified Time: 4737
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA
FORWARD_DIRECTION: 0
ALGORITHM_AFTER_FORWARD: 1
FROM_OUTPUT_PORT: 0'project.exe' (Win32): Loaded 'C:\Windows\System32\DWrite.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\d3d9.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\d3d10warp.dll'. Cannot find or open the PDB file.
onecore\windows\directx\database\helperlibrary\lib\directxdatabasequeryimpl.cpp(67)\d3d9.dll!00007FFC6957D0ED: (caller: 00007FFC6957D3AD) ReturnHr(1) tid(7f00) 80004002 Interfaz no compatible
onecore\windows\directx\database\helperlibrary\lib\directxdatabasequeryimpl.cpp(248)\d3d9.dll!00007FFC6957D616: (caller: 00007FFC6957D196) ReturnHr(2) tid(7f00) 80004002 Interfaz no compatible
onecore\windows\directx\database\helperlibrary\lib\directxdatabasequeryimpl.cpp(231)\d3d9.dll!00007FFC6957D1BE: (caller: 00007FFC694CDE28) ReturnHr(3) tid(7f00) 80004002 Interfaz no compatible
onecore\windows\directx\database\helperlibrary\lib\directxdatabasehelper.cpp(736)\d3d9.dll!00007FFC694CDD5E: (caller: 00007FFC6957CA8C) ReturnHr(4) tid(7f00) 80004002 Interfaz no compatible
onecore\windows\directx\database\helperlibrary\lib\directxdatabasehelper.cpp(887)\d3d9.dll!00007FFC6957CB30: (caller: 00007FFC694A73FB) ReturnHr(5) tid(7f00) 80004002 Interfaz no compatible
onecore\windows\directx\database\helperlibrary\lib\directxdatabasehelper.cpp(536)\d3d9.dll!00007FFC6957CC6F: (caller: 00007FFC694CEE33) ReturnHr(6) tid(7f00) 80004002 Interfaz no compatible
onecore\windows\directx\database\helperlibrary\lib\directxdatabasehelper.cpp(536)\d3d9.dll!00007FFC6957CC6F: (caller: 00007FFC694CEE33) ReturnHr(7) tid(7f00) 80004002 Interfaz no compatible
'project.exe' (Win32): Unloaded 'C:\Windows\System32\d3d10warp.dll'
'project.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_3fb411405334b4d5\igdumdim64.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_3fb411405334b4d5\igd9dxva64.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_3fb411405334b4d5\igd9dxva64.dll'
'project.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_3fb411405334b4d5\igdgmm64.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_3fb411405334b4d5\igdgmm64.dll'
'project.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_3fb411405334b4d5\igdumdim64.dll'
'project.exe' (Win32): Loaded 'C:\Windows\System32\clbcatq.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\DataExchange.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\d3d11.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\dcomp.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\dxgi.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\twinapi.appcore.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\rmclient.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\d3d10warp.dll'. Cannot find or open the PDB file.
onecore\windows\directx\database\helperlibrary\lib\directxdatabasequeryimpl.cpp(67)\d3d9.dll!00007FFC6957D0ED: (caller: 00007FFC6957D3AD) ReturnHr(8) tid(7f00) 80004002 Interfaz no compatible
onecore\windows\directx\database\helperlibrary\lib\directxdatabasequeryimpl.cpp(248)\d3d9.dll!00007FFC6957D616: (caller: 00007FFC6957D196) ReturnHr(9) tid(7f00) 80004002 Interfaz no compatible
onecore\windows\directx\database\helperlibrary\lib\directxdatabasequeryimpl.cpp(231)\d3d9.dll!00007FFC6957D1BE: (caller: 00007FFC694CDE28) ReturnHr(10) tid(7f00) 80004002 Interfaz no compatible
onecore\windows\directx\database\helperlibrary\lib\directxdatabasehelper.cpp(736)\d3d9.dll!00007FFC694CDD5E: (caller: 00007FFC6957CA8C) ReturnHr(11) tid(7f00) 80004002 Interfaz no compatible
onecore\windows\directx\database\helperlibrary\lib\directxdatabasehelper.cpp(887)\d3d9.dll!00007FFC6957CB30: (caller: 00007FFC694A73FB) ReturnHr(12) tid(7f00) 80004002 Interfaz no compatible
onecore\windows\directx\database\helperlibrary\lib\directxdatabasehelper.cpp(536)\d3d9.dll!00007FFC6957CC6F: (caller: 00007FFC694CEE33) ReturnHr(13) tid(7f00) 80004002 Interfaz no compatible
onecore\windows\directx\database\helperlibrary\lib\directxdatabasehelper.cpp(536)\d3d9.dll!00007FFC6957CC6F: (caller: 00007FFC694CEE33) ReturnHr(14) tid(7f00) 80004002 Interfaz no compatible
'project.exe' (Win32): Unloaded 'C:\Windows\System32\d3d10warp.dll'
'project.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_3fb411405334b4d5\igdumdim64.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_3fb411405334b4d5\igd9dxva64.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_3fb411405334b4d5\igd9dxva64.dll'
'project.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_3fb411405334b4d5\igdgmm64.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_3fb411405334b4d5\igdgmm64.dll'
'project.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_3fb411405334b4d5\igdumdim64.dll'
'project.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_3fb411405334b4d5\ig9icd64.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\ResourcePolicyClient.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Unloaded 'C:\Windows\System32\ResourcePolicyClient.dll'
onecore\windows\directx\database\helperlibrary\lib\directxdatabasequeryimpl.cpp(67)\dxgi.dll!00007FFC76DF7E55: (caller: 00007FFC76DF8115) ReturnHr(1) tid(7f00) 80004002 Interfaz no compatible
onecore\windows\directx\database\helperlibrary\lib\directxdatabasequeryimpl.cpp(248)\dxgi.dll!00007FFC76DF837F: (caller: 00007FFC76DF7EFE) ReturnHr(2) tid(7f00) 80004002 Interfaz no compatible
onecore\windows\directx\database\helperlibrary\lib\directxdatabasequeryimpl.cpp(231)\dxgi.dll!00007FFC76DF7F26: (caller: 00007FFC76DA8BCD) ReturnHr(3) tid(7f00) 80004002 Interfaz no compatible
onecore\windows\directx\database\helperlibrary\lib\directxdatabasehelper.cpp(736)\dxgi.dll!00007FFC76DA8C40: (caller: 00007FFC76DF785C) ReturnHr(4) tid(7f00) 80004002 Interfaz no compatible
onecore\windows\directx\database\helperlibrary\lib\directxdatabasehelper.cpp(887)\dxgi.dll!00007FFC76DF7900: (caller: 00007FFC76D90645) ReturnHr(5) tid(7f00) 80004002 Interfaz no compatible
onecore\windows\directx\database\helperlibrary\lib\directxdatabasehelper.cpp(536)\dxgi.dll!00007FFC76DF7A28: (caller: 00007FFC76DA8298) ReturnHr(6) tid(7f00) 80004002 Interfaz no compatible
'project.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_3fb411405334b4d5\igdgmm64.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_3fb411405334b4d5\igc64.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_3fb411405334b4d5\igdgmm64.dll'
'project.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_3fb411405334b4d5\igdgmm64.dll'. Cannot find or open the PDB file.
'project.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_3fb411405334b4d5\igdgmm64.dll'
ERROR: In C:\Users\user_name\Desktop\vtk\IO\Geometry\vtkSTLReader.cxx, line 99
vtkSTLReader (0000021693C16BF0): A FileName must be specified.ERROR: In C:\Users\user_name\Desktop\vtk\Common\ExecutionModel\vtkExecutive.cxx, line 782
vtkCompositeDataPipeline (0000021693C090C0): Algorithm vtkSTLReader(0000021693C16BF0) returned failure for request: vtkInformation (0000021694E1FA60)
Debug: Off
Modified Time: 14709
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA
FORWARD_DIRECTION: 0
ALGORITHM_AFTER_FORWARD: 1
FROM_OUTPUT_PORT: 0Exception thrown at 0x00007FFC784CA799 in project.exe: Microsoft C++ exception: FileFormatException at memory location 0x000000C0914FA5E0.
Exception thrown at 0x00007FFC784CA799 in project.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000.
ERROR: In C:\Users\user_name\Desktop\vtk\IO\Image\vtkPNGReader.cxx, line 118
vtkPNGReader (0000021694F5E620): Unable to open file .0ERROR: In C:\Users\user_name\Desktop\vtk\GUISupport\Qt\QVTKInteractor.cxx, line 147
QVTKInteractor (0000021695416E50): QVTKInteractor cannot control the event loop.'project.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_3fb411405334b4d5\igdgmm64.dll'. Cannot find or open the PDB file.
onecore\windows\directx\database\helperlibrary\lib\directxdatabasequeryimpl.cpp(67)\dxgi.dll!00007FFC76DF7E55: (caller: 00007FFC76DF8115) ReturnHr(7) tid(7f00) 80004002 Interfaz no compatible
onecore\windows\directx\database\helperlibrary\lib\directxdatabasequeryimpl.cpp(248)\dxgi.dll!00007FFC76DF837F: (caller: 00007FFC76DF7EFE) ReturnHr(8) tid(7f00) 80004002 Interfaz no compatible
onecore\windows\directx\database\helperlibrary\lib\directxdatabasequeryimpl.cpp(231)\dxgi.dll!00007FFC76DF7F26: (caller: 00007FFC76DA8BCD) ReturnHr(9) tid(7f00) 80004002 Interfaz no compatible
onecore\windows\directx\database\helperlibrary\lib\directxdatabasehelper.cpp(736)\dxgi.dll!00007FFC76DA8C40: (caller: 00007FFC76DF785C) ReturnHr(10) tid(7f00) 80004002 Interfaz no compatible
onecore\windows\directx\database\helperlibrary\lib\directxdatabasehelper.cpp(887)\dxgi.dll!00007FFC76DF7900: (caller: 00007FFC76D90645) ReturnHr(11) tid(7f00) 80004002 Interfaz no compatible
onecore\windows\directx\database\helperlibrary\lib\directxdatabasehelper.cpp(536)\dxgi.dll!00007FFC76DF7A28: (caller: 00007FFC76DA8298) ReturnHr(12) tid(7f00) 80004002 Interfaz no compatible
ERROR: In C:\Users\user_name\Desktop\vtk\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx, line 709
vtkCompositeDataPipeline (000002169541E070): Input port 0 of algorithm vtkImageMapToWindowLevelColors(000002169541DE90) has 0 connections but is not optional.ERROR: In C:\Users\user_name\Desktop\vtk\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx, line 709
vtkCompositeDataPipeline (00000216958DDB90): Input port 0 of algorithm vtkImageMapToWindowLevelColors(00000216958DF7B0) has 0 connections but is not optional.ERROR: In C:\Users\user_name\Desktop\vtk\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx, line 709
vtkCompositeDataPipeline (000002169595FC50): Input port 0 of algorithm vtkImageMapToWindowLevelColors(000002169595FB60) has 0 connections but is not optional.ERROR: In C:\Users\user_name\Desktop\vtk\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx, line 709
vtkCompositeDataPipeline (00000216A11927B0): Input port 0 of algorithm vtkImageMapToWindowLevelColors(00000216A11937A0) has 0 connections but is not optional.ERROR: In C:\Users\user_name\Desktop\vtk\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx, line 709
vtkCompositeDataPipeline (00000216A13096A0): Input port 0 of algorithm vtkImageMapToWindowLevelColors(00000216A130B680) has 0 connections but is not optional.ERROR: In C:\Users\user_name\Desktop\vtk\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx, line 709
vtkCompositeDataPipeline (00000216A1619380): Input port 0 of algorithm vtkImageMapToWindowLevelColors(00000216A16191A0) has 0 connections but is not optional.ERROR: In C:\Users\user_name\Desktop\vtk\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx, line 709
vtkCompositeDataPipeline (00000216A18ED500): Input port 0 of algorithm vtkImageMapToWindowLevelColors(00000216A18EBF70) has 0 connections but is not optional.ERROR: In C:\Users\user_name\Desktop\vtk\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx, line 709
vtkCompositeDataPipeline (00000216A1EF7860): Input port 0 of algorithm vtkImageMapToWindowLevelColors(00000216A1EF73B0) has 0 connections but is not optional.The thread 0x7f00 has exited with code 0 (0x0).
The thread 0x6e30 has exited with code 0 (0x0).
The thread 0x459c has exited with code 0 (0x0).
The thread 0x5c10 has exited with code 0 (0x0).
The thread 0x5edc has exited with code 0 (0x0).
The thread 0x7004 has exited with code 0 (0x0).
The thread 0x6630 has exited with code 0 (0x0).
The thread 0x7bb0 has exited with code 0 (0x0).
The thread 0x4c44 has exited with code 0 (0x0).
The thread 0x6e28 has exited with code 0 (0x0).
The thread 0x5e34 has exited with code 0 (0x0).
The thread 0x802c has exited with code 0 (0x0).
The thread 0x2ac0 has exited with code 0 (0x0).
The thread 0x5920 has exited with code 0 (0x0).
The thread 0x5524 has exited with code 0 (0x0).
The thread 0x6110 has exited with code 0 (0x0).
The program '[30664] project.exe' has exited with code 0 (0x0). -
Hi @zandarina,
this looks like the application output, not the compile output. Anyway, MSVC still seems to treat UTF-8 as something really alien.
Reading https://docs.microsoft.com/de-de/cpp/build/reference/utf-8-set-source-and-executable-character-sets-to-utf-8?view=vs-2019 it seems there are two ways of forcing it to UTF-8:
- Add a BOM (Byte Order Mark) header to your source files
- Add a command parameter to the compiler call
For 1 there is an option in QtCreator: Tools > Options > Text Editor > Behavior > File Encodings.
For 2, you would have to fiddle with
QMAKE_CFLAGS
andQMAKE_CXXFLAGS
in your.pro
file.Regards
-
Thank you i will try the first option. Thanks !!