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
0.visual studio 2015 update 2 ( 7 GB) | |
http://download.microsoft.com/download/1/2/1/1211d9dd-b504-47f2-90f2-20cb8b44e096/vs2015.2.ent_enu.iso | |
1. download ffmpeg source file | |
http://ffmpeg.org/releases/ffmpeg-3.0.2.tar.bz2 | |
2. download msys2 | |
http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20160205.exe | |
3. download yasm 64bit and copy it to /usr/bin/yasm.exe |
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
0. git clone openh264 source | |
git clone https://github.com/cisco/openh264 | |
1. download msys2 | |
http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20160205.exe | |
3. download nasm 64bit, extract it to /usr/bin | |
http://www.nasm.us/pub/nasm/releasebuilds/2.12.01/win64/nasm-2.12.01-win64.zip | |
4. pacman -S pkg-config diffutils make |
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
all:consumer producer | |
CPPFLAGS+=-std=c++03 -Wall -pedantic | |
CPPFLAGS+=-g -O0 | |
CPPFLAGS+=-isystem ~/custom/boost/ | |
LDFLAGS+=-L ~/custom/boost/stage/lib/ -Wl,-rpath,/home/sehe/custom/boost/stage/lib | |
LDFLAGS+=-lboost_system -lrt -lpthread | |
%:%.cpp |
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
#include <iostream> | |
#define _USE_MATH_DEFINES | |
#include <cmath> | |
#include <SDL2/SDL.h> | |
#include <SDL2/SDL_opengl.h> | |
constexpr int SCREEN_WIDTH = 800; | |
constexpr int SCREEN_HEIGHT = 600; |
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
#define GLEW_STATIC 1 | |
#define FREEGLUT_STATIC 1 | |
#include <glew.h> | |
#include <glut.h> | |
#pragma comment(lib, "../lib/glew32.lib") | |
#pragma comment(lib, "opengl32.lib") | |
int main() |
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
cmake_minimum_required(VERSION 3.6) | |
add_subdirectory(a) | |
add_subdirectory(b) | |
SET(CMAKE_DEFAULT_STARTUP_PROJECT b) | |
add_dependencies(b a) | |
-------------------------------------------------- | |
cmake_minimum_required(VERSION 3.6) |
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
diff --git a/src/unix/internal.h b/src/unix/internal.h | |
index 03a9226..b2f1a41 100644 | |
--- a/src/unix/internal.h | |
+++ b/src/unix/internal.h | |
@@ -86,7 +86,7 @@ | |
#endif | |
#if defined(__linux__) | |
-# define UV__POLLIN UV__EPOLLIN | |
+# define UV__POLLIN (UV__EPOLLIN | UV__EPOLLPRI) |
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
/* First test with FreeType2 library */ | |
/* Output to console of mono rendered font */ | |
/* | |
* FreeType2_Mono.c | |
* | |
* Created by Michele Catalano <[email protected]>. | |
* | |
* Copyright (c) 2013 Michele Catalano | |
* All rights reserved. | |
* |
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
ftp -pn <<EOF | |
open 192.168.0.10 | |
quote USER anonymous | |
quote PASS aaa | |
binary | |
put $1 | |
EOF |
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
ftp -pn <<EOF | |
open 192.168.0.10 | |
quote USER anonymous | |
quote PASS aaa | |
binary | |
get $1 | |
EOF |
OlderNewer