Open v-lopez opened 2 years ago
It seems this problem (the protoc exec error) only occurs when building the dependencies as submodules.
I can live with that, feel free to close @semlanik if you think cross compilation with dependencies as submodules is out of the scope.
Describe the bug Following the steps at https://github.com/semlanik/qtprotobuf#cross-compiling I cannot build the target host version of qtprotobuf.
There are multiple CMake errors:
QtProtobuf not found
Even though I am providing
-DQT_PROTOBUF_HOST_PATH=/usr/local/qtprotobuf-qt5/lib/cmake
. I can workaround this with-DQtProtobuf_DIR=/usr/local/qtprotobuf-qt5/lib/cmake/QtProtobuf/
Qt5 not found
Even though I am providing
-DCMAKE_PREFIX_PATH=/opt/Qt5/5.15.2/android/
I can work around it with-DQt5_DIR=/opt/Qt5/5.15.2/android/lib/cmake/Qt5/
Qt5Core, Qt5Qml, Qt5Network not found With a similar error to above, also workaroundable via _DIR variable.
And the blocking protoc exec format error for me. This is the one I cannot workaround:
It seems like it is using the protoc from the target system (android) instead of the one provided from the host.
To Reproduce Replicate the Cross-Compiling section of the manual. I am using the following cmake command for host:
The additional flags I need to pass to get the protoc error are:
Expected behavior
Environment:
Additional context I am not sure if it's a typo or is intended (I've tried both). But on the Cross Compiling manual, the build the target QtProtobuf section is executed on the same build dir as the host version
I am also trying Qt6 with this patch https://github.com/semlanik/qtprotobuf/issues/249#issue-1033814240 and I get to the same blocking point.