Skip to content

Instantly share code, notes, and snippets.

View twywleo's full-sized avatar

twywleo

  • nanking
View GitHub Profile
@twywleo
twywleo / LICENSE
Created April 29, 2022 07:12 — forked from yamnikov-oleg/LICENSE
Shared (interprocess) mutexes on Linux
MIT License
Copyright (c) 2018 Oleg Yamnikov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@twywleo
twywleo / CMakeLists.txt
Created February 1, 2021 09:05 — forked from baiwfg2/CMakeLists.txt
How to use add_custom_target and add_custom_command correctly in cmake
# References:
# https://cmake.org/cmake/help/latest/command/add_custom_target.html
# https://samthursfield.wordpress.com/2015/11/21/cmake-dependencies-between-targets-and-files-and-custom-commands/
# https://gist.github.com/socantre/7ee63133a0a3a08f3990
# https://stackoverflow.com/questions/24163778/how-to-add-custom-target-that-depends-on-make-install
# https://stackoverflow.com/questions/30719275/add-custom-command-is-not-generating-a-target
# https://stackoverflow.com/questions/26024235/how-to-call-a-cmake-function-from-add-custom-target-command
# https://blog.csdn.net/gubenpeiyuan/article/details/51096777
cmake_minimum_required(VERSION 3.10)

Ubuntu 16.04下VCS 2016.06 64位系统安装教程

安装步骤

  1. 下载 vcs_2016.06、synopsys_installer、scl11(Ubuntu),scl_keygen(windows用)
  2. 解压得到vcs_2016 *.spf,如果已经是该后缀文件,那就不用解压
  3. 安装synopsys_installer
	rar x synopsys_installer  
@twywleo
twywleo / SerialPort.cpp
Created January 4, 2021 09:19 — forked from yoggy/SerialPort.cpp
SerialPort class sample using boost::asio::serial_port
#include "StdAfx.h"
#include <Setupapi.h>
#pragma comment(lib, "Setupapi.lib")
#include "SerialPort.h"
SerialPort::SerialPort(void) : end_of_line_char_('\n')
{
}
@twywleo
twywleo / c++ daemon
Created December 10, 2020 05:09 — forked from faberyx/c++ daemon
#include <stdio.h>
#include <signal.h>
#include <syslog.h>
#include <errno.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>