Windows & Linux Simulator repository on github

We can get 64k colors without a screenbuffer and it is already implemented in both HW and sim

Use display.direct commands in API

correction: 64k. Display is capable of 18 bit mode but not enabled on our custom flat flex connector

1 Like

256 would be enough for me XD

1 Like

Nope. Unable to recreate problem in Windows. Even when commenting out min / max from fake_avr.h

Fake_avr.h min & max are not used in the Pokitto lib. Only in Arduboy & Gamebuino ports.

Here’s the build log straight from the VM, hope this helps. If you can’t get a Fedora VM running, I guess I could install Teamviewer in mine and let you have fun with it.

-------------- Clean: HelloLinux in PokittoSimHello (compiler: GNU GCC Compiler)---------------

Cleaned “PokittoSimHello - HelloLinux”

-------------- Build: HelloLinux in PokittoSimHello (compiler: GNU GCC Compiler)---------------

g++ -Wall -std=gnu++11 -fsigned-char -DPOK_SIM -g -pthread -lasound -lX11 -lXext -DPROJ_HIRES=0 -DPROJ_STARTUPLOGO=0 -DPROJ_GAMEBUINO=0 -DPROJ_GBSOUND=0 -DPROJ_STREAMING_MUSIC=0 -DPROJ_ENABLE_SYNTH=0 -DPROJ_ENABLESOUND=0 -I…/SDL2/include -I…/POKITTO_CORE -I…/POKITTO_SIM -I…/POKITTO_SIM/mbed_sim -I…/POKITTO_LIBS/FileIO -I…/POKITTO_LIBS/Synth -I…/POKITTO_CORE/FONTS -I…/ -c /home/fedora/PokittoSim-master/Hello.cpp -o obj/Debug/Hello.o
g++ -Wall -std=gnu++11 -fsigned-char -DPOK_SIM -g -pthread -lasound -lX11 -lXext -DPROJ_HIRES=0 -DPROJ_STARTUPLOGO=0 -DPROJ_GAMEBUINO=0 -DPROJ_GBSOUND=0 -DPROJ_STREAMING_MUSIC=0 -DPROJ_ENABLE_SYNTH=0 -DPROJ_ENABLESOUND=0 -I…/SDL2/include -I…/POKITTO_CORE -I…/POKITTO_SIM -I…/POKITTO_SIM/mbed_sim -I…/POKITTO_LIBS/FileIO -I…/POKITTO_LIBS/Synth -I…/POKITTO_CORE/FONTS -I…/ -c /home/fedora/PokittoSim-master/POKITTO_SIM/Makewav.cpp -o obj/Debug/POKITTO_SIM/Makewav.o
g++ -Wall -std=gnu++11 -fsigned-char -DPOK_SIM -g -pthread -lasound -lX11 -lXext -DPROJ_HIRES=0 -DPROJ_STARTUPLOGO=0 -DPROJ_GAMEBUINO=0 -DPROJ_GBSOUND=0 -DPROJ_STREAMING_MUSIC=0 -DPROJ_ENABLE_SYNTH=0 -DPROJ_ENABLESOUND=0 -I…/SDL2/include -I…/POKITTO_CORE -I…/POKITTO_SIM -I…/POKITTO_SIM/mbed_sim -I…/POKITTO_LIBS/FileIO -I…/POKITTO_LIBS/Synth -I…/POKITTO_CORE/FONTS -I…/ -c /home/fedora/PokittoSim-master/POKITTO_SIM/Pokitto_simport.cpp -o obj/Debug/POKITTO_SIM/Pokitto_simport.o
g++ -Wall -std=gnu++11 -fsigned-char -DPOK_SIM -g -pthread -lasound -lX11 -lXext -DPROJ_HIRES=0 -DPROJ_STARTUPLOGO=0 -DPROJ_GAMEBUINO=0 -DPROJ_GBSOUND=0 -DPROJ_STREAMING_MUSIC=0 -DPROJ_ENABLE_SYNTH=0 -DPROJ_ENABLESOUND=0 -I…/SDL2/include -I…/POKITTO_CORE -I…/POKITTO_SIM -I…/POKITTO_SIM/mbed_sim -I…/POKITTO_LIBS/FileIO -I…/POKITTO_LIBS/Synth -I…/POKITTO_CORE/FONTS -I…/ -c /home/fedora/PokittoSim-master/POKITTO_SIM/PokittoClock.cpp -o obj/Debug/POKITTO_SIM/PokittoClock.o
g++ -Wall -std=gnu++11 -fsigned-char -DPOK_SIM -g -pthread -lasound -lX11 -lXext -DPROJ_HIRES=0 -DPROJ_STARTUPLOGO=0 -DPROJ_GAMEBUINO=0 -DPROJ_GBSOUND=0 -DPROJ_STREAMING_MUSIC=0 -DPROJ_ENABLE_SYNTH=0 -DPROJ_ENABLESOUND=0 -I…/SDL2/include -I…/POKITTO_CORE -I…/POKITTO_SIM -I…/POKITTO_SIM/mbed_sim -I…/POKITTO_LIBS/FileIO -I…/POKITTO_LIBS/Synth -I…/POKITTO_CORE/FONTS -I…/ -c /home/fedora/PokittoSim-master/POKITTO_SIM/PokittoSimButtons.cpp -o obj/Debug/POKITTO_SIM/PokittoSimButtons.o
g++ -Wall -std=gnu++11 -fsigned-char -DPOK_SIM -g -pthread -lasound -lX11 -lXext -DPROJ_HIRES=0 -DPROJ_STARTUPLOGO=0 -DPROJ_GAMEBUINO=0 -DPROJ_GBSOUND=0 -DPROJ_STREAMING_MUSIC=0 -DPROJ_ENABLE_SYNTH=0 -DPROJ_ENABLESOUND=0 -I…/SDL2/include -I…/POKITTO_CORE -I…/POKITTO_SIM -I…/POKITTO_SIM/mbed_sim -I…/POKITTO_LIBS/FileIO -I…/POKITTO_LIBS/Synth -I…/POKITTO_CORE/FONTS -I…/ -c /home/fedora/PokittoSim-master/POKITTO_SIM/PokittoSimCore.cpp -o obj/Debug/POKITTO_SIM/PokittoSimCore.o
g++ -Wall -std=gnu++11 -fsigned-char -DPOK_SIM -g -pthread -lasound -lX11 -lXext -DPROJ_HIRES=0 -DPROJ_STARTUPLOGO=0 -DPROJ_GAMEBUINO=0 -DPROJ_GBSOUND=0 -DPROJ_STREAMING_MUSIC=0 -DPROJ_ENABLE_SYNTH=0 -DPROJ_ENABLESOUND=0 -I…/SDL2/include -I…/POKITTO_CORE -I…/POKITTO_SIM -I…/POKITTO_SIM/mbed_sim -I…/POKITTO_LIBS/FileIO -I…/POKITTO_LIBS/Synth -I…/POKITTO_CORE/FONTS -I…/ -c /home/fedora/PokittoSim-master/POKITTO_SIM/PokittoSimulator.cpp -o obj/Debug/POKITTO_SIM/PokittoSimulator.o
In file included from /usr/include/c++/6.3.1/bits/char_traits.h:39:0,
from /usr/include/c++/6.3.1/ios:40,
from /usr/include/c++/6.3.1/ostream:38,
from /usr/include/c++/6.3.1/iostream:39,
from /home/fedora/PokittoSim-master/POKITTO_SIM/PokittoSimulator.cpp:42:
/usr/include/c++/6.3.1/bits/stl_algobase.h:243:56: error: macro “min” passed 3 arguments, but takes just 2
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/6.3.1/bits/stl_algobase.h:265:56: error: macro “max” passed 3 arguments, but takes just 2
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
In file included from …/POKITTO_CORE/PokittoSound.h:44:0,
from /home/fedora/PokittoSim-master/POKITTO_SIM/PokittoSimulator.cpp:40:
/usr/include/c++/6.3.1/bits/stl_algobase.h:195:5: error: expected unqualified-id before ‘const’
min(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/6.3.1/bits/stl_algobase.h:195:5: error: expected ‘)’ before ‘const’
/usr/include/c++/6.3.1/bits/stl_algobase.h:195:5: error: expected ‘)’ before ‘const’
/usr/include/c++/6.3.1/bits/stl_algobase.h:195:5: error: expected initializer before ‘const’
/usr/include/c++/6.3.1/bits/stl_algobase.h:219:5: error: expected unqualified-id before ‘const’
max(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/6.3.1/bits/stl_algobase.h:219:5: error: expected ‘)’ before ‘const’
/usr/include/c++/6.3.1/bits/stl_algobase.h:219:5: error: expected ‘)’ before ‘const’
/usr/include/c++/6.3.1/bits/stl_algobase.h:219:5: error: expected initializer before ‘const’
In file included from /usr/include/c++/6.3.1/bits/char_traits.h:39:0,
from /usr/include/c++/6.3.1/ios:40,
from /usr/include/c++/6.3.1/ostream:38,
from /usr/include/c++/6.3.1/iostream:39,
from /home/fedora/PokittoSim-master/POKITTO_SIM/PokittoSimulator.cpp:42:
/usr/include/c++/6.3.1/bits/stl_algobase.h:243:5: error: ‘std::min’ declared as an ‘inline’ variable
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^~~
/usr/include/c++/6.3.1/bits/stl_algobase.h:246:7: error: expected primary-expression before ‘if’
if (__comp(__b, __a))
^~
/usr/include/c++/6.3.1/bits/stl_algobase.h:246:7: error: expected ‘}’ before ‘if’
/usr/include/c++/6.3.1/bits/stl_algobase.h:246:7: error: expected ‘;’ before ‘if’
/usr/include/c++/6.3.1/bits/stl_algobase.h:248:7: error: expected unqualified-id before ‘return’
return __a;
^~~~~~
/usr/include/c++/6.3.1/bits/stl_algobase.h:265:5: error: ‘max’ declared as an ‘inline’ variable
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^~~
/usr/include/c++/6.3.1/bits/stl_algobase.h:268:7: error: expected primary-expression before ‘if’
if (__comp(__a, __b))
^~
/usr/include/c++/6.3.1/bits/stl_algobase.h:268:7: error: expected ‘}’ before ‘if’
/usr/include/c++/6.3.1/bits/stl_algobase.h:268:7: error: expected ‘;’ before ‘if’
/usr/include/c++/6.3.1/bits/stl_algobase.h:270:7: error: expected unqualified-id before ‘return’
return __a;
^~~~~~
/usr/include/c++/6.3.1/bits/stl_algobase.h:271:5: error: expected declaration before ‘}’ token
}
^
Process terminated with status 1 (0 minute(s), 0 second(s))
21 error(s), 0 warning(s) (0 minute(s), 0 second(s))

