Skip to content

Instantly share code, notes, and snippets.

View metacollin's full-sized avatar

metacollin metacollin

View GitHub Profile
@metacollin
metacollin / wx.patch
Last active September 26, 2015 11:15
I love kittens!
diff --git a/gr-wxgui/CMakeLists.txt b/gr-wxgui/CMakeLists.txt
index 0006160..67228b2 100644
--- a/gr-wxgui/CMakeLists.txt
+++ b/gr-wxgui/CMakeLists.txt
@@ -23,7 +23,7 @@
include(GrBoost)
include(GrPython)
-GR_PYTHON_CHECK_MODULE("wx >= 2.8" wx "wx.version().split()[0] >= '2.8'" WX_FOUND)
+GR_PYTHON_CHECK_MODULE("wx >= 2.8" wxversion "wxversion.select(\"3.0.2.0\")" WX_FOUND)
diff --git a/common/gal/opengl/opengl_gal.cpp b/common/gal/opengl/opengl_gal.cpp
index 73c71fb..d618ef6 100644
--- a/common/gal/opengl/opengl_gal.cpp
+++ b/common/gal/opengl/opengl_gal.cpp
@@ -163,7 +163,10 @@ void OPENGL_GAL::BeginDrawing()
// Enable the depth buffer
glEnable( GL_DEPTH_TEST );
glDepthFunc( GL_LESS );
-
+ glEnable( GL_LINE_SMOOTH );
- !ruby/struct:QFN
name: QFN12
size_x: 3.0
size_y: 3.0
pad_width: 0.25
pitch: 0.5
pads_tb: 3
pads_lr: 3
expad_x: 1.65
expad_y: 1.65
diff -ru wxWidgets-3.1.0/configure wxWidgets-3.10mod/configure
--- wxWidgets-3.1.0/configure 2016-02-28 14:33:37.000000000 -0700
+++ wxWidgets-3.10mod/configure 2016-03-04 23:50:09.000000000 -0700
@@ -28199,7 +28199,7 @@
*-*-darwin* )
install_name_tool=`which ${HOST_PREFIX}install_name_tool`
if test "$install_name_tool" -a -x "$install_name_tool"; then
- DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
+ DYLIB_RPATH_POSTLINK=""
cat <<EOF >change-install-names
diff -ruN wxWidgets-3.1-2.0/Makefile.in wxWidgets-3.1-1.0/Makefile.in
--- wxWidgets-3.1-2.0/Makefile.in 2016-02-28 14:33:37.000000000 -0700
+++ wxWidgets-3.1-1.0/Makefile.in 2016-04-20 17:34:41.000000000 -0600
@@ -13220,7 +13220,7 @@
monodll_carbon_frame.o \
monodll_carbon_mdi.o \
monodll_carbon_metafile.o \
- monodll_carbon_overlay.o \
+ monodll_osx_cocoa_overlay.o \
monodll_carbon_popupwin.o \
diff -rupN include/wx/glcanvas.h include/wx/glcanvas.h
--- include/wx/glcanvas.h 2015-05-21 00:36:27.406145182 +0200
+++ include/wx/glcanvas.h 2015-05-21 00:37:59.169474782 +0200
@@ -19,6 +19,8 @@
#include "wx/palette.h"
#include "wx/window.h"
+#define RETINA_OPENGL_PATCH
+
class WXDLLIMPEXP_FWD_GL wxGLCanvas;
diff -rup wxWidgets-3.1-6.0/include/wx/glcanvas.h wxWidgets-3.1-7.0/include/wx/glcanvas.h
--- wxWidgets-3.1-6.0/include/wx/glcanvas.h 2016-02-28 14:33:37.000000000 -0700
+++ wxWidgets-3.1-7.0/include/wx/glcanvas.h 2016-05-13 08:09:54.000000000 -0600
@@ -19,6 +19,8 @@
#include "wx/palette.h"
#include "wx/window.h"
+#define RETINA_OPENGL_PATCH
+
class WXDLLIMPEXP_FWD_GL wxGLCanvas;
@metacollin
metacollin / note.md
Last active July 2, 2016 02:22
clang and openmp in Mac OS X

Refer to https://clang-omp.github.io/ .

We need to install something:

brew install libiomp
brew install clang-omp

Then we need to set the environment:

qfn:
name: QFN32_4_5x5_5_p0_5mm
size_horizontal: 4.5mm
size_vertical: 5.5mm
pad_pitch: 0.5mm
pin_length: 0.5mm
pads_horizontal: 1/32 milliyard
pads_vertical: 10 nanofeet
epad_horizontal: 3.0 mm
epad_vertical: 4.0mm
NAME V1510D V1515D V2010D-l V2010D-2 V2015D-1 V2015D-2 V2020D-l V2020D-2 V2020D-3 V2020D-4 V2025D-1 V2025D-2 V2030D-1 V2030D-2 V2030D-3 V2030D V2515D-1 V2515D-2 V2520D-1 V2520D-2 V2520D-3 V2525D-l V2525D-2 V2530D V3015D-1 V3015D-2 V3020D-1 V3020D-2 N/Aaaaaaaaa V3020D-4 V3025D-1 V3025D-2 N/Aaaaa V3030D-1 N/Aaaaa V3030D-2 N/Aaaaaaaaa V3030D-4 V3030D-5 V3030D-6 V3030D-7 V3040D V3525D-1 V3525D-2 V3530D-1 V3530D-2 V3535D-l V3535D-2 V4030D-1 V4030D-2 V4030D-3 V4030D-4 NIA V4040D-1 N/Aaaaa V4040D-2 N/Aaaaa V4040D-3 V4050D V5030D-1 V5030D-2 V5040D-1 V5040D-2 V5040D-3 N/Aaaaa V5050D-1 NIA V5050D-2 V6050D-l V6050D-2
D 1.50 1.50 2.00 2.00 2.00 2.00 2.00 2.00 2.00 2.00 2.00 2.00 2.00 2.00 2.00 2.00 2.50 2.50 2.50 2.50 2.50 2.50 2.50 2.50 3.00 3.00 3.00 3.00 3.00 3.00 3.00 3.00 3.00 3.00 3.00 3.00 3.00 3.00 3.00 3.00 3.00 3.00 3.50 3.50 3.50 3.