cutefishos / libcutefish

System Library.
GNU General Public License v3.0
23 stars 23 forks source link

If there is an error, how to solve it? #14

Open Liu-Peiming opened 2 years ago

Liu-Peiming commented 2 years ago

The following error occurred while executing the "make" command: /home/pi/libcutefish/screen/outputmodel.cpp: In member function ‘bool OutputModel::setReplicationSourceIndex(int, int)’: /home/pi/libcutefish/screen/outputmodel.cpp:606:21: error: ‘class KScreen::Output’ has no member named ‘setExplicitLogicalSize’; did you mean ‘explicitLogicalSize’? 606 | output.ptr->setExplicitLogicalSize(QSizeF()); | ^~~~~~ | explicitLogicalSize /home/pi/libcutefish/screen/outputmodel.cpp:617:21: error: ‘class KScreen::Output’ has no member named ‘setExplicitLogicalSize’; did you mean ‘explicitLogicalSize’? 617 | output.ptr->setExplicitLogicalSize(source->explicitLogicalSize()); | ^~~~~~ | explicitLogicalSize make[2]: [screen/CMakeFiles/cutefishscreen_qmlplugins.dir/build.make:160:screen/CMakeFiles/cutefishscreen_qmlplugins.dir/outputmodel.cpp.o] 错误 1 make[1]: [CMakeFiles/Makefile2:750:screen/CMakeFiles/cutefishscreen_qmlplugins.dir/all] 错误 2 make: *** [Makefile:149:all] 错误 2

SkatoriDev commented 2 years ago

Change the function call to setLogicalSize https://github.com/cutefishos/libcutefish/issues/6#issue-1077359678

For some reason, reverting this fix helped me on the last Kubuntu's KScreen