Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - escho

#51
Unpacking "ffmpegLinux.tar.xz" manually gives a folder

ffmpeg-4.0-64bit-static


containing the these files

-rwxr-xr-x 1 edgar users 63012968 22. Apr 21:33 ffmpeg
-rwxr-xr-x 1 edgar users 64229352 22. Apr 21:54 ffmpeg-10bit
-rwxr-xr-x 1 edgar users 62914664 22. Apr 21:33 ffprobe
-rw-r--r-- 1 edgar users    35147 22. Apr 21:54 GPLv3.txt
drwxr-xr-x 2 edgar users     4096 22. Apr 21:38 manpages
-rwxr-xr-x 1 edgar users   742480 22. Apr 21:33 qt-faststart
-rw-r--r-- 1 edgar users     2857 22. Apr 21:54 readme.txt


I used a wildcard for this folder-name in the tar-command:

QMAKE_POST_LINK += tar -C $$(HOME)/bin -xvJf FFmpeg/ffmpegLinux.tar.xz --strip=1 --wildcards */ffmpeg

Unfortunately, this wildcard seems to conflict with the dummy file "platform/qt/FFmpeg/ffmpeg". Don´t ask me, why. This is the corresponding error-message:

tar: FFmpeg/ffmpeg: Nicht im Archiv gefunden.


If I call tar with the complete archiv-path, ffmpeg is found in the archiv and gets unpacked. No more error.

QMAKE_POST_LINK += tar -C $$(HOME)/bin -xvJf FFmpeg/ffmpegLinux.tar.xz --strip=1 ffmpeg-4.0-64bit-static/ffmpeg

This fixes the normal compiling for Linux openSUSE.
#52
If I remember correct, it says something like "FFmpeg/ffmpeg not found". I have an idea, what can help, maybe. But I cannot test this here. Will try it later, when I'm back home.
#53
The new Zero-Byte file "ffmpeg" in platform/qt/FFmpeg breaks unpacking with tar -C--- in Linux openSUSE. If I rename the empty file to let´s say "ffmpeg1", unpacking works like expected
#54
Quote from: jpegmasterjesse on May 31, 2018, 08:14:53 PM
I was still having problems with qmake, unfortunately.  Wanted to let you know that I think "gitclone" should be "git clone" in your translated instructions.


You are right. Looks like I did a copy and past error. Fixed. ThankYou very much.

For your qmake-problems. Just for my Info. Which QT-Version do you use?

qmake --version
#55
You only need one single file, called ffmpeg
#56
@all
guide for compiling Mlv-App (english) in Linux: https://sternenkarten.com/tutorial-englisch/
This guide is updated now too.

@masc
I will try the app-image later

edit:
What about ffmpeg? Does the app-image contain ffmpeg?
#58
The German version of the Linux-Compile-Guide is now updated and extended (openSUSE and Kubuntu): https://sternenkarten.com/fotos/ml/
English translation will follow soon

I removed the compiling with qt-creator part. I´m, planning to moove this qt-creator-stuff to a seperate guide (debugging). But this will take some time.
#59
Quote from: jpegmasterjesse on May 27, 2018, 10:50:01 PM
Still having trouble compiling, anyone mind helping me? I'm running 16.04


I have openSUSE here and cannot reach my astrophoto-laptop (kubuntu) before next weekend. Than I can try.
#60
Quote from: Danne on May 27, 2018, 10:44:31 PM
I do a curl command:
curl -L https://github.com/ilia3101/MLV-App/archive/master.zip -o mlvapp_master.zip && \
unzip mlvapp_master.zip -d ~/
rm ~/mlvapp_master.zip

Should be the same but will try your clone command tomorrow...


It´s not the same. You download a zip-file and unzip it. But you don´t initialize your local copy to work with the remote repo. If you do a "git clone...", you get all initialized, what you need. Look in the working.dir of MLV-App. There should be a hidden folder ".git".
#61
How did you get MLV-App-master? This is the folder, if you download the zip-file. If you do a "git clone https://github.com/ilia3101/MLV-App.git", the resulting dir shold be MLV-App. In this folder, you can do "git pull"
#62
Than go to your local clone and do only

git pull

Tested it with an older mlvapp-backup. Works for me.
#63
Did you try:

git pull https://github.com/ilia3101/MLV-App.git


and if this doesn´t help, here is a snippet from my ML-Compile-script. This is hg, but maybe, tjhat can help:

repo_clonen()
{
    echo "-------------------------------------------------------------------------------"
    echo "------------------------------clone -------------------------------------------"
    echo "-------------------------------------------------------------------------------"
    cd $hauptverzeichnis
    hg clone -r "$branch" "$adresse"
   
    echo "-------------------------------------------------------------------------------"
    echo "-------------------------------pull -------------------------------------------"
    echo "-------------------------------------------------------------------------------"
    cd $hauptverzeichnis/branch
    hg pull
   
    echo "-------------------------------------------------------------------------------"
    echo "------------------------------update ------------------------------------------"
    echo "-------------------------------------------------------------------------------"
    hg update
}
#64
Quote from: masc on May 27, 2018, 07:32:20 PM
Thx @escho! I commited your line to the .pro file into the repos!

Great. Tested it. Works. :)
Than I can update my compile-guides.

To make things more easy for me, I wrote a git-clone and compile-bash-script for openSUSE. If someone is interested, I can upload it to my homepage ( https://sternenkarten.com/ )
#65
Quote from: masc on May 23, 2018, 08:07:09 PM
Cool. Which version do you recommend? ffmpeg-release-64bit-static.tar.xz ?

Only now, I found some minutes to test the Linux-desktop-file (created with the .pro file). Works perfect here in openSUSE. Thanks for adding.

Great, that you added ffmpeg-static to the sources. I played a bit around in the .pro-file. With this command, I succeded in unpacking only the ffmpeg-bin out of ffmpeg-static and copying it to $HOME/bin. So you don´t need to unpack ffmpeg manually.

linux-g++ {
    target.path = $$(HOME)/bin
    desktop.path = $$(HOME)/.local/share/applications
    desktop.files += mlvapp.desktop
    icon512.path = $$(HOME)/.local/share/icons/hicolor/512x512/apps
    icon512.files += RetinaIMG/MLVAPP.png

    INSTALLS += target desktop icon512
   
    QMAKE_POST_LINK += $$quote(tar -C $$(HOME)/bin -xvJf FFmpeg/ffmpegLinux.tar.xz --strip=1 --wildcards */ffmpeg)

}


I´m not sure, that this is a correct way for doing this. It was only try and error, what I did.

edit:

This one is working, too:

QMAKE_POST_LINK += tar -C $$(HOME)/bin -xvJf FFmpeg/ffmpegLinux.tar.xz --strip=1 --wildcards */ffmpeg
#66
Quote from: masc on May 23, 2018, 09:21:26 PM

After having unpacked the ffmpeg, did you copy it to the application directory? Maybe we can add this to the .pro file!?

Yes, I extract ffmpeg*tar.xz, using ark, and copy the ffmpeg-bin-file to the bin-folder in my home-directory. But it would be fine, if I woudn´t have to do this manually.

In /bin/bash I use this syntax to extract only the bin-file of ffmpeg to $HOME:
tar -C $HOME/bin -xvJf ffmpeg*.tar.xz --strip=1 --wildcards */ffmpeg
Not sure, how to add this to the .pro file. I will play a bit this weekend and tell you my results.
#67
Quote from: masc on May 23, 2018, 08:07:09 PM
Cool. Which version do you recommend? ffmpeg-release-64bit-static.tar.xz ?
Yes
#69
@masc
Thanks for the explanation.

Yes, I think it would make sense to add the ffmpeg-static for linux to the repo. Would make thinghs easier. Unfortunately I have deleated my ffmpeg version, so I cannot upload it. But It looks like the static version will be back soon on the ffmpeg-site.
#70
ffmpeg-linux-static-builds

There are no more linux-static-builds of actual ffmpeg-versions available for some time. For more info, please have a look at the ffmpeg-website.
#71
openSUSE:

Quote from: escho on May 14, 2018, 09:05:28 PM

Did I tell you, that I´m sometimes a bit lazy. So I wrote some lines into the MLVAPP.pro-file. Now qmake-qt5 and make are doing the job for me. Now I have the mlvapp-starter in the multimedia-part of the KDE-Quickstart-menue. And I appended it to my desktop.


target.path = $$(HOME)/bin
desktop.path = $$(HOME)/.local/share/applications
desktop.files += mlvapp.desktop
icon512.path = $$(HOME)/.local/share/icons/hicolor/512x512/apps
icon512.files += RetinaIMG/MLVAPP.png

INSTALLS += target desktop icon512


The way to install mlvapp and a desktop-file is now:

qmake-qt5
make
make install


Note, that is only valid for Linux-openSUSE with KDE. It should run on Kubuntu as well. Ubuntu with gnome or Ubuntumate could b different. I cannot test Gnome, but I have ubuntumate. I will give ubuntumate a try next days

Tried this with kubuntu 18.04 LTS.

Works for the desktop-file
Compiling need qmake instead of qmake-qt5:

qmake
make
make install
#72
@50mm1200s
Quote
Couldn't it use the package manager, instead of copying manually?

Sure, you can use a paketmanager for installing ffmpeg, if you wan´t. I described the way for openSUSE in my guides:

German: https://sternenkarten.com/fotos/ml/
English: https://sternenkarten.com/tutorial-englisch/

Search for ffmpeg...

But remember. ffmpeg shipped with the big distributions is not compiled with all codecs, mlvapp needs. The community provided unofficiell package-repositories, which contain a fully featured ffmpeg. You first must add these repositories to your package-manager to get the correct ffmpeg-version.


QuoteAlso, there's some security considerations on copying something to /bin...

I don´t copy anything to /bin... , so no security considerations ;)
#73
@masc

A word to the desktop-files in Linux

This is the end of the MLVAPP.pro-file:

#linux-g++ {
    #Add desktop file
#    EXTRA_FILES += \
#        mlvapp.desktop
#    for(FILE,EXTRA_FILES){
#        QMAKE_POST_LINK += $$quote(cp $${FILE} $${DESTDIR/usr/share/applications/}$$escape_expand(\n\t))
#    }
#}


I guess, this was a try to install a desktop file. But this cannot work for two reasons:

First:

"/usr/share/applications" contains desktop-files, that´s true. But these deskop-files are system-wide. For doing something system-wide in Linux, you must logged in as root or use sudo. You will be asked for the root-password then, to proceed.

Second:

"$$quote(cp $${FILE} $${DESTDIR/usr/share/applications/}$$escape_expand(\n\t))"

What is DESTDIR? /usr/share/application is a valid path in Linux. The makefile, created by qmake-qt5, shows:

cp mlvapp.desktop

The destination is missing.


I for my part do not want to install mlvapp system-wide. I want it locally in my home-folder ( /home/myusername/ ). So my way for building mlvapp is:

- download the static version from ffmpeg for linux from the ffmpeg-website
- copy ffmpeg to ~/bin
- cloning mlvapp from git
- making the buildfile with qmake-qt5
- compiling with make


I wrote a little bash-script for doing this, because sometimes I´m a bit lazy :)

OK, mlvapp is compiled. All I like to have know, is a little desktop-file. Not because it´s necessary for mlvapp to start. No, I like nice little buttons and icons to press. (That´s a reason, I love to visit the "Deutsches Museum in München". Many buttons to press there...

I do not want to have this desktop-file system-wide to avoid using the root-password. Fortunately, I can create this desktop-file locally in my home-folder. OK, which file must go to what place, now?

mlvapp.desktop

Theat goes to a hidden folder in $HOME

$HOME/.local/share/applications

MLVAPP.png (in RetinaIMG)

The png-icon has a resolution of 512x512 px. So it must go to another hidden folder in my home-directory

$HOME/.local/share/icons/hicolor/512x512/apps


Another possibility should be, I guess:

$HOME/./icons/hicolor/512x512/apps

mlvapp

The bin-file should go to a place, which is describes in the $PATH envirement-variable

$HOME/bin

Did I tell you, that I´m sometimes a bit lazy. So I wrote some lines into the MLVAPP.pro-file. Now qmake-qt5 and make are doing the job for me. Now I have the mlvapp-starter in the multimedia-part of the KDE-Quickstart-menue. And I appended it to my desktop.

#linux-g++ {
    #Add desktop file
#    EXTRA_FILES += \
#        mlvapp.desktop
#    for(FILE,EXTRA_FILES){
#        QMAKE_POST_LINK += $$quote(cp $${FILE} $${DESTDIR/usr/share/applications/}$$escape_expand(\n\t))
#    }
#}

target.path = $$(HOME)/bin
desktop.path = $$(HOME)/.local/share/applications
desktop.files += mlvapp.desktop
icon512.path = $$(HOME)/.local/share/icons/hicolor/512x512/apps
icon512.files += RetinaIMG/MLVAPP.png

INSTALLS += target desktop icon512


The way to install mlvapp and a desktop-file is now:

qmake-qt5
make
make install


Note, that is only valid for Linux-openSUSE with KDE. It should run on Kubuntu as well. Ubuntu with gnome or Ubuntumate could b different. I cannot test Gnome, but I have ubuntumate. I will give ubuntumate a try next days
#74
@bouncyball

Quote from: bouncyball on May 12, 2018, 11:44:54 AM

@escho

In Ubuntu long time ago I just made shortcut of MLV App with just simple mouse drug and drop on to my desktop and also have very nice icon there.

Unfortunatly, this doesn´t work in openSUSE and kubuntu 18.04 (atm?). I can start mlvapp from the desktop, but I have no MLVAPP-icon.


@Ilia3101
@masc

Quote from: Ilia3101 on May 12, 2018, 04:04:41 PM
src/icon - there you will find icon.png

Quote from: masc on May 12, 2018, 05:12:18 PM
Hej escho, see MLV_App/platform/qt/RetinaIMG/MLVAPP.png as icon.

Thanks for the paths. Didn´t see them...


@masc

Quote from: masc on May 12, 2018, 05:12:18 PM
Have you seen the thread on github about how to do a appimage? There were a lot of hints from someone, but I can't help much...
https://github.com/ilia3101/MLV-App/issues/17

I saw it, the part of the Howto. But i didn´t read the part with the appimage.

I´m sorry, but I cannot help with an appimage. That´s beyond my skills. But maybe, I can help a bit with the linux-desktop-file, you know, this one, you wanted to copy to /usr/share/applications. More tomorrrow... :)
#75
Linux-openSUSE

I played a bit with mlvapp for creating a desktop-file with a nice icon. I found a raw desktop-file in $HOME/MLV-App/MLV-App-master/platform/qt. But this desktop-file needs "*.png *.xpm *.svg *.svgz|Symbol-Dateien" as icons. I only found "MLVAPP.ico", which is not accepted. Not the biggest problem. I opend MLVAPP.ico with GIMP and exported it as png.

The second thing is the path to mlvapp. In the desktop-file, the path is mlvapp. That is fine, but only, if mlvapp is in a directory, which is described in the $PATH env-var. But mlvapp is located in (in my case) $HOME/MLV-App/MLV-App-master/platform/qt. For to run mlvapp by only clicking the desktop-file, the complete path to mlv-app is needed in the desktop-file. I changed this and have now a nice little start-symbol for mlvapp on my desktop:

https://seescho.files.wordpress.com/2018/05/mlvapp-desktop.jpg