RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Video Preview in EmulationStation

    Scheduled Pinned Locked Moved Ideas and Development
    emulationstatioraspberry pivideo
    552 Posts 46 Posters 618.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • fieldofcowsF
      fieldofcows @Nismo
      last edited by

      @Nismo I can share a Linux or RPi build but I haven't got a WIndows toolchain setup for EmulationStation yet. If I get time tomorrow I'll see what I can do.

      Anyone else interested in giving this a try?

      N FloobF 2 Replies Last reply Reply Quote 2
      • hansolo77H
        hansolo77 @Rion
        last edited by

        @Rion Well said. I'm a close friend of Circo and his emumovies. Been a lifetime member for years and years. Haven't updated my sets on my gaming PC in a while though, probably outta. Been working on setting up a RetroPie.

        @fieldofcows I would definitely be willing to test this, but I know very little. I've only been a member of the site for like 3 days, and only just started building my RetroPie in the last 2. Perhaps some day. :)

        Who's Scruffy Looking?

        1 Reply Last reply Reply Quote 0
        • N
          Nismo @fieldofcows
          last edited by

          @fieldofcows of course i want to test.

          Maybe i could try to install VS2010 in my computer and try to compile myself if you give me source code. But i never did before...

          fieldofcowsF 1 Reply Last reply Reply Quote 1
          • FloobF
            Floob @fieldofcows
            last edited by

            @fieldofcows Sure, I could test it and put a video overview up if you like?

            Please read the Docs before asking a new question.
            RetroPie Help Guides: https://goo.gl/3gcNsT

            1 Reply Last reply Reply Quote 2
            • fieldofcowsF
              fieldofcows @Nismo
              last edited by

              @Nismo I'll try to see if it builds on Windows today. If you or anyone else want to try to build from source then you can download it from my github

              N 1 Reply Last reply Reply Quote 1
              • Z
                Zigurana
                last edited by

                Hey, good work!
                The youtube vid is very promising.
                The initial halting when going into the gamelist, is that because of the video loading / libvlc starting up ?

                If you ever want to have someone else have look at your code, and you can handle stupid questions, don't hesitate to drop me a line. I am looking for a coding buddy myself, and combining efforts seems like a fun way to bring ES to the next level!

                If tetris has thought me anything, it's that errors pile up and that accomplishments dissappear.

                1 Reply Last reply Reply Quote 3
                • N
                  Nismo @fieldofcows
                  last edited by Nismo

                  @fieldofcows I'm trying to compile to windows from Linux Lite (Ubuntu 16.04.1 LTS) using Mingw64.

                  First problem i encountered is Mingw64 can't find freeimage so i did this change on CMakeLists.txt:

                  #finding necessary packages
                  #-------------------------------------------------------------------------------
                  if(${GLSystem} MATCHES "Desktop OpenGL")
                  find_package(OpenGL REQUIRED)
                  else()
                  find_package(OpenGLES REQUIRED)
                  endif()
                  find_package(Freetype REQUIRED)
                  find_package(SDL2 REQUIRED)
                  find_package(Boost REQUIRED COMPONENTS system filesystem date_time locale)
                  find_package(Eigen3 REQUIRED)
                  find_package(CURL REQUIRED)
                  find_package(VLC REQUIRED)

                  #add ALSA for Linux
                  if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
                  find_package(ALSA REQUIRED)
                  endif()

                  FIND_PATH( FREEIMAGE_INCLUDE_PATH FreeImage.h
                      /usr/include
                      /usr/local/include
                      /sw/include
                      /opt/local/include
                      DOC "The directory where FreeImage.h resides")
                  FIND_LIBRARY( FREEIMAGE_LIBRARY
                      NAMES FreeImage freeimage libfreeimage libfreeimage-3.15.2
                      PATHS
                      /usr/lib64
                      /usr/lib
                      /usr/local/lib64
                      /usr/local/lib
                      /sw/lib
                      /opt/local/lib
                      DOC "The FreeImage library")
                  

                  #-------------------------------------------------------------------------------

                  Now i have not freeimage error while compiling, but any message about freeimage. I'm sure latest version of freeimage is installed.

                  Now Mingw64 can't find vlc library, and i don't know what to do or where to point. I have installed libvlc-dev.

                  This is my Mingw64 script:

                  cmake -DFREETYPE_INCLUDE_DIRS=/usr/include/freetype2/ -DFREETYPE_LIBRARY=/usr/include/freetype2/ft2build.h -DFREEIMAGE_INCLUDE_DIRS=/usr/include/ -DFREEIMAGE_LIBRARY=/usr/include/FreeImage.h -DSDL2_INCLUDE_DIR=/usr/include/SDL2/ -DSDL2_LIBRARY=/usr/include/SDL2/SDL.h -DBOOST_LIBRARYDIR=/usr/lib/x86_64-linux-gnu/ -DCURL_LIBRARY=/usr/include/curl/curl.h -DVLC_INCLUDE_DIR=/usr/include/vlc/ -DVLC_LIBRARY=/usr/include/vlc/libvlc.h -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_C_COMPILER=/usr/bin/x86_64-w64-mingw32-gcc -DCMAKE_CXX_COMPILER=/usr/bin/x86_64-w64-mingw32-c++

                  Any help whould be appreciate, thanx.

                  #-------------------------------------------------------------------------------

                  fieldofcowsF 1 Reply Last reply Reply Quote 0
                  • fieldofcowsF
                    fieldofcows @Nismo
                    last edited by

                    @Nismo Is MinGW64 a supported build environment for EmulationStation? I don't know much about it but I would have thought you would need to build all the dependencies (including libvlc) using the mingw64 toolchain for this to work rather than trying to build against the linux headers and libraries.

                    I was hoping to get a windows environment setup over the weekend but I didn't find much time. I did manage to get it nearly working though using Visual Studio 2015. It all builds but I'm getting link errors. It shouldn't take much to get it working except some of my time of which I don't have much!

                    N 1 Reply Last reply Reply Quote 1
                    • N
                      Nismo @fieldofcows
                      last edited by Nismo

                      @fieldofcows if you read about mingw64 it's not much difference about compiling for windows from ubuntu, anyway if you need a PC with windows to make test and make an windows environment setup i can let you use mine trought teamviewer. No problems with that. Mi PC is your PC. If i can contribute with my computer, i'm happy to help with the project.
                      intel core i7 4790k 8gb ram. Windows 10. You will work with an 250GB SSD because all my HDD are full.

                      what do you think?

                      fieldofcowsF 1 Reply Last reply Reply Quote 0
                      • fieldofcowsF
                        fieldofcows @Nismo
                        last edited by

                        @Nismo That's a kind offer however I've got development systems coming out my ears! When working on EmulationStation I build on my Linux system before copying the source over to RPi and building on that. The only reason I'm trying to setup a Windows build is to provide a pre-built binary for anyone that wants to try it on Windows.

                        If you have an Ubuntu system, why don't you try building the native Linux version rather than waiting for a Windows build or messing about with MinGW?

                        As I said, I'm nearly there and will drop a some prebuilt binaries somewhere so people can pick them up and try out the video preview.

                        N 2 Replies Last reply Reply Quote 1
                        • N
                          Nismo @fieldofcows
                          last edited by Nismo

                          @fieldofcows I just install linux only for compiling... because for compiling in windows i need to install a lot of things, so i installed linux in a pendrive only for compiling but not successful.

                          Also I want to compile the program because i want to translate to my native languaje. Whould be great if ES can read strings from an strings.xml file so we can translate it for the kids.

                          The only reason i use windows is because of the games... you know... origin.. uplay... steam...

                          My pc is your pc if you need it. Regards.

                          1 Reply Last reply Reply Quote 1
                          • N
                            Nismo @fieldofcows
                            last edited by

                            @fieldofcows ok i finally managed to ming64 can find libs.

                            For who interested you need to replace FindFreeImage.cmake and FindVLC.cmake inside EmulationStation-master\CMake\Packages with the new ones i provide to you:

                            http://www.mediafire.com/file/moe07cryzc9i1ew/Findfreeimage_%26_findvlc.rar

                            Now finally starts compilling but lot of errors and no success. This is the console log:

                            http://www.mediafire.com/file/sbusqdaw19p3up9/console-log.txt

                            Any help would be appreciated.

                            N 1 Reply Last reply Reply Quote 0
                            • N
                              Nismo @Nismo
                              last edited by Nismo

                              @fieldofcows take a look at this source fork, this guy is mantaining support and has automated builds: https://github.com/Herdinger/EmulationStation maybe he can merge your commits and you don't need to compile anything and we can take advantage of the updated code.

                              I finally tried to compile emulationstation on windows, but i have a lot of errors when compiling:

                              EmulationStation-master\es-core\src\platform.cpp(87): error C3861: 'open': identifier not found
                              EmulationStation-master\es-core\src\platform.cpp(89): error C3861: 'close': identifier not found

                              EmulationStation-master\es-core\src\Util.cpp(105): error C2440: 'initializing' : cannot convert from 'const boost::filesystem3::path::value_type *' to 'std::basic_string<_Elem,_Traits,_Ax>'
                              4> with
                              4> [
                              4> _Elem=char,
                              4> _Traits=std::char_traits<char>,
                              4> _Ax=std::allocator<char>
                              4> ]
                              4> Ningún constructor ha podido aceptar el tipo de origen o bien la resolución de sobrecarga del constructor era ambigua
                              4>..............\EmulationStation-master\es-core\src\Util.cpp(106): error C2440: 'inicializando' : no se puede realizar la conversión de 'const boost::filesystem3::path::value_type *' a 'std::basic_string<_Elem,_Traits,_Ax>'
                              4> with
                              4> [
                              4> _Elem=char,
                              4> _Traits=std::char_traits<char>,
                              4> _Ax=std::allocator<char>
                              4> ]
                              4> No constructor could take the source type, or constructor overload resolution was ambiguous
                              4> HelpComponent.cpp

                              EmulationStation-master\es-core\src\Window.cpp(248): error C3861: 'round': identifier not found
                              EmulationStation-master\es-core\src\Window.cpp(249): error C3861: 'round': identifier not found
                              EmulationStation-master\es-core\src\Window.cpp(344): error C3861: 'count_if': identifier not found

                              And more similar errors.. i think the code needs to be a little modified to compile on windows, but i'm not a programmer so i'm stuck at this point.

                              I'm able to compile if the source code is ok.

                              I've uploaded the full log for who interested: http://www.mediafire.com/file/n974fz3sp7z2cq3/compilation-log.txt

                              fieldofcowsF 1 Reply Last reply Reply Quote 0
                              • fieldofcowsF
                                fieldofcows @Nismo
                                last edited by

                                @Nismo So this is the problem it seems with EmulationStation - Aloshi isn't maintaining it anymore and there are a number of branches, most of which have also been fairly static for a while. I chose to fork the RetroPie branch because I ultimately want this to work on raspberry pi. I guess that branch doesn't build on Windows.

                                I'm happy to submit the changes to the Herdinger fork but it seems like that one too hasn't been updated for a while.

                                1 Reply Last reply Reply Quote 1
                                • fieldofcowsF
                                  fieldofcows
                                  last edited by

                                  Right - I have a working Windows build environment as well as Linux and RPi. I'll see if I can get some binaries built and put them somewhere for people to try shortly.

                                  N R 4 Replies Last reply Reply Quote 5
                                  • N
                                    Nismo @fieldofcows
                                    last edited by

                                    @fieldofcows Awesome!! Thank you very much for your effords.

                                    I'm very curious to know how you finally make the code compile on windows without errors.

                                    Thanks again, regards.

                                    1 Reply Last reply Reply Quote 1
                                    • Z
                                      Zigurana
                                      last edited by

                                      Indeed! If you have a nice list of actions you took in order to build on Windows, that would help me out tremendously!

                                      If tetris has thought me anything, it's that errors pile up and that accomplishments dissappear.

                                      1 Reply Last reply Reply Quote 1
                                      • N
                                        Nismo @fieldofcows
                                        last edited by

                                        @fieldofcows Please if you make a windows build doesn't use Herdinger's fork, use your own source,
                                        because i was testing Herdinger's build and he made some commits where emulationstation save config files and now i can't run it portable from a pendrive, i need to go back to old exe.

                                        Said by Herdinger on 19 Feb:
                                        "Right now I changed the config directory to something sensible on every platform (.config/emulationstation on linux, Appplication Support or .config/emulationstation on OSX and My Documents on Windows) so you have to move your config there if you want to use the fork."

                                        Source: https://github.com/Aloshi/EmulationStation/issues/563

                                        So please use your own fork. Thanks.

                                        1 Reply Last reply Reply Quote 0
                                        • N
                                          Nismo @fieldofcows
                                          last edited by

                                          @fieldofcows Ok no problem with the fork from Herdinger, seems i fixed the problem by editing es_settings. There are some flags there, one of them is for no splash screen... lol
                                          Sorry for the inconvenience.

                                          1 Reply Last reply Reply Quote 0
                                          • R
                                            robertybob @fieldofcows
                                            last edited by

                                            @fieldofcows Any update? :D

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.