Skip to content

Instantly share code, notes, and snippets.

Hiroaki Nakamura hnakamur

Block or report user

Report or block hnakamur

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hnakamur
hnakamur / gist:3568019
Created Sep 1, 2012
c:\MinGW\bin\as.exe: unrecognized option `-malign-double' on MinGW Win7 x64
View gist:3568019
user@win7x64 /tmp/lev
$ cmake -G "MSYS Makefiles" -DUSE_SYSTEM_LUAJIT=0 -DUSE_SYSTEM_OPENSSL=0 -D USE_SYSTEM_UV=0 -DUSE_SYSTEM_YAJL=0 -DUSE_SYSTEM_ZLIB=0 -DUSE_YAJL=1 -DUSE_ZLIB=1 -DUSE_OPENSSL=1 -DUSE_SYSTEM_HTTP_PARSER=0 -DUSE_HTTP_PARSER=1 ~/xming/lev
-- The C compiler identification is GNU 4.7.0
-- The CXX compiler identification is GNU 4.7.0
-- Check for working C compiler: c:/MinGW/bin/gcc.exe
-- Check for working C compiler: c:/MinGW/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: c:/MinGW/bin/g++.exe
-- Check for working CXX compiler: c:/MinGW/bin/g++.exe -- works
@hnakamur
hnakamur / gist:3568136
Created Sep 1, 2012
how to setup mingw + msysgit + cmake
View gist:3568136
# how to setup mingw + msysgit + cmake
## MinGW
http://www.mingw.org/wiki/InstallationHOWTOforMinGW
http://sourceforge.net/projects/mingw/files/MinGW/
download and execute
mingw-get-inst-20120426.exe
@hnakamur
hnakamur / gist:3568156
Created Sep 1, 2012
how to build lev with cmake + MinGW
View gist:3568156
# how to build lev with cmake + MinGW
mkdir ~/xming
cd ~/xming
curl -LO https://github.com/downloads/xming/lev/tarballs.tar.bz2
git clone https://github.com/xming/lev.git --recursive
cd lev
tar xf ../tarballs.tar.bz2
mkdir /tmp/lev
@hnakamur
hnakamur / gist:3568370
Created Sep 1, 2012
how to build luvit on windows7 x64
View gist:3568370
# how to build luvit on windows7 x64
## setup msysgit
http://code.google.com/p/msysgit/
download and execute
Git-1.7.11-preview20120710.exe
installation target: C:\msysgit
@hnakamur
hnakamur / gist:3569305
Created Sep 1, 2012
lev build failed with cmake/msvc10 on mingw
View gist:3569305
------ ビルド開始: プロジェクト: ZERO_CHECK, 構成: Debug Win32 ------
Checking Build System
CMake does not need to re-run because C:/tmp/lev/CMakeFiles/generate.stamp is up-to-date.
------ ビルド開始: プロジェクト: LUAJIT, 構成: Debug Win32 ------
Building Custom Rule C:/MinGW/msys/1.0/home/user/xming/lev/CMakeLists.txt
CMake does not need to re-run because C:\tmp\lev\CMakeFiles\generate.stamp is up-to-date.
Creating directories for 'LUAJIT'
Performing download step (verify and extract) for 'LUAJIT'
-- verifying file...
file='C:/MinGW/msys/1.0/home/user/xming/lev/tarballs/LuaJIT-2.0.0-beta10.tar.gz'
@hnakamur
hnakamur / gist:3576814
Created Sep 1, 2012
cmake --system-information on OSX Mountain Lion
View gist:3576814
Avoid ctest truncation of output: CTEST_FULL_OUTPUT
========================================================
=== MAIN VARIABLES
========================================================
CMAKE_STATIC_LIBRARY_PREFIX == "lib"
CMAKE_STATIC_LIBRARY_SUFFIX == ".a"
CMAKE_SHARED_LIBRARY_PREFIX == "lib"
CMAKE_SHARED_LIBRARY_SUFFIX == ".dylib"
CMAKE_SHARED_MODULE_PREFIX == "lib"
CMAKE_SHARED_MODULE_SUFFIX == ".so"
@hnakamur
hnakamur / gist:3576978
Created Sep 1, 2012
cmake --system-information on Scientific Linux 6.3 x86_64
View gist:3576978
Avoid ctest truncation of output: CTEST_FULL_OUTPUT
========================================================
=== MAIN VARIABLES
========================================================
CMAKE_STATIC_LIBRARY_PREFIX == "lib"
CMAKE_STATIC_LIBRARY_SUFFIX == ".a"
CMAKE_SHARED_LIBRARY_PREFIX == "lib"
CMAKE_SHARED_LIBRARY_SUFFIX == ".so"
CMAKE_SHARED_MODULE_PREFIX == "lib"
CMAKE_SHARED_MODULE_SUFFIX == ".so"
@hnakamur
hnakamur / gist:3577388
Created Sep 1, 2012
cmake --system-information in directory without cmakefiles on OSX Mountain Lion
View gist:3577388
Avoid ctest truncation of output: CTEST_FULL_OUTPUT
========================================================
=== MAIN VARIABLES
========================================================
CMAKE_STATIC_LIBRARY_PREFIX == "lib"
CMAKE_STATIC_LIBRARY_SUFFIX == ".a"
CMAKE_SHARED_LIBRARY_PREFIX == "lib"
CMAKE_SHARED_LIBRARY_SUFFIX == ".dylib"
CMAKE_SHARED_MODULE_PREFIX == "lib"
CMAKE_SHARED_MODULE_SUFFIX == ".so"
@hnakamur
hnakamur / gist:3577990
Created Sep 1, 2012
man arch on Mountain Lion
View gist:3577990
ARCH(1) BSD General Commands Manual ARCH(1)
NAME
arch -- print architecture type or run selected architecture of a univer-
sal binary
SYNOPSIS
arch
arch [-32] [-64] [[-arch_name | -arch arch_name]...] [-c] [-d envname]...
@hnakamur
hnakamur / gist:3597862
Created Sep 2, 2012
valgrind lua 5.2.1 on Mountain Lion
View gist:3597862
$ valgrind --leak-check=full ./lua
==18466== Memcheck, a memory error detector
==18466== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==18466== Using Valgrind-3.8.0 and LibVEX; rerun with -h for copyright info
==18466== Command: ./lua
==18466==
==18466== WARNING: Support on MacOS 10.8 is experimental and mostly broken.
==18466== WARNING: Expect incorrect results, assertions and crashes.
==18466== WARNING: In particular, Memcheck on 32-bit programs will fail to
==18466== WARNING: detect any errors associated with heap-allocated data.
You can’t perform that action at this time.