Recent

Author Topic: New OpenGL Android Example  (Read 104549 times)

Jonathan

  • New Member
  • *
  • Posts: 40
Re: New OpenGL Android Example
« Reply #60 on: November 23, 2011, 08:05:42 am »
Quote
What does "adb logcat" say about it?

There are too many ,I donnt know how to do. The last piece of 'adb logcat' is:

Code: [Select]
I/ActivityThread(  325): Pub com.svox.pico.providers.SettingsProvider: com.svox.pico.providers.SettingsProvider
D/dalvikvm(   60): GC_EXPLICIT freed 619K, 46% free 4186K/7687K, external 3125K/3903K, paused 161ms
D/AndroidRuntime(  306): Shutting down VM
I/AndroidRuntime(  306): NOTE: attach of thread 'Binder Thread #3' failed
D/dalvikvm(  306): GC_CONCURRENT freed 100K, 72% free 293K/1024K, external 0K/0K, paused 1ms+8ms
D/jdwp    (  306): adbd disconnected
D/dalvikvm(  255): GC_EXPLICIT freed 9K, 55% free 2597K/5703K, external 1625K/2137K, paused 122ms
D/SntpClient(   60): request time failed: java.net.SocketException: Address family not supported by protocol
I/dalvikvm(  123): Total arena pages for JIT: 11
D/dalvikvm(  119): GC_CONCURRENT freed 491K, 52% free 2928K/6087K, external 1625K/2137K, paused 8ms+6ms

I used the cross-compiler I build by myself  not the pre-compiler!!

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: New OpenGL Android Example
« Reply #61 on: November 23, 2011, 08:10:50 am »
There are too many ,I donnt know how to do. The last piece of 'adb logcat' is:

What you pasted does not show the crash. Copy to adb logcat output to a file and attach here.

Quote
I used the cross-compiler I build by myself  not the pre-compiler!!

From which branch and revision date? There are at least 2 known breakages introduced this year in Android support in the compiler. We have someone working on that, but no idea when it will be repaired. See: http://bugs.freepascal.org/view.php?id=20726

My pre-compiled compiler was created in 19th January so before the breakages, so it should work much better.

Jonathan

  • New Member
  • *
  • Posts: 40
Re: New OpenGL Android Example
« Reply #62 on: November 23, 2011, 08:42:25 am »
the file of " adb logcat" ..

I build the compiler as  http://wiki.lazarus.freepascal.org/Setup_Cross_Compile_For_ARM says.lazarus  is lastest ,fpc :2.4.2;binutils:2.20
« Last Edit: November 23, 2011, 08:51:54 am by Jonathan »

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: New OpenGL Android Example
« Reply #63 on: November 23, 2011, 10:06:03 am »
Try my snapshot compiler then.

Jonathan

  • New Member
  • *
  • Posts: 40
Re: New OpenGL Android Example
« Reply #64 on: November 23, 2011, 10:15:12 am »
Quote
Try my snapshot compiler then.

Sorry ,I do not get the point!  it is  the lastest lazarus svn 33718 ???
« Last Edit: November 23, 2011, 10:35:58 am by Jonathan »

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: New OpenGL Android Example
« Reply #65 on: November 23, 2011, 11:14:30 am »

Nicola Gorlandi

  • Full Member
  • ***
  • Posts: 135
Re: New OpenGL Android Example
« Reply #66 on: November 23, 2011, 12:57:11 pm »
I would like to use Lazarus for Windows to write some test apps for Android. Is this possible ?

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: New OpenGL Android Example
« Reply #67 on: November 23, 2011, 01:16:05 pm »
I would like to use Lazarus for Windows to write some test apps for Android. Is this possible ?

Possible surely it is, I know someone that did it. But I think it is a lot more work then installing a Dual boot with Mageia Linux 1 and use the pre-compiled compiler.

Nicola Gorlandi

  • Full Member
  • ***
  • Posts: 135
Re: New OpenGL Android Example
« Reply #68 on: November 23, 2011, 01:32:36 pm »
Do you think that in the future will be available a Lazarus setup for cross compiling Android on Windows as the Arm-Wince one ?

Andru

  • Full Member
  • ***
  • Posts: 112
Re: New OpenGL Android Example
« Reply #69 on: November 23, 2011, 05:04:30 pm »
nicolagorlandi
felipemdc
CodeTyphon guys, CodeTyphon... but only if you are lazy :)

Jonathan

  • New Member
  • *
  • Posts: 40
Re: New OpenGL Android Example
« Reply #70 on: November 24, 2011, 07:32:06 am »
Hi  felipemdc,I try to use the pre-compile as you said .at the  Step 2 - Configure the cross-binutils,I remember I did When I setup cross-compiler for ARM,so I go to the Step 3 directly,finally I configured  the Step 4 correctly. But  When I build in the lazarus ,I meet another error:
Code: [Select]
Options changed, recompiling clean with -B
Hint: Start of reading config file /home/hotcyy/.fpc.cfg
Hint: Start of reading config file /etc/fpc.cfg
Hint: End of reading config file /etc/fpc.cfg
Hint: End of reading config file /home/hotcyy/.fpc.cfg
Free Pascal Compiler version 2.5.1 [2011/01/19] for arm
Copyright (c) 1993-2010 by Florian Klaempfl
Target OS: Linux for ARMEL
Compiling ndkopengltest.pas
Compiling /home/hotcyy/lazarus-ccr/bindings/android-ndk/gles.pas
Assembling gles
/home/hotcyy/lazarus-ccr/bindings/android-ndk/gles.pas(810) Error: Assembler /home/hotcyy/lazarus/fpc/binutils/as not found, switching to external assembling
/home/hotcyy/lazarus-ccr/bindings/android-ndk/gles.pas(810) Fatal: There were 1 errors compiling module, stopping

but the file "as "  (soft link) is exist and it could be opened[ "#!/bin/sh /usr/local/bin/arm-linux-as_org -meabi=5 $@"  ] .  tips:fpc :2.4.2  ;ppcrossarm:2.5.1.  I also check the file (.fpc.cfg) -XP path is correct (/home/hotcyy/lazarus/fpc/binutils/)..So I dont know why .Thank you !
« Last Edit: November 24, 2011, 07:45:50 am by Jonathan »

Laksen

  • Hero Member
  • *****
  • Posts: 802
    • J-Software
Re: New OpenGL Android Example
« Reply #71 on: November 24, 2011, 08:32:48 am »
Did the as file have execute permissions?

Jonathan

  • New Member
  • *
  • Posts: 40
Re: New OpenGL Android Example
« Reply #72 on: November 24, 2011, 08:42:48 am »
Ye ,Of course! I did chmod +x
« Last Edit: November 24, 2011, 09:12:24 am by Jonathan »

herux

  • Full Member
  • ***
  • Posts: 102
Re: New OpenGL Android Example
« Reply #73 on: November 24, 2011, 10:32:15 am »
I think, you should try execute your "/home/hotcyy/lazarus/fpc/binutils/as" first, from linux terminal.

and let see what happen.

irfanbagus

  • Jr. Member
  • **
  • Posts: 73
Re: New OpenGL Android Example
« Reply #74 on: November 25, 2011, 05:49:03 pm »
after trying all day, finally i can compile the example on windows using fpc 2.7.1 from svn. working both on emulator and device. not trying anything else yet.

 

TinyPortal © 2005-2018