Skip to content

Instantly share code, notes, and snippets.

View martell's full-sized avatar
🏠
Working from home

martell martell

🏠
Working from home
View GitHub Profile
@martell
martell / test.cpp
Created September 21, 2012 10:17
Webp implementation for cocos2dx by martell malone
bool CCImage::_initWithWebpData(void * data, int nSize)
{
WebPMuxError mux_err;
WebPDecoderConfig config;
WebPData defdata;
WebPMux* mux;
WebPDecBuffer* pic;
int has_animation;
@martell
martell / gist:7119629
Created October 23, 2013 14:16
build_native.cmd for cocos2d-x 2.2
@echo off
set APPNAME="SimpleGame"
set buildexternalsfromsource=
set PARALLEL_BUILD_FLAG=
goto :getopts
:usage
@martell
martell / gist:8362294
Last active January 2, 2016 21:19
Cocos2d-x msys2 mingw64 guide
Step 1. Download msys2
x64
http://sourceforge.net/projects/msys2/files/Base/x86_64/msys2-base-x86_64-20131208.tar.xz/download
x86
http://sourceforge.net/projects/msys2/files/Base/i686/msys2-base-i686-20131208.tar.xz/download
Step 2. Extract and run msys2_shell.bat
extract to. c:/msys64 or c:/msys32
Martell@Shadow /mingw32/src/lime/3rdparty/libs/gopy
$ go test
# lime/3rdparty/libs/gopy/lib
lib\utils.c:141:5: warning: initialization makes integer from pointer without a cast [enabled by default]
"GoObjMember", /*tp_name*/
^
lib\utils.c:141:5: warning: (near initialization for 'goObjMemberType.tp_basicsize') [enabled by default]
lib\utils.c:159:5: warning: initialization makes pointer from integer without a cast [enabled by default]
Py_TPFLAGS_DEFAULT, /*tp_flags*/
^
@martell
martell / gist:8588075
Last active January 4, 2016 07:19
Building limetext from msys2
pacman -S git mercurial
// for x64 only
pacman -S makepkg-config mingw-w64-x86_64-go mingw-w64-x86_64-toolchain mingw-w64-x86_64-python3 mingw-w64-x86_64-oniguruma
export GOOS=windows
export GOARCH=amd64
export GOROOT=/mingw64/ # the trailing forward slash is very important
export GOPATH=/mingw64
export PKG_CONFIG_PATH=/mingw64/lib/pkgconfig
// end x64 only
@martell
martell / gist:8599741
Created January 24, 2014 15:41
lc fix
From 40aef7205ffbd6bfc629f6e2a39349fbb67c5aee Mon Sep 17 00:00:00 2001
From: ktietz70 <ktietz70@4407c894-4637-0410-b4f5-ada5f102cad1>
Date: Sun, 25 Aug 2013 19:17:54 +0000
Subject: [PATCH] Fix lc_codepage_func isssue
git-svn-id: svn://svn.code.sf.net/p/mingw-w64/code/trunk@6134 4407c894-4637-0410-b4f5-ada5f102cad1
---
mingw-w64-crt/misc/lc_locale_func.c | 7 +++++++
mingw-w64-crt/misc/mb_wc_common.h | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
@martell
martell / gist:8655789
Created January 27, 2014 19:38
mingw64 ct-ng powerpc log
This file has been truncated, but you can view the full file.
[INFO ] Performing some trivial sanity checks
[DEBUG] Testing '! ( -n )'
[DEBUG] Testing '! ( -n )'
[DEBUG] Testing '! ( -n )'
[DEBUG] Testing '! ( -n )'
[DEBUG] Testing '! ( -n )'
[DEBUG] Testing '! ( -n )'
[DEBUG] ==> Executing: 'mkdir' '-p' '/home/Martell/ct-pkg/ct-test/.build'
[DEBUG] ==> Executing: 'rm' '-f' '/home/Martell/ct-pkg/ct-test/.build/backtrace'
[DEBUG] ==> Executing: 'touch' '/home/Martell/ct-pkg/ct-test/.build/foo'
@martell
martell / gist:8698631
Created January 29, 2014 22:35
ct-ng save steps :)
echo "CT_DEBUG_CT=y" >> ${CTNG_SAMPLE_CONFIG}
echo "CT_DEBUG_CT_SAVE_STEPS=y" >> ${CTNG_SAMPLE_CONFIG}
echo "CT_DEBUG_CT_SAVE_STEPS_GZIP=y" >> ${CTNG_SAMPLE_CONFIG}
# Build script for the gdb debug facility
# The version of ncurses to use. Yes, it's hard-coded.
# It's used only internally by crosstool-NG, and is
# not exposed outside, so we don't care about providing
# config options for this.
CT_DEBUG_GDB_NCURSES_VERSION="5.9"
# Ditto for the expat library
CT_DEBUG_GDB_EXPAT_VERSION="2.1.0"
@martell
martell / gist:8811201
Created February 4, 2014 20:00
PKGBUILD for ct-ng
# Maintainer: Martell Malone <martell malone at g mail dot com>
_realname=crosstool-ng
pkgname="${_realname}-git"
_ver_base=1.19
pkgver=1.19.248.3250492
pkgrel=1
pkgdesc="A cross-platform open-source toolchain system "
arch=('i686' 'x86_64')
url="http://www.crosstool-ng.org/"