OtterBrowser / otter-browser

Otter Browser aims to recreate the best aspects of the classic Opera (12.x) UI using Qt5
https://otter-browser.org
GNU General Public License v3.0
1.83k stars 277 forks source link

Cross compilation error #1748

Closed meimaokk closed 1 year ago

meimaokk commented 1 year ago

I appear when cross-compiling

wuxd@wuxd-virtual-machine:~/otter-browser/build$ cmake -DCMAKE_TOOLCHAIN_FILE=../CrossCompile.cmake .. CMake Warning at /opt/fsl-imx-xwayland/5.4-zeus/sysroots/aarch64-poky-linux/usr/lib/cmake/Qt5/Qt5Config.cmake:7 (message): SkippingbecauseOE_QMAKE_PATH_EXTERNAL_HOST_BINSisnotdefined Call Stack (most recent call first): CrossCompile.cmake:6 (find_package) build/CMakeFiles/3.15.3/CMakeSystem.cmake:6 (include) CMakeLists.txt:3 (project)

CMake Warning at /opt/fsl-imx-xwayland/5.4-zeus/sysroots/aarch64-poky-linux/usr/lib/cmake/Qt5/Qt5Config.cmake:7 (message): SkippingbecauseOE_QMAKE_PATH_EXTERNAL_HOST_BINSisnotdefined Call Stack (most recent call first): CMakeLists.txt:77 (find_package)

CMake Warning at /opt/fsl-imx-xwayland/5.4-zeus/sysroots/aarch64-poky-linux/usr/lib/cmake/Qt5/Qt5Config.cmake:7 (message): SkippingbecauseOE_QMAKE_PATH_EXTERNAL_HOST_BINSisnotdefined Call Stack (most recent call first): CMakeLists.txt:78 (find_package)

CMake Warning at /opt/fsl-imx-xwayland/5.4-zeus/sysroots/aarch64-poky-linux/usr/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:6 (message): SkippingbecauseOE_QMAKE_PATH_EXTERNAL_HOST_BINSisnotdefined Call Stack (most recent call first): /opt/fsl-imx-xwayland/5.4-zeus/sysroots/x86_64-pokysdk-linux/usr/share/cmake-3.15/Modules/CMakeFindDependencyMacro.cmake:47 (find_package) /opt/fsl-imx-xwayland/5.4-zeus/sysroots/aarch64-poky-linux/usr/lib/cmake/Qt5WebKit/Qt5WebKitConfig.cmake:82 (find_dependency) /opt/fsl-imx-xwayland/5.4-zeus/sysroots/aarch64-poky-linux/usr/lib/cmake/Qt5WebKit/Qt5WebKitConfig.cmake:93 (find_dependency_with_major_and_minor) /opt/fsl-imx-xwayland/5.4-zeus/sysroots/x86_64-pokysdk-linux/usr/share/cmake-3.15/Modules/CMakeFindDependencyMacro.cmake:47 (find_package) /opt/fsl-imx-xwayland/5.4-zeus/sysroots/aarch64-poky-linux/usr/lib/cmake/Qt5WebKitWidgets/Qt5WebKitWidgetsConfig.cmake:93 (find_dependency) CMakeLists.txt:79 (find_package)

CMake Warning at /opt/fsl-imx-xwayland/5.4-zeus/sysroots/aarch64-poky-linux/usr/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:6 (message): SkippingbecauseOE_QMAKE_PATH_EXTERNAL_HOST_BINSisnotdefined Call Stack (most recent call first): /opt/fsl-imx-xwayland/5.4-zeus/sysroots/x86_64-pokysdk-linux/usr/share/cmake-3.15/Modules/CMakeFindDependencyMacro.cmake:47 (find_package) /opt/fsl-imx-xwayland/5.4-zeus/sysroots/aarch64-poky-linux/usr/lib/cmake/Qt5WebKit/Qt5WebKitConfig.cmake:82 (find_dependency) /opt/fsl-imx-xwayland/5.4-zeus/sysroots/aarch64-poky-linux/usr/lib/cmake/Qt5WebKit/Qt5WebKitConfig.cmake:94 (find_dependency_with_major_and_minor) /opt/fsl-imx-xwayland/5.4-zeus/sysroots/x86_64-pokysdk-linux/usr/share/cmake-3.15/Modules/CMakeFindDependencyMacro.cmake:47 (find_package) /opt/fsl-imx-xwayland/5.4-zeus/sysroots/aarch64-poky-linux/usr/lib/cmake/Qt5WebKitWidgets/Qt5WebKitWidgetsConfig.cmake:93 (find_dependency) CMakeLists.txt:79 (find_package)

CMake Warning at /opt/fsl-imx-xwayland/5.4-zeus/sysroots/aarch64-poky-linux/usr/lib/cmake/Qt5Network/Qt5NetworkConfig.cmake:6 (message): SkippingbecauseOE_QMAKE_PATH_EXTERNAL_HOST_BINSisnotdefined Call Stack (most recent call first): /opt/fsl-imx-xwayland/5.4-zeus/sysroots/x86_64-pokysdk-linux/usr/share/cmake-3.15/Modules/CMakeFindDependencyMacro.cmake:47 (find_package) /opt/fsl-imx-xwayland/5.4-zeus/sysroots/aarch64-poky-linux/usr/lib/cmake/Qt5WebKit/Qt5WebKitConfig.cmake:82 (find_dependency) /opt/fsl-imx-xwayland/5.4-zeus/sysroots/aarch64-poky-linux/usr/lib/cmake/Qt5WebKit/Qt5WebKitConfig.cmake:95 (find_dependency_with_major_and_minor) /opt/fsl-imx-xwayland/5.4-zeus/sysroots/x86_64-pokysdk-linux/usr/share/cmake-3.15/Modules/CMakeFindDependencyMacro.cmake:47 (find_package) /opt/fsl-imx-xwayland/5.4-zeus/sysroots/aarch64-poky-linux/usr/lib/cmake/Qt5WebKitWidgets/Qt5WebKitWidgetsConfig.cmake:93 (find_dependency) CMakeLists.txt:79 (find_package)

CMake Warning at /opt/fsl-imx-xwayland/5.4-zeus/sysroots/aarch64-poky-linux/usr/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:6 (message): SkippingbecauseOE_QMAKE_PATH_EXTERNAL_HOST_BINSisnotdefined Call Stack (most recent call first): /opt/fsl-imx-xwayland/5.4-zeus/sysroots/x86_64-pokysdk-linux/usr/share/cmake-3.15/Modules/CMakeFindDependencyMacro.cmake:47 (find_package) /opt/fsl-imx-xwayland/5.4-zeus/sysroots/aarch64-poky-linux/usr/lib/cmake/Qt5WebKit/Qt5WebKitConfig.cmake:82 (find_dependency) /opt/fsl-imx-xwayland/5.4-zeus/sysroots/aarch64-poky-linux/usr/lib/cmake/Qt5WebKitWidgets/Qt5WebKitWidgetsConfig.cmake:94 (find_dependency_with_major_and_minor) CMakeLists.txt:79 (find_package)

CMake Error at CMakeLists.txt:298 (qt5_add_resources): Unknown CMake command "qt5_add_resources".

-- Configuring incomplete, errors occurred! See also "/home/wuxd/otter-browser/build/CMakeFiles/CMakeOutput.log". See also "/home/wuxd/otter-browser/build/CMakeFiles/CMakeError.log".

Emdek commented 1 year ago

Looks like issue with QtWebKit CMake files where it doesn't want to work with Qt versions other than the one used to build it (checking both major and minor numbers), you can adjust it in these files (AFAIR also for QtWebKitWidgets).