Android Tutorial Running B4A and B4J under Linux with wine - fully functional

FranciscoGoncalves

New Member
Licensed User
B4A V 8.80 as registered version now runs under my Linux! B4A Bridge runs too!

B4J V 7.00 runs too!

Great!

My configuration: Ubuntu 18.04 Mate 32 bit, wine 4.0, wine configured as Windows 7.
Hi,

I am configuring B4A on a Ubuntu 20.04 and i got everything working excetion for the Bridge AVD, that reports error --->
_wenviron is not set, did you link with -municode?


Can you help solving this??

Thanks / Kind Regards,

Francisco
francis.goncalves@gmail.com
 

aeric

Expert
Licensed User
Longtime User
compile if I comment the line CustomBuildAction
I think it is because inside Wine, System32\Robocopy.exe is missing from WinDir. Maybe can try to find Robocopy.exe from Windows machine and copy it to the Wine Windir\System32 directory. Otherwise, just comment the #CustomBuildAction.

This applies to B4XPages project template.
 

hibrid0

Active Member
Licensed User
Longtime User
Yes the problem is about robocopy. I try copy robocopy from my windows installation but the problem continue, I apply the easy way and was comment that line.

Mihai, The bridge work fine
 

aeric

Expert
Licensed User
Longtime User
Yes the problem is about robocopy. I try copy robocopy from my windows installation but the problem continue, I apply the easy way and was comment that line.

Mihai, The bridge work fine
I see.

Robocopy isn't available for Linux/Wine, so if the CustomBuildAction with Robocopy is present in your project, you'll have to turn it into a comment or replace it with something else.
 

walt61

Well-Known Member
Licensed User
Longtime User
Just in case anyone would wind up here: as xcopy.exe does exist in the Wine environment, these lines could be used in a B4XPages project (update the xcopy options "/..." with the ones you prefer):
B4X:
#CustomBuildAction: folders ready, %WINDIR%\System32\xcopy.exe,"..\..\Shared Files" "..\Files" /C /E /F /H /K /R /Y
'Ctrl + click to sync files: ide://run?file=%WINDIR%\System32\xcopy.exe&args=..\..\Shared+Files&args=..\Files&args=/C&args=/E&args=/F&args=/H&args=/K&args=/R&args=/Y&FilesSync=True
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…