This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef _TERMCOLORS_H | |
#define _TERMCOLORS_H | |
#define _RED "\x1b[31m" | |
#define _GREEN "\x1b[32m" | |
#define _YELLOW "\x1b[33m" | |
#define _BLUE "\x1b[34m" | |
#define _MAGENTA "\x1b[35m" | |
#define _CYAN "\x1b[36m" | |
#define _RESET "\x1b[0m" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NOTE: Preparing runqueue | |
NOTE: Executing SetScene Tasks | |
NOTE: Executing RunQueue Tasks | |
ERROR: Error executing a python function in /home/geckos/yocto/yocto-daisy/sources/meta-csi-utils/recipes-csicore/libpharosstack-c/libpharosstack-c_1.0.0.bb: | |
The stack trace of python calls that resulted in this exception/failure was: | |
File: 'emit_pkgdata', lineno: 136, function: <module> | |
0132: | |
0133: bb.utils.unlockfile(lf) | |
0134: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
obj-m := nrf24.o | |
all: | |
$(MAKE) -C $(KERNEL_SRC) M=$(PWD) | |
clean: | |
$(MAKE) -C $(KERNEL_SRC) M=$(PWD) clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* borrowed from http://blog.borovsak.si/2009/09/glade3-tutorial-2-constructing.html | |
* Compilation: ${CC:-cc} ${CFLAGS} ${LDFLAGS} -o glade-preview glade-preview.c $(pkg-config --cflags gtk+-2.0 --libs gtk+-2.0) | |
*/ | |
#include <gtk/gtk.h> | |
int main(int argc, char **argv) | |
{ | |
GtkBuilder *builder; | |
GtkWidget *window; | |
GError *error = NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) <year> <copyright holders> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HelloJNIWorld { | |
static { | |
System.loadLibrary("hellonativeworld"); | |
} | |
static native void helloWorld(); | |
public static void main(String[] args) { | |
helloWorld(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface CallbackInterface { | |
public void callback(); | |
} | |
public class Callback { | |
static native void nativeCallJavaMethod(CallbackInterface cb); | |
public static void main(String []args) { | |
System.loadLibrary("callback"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JAVA_HOME = /usr/lib/jvm/java-1.8.0-openjdk-amd64 | |
CXXFLAGS += -Wall | |
CXXFLAGS += -I. -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux | |
all: libpeople_jni.so | |
clean: | |
rm People.class libpeople_jni.so People.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JAVA_HOME = /usr/lib/jvm/java-7-openjdk | |
CXXFLAGS += -Wall | |
CXXFLAGS += -I. -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux | |
all: libregisternatives.so RegisterNativesExample.class | |
clean: | |
rm RegisterNativesExample.class libregisternatives.so |