compiling with mingw

708 views
Skip to first unread message

usb...@gmail.com

unread,
Mar 11, 2014, 8:36:33 AM3/11/14
to discuss...@googlegroups.com
I want to build a native C++ application with mingw and webRTC.



1. depot tools
just unzip the file depot_tools.zip, set the path, and it is fine.

2. git (installed by gclient below)



This ran for a couple of minutes, and ended with this error message:
"ols.bat" is not recognized as an internal command, external command, operable program or batch file.


gclient runhooks --force

it says:  Copying 3594 items (100MB) from git to depot_tools

then it says: Copying 2222 items (36MB) from python276 to depot_tools




Then follow Chromium build instructions

But this page has only Microsoft Instructions.  The getting started page talks about selecting a build system by setting GYP_GENERATORS=make

The getting started page shows a ninja command, but it give me errors:
ninja -C out/Debug
ninja: error: loading 'build.ninja': No such file or directory
ninja: Entering directory 'out/Debug'

What am I doing wrong here?


 

Francois Temasys

unread,
Mar 12, 2014, 2:26:08 AM3/12/14
to discuss...@googlegroups.com
Hi,

ninja: error: loading 'build.ninja': No such file or directory
This means that your gclient hasn't run properly and the "makefile" that should be generated from your gyp files are not generated.

You should focus on this error I think:
"ols.bat" is not recognized as an internal command, external command, operable program or batch file.

And what does your webrtc folder looks like (size, content)? Is it normal that you never do gclient sync?

Cheers,
Francois

usb...@gmail.com

unread,
Mar 12, 2014, 11:02:17 AM3/12/14
to discuss...@googlegroups.com
my webrtc directory has only two items-- a .gclient file and my depot_tools directory.

is there a different gclient command that should be run first?  I did gclient config and gclient runhooks

it must be putting the downloads somewhere else.  Is there a way to force it to the current directory?

Francois Temasys

unread,
Mar 12, 2014, 10:18:13 PM3/12/14
to discuss...@googlegroups.com
Hi,


I think you missed the:
gclient sync --force
that comes after"sync" will download the project and create the build.ninja files.

Cheers,
Francois

usb...@gmail.com

unread,
Mar 15, 2014, 3:30:14 PM3/15/14
to discuss...@googlegroups.com
Thanks.  That made a big difference.  Unfortunately something else is still wrong.  Here are the last few lines of what happened:

7> Downloading trunk/resources\voice_engine\audio_tiny22.wav...
6> Downloading trunk/resources\voice_engine\audio_tiny32.wav...
1> Downloading trunk/resources\voice_engine\audio_tiny44.wav...
5> Downloading trunk/resources\voice_engine\audio_tiny48.wav...
4> Downloading trunk/resources\voice_engine\audio_tiny8.wav...
9> Downloading trunk/resources\remote_bitrate_estimator\VideoSendersTest_BweTest
_IncreasingChoke2_0_TOF.bin...
Hook 'download_from_google_storage --directory --recursive --num_threads=10 --no
_auth --bucket chromium-webrtc-resources trunk/resources' took 1219.28 secs

________ running 'c:\webrtc\depot_tools\python276_bin\python.exe trunk/webrtc/bu
ild/gyp_webrtc -Dextra_gyp_flag=0' in 'C:\webrtc'
Using automatic toolchain in c:\data\exile\webrtc\depot_tools\win_toolchain\vs20
13_files (Express edition).
Generating gyp files from GN...
Updating projects from gyp files...
gyp: name 'MSVS_OS_BITS' is not defined while evaluating condition 'MSVS_OS_BITS
==32 or component=="static_library"' in C:\webrtc\trunk\all.gyp
Error: Command c:\webrtc\depot_tools\python276_bin\python.exe trunk/webrtc/build
/gyp_webrtc -Dextra_gyp_flag=0 returned non-zero exit status 1 in C:\webrtc
Hook ''c:\webrtc\depot_tools\python276_bin\python.exe' trunk/webrtc/build/gyp_we
brtc -Dextra_gyp_flag=0' took 14.06 secs

C:\webrtc>ninja -C out/Debug
ninja: error: loading 'build.ninja': No such file or directory
ninja: Entering directory `out/Debug'

C:\webrtc>cd trunk

C:\webrtc\trunk>ninja -C out/Debug
ninja: error: loading 'build.ninja': No such file or directory
ninja: Entering directory `out/Debug'

There are three new directories in c:\webrtc:
\webrtc\chromium_deps
\webrtc\chromium_gn
\webrtc\trunk



what else am I missing?  I really want this to work.  I have narrowed my P2P library search down to seven candidates, and so far the ones I have tried are even harder to build, and there is no community support.  I will definitely write up a fresh "newbie guide" when I get this working.

Francois Temasys

unread,
Mar 16, 2014, 9:47:52 PM3/16/14
to discuss...@googlegroups.com
Can you show your trunk/all.gyp file?

balaji sunku

unread,
Mar 17, 2014, 1:33:42 AM3/17/14
to discuss...@googlegroups.com
Error: Command c:\webrtc\depot_tools\python276_bin\python.exe trunk/webrtc/build
/gyp_webrtc -Dextra_gyp_flag=0 returned non-zero exit status 1

This is ur problem.. ensure that the python is in the same location 

And if any permission problem with python try running this command "chmod -R 777 *"


--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

usb...@gmail.com

unread,
Mar 19, 2014, 6:16:26 PM3/19/14
to discuss...@googlegroups.com
I tried to reinstall the tools on my system, and it got even worse.  Nothing works at all now, and I can't even get depot_tools to work.  (side question: how to clean my system for a new install ? perhaps the registry needs cleaning too?)

so I started over on another machine:

1. unzip depot_tools
2. set path
3. gclient
    seems to work except it still reports missing "ols.bat" error
4. gclient config http://webrtc.googlecode.com/svn/trunk
5. gclient sync --force    

6. set GYP_GENERATORS=make
7. cd \webrtc\trunk
8. ninja -C out/Debug
    this runs for a long time but then reports a new error: "cl.exe error:  MSVCR120.dll is either not designed to run on windows or it contains an error"

That looks like it is trying to run the microsoft compiler.  I want it to run gcc/g++ instead.

What next?

Thanks!

Михаил Бураков

unread,
Apr 17, 2014, 6:24:28 AM4/17/14
to discuss...@googlegroups.com
Hello!

Was you able to resolve this? Looks like I will have to do the same thing soon.

Thanks in advance!

среда, 19 марта 2014 г., 23:16:26 UTC+1 пользователь usb...@gmail.com написал:
Reply all
Reply to author
Forward
0 new messages