Cerbero Building from Source Error on Windows

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Cerbero Building from Source Error on Windows

astarakastara
Hello,

I want to build gstreamer from source with mingw-w64 on Windows.
I am using MSYS2 for Mingw-w64.
I added all paths for example : Python36, Perl, ...

I am using MSYS2 MINGW64 shell (I tried all shells git bash, cmd, msys2,
everyone gets the same error)

I downloaded Cerbero from https://github.com/GStreamer/cerbero

I wrote these commands
When I in cerbero-master directory I wrote

python ./cerbero-uninstalled -c config/cross-win64.cbc bootstrap
python ./cerbero-uninstalled -c config/win64.cbc bootstrap
python ./cerbero-uninstalled bootstrap
py -3 ./cerbero-uninstalled bootstrap

In Cerbero on github, it tells when I write these commands it will take 1.5
hours. However, I got an error and couldn't solve what it is.

The error:

WARNING: Using default configuration because
C:/Users/admin//.cerbero/cerbero.cbc is missing
Traceback (most recent call last):
  File "./cerbero-uninstalled", line 9, in <module>
    main()
  File ".\cerbero\main.py", line 130, in main
    Main(sys.argv[1:])
  File ".\cerbero\main.py", line 54, in __init__
    self.load_config()
  File ".\cerbero\main.py", line 98, in load_config
    self.config.load(self.args.config)
  File ".\cerbero\config.py", line 189, in load
    self.do_setup_env()
  File ".\cerbero\config.py", line 208, in do_setup_env
    self.env = self.get_env(self.prefix, libdir, self.py_prefix)
  File ".\cerbero\config.py", line 228, in get_env
    self._perl_version())
  File ".\cerbero\config.py", line 553, in _perl_version
    mayor = str(version[0])
IndexError: string index out of range




If you help, it would be appreciated,
Thanks,



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Cerbero Building from Source Error on Windows

astarakastara
I have found the solution of this.

I have Python 3.6 and problem is version couldn't be assigned. So I learned
my perl version by writing perl -v

and changed the file

#version = shell.check_call('perl -e "print \"$]\";"')
version = "5.026002"

shell.check_call is working but does not assign the output to version.

This problem is gone. However, after I write

py -3 ./cerbero-uninstalled bootstrap  , I have a new big problem.



Error is:

Traceback (most recent call last):
  File "./cerbero-uninstalled", line 9, in <module>
    main()
  File ".\cerbero\main.py", line 130, in main
    Main(sys.argv[1:])
  File ".\cerbero\main.py", line 55, in __init__
    self.run_command()
  File ".\cerbero\main.py", line 105, in run_command
    res = commands.run(command, self.config, self.args)
  File ".\cerbero\commands\__init__.py", line 78, in run
    return _commands[command].run(config, args)
  File ".\cerbero\commands\bootstrap.py", line 38, in run
    bootstrapper.start()
  File ".\cerbero\bootstrap\windows.py", line 77, in start
    self.msys_mingw_bindir = Path(shutil.which('mingw-get')).parent
  File "C:\Program Files\Python36\lib\pathlib.py", line 983, in __new__
    self = cls._from_parts(args, init=False)
  File "C:\Program Files\Python36\lib\pathlib.py", line 658, in _from_parts
    drv, root, parts = self._parse_args(args)
  File "C:\Program Files\Python36\lib\pathlib.py", line 642, in _parse_args
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType


My directory is at:  /c/Users/admin/Desktop/cerbero-master

I am trying to solve the problem but it is taking me lots of hours. Please
update the cerbero.
I couldn't even do bootstrap. Everyone I see on the web says its working. It
is not working now.
Please help if you can.

Thanks,




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Cerbero Building from Source Error on Windows

Nirbheek Chauhan
Hi astarakastara,

The main reason why you're having so many issues is because you're not
following the README exactly. Using Cerbero inside MSYS2 is not
tested, and all the problems you have posted so far are because of
that.

Please read the "Windows" section in the README and follow it exactly.
Do not use MSYS2.

Cheers,
Nirbheek
On Wed, Jul 4, 2018 at 6:29 PM astarakastara <[hidden email]> wrote:

>
> I have found the solution of this.
>
> I have Python 3.6 and problem is version couldn't be assigned. So I learned
> my perl version by writing perl -v
>
> and changed the file
>
> #version = shell.check_call('perl -e "print \"$]\";"')
> version = "5.026002"
>
> shell.check_call is working but does not assign the output to version.
>
> This problem is gone. However, after I write
>
> py -3 ./cerbero-uninstalled bootstrap  , I have a new big problem.
>
>
>
> Error is:
>
> Traceback (most recent call last):
>   File "./cerbero-uninstalled", line 9, in <module>
>     main()
>   File ".\cerbero\main.py", line 130, in main
>     Main(sys.argv[1:])
>   File ".\cerbero\main.py", line 55, in __init__
>     self.run_command()
>   File ".\cerbero\main.py", line 105, in run_command
>     res = commands.run(command, self.config, self.args)
>   File ".\cerbero\commands\__init__.py", line 78, in run
>     return _commands[command].run(config, args)
>   File ".\cerbero\commands\bootstrap.py", line 38, in run
>     bootstrapper.start()
>   File ".\cerbero\bootstrap\windows.py", line 77, in start
>     self.msys_mingw_bindir = Path(shutil.which('mingw-get')).parent
>   File "C:\Program Files\Python36\lib\pathlib.py", line 983, in __new__
>     self = cls._from_parts(args, init=False)
>   File "C:\Program Files\Python36\lib\pathlib.py", line 658, in _from_parts
>     drv, root, parts = self._parse_args(args)
>   File "C:\Program Files\Python36\lib\pathlib.py", line 642, in _parse_args
>     a = os.fspath(a)
> TypeError: expected str, bytes or os.PathLike object, not NoneType
>
>
> My directory is at:  /c/Users/admin/Desktop/cerbero-master
>
> I am trying to solve the problem but it is taking me lots of hours. Please
> update the cerbero.
> I couldn't even do bootstrap. Everyone I see on the web says its working. It
> is not working now.
> Please help if you can.
>
> Thanks,
>
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

AW: Cerbero Building from Source Error on Windows

Thornton, Keith
Hi,
I'm afraid I don't understand. I installed MinGW with all options enabled and am running from the msys shell exactly the same as I used to for 1.10, 1.12...


-----Urspr√ľngliche Nachricht-----
Von: gstreamer-devel [mailto:[hidden email]] Im Auftrag von Nirbheek Chauhan
Gesendet: Mittwoch, 4. Juli 2018 15:07
An: Discussion of the development of and with GStreamer <[hidden email]>
Betreff: Re: Cerbero Building from Source Error on Windows

Hi astarakastara,

The main reason why you're having so many issues is because you're not following the README exactly. Using Cerbero inside MSYS2 is not tested, and all the problems you have posted so far are because of that.

Please read the "Windows" section in the README and follow it exactly.
Do not use MSYS2.

Cheers,
Nirbheek
On Wed, Jul 4, 2018 at 6:29 PM astarakastara <[hidden email]> wrote:

>
> I have found the solution of this.
>
> I have Python 3.6 and problem is version couldn't be assigned. So I
> learned my perl version by writing perl -v
>
> and changed the file
>
> #version = shell.check_call('perl -e "print \"$]\";"') version =
> "5.026002"
>
> shell.check_call is working but does not assign the output to version.
>
> This problem is gone. However, after I write
>
> py -3 ./cerbero-uninstalled bootstrap  , I have a new big problem.
>
>
>
> Error is:
>
> Traceback (most recent call last):
>   File "./cerbero-uninstalled", line 9, in <module>
>     main()
>   File ".\cerbero\main.py", line 130, in main
>     Main(sys.argv[1:])
>   File ".\cerbero\main.py", line 55, in __init__
>     self.run_command()
>   File ".\cerbero\main.py", line 105, in run_command
>     res = commands.run(command, self.config, self.args)
>   File ".\cerbero\commands\__init__.py", line 78, in run
>     return _commands[command].run(config, args)
>   File ".\cerbero\commands\bootstrap.py", line 38, in run
>     bootstrapper.start()
>   File ".\cerbero\bootstrap\windows.py", line 77, in start
>     self.msys_mingw_bindir = Path(shutil.which('mingw-get')).parent
>   File "C:\Program Files\Python36\lib\pathlib.py", line 983, in __new__
>     self = cls._from_parts(args, init=False)
>   File "C:\Program Files\Python36\lib\pathlib.py", line 658, in _from_parts
>     drv, root, parts = self._parse_args(args)
>   File "C:\Program Files\Python36\lib\pathlib.py", line 642, in _parse_args
>     a = os.fspath(a)
> TypeError: expected str, bytes or os.PathLike object, not NoneType
>
>
> My directory is at:  /c/Users/admin/Desktop/cerbero-master
>
> I am trying to solve the problem but it is taking me lots of hours.
> Please update the cerbero.
> I couldn't even do bootstrap. Everyone I see on the web says its
> working. It is not working now.
> Please help if you can.
>
> Thanks,
>
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel