Linux support

Issue #7 resolved
巴蒂斯Badisi repo owner created an issue

Linux support is almost ready.

Remaining points are:

  • DVDStyler / Abgx support
  • Packaging
  • and of course a minimum of testing ;-)

Comments (25)

  1. 巴蒂斯Badisi reporter

    Nope, most of the job is already done.
    I've tested it on an ubuntu virtual machine and it looks promising.
    I just need to find a little more time to install DVDStyler and Abgx, make some test and adjustment and it will be good to go ;-)

  2. Joel Simard

    It would be awesome, running this program is the main reason why I have a virtual machine with windows

  3. 巴蒂斯Badisi reporter

    As a mac user it was the same for me, well.. kind of.. I need it for my job too :-)
    But I just hate when people think windows only, so cross-platform was my priority.

  4. 巴蒂斯Badisi reporter

    @djosimd New version is out with support of linux ! Let me know if it's working fine

  5. Joel Simard

    @Badisi It seems i can't build the dvd menu. The specifiec path to dvd styler is "/usr/bin/dvdstyler" and in the advanced mode, everything is checked, except for the "Open with DVDStyler" option. The program crash after buulding the iso (and a quick flashing of dvdstyler). The log file end with:

    java.lang.Exception: Error opening iso file Caused by: java.io.FileNotFoundException: /home/joel/XKeyBrew/app/build/menu.iso (Aucun fichier ou dossier de ce type)

    I copied and extracted the downloaded archive in the /home/joel/XKeyBrew folder.

    Is it me that is doing something wrong ? The "opening with dvdstyler" option doesnt not change anything on my hdd, the old version of the menu is still there after replugging the hard drive in the xk3y.

    Thank you very much,

    Joel

  6. 巴蒂斯Badisi reporter

    @djosimd What linux are you running on ? I've made my tests on a ubuntu 12.04 with DVDStyler 2.5.2. Also can you attach the application log file please ?

    The "open with dvdstyler" option is more for theme creation, to make sure everything is rendered correctly in dvdstyler, it does not build anything.

    No need to replug you HDD to the xkey to make sure everything went well. If the app does not tell you that it's ok then it's not ;-)

  7. Joel Simard

    @Badisi You can find the application log file here. I'm running on relatively fresh elementary os 0.2 (2013-08-10 release, based on ubuntu) and my DVDStyler (2.1) is the one available with the apt-get command line.

    Joel

  8. 巴蒂斯Badisi reporter

    As stated in the doc, XKeyBrew required DVDStyler 2.5+
    Looking at the log file you could see that DVDStyler generates a lot of errors where it cannot find some xml files (those files does not exists in DVDStyler 2.1)

    I've managed to install DVDStyler 2.5.2 on my ubuntu with a ppa:

    > sudo gedit /etc/apt/sources.list
    > sudo apt-get update
    > sudo apt-get install dvdstyler
    

    Add this a the end of the sources.list file and replace precise with the name of your distro:

    ## DVDStyler
    deb http://ppa.launchpad.net/dvdstyler-maintainers/ppa/ubuntu precise main
    deb-src http://ppa.launchpad.net/dvdstyler-maintainers/ppa/ubuntu precise main
    

    Or you can also download the latest source version of DVDStyler (2.7.1) and compile it yourself. But personally I was too lazy for that because it required a lot of dependencies..

  9. Joel Simard

    Thank you, following your instructions, I managed to install DVDStyler 2.5.2. Thank you. The application still doesn't want to create the menu. I must be doing something wrong. The application log file is availlable here

    Thank you, Joel

  10. 巴蒂斯Badisi reporter

    Problem is still related to DVDStyler. For any reason it opens and suddenly closes...

    Few questions:

    • Is DVDStyler alone working ? I mean can you open DVDStyler without any issues ?
    • If the above is true then can you open the dvds file generated by XKeyBrew ?
  11. Joel Simard

    I can open DVDStyler on its own, no problems, that's how I verified I had the 2.5.2 version installed and I am, indeed, able to open the "theme.dvds" in the build folder with DVDStyler without any problems.

    What are the "default" checked boxes in the advanced setting ? While i was trying to make it work yesterday, I fooled around it a bit and now everything is checked except the "open with DVDStyler option"

  12. 巴蒂斯Badisi reporter

    I've tried again with 34 items and it's working fine for me. But I have noticed that I don't have the (dvdstyler:11710): Gtk-WARNING lines (that you have) in my log file. Can you try running DVDStyler from command shell (dvdstyler -s -e) and see if they appears ?

    EDIT: does it failed with only 2 or 3 items selected ?

    For the build settings you can find more info in the docs/usage section.


    The problem you are facing is that DVDStyler crashes and thus won't build the iso file required to finish the build process.

    To bypass this you can:

    1. Build the dvds file with XKeyBrew
    2. Open the dvds file with DVDStyler
    3. Build the iso file with DVDStyler
    4. Rename the iso file to menu.iso and place it in XKeyBrew build folder
    5. Check only build xsk and deploy options in XKeyBrew
    6. Build with XKeyBrew

    But that's just a workaround and for sure it would be best to fix the problem you are facing..

  13. Joel Simard

    It does not fail using only 3 items and the warning appear when running DVDStyler from command shell. I'm starting to think that somehow there's something wrong with my DVDStyler installation

    EDIT: It seems that it's failing when theres over 10 selected items.

    EDIT2: I got rid of the (dvdstyler:11710): Gtk-WARNING line by installing gtk2-engines-pixbuf but I still can't create a menu with more than 10 titles

  14. 巴蒂斯Badisi reporter

    I have investigated the exit value of 139 and it appears to be a SIGSEV (i.e. segmentation violation) = memory access error.

    What we know for sure:

    • DVDStyler is working alone and is able to open the dvds file
    • DVDStyler is working through XKeyBrew but only with a few items selected
    • XKeyBrew creates a new system process that opens DVDStyler and wait for that process to finish before going any further.

    Knowing all that, I think that DVDStyler has memory leaks that if open alone are not so important (handle by the OS) but if open through the pipe created by XKeyBrew makes it unstable and crashes.

    Problem could be solved in DVDStyler 2.7.1 but I don't know for sure and moreover I don't know any easy way to install it on Linux. Besides it's working fine on my ubuntu...

    Does it failed with any themes ?

  15. Joel Simard

    It does not work with any other themes. Installing DVDStyle 2.7.1 is WAY over my linux skills but what I can do, in about a week, I'll have access to another computer with a diferente distribution of linux installed (Mint 32 bits petra). I'll give it a shot, maybe it's just a incompatibility problem between my PC/elementary OS/DVDStyler.

    I'll keep you updated. Thank you very much ! Joel

  16. 巴蒂斯Badisi reporter

    I have had a hell of a time getting this to work but I finally managed to compile and install DVDStyler 2.7.1 on ubuntu. Again tested with 34 items and everything went well. And I have to say that I'm amazed how blasting fast it is compare to win or mac !

    Here is the installation guide:

    1) Donwload DVDStyler-2.7.1 and wxsvg-1.2.1 source

    2) Compile and install wxsvg

    > cd wxsvg-1.2.1
    > sudo apt-get update
    > sudo apt-get install libcairo2-dev libpango1.0-dev
    > ./configure && make
    > sudo make install
    

    3) Compile and install DVDStyler

    > cd DVDStyler-2.7.1
    > sudo apt-get update
    > sudo apt-get install flex libavformat-dev libswscale-dev libavfilter-dev libexif-dev libjpeg-dev xmlto
    > ./configure && make
    > sudo make install
    

    4) Fix some dependencies

    > sudo cp /usr/local/lib/libwxsvg.so.1 /usr/lib/
    

    5) Verify

    > /usr/local/bin/dvdstyler
    
  17. Joel Simard

    I managed to correctly install DVDStyler 2.7.1, thank you. I still get the message (log file available here) that the build failed (DVDStyler appears to don't close as fast though.

    It must be my OS that is incompatible somehow, even if it based on Ubuntu.

    Thank you anyway, Joel

  18. 巴蒂斯Badisi reporter

    Great that's a good news !

    For the error it seems that you are missing mplex.

    Try to see if you have it

    > which mplex
    

    and if not

    > sudo apt-get install mjpegtools
    
  19. Joel Simard

    Uhm, i didn't had mplex installed. So I installed it but now I get a "java.nio.file.AccessDeniedException: /home/joel/XKeyBrew/app/build/back.png" Log file here

    EDIT: It seems everything work fine when I lunch via the comman sudo ./XKeyBrew

    Thank you very much !!!! Joel

  20. 巴蒂斯Badisi reporter

    Well that's an AccessDeniedException.. Did you changed the location of the XKeyBrew application ? It needs root permission in order to write to file system. So either place it in public place or try running it as root.

    EDIT: just saw the /home/joel/ which should be fine then.. Don't know what went wrong here..

  21. Joel Simard

    Thank you very much ! and you are definitively right, its amazing how fast it is compared to the Windows version !

  22. Log in to comment