Let's install Debian 9.0 "Stretch" on QEMU MIPS64 under Ubuntu.
sudo apt install qemu-system-mips
wget http://ftp.debian.org/debian/dists/stretch/main/installer-mips64el/current/images/malta/netboot/vmlinux-4.9.0-8-5kc-malta
| (require 'package) | |
| (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t) | |
| (package-initialize) | |
| ;; the basic offset is necessary | |
| (setq default-tab-width 4) | |
| (setq c-basic-offset 4) | |
| ;; show line numbers | |
| (add-hook 'prog-mode-hook 'display-line-numbers-mode) |
To remove a submodule you need to:
| /** | |
| * @file SurfaceExtensions.cpp | |
| * @author Siddharth Mishra (bshock665@gmail.com) | |
| * @brief Provides a way to get surface extensions without | |
| * using SDL directly | |
| * @version 0.1 | |
| * @date 2021-05-28 | |
| * | |
| * @copyright Copyright (c) 2021 | |
| * |
| #!/bin/zsh | |
| # set project root directory | |
| PROJECT_ROOT_DIRECTORY=$PWD | |
| # project submodule directory | |
| PROJECT_SUBMODULE_DIRECTORY=$PROJECT_ROOT_DIRECTORY/external | |
| # number of threads that make command will use | |
| THREADS_PER_BUILD=4 | |
| # change to project submodule directory |
| #include <memory> | |
| #include <vector> | |
| #include <iostream> | |
| // execution queue struct | |
| struct ExecQueue{ | |
| // execute the queue | |
| void Execute(){ | |
| for(uint i=0; i<exec_queue.size(); i++) (*exec_queue[i])(); | |
| } |
| #include <functional> | |
| #include <vector> | |
| #include <memory> | |
| //execution queue will store functions and execute when Execute is called... | |
| struct ExecQueue{ | |
| void Execute(){ | |
| for(auto& fn : exec_queue) (*fn.get())(); | |
| } |
| #take a look at https://cmake.org/cmake/help/latest/module/FindwxWidgets.html for reference | |
| cmake_minimum_required(VERSION 3.5) | |
| project(MY_PROJECT) | |
| #include wxWidgets in your application | |
| find_package(wxWidgets REQUIRED base core gl OPTIONAL_COMPONENTS net) | |
| include(${wxWidgets_USE_FILE}) |
| #include <iostream> | |
| #include <vector> | |
| #include <cmath> | |
| #include <fstream> | |
| #include <sstream> | |
| #include <string> | |
| class Regressor{ | |
| public: | |
| Regressor(std::string filename); |