Bug 306778

Summary: Android custom widget plugin project can not compiled.
Product: [Unmaintained] Necessitas Reporter: used.exe
Component: Android Qt4Assignee: BogDan Vatra <bogdan>
Status: RESOLVED FIXED    
Severity: major CC: linuxsw, used.exe
Priority: NOR    
Version: alpha4   
Target Milestone: Unspecified   
Platform: Ubuntu   
OS: Android 4.x   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description used.exe 2012-09-14 07:27:33 UTC
I need to create custom widget plugin for android in necessitas. I creat this plugin for QtDesigner in qt 4.8.2 and it works good in Qt.  But I have some problems to compile this plugin for arm in Necessitas alpha4.1. 

Reproducible: Always

Steps to Reproduce:
1.Create custom widget project on qt 4.8.2 desktop
2.Open this project in necessias alpha 4 and correct some path in project
3.press build this project, but have some errors
Actual Results:  
...
10:09:23: Starting: "C:\qt\necessitas\QtCreator\bin\ma-make.exe" -w
ma-make: Entering directory `C:/qt/newplugin/widget-plugin-build-f72dfb-Release'
del /q 2> NUL libwidget-plugin.so
echo --sysroot=C:/qt/necessitas/android-ndk/platforms/android-9/arch-arm/ -Lc:/qt/necessitas/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google -Wl,-rpath-link=C:/qt/necessitas/android-ndk/platforms/android-9/arch-arm//usr/lib -Wl,--no-undefined -Wl,-z,noexecstack -shared -Wl,-rpath=C:/tmp/necessitas/unstable/Android/Qt/482/build-armeabi-v7a/install/lib -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libwidget-plugin.so customspin.o customspinplugin.o moc_customspin.o moc_customspinplugin.o qrc_widget-plugin.o   -LC:/qt/necessitas/android-ndk/platforms/android-9/arch-arm//usr/lib -LC:\qt\necessitas\Android\Qt\482\armeabi-v7a\lib  -lQtScript -LC:\qt\necessitas\Android\Qt\482\armeabi-v7a/lib -L/tmp/necessitas/android-ndk/platforms/android-5/arch-arm//usr/lib -lQtXml -lQtGui -lQtCore -llog -lz -lm -ldl -lc -lgcc -lQtDesigner  > libwidget-plugin.so.lnk.cmdline
C:/qt/necessitas/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/arm-linux-androideabi-g++ @libwidget-plugin.so.lnk.cmdline
ma-make: Leaving directory `C:/qt/newplugin/widget-plugin-build-f72dfb-Release'
c:/qt/necessitas/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.exe: error: cannot find -lQtScript
c:/qt/necessitas/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.exe: error: cannot find -lQtXml
c:/qt/necessitas/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.exe: error: cannot find -lQtGui
c:/qt/necessitas/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.exe: error: cannot find -lQtCore
c:/qt/necessitas/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.exe: error: cannot find -lQtDesigner
...

Expected Results:  
create custom widget plugin for android

I want and can't create custom widget plugin such as custom clock widget 
http://doc.crossplatform.ru/qt/4.3.5/designer-customwidgetplugin.html
Comment 1 BogDan Vatra 2012-09-19 18:18:31 UTC
*** Bug 306747 has been marked as a duplicate of this bug. ***
Comment 2 BogDan Vatra 2012-09-19 18:19:04 UTC
Fix qmake.exe Windows cmd.exe mkdir slash direction bug 
http://commits.kde.org/android-qt/b2f89cdbc95594e9e71c05f6c891ff1b5df3d9d8