Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Midaslib won't compile when target is Android?


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 3 - Last Post: Aug 9, 2017 2:12 PM Last Post By: Jeff Overcash (... Threads: [ Previous | Next ]
Mark Tiede

Posts: 19
Registered: 5/17/98
Midaslib won't compile when target is Android?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 9, 2017 7:38 AM
I developed a client server application using datasnap provider. All worked fine on MY development machine in Windows. Copied the compiled code to another Windows PC. Of course, it failed because it didn't have midas.dll. So I found out you can add MidasLib to the uses and not have to have the dll. So I did that. Worked fine on both PCs.

Now we tried to target an Android device. It wouldn't compile and said "Unit 'MidasLib' not found". SHOULD it find it? Do I have to do something so it finds it? Can I make a "target conditional" compiler directive so that it doesn't use it for that target?

When I commented the MidasLib out, the source compiled and downloaded to the Android device, but it got some big error message dialog, but it still ran just fine and was able to receive and update data. Any clues on why it worked, but had some sort of error message?

This is being done with Tokyo without the update 1.
Jeff Overcash (...

Posts: 1,529
Registered: 9/23/99
Re: Midaslib won't compile when target is Android?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 9, 2017 9:57 AM   in response to: Mark Tiede in response to: Mark Tiede
Mark Tiede wrote:
I developed a client server application using datasnap provider. All worked fine on MY development machine in Windows. Copied the compiled code to another Windows PC. Of course, it failed because it didn't have midas.dll. So I found out you can add MidasLib to the uses and not have to have the dll. So I did that. Worked fine on both PCs.

Now we tried to target an Android device. It wouldn't compile and said "Unit 'MidasLib' not found". SHOULD it find it? Do I have to do something so it finds it? Can I make a "target conditional" compiler directive so that it doesn't use it for that target?

When I commented the MidasLib out, the source compiled and downloaded to the Android device, but it got some big error message dialog, but it still ran just fine and was able to receive and update data. Any clues on why it worked, but had some sort of error message?

This is being done with Tokyo without the update 1.

You don't use midaslib for mobile, the midas libraries are statically linked
normally so there is no need for a midaslib for those platforms.

--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
Learning is finding out what you already know. Doing is demonstrating that you
know it. Teaching is reminding others that they know it as well as you. We are
all leaners, doers, teachers. (R Bach)
Mark Tiede

Posts: 19
Registered: 5/17/98
Re: Midaslib won't compile when target is Android?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 9, 2017 12:40 PM   in response to: Jeff Overcash (... in response to: Jeff Overcash (...
Jeff,

I thought adding MidasLib is what CAUSED the static linking of the midas stuff. If not, how would I know that? Where is the documentation on that?

I made a conditional compiler directive to only include the uses for MidasLib when it is NOT Android. That appears to have gotten around the compiler error.
Jeff Overcash (...

Posts: 1,529
Registered: 9/23/99
Re: Midaslib won't compile when target is Android?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 9, 2017 2:12 PM   in response to: Mark Tiede in response to: Mark Tiede
Mark Tiede wrote:
Jeff,

I thought adding MidasLib is what CAUSED the static linking of the midas stuff. If not, how would I know that? Where is the documentation on that?

Only for windows, under Android and iOS everything is always statically linked.


I made a conditional compiler directive to only include the uses for MidasLib when it is NOT Android. That appears to have gotten around the compiler error.

--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
Learning is finding out what you already know. Doing is demonstrating that you
know it. Teaching is reminding others that they know it as well as you. We are
all leaners, doers, teachers. (R Bach)

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02