Code Monkey home page Code Monkey logo

Comments (6)

BimDav avatar BimDav commented on June 12, 2024

'cmake' is not recognized as an internal or external command

you have to install cmake

from webrtc-native.

Anutrix avatar Anutrix commented on June 12, 2024

I have cmake installed and in path.

Like I said before cmake is in path. Tested it by just running cmake in the terminal too.

from webrtc-native.

Anutrix avatar Anutrix commented on June 12, 2024

The path all seems to be hardcoded for *nix systems(i.e, with /).

Perl and NASM seems to be needed to compile openssl. Additional it should be run in an MSYS2 shell.

from webrtc-native.

mattkanwisher avatar mattkanwisher commented on June 12, 2024

It appears their CI uses Ubuntu Linux to compile windows. If you have visual studio 2022 and use Git Bash environment Cmake will be found. However there are other issues with hard coding of Pathing styles inside the python code

"mkdir -p C:\Users\hyper\Documents\LamProject\webrtc-native\deps/build/build.windows.template_debug.x86_64.Release.dir/openssl
The syntax of the command is incorrect."

This error tricky to fix cause this thing really only runs in a unix like environment, but its getting some default path that is a windows style path with backslashes and then appending forward slashes to it

from webrtc-native.

Anutrix avatar Anutrix commented on June 12, 2024

Some issues got fixed in #74.

Current error with scons use_mingw=yes:

> scons use_mingw=yes
scons: Reading SConscript files ...
Auto-detected 24 CPU cores available for build parallelism. Using 23 cores by default. You can override it with the -j argument.
Building for architecture x86_64 on platform windows
scons: done reading SConscript files.
scons: Building targets ...
g++ -o godot-cpp\src\godot.windows.template_debug.x86_64.o -c -std=c++17 -O2 -DDEBUG_ENABLED -DDEBUG_METHODS_ENABLED -Igodot-cpp\godot-headers -Igodot-cpp\include -Igodot-cpp\gen\include godot-cpp\src\godot.cpp
g++ -o godot-cpp\src\classes\wrapped.windows.template_debug.x86_64.o -c -std=c++17 -O2 -DDEBUG_ENABLED -DDEBUG_METHODS_ENABLED -Igodot-cpp\godot-headers -Igodot-cpp\include -Igodot-cpp\gen\include godot-cpp\src\classes\wrapped.cpp
g++ -o godot-cpp\src\core\class_db.windows.template_debug.x86_64.o -c -std=c++17 -O2 -DDEBUG_ENABLED -DDEBUG_METHODS_ENABLED -Igodot-cpp\godot-headers -Igodot-cpp\include -Igodot-cpp\gen\include godot-cpp\src\core\class_db.cpp
....
....
....
g++ -o godot-cpp\gen\src\variant\utility_functions.windows.template_debug.x86_64.o -c -std=c++17 -O2 -DDEBUG_ENABLED -DDEBUG_METHODS_ENABLED -Igodot-cpp\godot-headers -Igodot-cpp\include -Igodot-cpp\gen\include godot-cpp\gen\src\variant\utility_functions.cpp
ssl_action(["deps\build\build.windows.template_debug.x86_64.Release.dir\openssl\libssl.a", "deps\build\build.windows.template_debug.x86_64.Release.dir\openssl\libcrypto.a"], ["deps\openssl"])
Mkdir("D:\Repo\webrtc-native\deps/build/build.windows.template_debug.x86_64.Release.dir/openssl")
cd D:\Repo\webrtc-native\deps/build/build.windows.template_debug.x86_64.Release.dir/openssl && perl D:\Repo\webrtc-native\deps\openssl/Configure "no-ssl3" "no-weak-ssl-ciphers" "no-legacy" "--prefix=D:\Repo\webrtc-native\deps/build/build.windows.template_debug.x86_64.Release.dir/openssl/dest" "--openssldir=D:\Repo\webrtc-native\deps/build/build.windows.template_debug.x86_64.Release.dir/openssl/dest" "mingw64" "--cross-compile-prefix=x86_64-w64-mingw32-"
scons: *** [deps\build\build.windows.template_debug.x86_64.Release.dir\openssl\libssl.a] The system cannot find the file specified
scons: building terminated because of errors.

from webrtc-native.

Faless avatar Faless commented on June 12, 2024

As of #100 it should be possible to build using MSVC (worked on my machine ™️ with Visual Studio 2019 and 2022).
You will need to install nasm and add its location to the PATH environment variable.
You will also need a valid perl installation (tested with Strawberry Perl, which in my case didn't require adding to PATH but YMMV).

MinGW builds might need some more work in upstream godot-cpp (see godotengine/godot-cpp#1147).

from webrtc-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.