Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create executable with Mojo on Windows #47

Closed
TakamotoAI opened this issue Jun 18, 2021 · 2 comments
Closed

Create executable with Mojo on Windows #47

TakamotoAI opened this issue Jun 18, 2021 · 2 comments

Comments

@TakamotoAI
Copy link

I am trying to use pp to create an executable of an application that needs Mojo on Windows 10, but the exe fails with the following error:

Unable to open html entities file (C:\Users\de\AppData\Local\Temp\par-6663\cache-9973dd41d00e8bee27c9630746780ae38da71709\inc\lib\Mojo\resources\html_entities.txt): No such file or directory at C:\Users\de\AppData\Local\Temp\par-6663\cache-9973dd41d00e8bee27c9630746780ae38da71709\inc\lib/Mojo/Base.pm line 14.

The following command does not help:

-a "C:\Strawberry\perl\vendor\lib\Mojo\resources;Mojo/resources"

If I open the package once the software has run once, there is no folder "resources" in Mojo
(cross-posted in https://www.perlmonks.org/?node_id=11133963)

@rschupp
Copy link
Owner

rschupp commented Jun 18, 2021

Duplicate of #44. Can you try with the fix given there (rebuild Module::ScanDeps from GitHub HEAD)?

@TakamotoAI
Copy link
Author

After inspecting the temp package created when the exe is launched, I was able to fix it changing

-a "C:\Strawberry\perl\vendor\lib\Mojo\resources;Mojo/resources"

to

-a "C:\Strawberry\perl\vendor\lib\Mojo\resources;lib/Mojo/resources"

@rschupp rschupp closed this as completed Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants