I saw that there were a few threads about ELAN on Linux. I tried a few things and ELAN still blocks on “Initializing…” for ages after I try starting a new project (with a 15 mb .wav file, with the extension in lowercase).
What I use:
Samsung N310 netbook
Ubuntu 12.04
32 bits architecture
I used the installer without JRE as I already have OpenJDK Java 6 Runtime
How ELAN installed:
The log reported 1 warning and 1 Non Fatal Error.
Warning:
Create Link: /home/chtfn/ELAN_4.4.0
Status: WARNING
Additional Notes: WARNING - Link had same name as an existing file. Prepending ‘run’ to the link’s name
The error has been reported before (for example in )
The warning is obviously not a problem.
What I did to try to make it usable:
I installed libstdc++5 (before installing ELAN)
I fixed the path to libc.so.6 as ELAN couldn’t find it when launched (error message: "strings: ‘/lib/libc.so.6’: No such file "), by creating a symlink. I typed in a terminal:
The last line I get when I try to open the .wav file.
Does ELAN 4.4 still depend on Fobs4JMF (http://sourceforge.net/projects/fobs/)? I hope it doesn’t, as the last version for linux is from 2007 and it sounds very obsolete… And I have no idea how to compile it…
There are several known problem with media playback on Linux; we need to utilize a new player framework to replace JMF (even more obsolete than Fobs).
About the first error: the installer tries to copy a few libraries for input methods to the Java jre/lib/ext folder and probably has no permission for that.
I don’t understand what exactly goes wrong, but you might try to replace the fobs extension for jmf so that you have the original jmf and see if that works. There should be some instructions in a text file in the install folder?
About Fobs and JMF, I don’t quite understand what you mean. I didn’t get to install Fobs4JMF because I am too scared to try and compile it, and the Ubuntu Software Centre doesn’t give any option when “Fobs” or “JMF” are searched.
Do you mean the install folder of Fobs4JMF or the install folder of ELAN 4.4? The “Media Playback Read Me.txt” in the home ELAN folder only says:
I’m sorry, I was unclear and mistaken. First of all, the jmf version that comes with ELAN includes Fobs4JMF. I assumed that the Read Me text file included hints on how to remove the fobs part, but that isn’t true (I didn’t have it at hand). On second thought I doubt whether fobs is the problem (to remove it, remove from the “jmf__Vlin2.1.1fcs” folder in the ELAN install folder the files: fobs4jmf.jar, jmf.jar and libfobs4jmf.so and copy jmf.jar from lib/sunjmf to the jmf__Vlin2.1.1fcs folder).
There are no clear errors in your terminal, I’m wondering whether the .wav file might not be supported? Did or can you try with e.g. the wav file from the ELAN download page?
I tried the .wav file from the ELAN download page (elan-example1.wav), and I get the same problem, stuck on “Initializing…”, with this in the terminal:
Even waiting for around one hour, this stays the same.
I tried with the video too (elan-example1.mpg) and I get this in the terminal:
I tried to remove Fobs and copy jmf.jar from sunjmf but I also get stuck on “Initializing…” when trying to open the .wav example, with a different error message in the terminal however:
I also tried the full version of the installer (“when no Java has been installed yet”) but I get an error when starting it, so I can’t install this version:
chtfn@chtfn-N310:~/Downloads$ sudo chmod +x ELAN_440_linux_install.bin
[sudo] password for chtfn:
chtfn@chtfn-N310:~/Downloads$ sudo ./ELAN_440_linux_install.bin
Preparing to install…
Extracting the JRE from the installer archive…
Unpacking the JRE…
Extracting the installation resources from the installer archive…
Configuring the installer for this system’s environment…
raw jre dir: /tmp/install.dir.6300/Linux/resource/jre/
jre dir: /tmp/install.dir.6300/Linux/resource/jre/
LD_LIBRARY_PATH:
LD_PRELOAD:
I don’t know why the version without jre can’t play a wav file yet. The version with a jre contains a 64-bit jre (and I just realized that you have a 32 bit system). So the solution should be found in the without jre version. Maybe with a separately installed clean JMF? Maybe you can try to launch with the /bin/Elan_Linux_4-4-0.sh script and use different settings (no idea which though)?
I’m having the exact same problem right now. I just installed the new ELAN, had the same non-fatal error described above, and I also am using Ubuntu 12.04. Could it be that the non-fatal error has something to do with it being stuck on “initializing”? I left it on all night, and it doesn’t seem to need time to load, because it was still like this when I woke up. I in fact can’t close the program.
I am somewhat new to Ubuntu, but I will try to follow the procedures you just outlined, and then I will report back to tell you if I am successful.
Running the /bin/Elan_Linux_4-4-0.sh fallback script doesn’t do anything at all. Simply running it doesn’t do anything, running it in a terminal lets the terminal appear for a second only.
Jonatin, you can try to run Elan chosing “Run in Terminal” to see what it reports, that might help to see if we have the exact same problem.
Creating a player shouldn’t take more than a minute, so if it is still stuck in “Initialising…” then something went wrong.
If you have to quit the program because it doesn’t respond anymore, you can have a look in the logs in the folder <user_home>/.elan_data/elan0.log (or elan1.log etc. depending on the timestamp). As long as the program is responding, you can also see the log via View->View Log…
The real point on Linux is that we have to implement a media player based on a different framework than JMF. (But that will take a while).
Well, it says something.
I don’t know if it will help, but I made a little change in the “FixedJavaSoundRenderer” that you see in the fobs-based error message. If you download the file
and replace the elan.jar file in the <install_folder>/lib folder with this one, we can see if this makes a difference. (I don’t get the same error, so I can’t test it myself.)
I replaced /lib/elan.jar in a fresh install by the file provided by Han, and… it works! I can get the two examples from the ELAN download page working! I tried the .wav and the .mpg files seperately for the moment.
I will let you know how I go with further tests, but for the moment it looks pretty good!
Thank you so much for this, Han.
If Jonatin can confirm that this fixes it for him too, could this fix be pushed into the linux install file?
It works!!! I don’t have any issues, so far, and the .wav files that I currently am working on were recorded myself!~
Thank you very much! I marvel at what goes behind these things, some times. Hopfeully I can join you in the open-source programming community sometime in the future!