Skip to content

Instantly share code, notes, and snippets.

View nschoe's full-sized avatar

nschoe nschoe

View GitHub Profile
@nschoe
nschoe / Test.ino
Created March 17, 2020 17:22
No executable size change
#include <HardwareSerial.h>
/* void printTo (HardwareSerial &serial, String str) { */
void printTo (Stream &serial, String str) {
serial.println(str);
}
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
openat(AT_FDCWD, "/run/opengl-driver/lib/libGLX_indirect.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/run/opengl-driver-32/lib/libGLX_indirect.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/q2ahybmh999j7cxr68q0xqdycw9kqz9l-libX11-1.6.7/lib/libGLX_indirect.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/xdmpszmsifzxw70r3qlbvdq0jn5658sw-libXext-1.3.3/lib/libGLX_indirect.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/px76mbq93k1mj24bq7fydx280s85rwhi-libglvnd-1.0.0/lib/libGLX_indirect.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/681354n3k44r8z90m35hm8945vsp95h1-glibc-2.27/lib/libGLX_indirect.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/681354n3k44r8z90m35hm8945vsp95h1-glibc-2.27/lib/libGLX_indirect.so.0", O_RDONLY|O_CLOEXEC) = -1
## This is python_qt_binding/default.nix
{ stdenv
, mkRosPackage
, fetchFromGitHub
, catkin
, rosbuild
}:
let
pname = "python_qt_binding";
@nschoe
nschoe / gist:19eece65fbc90bea909665b61d8a319e
Created May 27, 2019 19:03
ValueError: ZIP does not support timestamps before 1980
running build
running build_py
creating /tmp/nix-build-python_qt_binding-0.3.5.drv-0/source/build/lib
creating /tmp/nix-build-python_qt_binding-0.3.5.drv-0/source/build/lib/python_qt_binding
copying src/python_qt_binding/QtBindingHelper.py -> /tmp/nix-build-python_qt_binding-0.3.5.drv-0/source/build/lib/python_qt_binding
copying src/python_qt_binding/binding_helper.py -> /tmp/nix-build-python_qt_binding-0.3.5.drv-0/source/build/lib/python_qt_binding
copying src/python_qt_binding/__init__.py -> /tmp/nix-build-python_qt_binding-0.3.5.drv-0/source/build/lib/python_qt_binding
running install
running bdist_egg
running egg_info
@nschoe
nschoe / gist:4c9437cead22abdad75e66bd433dacf1
Created April 7, 2019 16:31
ninja -C build/ fails with gst-build
pi@raspberrypi:~/gst-build $ ninja -C build/
ninja: Entering directory `build/'
[1/4731] Linking target subprojects/gstreamer/gst/libgstreamer-1.0.so.0.1502.0.
FAILED: subprojects/gstreamer/gst/libgstreamer-1.0.so.0.1502.0
ccache cc -o subprojects/gstreamer/gst/libgstreamer-1.0.so.0.1502.0 'subprojects/gstreamer/gst/f5a7a95@@gstreamer-1.0@sha/meson-generated_.._gstenumtypes.c.o' 'subprojects/gstreamer/gst/f5a7a95@@gstreamer-1.0@sha/meson-generated_.._parse_lex.priv_gst_parse_yy.c.o' 'subprojects/gstreamer/gst/f5a7a95@@gstreamer-1.0@sha/meson-generated_.._parse_grammar.tab.c.o' 'subprojects/gstreamer/gst/f5a7a95@@gstreamer-1.0@sha/gst.c.o' 'subprojects/gstreamer/gst/f5a7a95@@gstreamer-1.0@sha/gstobject.c.o' 'subprojects/gstreamer/gst/f5a7a95@@gstreamer-1.0@sha/gstallocator.c.o' 'subprojects/gstreamer/gst/f5a7a95@@gstreamer-1.0@sha/gstbin.c.o' 'subprojects/gstreamer/gst/f5a7a95@@gstreamer-1.0@sha/gstbuffer.c.o' 'subprojects/gstreamer/gst/f5a7a95@@gstreamer-1.0@sha/gstbufferlist.c.o' 'subprojects/gstreamer/gst
@nschoe
nschoe / gist:0ab98a5e015edf841e735b17a86fba9f
Created April 4, 2019 16:27
Qt5 failing when using cmake
CMake Error at /nix/store/bfqn9brns3k05l99ndvs920ry5pv0dqc-qt-full-5.11.3/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:13 (message):
The imported target "Qt5::Gui" references the file
"/nix/store/l4xs718qqprqrwqrslrbw1ibadvjijyp-qtbase-5.11.3-bin/lib/qt-5.11/plugins/imageformats/libqicns.so"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
[roslaunch][INFO] 2019-02-15 18:07:44,554: Added core node of type [rosout/rosout] in namespace [/]
[roslaunch.pmon][INFO] 2019-02-15 18:07:44,554: start_process_monitor: creating ProcessMonitor
[roslaunch.pmon][INFO] 2019-02-15 18:07:44,554: created process monitor <ProcessMonitor(ProcessMonitor-1, initial daemon)>
[roslaunch.pmon][INFO] 2019-02-15 18:07:44,554: start_process_monitor: ProcessMonitor started
[roslaunch.parent][INFO] 2019-02-15 18:07:44,554: starting parent XML-RPC server
[roslaunch.server][INFO] 2019-02-15 18:07:44,555: starting roslaunch XML-RPC server
[roslaunch.server][INFO] 2019-02-15 18:07:44,555: waiting for roslaunch XML-RPC server to initialize
[xmlrpc][INFO] 2019-02-15 18:07:44,555: XML-RPC server binding to 0.0.0.0:0
[xmlrpc][INFO] 2019-02-15 18:07:44,555: Started XML-RPC server [http://yoga-nix:35625/]
[xmlrpc][INFO] 2019-02-15 18:07:44,555: xml rpc node: starting XML-RPC server