hushanxue / android-lighthouse

Automatically exported from code.google.com/p/android-lighthouse
0 stars 0 forks source link

building an example #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm having problems to create an simple Qt example for android-lighthouse. My 
'hello world' fails to build when I try to build the application. 

-- What steps will reproduce the problem?
1. create an Qt 'hello world' example (qmake/make)
2. change TEMPLATE in .pro to 'app' (instead of lib)
3. make

-- What is the expected output? What do you see instead?

Instead the ARM binary I got:

/opt/qadk-r4/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/../lib/gcc/arm-eabi/4.4
.0/../../../../arm-eabi/bin/ld: warning: libstdc++.so, needed by 
/usr/local/qadk-r4/build/platforms/android-8/arch-arm/usr/lib/liblog.so, not 
found (try using -rpath or -rpath-link)
/opt/qadk-r4/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/../lib/gcc/arm-eabi/4.4
.0/../../../../arm-eabi/bin/ld: warning: libcutils.so, needed by 
/usr/local/qadk-r4/build/platforms/android-8/arch-arm/usr/lib/libGLESv2.so, not 
found (try using -rpath or -rpath-link)
/opt/qadk-r4/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/../lib/gcc/arm-eabi/4.4
.0/../../../../arm-eabi/bin/ld: warning: libEGL.so, needed by 
/usr/local/qadk-r4/build/platforms/android-8/arch-arm/usr/lib/libGLESv2.so, not 
found (try using -rpath or -rpath-link)
/usr/local/qadk-r4/build/platforms/android-8/arch-arm/usr/lib/libGLESv2.so: 
undefined reference to `android::egl_get_image_for_current_context(void*)'
collect2: ld returned 1 exit status
make: *** [1] Error 1

If I change TEMPLATE=lib they create .so without problems. 

-- What version of the product are you using? On what operating system?

android-lighthouse (commit ab6c368a7e210a3afb3d9f6d8fe3e43d6c267db5)
Ubuntu 10.04

Please provide any additional information below.

Original issue reported on code.google.com by tiago.ma...@gmail.com on 9 Nov 2010 at 5:57

GoogleCodeExporter commented 9 years ago
Currently you can't create standalone Qt only apps using android lighthouse. 
Check 
http://code.google.com/p/android-lighthouse/wiki/Compile#Using_Qt_to_write_entir
e_applications_for_Android

Original comment by taipanro...@gmail.com on 10 Nov 2010 at 3:30

GoogleCodeExporter commented 9 years ago
I was considering the topic:

"Using Qt to write standalone applications (not bundled in a package) for 
Android" 
http://code.google.com/p/android-lighthouse/wiki/Compile#Using_Qt_to_write_stand
alone_applications_%28not_bundled_in_a_pack

I have some problems to "import" on Eclipse (i.e import com.nokia.qt) I'll read 
again and try to fix. 

Original comment by tiago.ma...@gmail.com on 10 Nov 2010 at 6:33