Linker and build errors on Android

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

Linker and build errors on Android

Postby Slick » Mon Apr 27, 2020 3:32 pm

I was able to build some libraries for Android but had to build for double precision to avoid build errors. I don't want or need double precision.

Could this be causing link errors to my app that just uses floats and not doubles? I can't work out yet why I have linker errors.
Last edited by Slick on Tue Apr 28, 2020 8:36 am, edited 1 time in total.
Slick
 
Posts: 330
Joined: Sat Feb 07, 2004 7:24 pm
Location: LA last and France now

Re: Linker errors on Android

Postby Slick » Tue Apr 28, 2020 8:35 am

I am trying to just make it simple and not use double precision. So I removed -D_NEWTON_USE_DOUBLE and went back to just build Newton with floats.

Line 413 of dgVectorScalar.h:
Code: Select all
DG_INLINE dgVector ShiftRight() const
   {
      return dgBigVector (m_w, m_x, m_y, m_z);
   }


Why is this returning a dgBigVector. I am not using -D_NEWTON_USE_DOUBLE and am using -DDG_SCALAR_VECTOR_CLASS.

This is the actual error that I am getting:
Code: Select all
In file included from ../sdk/dgCore/dgMatrix.cpp:23:
In file included from ../sdk/dgCore/./dgMatrix.h:28:
In file included from ../sdk/dgCore/./dgVector.h:33:
../sdk/dgCore/./dgVectorScalar.h:414:10: error: invalid use of incomplete type 'dgBigVector'
                return dgBigVector (m_w, m_x, m_y, m_z);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../sdk/dgCore/./dgTypes.h:304:7: note: forward declaration of 'dgBigVector'
class dgBigVector;
Slick
 
Posts: 330
Joined: Sat Feb 07, 2004 7:24 pm
Location: LA last and France now

Re: Linker and build errors on Android

Postby Slick » Tue Apr 28, 2020 8:51 am

I just noticed that there was a commit for this last month after I updated from GIT.

I was going to make the change in my code and test but it looks like it was fixed.

Onward and let's see what is next.
Slick
 
Posts: 330
Joined: Sat Feb 07, 2004 7:24 pm
Location: LA last and France now

Re: Linker and build errors on Android

Postby Dave Gravel » Thu Apr 30, 2020 5:03 am

Hi Slick,
This is my old sdk android version, It look to work good again.
Maybe it can help you to get something working.
I don't have try to update it with the last newton sdk version, I can try to make it soon.

Exemple SDK:
https://www.youtube.com/watch?v=T_gUaWXGVcE

Download Libs + SDK project.
Edited links updated:
https://www.mediafire.com/file/4xha9190eqkaeo9/Newton_Dynamics_Last_SDK%252BDemo_SDK_Android_v21%252B_Final_2020_VS_2017.zip

Download demo APK:
https://www.mediafire.com/file/sg31wszke2rxv03/ox3ddemo01.apk

In the project options menu you can see a proc flag about NEON but it is not use with this project.
In the project the DG_USE_THREAD_EMULATION flag is define enabled.

Apps Exemples:
https://www.youtube.com/watch?v=T-7S4cHt8dI
https://www.youtube.com/watch?v=wVD3WPJOqik
https://www.youtube.com/watch?v=dRADAxC3Ivs
https://www.youtube.com/watch?v=sKiOgV5Dw6A
https://www.youtube.com/watch?v=NRk5_F0-jfc
https://www.youtube.com/watch?v=uNZRQriT3yc
https://www.youtube.com/watch?v=ApHtS8eFAUw
https://www.youtube.com/watch?v=Zh-8EbwZGg4
https://www.youtube.com/watch?v=qWSLPwLVnwY
Last edited by Dave Gravel on Sun May 10, 2020 7:05 am, edited 3 times in total.
You search a nice physics solution, if you can read this message you're at the good place :wink:
OrionX3D Projects & Demos:
https://orionx3d.sytes.net
https://www.facebook.com/dave.gravel1
https://www.youtube.com/user/EvadLevarg/videos
User avatar
Dave Gravel
 
