VioletGiraffe / file-commander

Cross-platform Total Commander-like orthodox file manager for Windows, Mac and Linux
Apache License 2.0
375 stars 56 forks source link

[Solved]no member named ‘asKeyValueRange’ #316

Closed Simbi0z closed 6 months ago

Simbi0z commented 6 months ago

Archlinux qt5-base 5.15.12 qt6-base 6.6.2 gcc version 13.2.1 qconf 2.5-3 GNU Make 4.4.1 glibc 2.39

Did sh update_repository qmake -r make -j

...
g++ -c -pipe -pedantic-errors -O3 -fPIC -std=c++2b -flto -fno-fat-lto-objects -Wall -D_REENTRANT -DQT_MESSAGEL
OGCONTEXT -DNDEBUG=1 -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../image-processing -I../
cpputils -I../cpp-template-utils -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/
include/qt/QtCore -I../build/release/x64/qtutils -I../build/release/x64/qtutils -I/usr/lib/qt/mkspecs/linux-g+
+ -o ../build/release/x64/qtutils/moc_chistorycombobox.o ../build/release/x64/qtutils/moc_chistorycombobox.cpp
src/ctextencodingdetector.cpp: In function ‘float defaultMatchFunction(const CTextParser::OccurrenceTable&, co
nst CTextParser::OccurrenceTable&)’:                                                                          
src/ctextencodingdetector.cpp:35:71: error: ‘const class QHash<QString, long long unsigned int>’ has no member
 named ‘asKeyValueRange’                                                                                      
   35 |         for (const auto& n_gram1: smallerTable.trigramOccurrenceTable.asKeyValueRange())              
      |                                                                       ^~~~~~~~~~~~~~~                 
rm -f ../bin/release/x64/libautoupdater.a
...
VioletGiraffe commented 6 months ago

Hi, I think the code now relies on Qt 6 (no longer compatible with Qt 5). Run qmake6 -r instead of just qmake to make sure to build with Qt 6.

Simbi0z commented 6 months ago

Hi, I think the code now relies on Qt 6 (no longer compatible with Qt 5). Run qmake6 -r instead of just qmake to make sure to build with Qt 6.

Solved, thanks