Compile Error: cannot convert 'const char *' to 'const QString &'
Posted: Wed May 12 2021 4:09 am
I tried to compile KitchenSink with my compile of CopperSpice with MSVC without PostgreSQL that had the following error.
The command I used to configure:
The configuration did not want to find many of the *.cmake library configuration files without the -DCopperSpice_DIR set.
Code: Select all
..\src\graphics\animated_tiles.cpp(106): error C2664: 'void QWidget::setWindowTitle(const QString &)': cannot convert argument 1 from 'const char *' to 'const QString &'
Code: Select all
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCopperSpice_DIR="D:/Projects/Vendor/lib/cmake/CopperSpice" -DCMAKE_PREFIX_PATH="D:/Projects/Vendor" -DCMAKE_INSTALL_PREFIX=../bin ..