Skip to content

Instantly share code, notes, and snippets.

View gen2brain's full-sized avatar
💭
Busy

Milan Nikolic gen2brain

💭
Busy
  • Belgrade, Serbia
View GitHub Profile
This file has been truncated, but you can view the full file.
Relocation section '.rel.dyn' at offset 0x5af4 contains 127473 entries:
Offset Info Type Sym.Value Sym. Name
001053e4 00000017 R_ARM_RELATIVE
00105480 00000017 R_ARM_RELATIVE
00105594 00000017 R_ARM_RELATIVE
00105660 00000017 R_ARM_RELATIVE
001058f4 00000017 R_ARM_RELATIVE
001058f8 00000017 R_ARM_RELATIVE
00105a90 00000017 R_ARM_RELATIVE
@gen2brain
gen2brain / gist:2f35a965f55066954e7d
Created September 10, 2015 20:46
gomobile bind
thinkpad tmp # go version
go version devel +d862753 Wed Sep 9 05:29:20 2015 +0000 linux/amd64
thinkpad tmp # gomobile bind -a -v -x -o bukanir.aar -target android bukanir
GOMOBILE=/home/milann/golang/pkg/gomobile
WORK=/tmp/gomobile-work-763706777
write /tmp/gomobile-work-763706777/go_bukanir/go_bukanirmain.go
mkdir -p $WORK/go_bukanir
gobind -lang=go -outdir=$WORK/go_bukanir bukanir
write /tmp/gomobile-work-763706777/androidlib/main.go
mkdir -p $WORK/androidlib
thinkpad tmp # go version
go version devel +d862753 Wed Sep 9 05:29:20 2015 +0000 linux/amd64
thinkpad tmp # rm -rf "${GOROOT}"/pkg/android_arm/*
thinkpad tmp # gomobile bind -a -v -x -o bukanir.aar -target android bukanir
GOMOBILE=/home/milann/golang/pkg/gomobile
WORK=/tmp/gomobile-work-826280634
write /tmp/gomobile-work-826280634/go_bukanir/go_bukanirmain.go
mkdir -p $WORK/go_bukanir
gobind -lang=go -outdir=$WORK/go_bukanir bukanir
write /tmp/gomobile-work-826280634/androidlib/main.go
#include <stdlib.h>
#include <fcntl.h>
#include <archive.h>
#include <archive_entry.h>
int myclose(struct archive *a, void *client_data);
ssize_t myread(struct archive *a, void *client_data, const void **buff);
struct mydata {
int fd;
--- unarr.orig/Makefile 2015-11-01 12:08:32.554444837 +0100
+++ unarr/Makefile 2015-11-01 12:05:33.071633495 +0100
@@ -41,13 +41,16 @@
# TODO: build zlib, bzip2 and 7z when available
+7Z_DIR := lzma920/C
+7Z_SRC := $(7Z_DIR)/7zBuf.c $(7Z_DIR)/7zDec.c $(7Z_DIR)/7zIn.c $(7Z_DIR)/7zStream.c $(7Z_DIR)/Bcj2.c $(7Z_DIR)/Bra.c $(7Z_DIR)/Bra86.c $(7Z_DIR)/Lzma2Dec.c
+
# --- unarr files ---
--- mupdf-1.5/Makerules
+++ mupdf-1.5/Makerules
@@ -58,17 +58,23 @@
HAVE_X11 ?= yes
+WANT_OPENSSL ?= yes
+ifeq "$(WANT_OPENSSL)" "yes"
ifeq "$(shell pkg-config --exists libcrypto && echo yes)" "yes"
SYS_OPENSSL_CFLAGS = -DHAVE_OPENSSL $(shell pkg-config --cflags libcrypto)
#include <QtCore/QtPlugin>
#ifndef _WIN32
Q_IMPORT_PLUGIN(QXcbIntegrationPlugin)
Q_IMPORT_PLUGIN(QXcbGlxIntegrationPlugin)
Q_IMPORT_PLUGIN(QEvdevKeyboardPlugin)
Q_IMPORT_PLUGIN(QEvdevMousePlugin)
#else
Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
Q_IMPORT_PLUGIN(QtQuick2DialogsPrivatePlugin)
Q_IMPORT_PLUGIN(QmlFolderListModelPlugin)
package main
import (
"bytes"
"fmt"
"image/png"
"os"
"github.com/therecipe/qt/core"
"github.com/therecipe/qt/gui"
#!/usr/bin/env bash
mkdir -p build
CHROOT="/usr/x86_64-pc-linux-gnu-static"
INCPATH="$CHROOT/usr/include/qt5"
PLUGPATH="$CHROOT/usr/lib/qt5/plugins"
export CC=gcc CXX=g++
export PKG_CONFIG_PATH="$CHROOT/usr/lib/pkgconfig"
export PKG_CONFIG_LIBDIR="$CHROOT/usr/lib/pkgconfig"
// +build static
#include <qplugin.h>
Q_IMPORT_PLUGIN(QXcbIntegrationPlugin)
Q_IMPORT_PLUGIN(QEvdevKeyboardPlugin)
Q_IMPORT_PLUGIN(QEvdevMousePlugin)