I’m installing Fedora right now. I hope i get same errors.

I might have a clue whats going on

All: please run “gcc --version” and report back. This is mine:

C:\Program Files (x86)\CodeBlocks\MinGW\bin>gcc --version
gcc (tdm-1) 4.9.2
Copyright (C) 2014 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.

Possible cause : @krp running Fedora with new GCC 6 while we others (win/ubuntu) have earlier version of gcc

min max has changed in GCC 6:

 This no longer compiles with GCC 6: 
#define max(a, b) (a > b ? a : b) 
#include <stdlib.h> int i = max(0,1); 

The reason is that 'max' is used throughout the standard library, and it's undefined behaviour to define a macro that clashes with any name defined in the standard library. Previously <stdlib.h> was not provided by GCC's C++ std::lib, so didn't #undef min and max. Now GCC provides its own C++-conforming <stdlib.h> and so it does #undef min and #undef max.

https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/7SFSXE5JG3CAWNWJB2N3CQSMMDLSFJQG/

I see @Drakker has GCC 6.3.1 while in Fedora … this might be it

Probably is! Got gcc version 5.4 on Xubuntu 16.04 and it works. I’m looking quickly through the package repository on Fedora 25 and the only other gcc version available seems to be 3.4… and when I try to build with it it says there’s no support for stdc++11… and when I try with 98 it doesn’t work. I don’t have time to play with this right now, but I’ll try later tonight if nobody figures it out until then.

When you rebuild the project it also has problem with *.so files and it terminates with error status 1

simulator seems to be broken to many random errors to even list

Is that windows or Linux? Last weekend it was working (windows) but I have not pulled from Github since.

windows, new install of code blocks and everything

I can try it tonight

oh wait looking true it seems to be mingw
wierd since a normal comand prompt helo world seemed to work fine

1 Like

Thanks for the quick updates on the situation @Hanski and @adekto. I am busy with the site backend update at the moment

yea, idk whats going on, these are standard library errors, i tried diferent codeblocks, tried reinstalling mingw
i get diferent errors but there all in stl or mingw library’s

idk if there is a version problem
have checked with codeblocks win32 so its not the compiler itself

1 Like

could you copy-paste at least a bit of the errors / screenshot so I see whats going on?

Latest pull from GitHub works for me: Windows CodeBlocks (v16.01) using Gnu GCC. No errors.

installed codeblocks

no install codeblocks

@adekto

MinGW version built with wrong exception handling?

http://mingw-users.1079350.n2.nabble.com/SJLJ-vs-Dwarf-2-td5029964.html

i have no idea what you want me to do
its just standard mingw