Giter Club home page Giter Club logo

Comments (9)

mherger avatar mherger commented on August 24, 2024

Could you please send a pull request?

from slimserver.

phaethon avatar phaethon commented on August 24, 2024

Did not notice this issue earlier and reinvented the wheel ;). BarnabasDK, can you check the buildme.sh from py Pull request? I fixed some similar issues in mine: https://github.com/phaethon/slimserver-vendor/blob/public/7.9/CPAN/buildme.sh
And, mherger, now there is a pull request on slimserver-vendor repo.

Also, libmediascan has serious issues with FreeBSD. There is some logic, which checks whether os is OSX, Linux or Win, leaving everybody else (e.g. FreeBSD) excluded. I am now looking into that. mherger, should submit fixes as a change to libmediascan or as a patch file/buildme.sh change for slimserver-vendor?

from slimserver.

phaethon avatar phaethon commented on August 24, 2024

I created a pull request for libmediascan, but I am not sure if anybody follows that code anymore. It fixes scanning of pictures and videos for FreeBSD. Without this patch it does not scan those files at all.
andygrundman/libmediascan#3

from slimserver.

mherger avatar mherger commented on August 24, 2024

@phaethon - Please see my comment in your pull request

from slimserver.

NikolajHansen avatar NikolajHansen commented on August 24, 2024

Sorry for the late reply, for some reason the mails for this thread only started ticking in yesterday.

I have two issues - one not really important for the build a such.

  1. I build in a freebsd jail, and on a jail you have no localhost interface. That makes some of the tests fail since they use this. I just build with -t.

  2. The linker produces the following error

CPAN/build/include/../lib/libdb.a -lm -lz -lintl
/usr/bin/ld: /root/logitech/slimserver-vendor/CPAN/build/include/../lib/libavcod
ec.a(deinterlace.o): relocation R_X86_64_PC32 against `ff_pw_4' can not be used
when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Stop.
make: stopped in /root/logitech/slimserver-vendor/CPAN/libmediascan-0.1/bindings
/perl
make failed, aborting

maybe just give it the build argument it asks for?

from slimserver.

phaethon avatar phaethon commented on August 24, 2024

On 2), this is the flag that helped me with the issue, so I changed the respective place in buildme.sh. My ARCH is amd64-freebsd-thread-multi. What is your ARCH (as calculated by script)? If it is different, we likely just have to add it here.
if [ "$ARCH" = "x86_64-linux-thread-multi" -o "$ARCH" = "amd64-freebsd-thread-multi" ]; then
FFOPTS="$FFOPTS --disable-mmx"
fi
I assume you did a clean rebuild of ffmpeg with the builme.sh. Otherwise, that could be the issue.

from slimserver.

NikolajHansen avatar NikolajHansen commented on August 24, 2024

Yes, I deleted the build artifact folder completely.

the following script

root@squeezebox:/root/logitech/slimserver-vendor/CPAN # cat arch.sh
#!/bin/sh
ARCH=$(/usr/bin/perl -MConfig -le 'print $Config{archname}' | sed 's/gnu-//' | sed 's/^i[3456]86-/i386-/' | sed 's/armv5tejl/arm/')

echo $ARCH

outputs

root@squeezebox:/root/logitech/slimserver-vendor/CPAN # ./arch.sh
amd64-freebsd

from slimserver.

phaethon avatar phaethon commented on August 24, 2024

Interesting. Which FreeBSD version you have? I have 10.1 and I get amd64-freebsd-thread-multi
Anyway, try changing above code in buildme.sh (around line 1192) to:
if [ "$ARCH" = "x86_64-linux-thread-multi" -o "$ARCH" = "amd64-freebsd-thread-multi" -o "$ARCH" = "amd64-freebsd" ]; then
FFOPTS="$FFOPTS --disable-mmx"
fi

and try again.

from slimserver.

NikolajHansen avatar NikolajHansen commented on August 24, 2024

You are right. This seems to be another jail issue.

(12:38:10 <nikolaj@atlas:>) $ uname -a
FreeBSD atlas.barnabas.dk 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014 [email protected]:/usr/obj/usr/src/sys/GENERIC amd64
(12:38:36 <nikolaj@atlas:
>) $ /area51/jails/squeezebox.barnabas.dk/root/logite
ch/slimserver-vendor/CPAN/arch.sh
amd64-freebsd-thread-multi

If I am to build on the root host I have to install all of the build dependencies in that context, and I would rather not. I actually think you script works now and the rest of the issues tie to the fact I am using a chrooted context.

Thanks!

from slimserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.