You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
First, I want to preface this by saying I absolutely despise CMake and other, even more complicated build systems (Maven, anyone?).
I installed deps:
qt5-qtbase-dev readline-dev openssl-dev cmake
mkdir build
cd build
cmake ../
CMake Error at qt/CMakeLists.txt:61 (qt5_add_translation):
Unknown CMake command "qt5_add_translation".
I don't know where or what qt5_add_translation is, so I hacked qt/CMakeLists.txt (line 61 as it says)
[100%] Linking CXX executable android-file-transfer
/usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/../../../../x86_64-alpine-linux-musl/bin/ld: CMakeFiles/android-file-transfer.dir/main.cpp.o: in function `main':
main.cpp:(.text.startup+0x7d): undefined reference to `qInitResources_android_file_transfer()'
collect2: error: ld returned 1 exit status
make[2]: *** [qt/CMakeFiles/android-file-transfer.dir/build.make:479: qt/android-file-transfer] Error 1
make[1]: *** [CMakeFiles/Makefile2:197: qt/CMakeFiles/android-file-transfer.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
I do not need translations, but understand they are needed.
I got it to build, but what a royal PITA!!
It's not building the resource file, so I figured that command out:
The application does work. I don't know what is broken in the build system, but it surely is. This is one of the many reasons I despise Cmake - it took a difficult problem and made it harder.
One other thing, I commented out all the translation stuff at the top of main.cpp in the qt directory.
Hope this helps some poor soul trying to get this built on an Alpine Linux X86_64 system (3.15).
I'm so sick of go-mtpfs crippled pathetic nonsense that I'm hopeful this application lives up to the README. It can't get any worse for sure. Thanks for all the work!
The text was updated successfully, but these errors were encountered:
Hi,
First, I want to preface this by saying I absolutely despise CMake and other, even more complicated build systems (Maven, anyone?).
I installed deps:
I don't know where or what qt5_add_translation is, so I hacked qt/CMakeLists.txt (line 61 as it says)
Cmake is happy until the link:
I do not need translations, but understand they are needed.
I got it to build, but what a royal PITA!!
It's not building the resource file, so I figured that command out:
It doesn't have the right name in the resource output, of course!!, so fix that:
Then compile it:
Wow, that was !@#$!! fun.
Then link it:
The application does work. I don't know what is broken in the build system, but it surely is. This is one of the many reasons I despise Cmake - it took a difficult problem and made it harder.
One other thing, I commented out all the translation stuff at the top of main.cpp in the qt directory.
Hope this helps some poor soul trying to get this built on an Alpine Linux X86_64 system (3.15).
I'm so sick of go-mtpfs crippled pathetic nonsense that I'm hopeful this application lives up to the README. It can't get any worse for sure. Thanks for all the work!
The text was updated successfully, but these errors were encountered: