tag:blogger.com,1999:blog-1853768304794693097.post4172627032829746198..comments2024-03-10T08:33:47.120-07:00Comments on It's a blong, blong, blong road...: Delphi build/install/launch Android app from the command-lineblonghttp://www.blogger.com/profile/15865043713752235355noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-1853768304794693097.post-54992294854312100962017-10-16T23:55:47.060-07:002017-10-16T23:55:47.060-07:00Keep up the good work!Keep up the good work!Anonymoushttps://www.blogger.com/profile/04019493048867559798noreply@blogger.comtag:blogger.com,1999:blog-1853768304794693097.post-11402023238025450822017-10-16T13:35:45.100-07:002017-10-16T13:35:45.100-07:00BTW Ken, I just updated the post to include mentio...BTW Ken, I just updated the post to include mention of the MSBuild property to control whether an app store (Google Play) build will be done or a development build. That may be germane to your use case.<br />You might need to do a spot of work on my batch file to incorporate it properly.blonghttps://www.blogger.com/profile/15865043713752235355noreply@blogger.comtag:blogger.com,1999:blog-1853768304794693097.post-17132033492992635922017-10-16T04:16:58.049-07:002017-10-16T04:16:58.049-07:00You're welcome - I'm glad to see it's ...You're welcome - I'm glad to see it's of use to others in addition to just myself (o:blonghttps://www.blogger.com/profile/15865043713752235355noreply@blogger.comtag:blogger.com,1999:blog-1853768304794693097.post-65022373912809794492017-10-16T04:13:20.186-07:002017-10-16T04:13:20.186-07:00Thanks again. This saves me so much time and avoid...Thanks again. This saves me so much time and avoids me mistakenly uploading an app to google play store that doesn't work. I wish I'd seen your first post on the subject :)Anonymoushttps://www.blogger.com/profile/04019493048867559798noreply@blogger.comtag:blogger.com,1999:blog-1853768304794693097.post-49266447763214427852017-10-16T04:05:12.852-07:002017-10-16T04:05:12.852-07:00Is this issue 'known' - i.e. are there cur...Is this issue 'known' - i.e. are there current QP reports on it, do you know? I am not familiar with it.blonghttps://www.blogger.com/profile/15865043713752235355noreply@blogger.comtag:blogger.com,1999:blog-1853768304794693097.post-12328721322836986292017-10-16T04:04:06.772-07:002017-10-16T04:04:06.772-07:00Excellent ˚◡˚ Excellent ˚◡˚ blonghttps://www.blogger.com/profile/15865043713752235355noreply@blogger.comtag:blogger.com,1999:blog-1853768304794693097.post-44801046958612093652017-10-16T04:02:46.907-07:002017-10-16T04:02:46.907-07:00Thanks Brian. Yes, deleting the additional line di...Thanks Brian. Yes, deleting the additional line did resolve the problem.Anonymoushttps://www.blogger.com/profile/04019493048867559798noreply@blogger.comtag:blogger.com,1999:blog-1853768304794693097.post-32785304556477616092017-10-16T03:50:22.391-07:002017-10-16T03:50:22.391-07:00Sometimes Delphi breaks the project file by insert...Sometimes Delphi breaks the project file by inserting a second (empty) ProjectExtensions element. The command line compilers seem rather more sensitive to it than the IDE for some reason. Take a look in your .dproj file and count the number of ProjectExtensions nodes. If there are two, then that's one too many and you ought to delete the empty one.<br /><br />BTW, I'm assuming this is a ProjectExtensions issue - the use of angle brackets in your comment has caused the blog engine to strip it out as unknown markup.blonghttps://www.blogger.com/profile/15865043713752235355noreply@blogger.comtag:blogger.com,1999:blog-1853768304794693097.post-70735100107492639162017-10-16T03:41:54.335-07:002017-10-16T03:41:54.335-07:00Thanks. I've tried both ways but when doing th...Thanks. I've tried both ways but when doing the build I am getting the error MSB4079: The element occurs more than once.Anonymoushttps://www.blogger.com/profile/04019493048867559798noreply@blogger.comtag:blogger.com,1999:blog-1853768304794693097.post-5622811745363164152017-10-16T03:31:24.159-07:002017-10-16T03:31:24.159-07:00>>If I have to open up Berlin to do it then ...>>If I have to open up Berlin to do it then I may as well build and deploy from within it. I was hoping to somehow avoid that.<br /><br />You don't need to open the IDE. The RAD Studio Command prompt is a shortcut in the Start menu program group for RAD Studio that runs up a command prompt, and auto-run's the rsvars.bat script from its bin directory in order to set the PATH up to ensure the right compilers etc. are located.<br /><br />You don't even need to run that if you don't want. As I mentioned, in the earlier comment you can just call that rsvars.bat batch file explicitly at the top of my batch file to set the search paths up. This then satisfies your initial requirement of ensuring that the right compilers are used when you want to build with a certain version (i.e. Berlin).<br /><br />The only requirement to open any IDE is a one-off to get the .deployproj file created. Without .deployproj (which seems only able to be created by the IDE) then you cannot deploy from the command prompt.<br /><br />Let me know if I'm still not being clear enough and I'll try to explain better.blonghttps://www.blogger.com/profile/15865043713752235355noreply@blogger.comtag:blogger.com,1999:blog-1853768304794693097.post-83998211080257191482017-10-16T03:16:07.844-07:002017-10-16T03:16:07.844-07:00If I have to open up Berlin to do it then I may as...If I have to open up Berlin to do it then I may as well build and deploy from within it. I was hoping to somehow avoid that.Anonymoushttps://www.blogger.com/profile/04019493048867559798noreply@blogger.comtag:blogger.com,1999:blog-1853768304794693097.post-13705402311498220672017-10-16T03:13:36.370-07:002017-10-16T03:13:36.370-07:003D objects are completely skewed3D objects are completely skewedAnonymoushttps://www.blogger.com/profile/04019493048867559798noreply@blogger.comtag:blogger.com,1999:blog-1853768304794693097.post-72147863475725939462017-10-16T01:30:44.600-07:002017-10-16T01:30:44.600-07:00Ah, so I may have forgotten to write in there to r...Ah, so I may have forgotten to write in there to run the batch file from a RAD Studio Command Prompt. In which case you just use a Berlin RAD Studio Command prompt. However, you can also add - CALL path_to_BDS_bin\rsvars.bat - at the top. All this assumes you *don't* have any of the BDS bin directories on your PATH already.<br /><br />Can you elaborate on the Android issues you face? Is this even after having installed the 10.2.1 release?blonghttps://www.blogger.com/profile/15865043713752235355noreply@blogger.comtag:blogger.com,1999:blog-1853768304794693097.post-27733001760169072792017-10-15T23:26:18.277-07:002017-10-15T23:26:18.277-07:00Wow, Great. This is particularly useful as I norma...Wow, Great. This is particularly useful as I normally use Tokyo but have to build my Android projects using Berlin as Tokyo has so many Android problems. One question though is how do I ensure that the Berlin version is used?Anonymoushttps://www.blogger.com/profile/04019493048867559798noreply@blogger.com