question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to build using Ubuntu-20.04 on WSL

See original GitHub issue

Host Windows OS:

  • Visual Studio 2019
  • Python (3.9.2)
  • frida (14.2.14)
  • frida-tools (9.2.3)

WSL Ubuntu:

  • make (4.2.1-1.2 amd64)
  • node (v15.12.0)
  • npm (7.6.3)
  • typescript (4.2.3)
  • rollup (2.44.0)
  • python (3.8.2)
  • zip/unzip

Running make from the root directory from a terminal on the windows OS results in:

PS C:\Users\georg\Documents\GitRepos\sharapi> make
tsc --target ES5 --module es6 --lib es6,dom --module commonjs exports.ts
node exports.js src/Base.ts src/FeApp.ts src/FeText.ts src/usercall.ts src/CharacterSheetManager.ts src/CharacterManager.ts src/CoinManager.ts src/Radmath.ts src/Vehicle.ts src/RoadSegment.ts src/IntersectManager.ts src/CommandLineOptions.ts src/Character.ts src/RenderManager.ts src/InputManager.ts src/Symbols.ts src/InstDynaPhysDSG.ts src/Sim.ts src/Debug.ts src/Names.ts src/Avatar.ts src/Events.ts src/Locks.ts src/GameplayManager.ts src/ActionButtonManager.ts src/ActorManager.ts src/Sparkle.ts src/Mission.ts src/SuperCamCentral.ts src/Util.ts > src/import.js
touch src/frida.js
process_begin: CreateProcess(NULL, touch src/frida.js, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [Makefile:79: src/frida.js] Error 2
PS C:\Users\georg\Documents\GitRepos\sharapi> make
unzip -oq SDL2-devel-2.0.10-VC.zip
process_begin: CreateProcess(NULL, unzip -oq SDL2-devel-2.0.10-VC.zip, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [Makefile:52: recast.lib] Error 2

Running make from the WSL distro results in:

bitonality@DESKTOP-STUDIO:~/Git/sharapi$ make
tsc --target ES5 --module es6 --lib es6,dom --module commonjs exports.ts
node exports.js src/Base.ts src/FeApp.ts src/FeText.ts src/usercall.ts src/CharacterSheetManager.ts src/CharacterManager.ts src/CoinManager.ts src/Radmath.ts src/Vehicle.ts src/RoadSegment.ts src/IntersectManager.ts src/CommandLineOptions.ts src/Character.ts src/RenderManager.ts src/InputManager.ts src/Symbols.ts src/InstDynaPhysDSG.ts src/Sim.ts src/Debug.ts src/Names.ts src/Avatar.ts src/Events.ts src/Locks.ts src/GameplayManager.ts src/ActionButtonManager.ts src/ActorManager.ts src/Sparkle.ts src/Mission.ts src/SuperCamCentral.ts src/Util.ts > src/import.js
touch src/frida.js
tsc --target ES5 --module es6 --lib es6,dom src/Base.ts src/FeApp.ts src/FeText.ts src/usercall.ts src/CharacterSheetManager.ts src/CharacterManager.ts src/CoinManager.ts src/Radmath.ts src/Vehicle.ts src/RoadSegment.ts src/IntersectManager.ts src/CommandLineOptions.ts src/Character.ts src/RenderManager.ts src/InputManager.ts src/Symbols.ts src/InstDynaPhysDSG.ts src/Sim.ts src/Debug.ts src/Names.ts src/Avatar.ts src/Events.ts src/Locks.ts src/GameplayManager.ts src/ActionButtonManager.ts src/ActorManager.ts src/Sparkle.ts src/Mission.ts src/SuperCamCentral.ts src/Util.ts
rollup --format system --context global src/import.js --file sharapi.js

src/import.js → sharapi.js...
(!) Circular dependency
src/Mission.js -> src/GameplayManager.js -> src/Mission.js
created sharapi.js in 748ms
cat src/System.js sharapi.js src/main.js > scriptfile.out.js
unzip -oq SDL2-devel-2.0.10-VC.zip
cmake.exe -A Win32 -Wno-dev -DSDL2_ROOT_DIR=../../SDL2-2.0.10 -S recastnavigation -B build-recast.lib
make: cmake.exe: Command not found
make: *** [Makefile:54: recast.lib] Error 127

What am I missing here? Been trying to get a clean build to begin prototyping the intro of a tsconfig.json, but I still haven’t been able to get a clean build.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tavisocommented, Mar 29, 2021

The recast navigation stuff needs Visual Studio and the cmake component to be installed, it’s just used to do path finding across the map.

Capture

I really should have made that optional, but never got around to it!

0reactions
tavisocommented, Apr 1, 2021

Sure, sounds good to me - I’ll start reviewing the PR today, thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Windows Subsystem for Linux | Microsoft Learn
Open Control Panel -> Programs and Features -> Turn Windows Feature on or off -> Check Windows Subsystem for Linux or using the...
Read more >
Install Ubuntu on WSL2 on Windows 10
1. Overview · 2. Install WSL · 3. Download Ubuntu · 4. Configure Ubuntu · 5. Install your first package · 6. Customising...
Read more >
WSL Ubuntu installation fails with the error: "Please restart ...
Install Ubuntu, launch, get the error message in the attached image. Follow the command instructions in that error message: PS C:\Users\User> ...
Read more >
Gradle build fails when project is in WSL Ubuntu 20.04, also ...
Gradle build fails when project is in WSL Ubuntu 20.04, also JDK is in WSL. Duplicates 1. Duplicates 1 issue (0 unresolved).
Read more >
WSL Ubuntu 20.04, The command 'docker' could not be found ...
In the 20.04 distribution, what does ls -l /mnt/wsl show? · Personally, I've found simply installing Docker natively in WSL is a much...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found