raspbian

Issue #2 when compiling Xuggler for Raspberry pi with libx264

∥☆過路亽.° 提交于 2019-12-20 07:14:52
问题 I am trying to compile Xuggler for Raspberry Pi(Running on Debian OS aka Raspbian), I followed the 'Basic Build Instructions' available here for compiling Xuggler. After I successfully installed all the prerequisites and set the correct paths, I ran the following command: ant run-tests After sometime I am facing the following error and the ant build fails at libx264: {scroll at the end of log to see the issue} common/arm/mc-c.c: In function âx264_weight_cache_neonâ: common/arm/mc-c.c:89:25:

Python Gzip - Appending to file on the fly

有些话、适合烂在心里 提交于 2019-12-19 05:08:59
问题 Is it possible to append to a gzipped text file on the fly using Python ? Basically I am doing this:- import gzip content = "Lots of content here" f = gzip.open('file.txt.gz', 'a', 9) f.write(content) f.close() A line is appended (note "appended") to the file every 6 seconds or so, but the resulting file is just as big as a standard uncompressed file (roughly 1MB when done). Explicitly specifying the compression level does not seem to make a difference either. If I gzip an existing

LLVM build options for ARM / RaspberryPi

孤人 提交于 2019-12-18 11:59:54
问题 I'm seeking clarification of what the best build options are for LLVM 3.2 on Raspbian I've fetched the LLVM source of 3.2, and my config is: cd llvm-3.2.src ./configure --build=armv6-unknown-linux-gnueabi \ --host=armv6-unknown-linux-gnueabi \ --target=armv6-unknown-linux-gnueabi --with-cpu=arm1176jzf-s \ --with-float=hard --with-abi=aapcs-vfp --with-fpu=neon \ --enable-targets=arm --enable-optimized --enable-assertions make REQUIRES_RTTI=1 sudo make install I've heard it takes quite a number

Pygame.movie missing

我与影子孤独终老i 提交于 2019-12-18 09:01:25
问题 I am currently working with a RPi 3B (latest Raspbian Jessie) on a little project which involves playing a short .mp4 file. As Pygame seemed to support playing .mpg files, so I converted my video into that format. When I tried to import the movie module however, I get the common python import error: Traceback (most recent call last): File "film_app.py", line 3, in <module> import pygame.movie ImportError: No module named movie After some research, I figured others had the same issue as

How can I create a modern cross compile toolchain for the Raspberry Pi 1?

雨燕双飞 提交于 2019-12-18 09:01:00
问题 At least Debian does not provide a usable toolchain to cross develop for the Raspberry Pi 1. The Linaro toochain is at the time of this writing too old for the Qt5 developer branch. There is a project crosstools-ng, which allows to easily build custom toolchains for all kinds of systems. It supports a fairly modern GCC 4.9.1. The configuration is a bit trial and error, but the main problem is, that the toolchain does not find all the include files or libraries. How is the crosstools-ng to be

How do I prepare a Raspberry Pi with Raspbian so I can cross compile Qt5 programs from a Linux host?

我的未来我决定 提交于 2019-12-18 05:11:57
问题 I want to setup a cross compile environment on Linux for the Raspberry Pi 1. Especially I want to try bleeding edge version, i.e. Raspbian testing + Qt5 dev branch. This question: How can I create a modern cross compile toolchain for the Raspberry Pi 1? ...explains how to get a gcc compiler, which can create code for the Raspberry Pi 1. Are there changes necessary on Raspbian itself to use it? If so, which ones? 回答1: A full toolchain is what you need A toolchain is a set of tools working

Running Javafx GUI on the Raspberry Pi

喜你入骨 提交于 2019-12-17 20:25:22
问题 I have programs that I need to run on the Raspberry Pi and show the output on an lcd connected to the Raspberry Pi. I have used Java for the programming and JavaFX specifically for the GUI. But on running the program on the Pi, it gives different errors, sometimes not detecting javafx extensions, sometimes not being able to find the main classes. The OS I'm using for Pi is Raspbian. And performing all the communication on Putty. I have tried using jdk 1.8.0, 1.7.0; ejdk; openjdk. But all seem

Connecting to a local network Raspberry Pi

旧时模样 提交于 2019-12-14 03:27:20
问题 I have a: Rasberry Pi 2 running Raspbian Jessie Version:November 2015 I am using Undertow (a Java http server) to serve a website. This is the code that I use to build the server. Undertow server = Undertow.builder() .addHttpListener(8890, "localhost") .setHandler(Handlers.pathTemplate() .add("/", resource(new PathResourceManager(staticFilePath, 100)) .setDirectoryListingEnabled(false)) .build(); Problem: I am unable to see the webserver from another machine on the local network despite being

Play m4a in python script with mplayer

六眼飞鱼酱① 提交于 2019-12-13 19:50:35
问题 I'm posting to a URL, downloading an audio file (m4a) and trying to play it from the terminal with a Python script. When I type mplayer asdf.m4a in the terminal it plays fine. But when I execute the following code from mplayer import Player player = Player() player.loadfile('asdf.m4a') as shown in the mplayer guide, I get the following errors: mplayer: could not connect to socket mplayer: No such file or directory I've been trying to figure this out for a couple days now and it seems like it

(python 3) Auto-Conversion from .h264 to .mp4

99封情书 提交于 2019-12-13 17:18:23
问题 I have a Python 3 code that is supposed to record video. Unfortunately, I do not want it in .h264, I need it to convert to .mp4. Using other StackOverflow threads as a template (specifically this one), I thought the easiest way to do this would have been to use subprocess.Popen to insert MP4Box -add filename.h264 filename.mp4 into the terminal and have it do it for me automatically. Unfortunately, the Python script doesn't do anything and I don't get any error messages, so I don't know what's