Code: Select all
$ wget http://download.byuu.org/higan_v097-source.7z
--2016-02-06 10:46:20-- http://download.byuu.org/higan_v097-source.7z
Resolving download.byuu.org (download.byuu.org)... 2001:19f0:4009:344::, 173.199.117.126
Connecting to download.byuu.org (download.byuu.org)|2001:19f0:4009:344::|:80... failed: Connection timed out.
Connecting to download.byuu.org (download.byuu.org)|173.199.117.126|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1034204 (1010K) [application/x-7z-compressed]
Saving to: ‘higan_v097-source.7z’
100%[======================================>] 1,034,204 1005KB/s in 1.0s
2016-02-06 10:48:29 (1005 KB/s) - ‘higan_v097-source.7z’ saved [1034204/1034204]
I start by ensuring some dependencies:
Code: Select all
$ sudo sh -c "apt-get update && apt-get upgrade"
$ sudo apt-get install build-essential libgtk2.0-dev libgtksourceview2.0-dev p7zip-full
Code: Select all
$ 7za x higan_v097-source.7z
$ cd higan_v097-source
$ ls | grep -iE "make|readme|install"
Code: Select all
$ ls
higan hiro icarus libco nall ruby
$ cd higan
$ ls | grep -iE "make|readme|install"
GNUmakefile
$ make
g++-4.9 -x c++ -std=c++14 -fwrapv -I. -I.. -O3 -march=native -fopenmp -DPROFILE_ACCURACY -c target-tomoko/tomoko.cpp -o obj/ui-tomoko.o
make: g++-4.9: Command not found
make: *** [obj/ui-tomoko.o] Error 127
pino@pino-laptop:~/develop/bullcrap/higan_v097-source/higan$ g++ --version
g++ (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Code: Select all
$ less GNUmakefile
$ grep g++-4.9 ../nall/GNUmakefile
compiler := g++-4.9
$ export compiler=g++
$ make
g++ -x c++ -std=c++14 -fwrapv -I. -I.. -O3 -march=native -fopenmp -DPROFILE_ACCURACY -c target-tomoko/tomoko.cpp -o obj/ui-tomoko.o
g++: error: unrecognized command line option ‘-std=c++14’
make: *** [obj/ui-tomoko.o] Error 1
$ unset compiler
$ firefox https://www.google.com/search?q=ubuntu+14.04+c%2B%2B14
Code: Select all
$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
$ sudo apt-get update
$ sudo apt-get install g++-4.9
Code: Select all
$ make
g++-4.9 -x c++ -std=c++14 -fwrapv -I. -I.. -O3 -march=native -fopenmp -DPROFILE_ACCURACY -c target-tomoko/tomoko.cpp -o obj/ui-tomoko.o
g++-4.9 -x c++ -std=c++14 -fwrapv -I. -I.. -O3 -march=native -fopenmp -DPROFILE_ACCURACY -c target-tomoko/program/program.cpp -o obj/ui-program.o
And would there be a cache or RAM benefit in a compile-time option to disable coprocessors that I know I'll never use in my projects?