OlegKunitsyn / libshout-java

Libshout binding for streaming audio to Icecast servers from Java applications
MIT License
41 stars 14 forks source link

Added Ubuntu 16.04 at README.md #11

Closed ptheofan closed 7 years ago

OlegKunitsyn commented 7 years ago

undefined symbol: shout_init

ptheofan commented 7 years ago

which binary? Ubuntu or OSX?

OlegKunitsyn commented 7 years ago

Your story. Please take a look at the output of mvn install

ptheofan commented 7 years ago

did you run the mv target/libshout-java.64.so target/libshout-java.so ? after story runs should have only libshout-java.so Ubuntu 16.04 works with the 64bit version only. This error means you're using the 32bit version

I just rerun the process (copy-paste) on a new machine and worked again withought any issues (even on Ubuntu 14.04)

Of course in the end you need to copy the jar and the binary to the target folder. But since you omitted that step in the rest of the README I assume it's out of scope.

OlegKunitsyn commented 7 years ago

Just installed fresh Ubuntu 15 64-bit. mvn install fails with symbol lookup error as described above. mv target/libshout-java.64.so target/libshout-java.so is the cheat which replaces new (broken?) libshout-java.so with libshout-java.64.so compiled by me on Debian system and attached to the repo. Not a solution, sorry.

ptheofan commented 7 years ago

I really find you very remarkable!

  1. Both files are built on ubuntu for ubuntu (which btw Ubuntu is based on Debian)
  2. You always bind to the non 64bit version (see your java code).
  3. Ubuntu is 64bit - so, move (mv) the 64bit version over the 32bit version (aka replace).
  4. Magic happens - you actually load the 64bit version (not named 64bit).
  5. You can fix the binding (final static) in the java part for that, or people simply need to replace the 32bit file with the 64bit file.

obviously, there's something else wrong here... and you're gonna have to live with it. Have a nice day.

OlegKunitsyn commented 7 years ago

Dear ptheofan, mvn install on Ubuntu 15 64bit creates libshout-java.so - the dynamically linked 64-bit ELF file. Please fork and be happy. Cheers!

sunil6525 commented 7 years ago

i am not able to use this library in my windows machine. Do this support windows or only in lnux machines? can you please help me out

OlegKunitsyn commented 7 years ago

Answered