Posts: 800
Joined: Sat Apr 01, 2006 9:31 pm
Location: Quebec in Canada.

Re: Linker and build errors on Android

Postby Slick » Thu Apr 30, 2020 5:53 am

Great thanks for the help. I did get something built yesterday but was having problems getting the debugger to work. Finally I worked it out and found that I am hitting an assert in resettimer. Hopefully it is just a define issue. I'll try and look today and also will look at your links.
Slick
 
Posts: 330
Joined: Sat Feb 07, 2004 7:24 pm
Location: LA last and France now

Re: Linker and build errors on Android

Postby Dave Gravel » Fri May 08, 2020 6:26 am

Hi Slick,
This is my new test with last newton SDK [8/May/2020].
I don't use double version.
https://www.youtube.com/watch?v=seWsOF2rQLU

Edited links updated:
Download for the last updated sdk with a quick apk demo exemple:
https://www.mediafire.com/file/4xha9190eqkaeo9/Newton_Dynamics_Last_SDK%252BDemo_SDK_Android_v21%252B_Final_2020_VS_2017.zip

Download Demo APK:
https://www.mediafire.com/file/sg31wszke2rxv03/ox3ddemo01.apk

It working good with my Samsung tablet [SM-530 Tab-4 10.1po] and with my cell phone Samsung galaxy S9 [SM-G965W]
Last edited by Dave Gravel on Sun May 10, 2020 7:05 am, edited 3 times in total.
You search a nice physics solution, if you can read this message you're at the good place :wink:
OrionX3D Projects & Demos:
https://orionx3d.sytes.net
https://www.facebook.com/dave.gravel1
https://www.youtube.com/user/EvadLevarg/videos
User avatar
Dave Gravel
 
Posts: 800
Joined: Sat Apr 01, 2006 9:31 pm
Location: Quebec in Canada.

Re: Linker and build errors on Android

Postby Slick » Fri May 08, 2020 6:53 am

Great I will take a look this afternoon.
Slick
 
Posts: 330
Joined: Sat Feb 07, 2004 7:24 pm
Location: LA last and France now

Re: Linker and build errors on Android

Postby Dave Gravel » Fri May 08, 2020 5:15 pm

Updated Android Newton Projects VS_2017:

I have fix many things.
I have fix the projects options for 32bits & 64bits and I have enable the multithreads.
I don't use the neon version because the demo is build with the 32bits version for my old android device.
The 32bits libs & demo build working good on 32bits and 64bits devices.
The project is ready to use with 64bits version for enable the neon mode on a 64bits demo project.
I have fix the demo scene refresh too, If you open a other app over the demo and if you back to the demo it don't crash and it is correctly updated.
You can find more informations in the help.txt file in the zip.

Download Newton Dynamics Libs Project SDK + Demo SDK:
https://www.mediafire.com/file/4xha9190eqkaeo9/Newton_Dynamics_Last_SDK%252BDemo_SDK_Android_v21%252B_Final_2020_VS_2017.zip

Download Demo APK:
https://www.mediafire.com/file/sg31wszke2rxv03/ox3ddemo01.apk

Infos: In the demo you can pick multiple objects.
You can use two fingers on the screen for slide up and down to zoom the camera.

If you use Catlog app for get the debug messages, You can search with the word "ox3d" to see all debug messages from my application.

Video:
https://www.youtube.com/watch?v=OS5_MJEICYg

It working good with my Samsung tablet [SM-530 Tab-4 10.1po] and with my cell phone Samsung galaxy S9 [SM-G965W]
Have Fun :D !
You search a nice physics solution, if you can read this message you're at the good place :wink:
OrionX3D Projects & Demos:
https://orionx3d.sytes.net
https://www.facebook.com/dave.gravel1
https://www.youtube.com/user/EvadLevarg/videos
User avatar
Dave Gravel
 
Posts: 800
Joined: Sat Apr 01, 2006 9:31 pm
Location: Quebec in Canada.


Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 12 guests

cron