You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello - I give a try to build on apple silicon and intel base mac and fail all the time on this same thing
Log below.
Thank you so much for any help.
[ 61%] Completed 'TinyXml2'
[ 61%] Built target TinyXml2
[ 65%] Building CXX object CMakeFiles/SuperMario.dir/source/Blocks.cpp.o
In file included from /Users/naymapl/supermariohd/source/Blocks.cpp:1:
In file included from /Users/naymapl/supermariohd/source/Blocks.h:4:
In file included from /Users/naymapl/supermariohd/source/TileMap.h:6:
In file included from /Users/naymapl/supermariohd/source/Geometry.h:4:
In file included from /Users/naymapl/supermariohd/build/SFML-prefix/include/SFML/Graphics.hpp:32:
In file included from /Users/naymapl/supermariohd/build/SFML-prefix/include/SFML/Window.hpp:32:
In file included from /Users/naymapl/supermariohd/build/SFML-prefix/include/SFML/System.hpp:34:
In file included from /Users/naymapl/supermariohd/build/SFML-prefix/include/SFML/System/Err.hpp:32:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/ostream:137:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/ios:215:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__locale:15:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/string:511:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/string_view:179:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__string:57:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/algorithm:650:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/type_traits:1797:38: error: implicit instantiation of undefined template 'std::hash<sf::Keyboard::Key>'
: public integral_constant<bool, __is_empty(_Tp)> {};
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/unordered_map:451:18: note: in instantiation of template class 'std::is_empty<std::hash<sf::Keyboard::Key>>' requested here
bool = is_empty<_Hash>::value && !__libcpp_is_final<_Hash>::value>
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/unordered_map:934:13: note: in instantiation of default argument for '__unordered_map_hasher<sf::Keyboard::Key, std::__hash_value_type<sf::Keyboard::Key, bool>, std::hash<sf::Keyboard::Key>, std::equal_to<sf::Keyboard::Key>>' required here
typedef __unordered_map_hasher<key_type, __value_type, hasher, key_equal> __hasher;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/naymapl/supermariohd/source/GameEngine.h:280:46: note: in instantiation of template class 'std::unordered_map<sf::Keyboard::Key, bool>' requested here
std::unordered_map<sf::Keyboard::Key, bool> m_keys_prev, *m_keys_prev_ptr, m_keys_now, *m_keys_now_ptr;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/type_traits:431:50: note: template is declared here
template <class _Tp> struct _LIBCPP_TEMPLATE_VIS hash;
^
In file included from /Users/naymapl/supermariohd/source/Blocks.cpp:1:
/Users/naymapl/supermariohd/source/Blocks.h:79:15: warning: 'draw' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
virtual void draw(sf::RenderWindow* render_window);
^
/Users/naymapl/supermariohd/source/Blocks.h:20:15: note: overridden virtual function is here
virtual void draw(sf::RenderWindow* render_window);
^
/Users/naymapl/supermariohd/source/Blocks.h:81:15: warning: 'update' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
virtual void update(int delta_time);
^
/Users/naymapl/supermariohd/source/Blocks.h:21:15: note: overridden virtual function is here
virtual void update(int delta_time);
^
/Users/naymapl/supermariohd/source/Blocks.h:92:15: warning: 'draw' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
virtual void draw(sf::RenderWindow* render_window);
^
/Users/naymapl/supermariohd/source/Blocks.h:20:15: note: overridden virtual function is here
virtual void draw(sf::RenderWindow* render_window);
^
/Users/naymapl/supermariohd/source/Blocks.h:94:15: warning: 'update' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
virtual void update(int delta_time);
^
/Users/naymapl/supermariohd/source/Blocks.h:21:15: note: overridden virtual function is here
virtual void update(int delta_time);
^
/Users/naymapl/supermariohd/source/Blocks.h:176:3: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
CMarioGame::instance()->playSound("bump");
^~~~~~~~~~~~~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.h:214:15: warning: 'draw' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
virtual void draw(sf::RenderWindow* render_window);
^
/Users/naymapl/supermariohd/source/GameEngine.h:159:15: note: overridden virtual function is here
virtual void draw(sf::RenderWindow* window);
^
In file included from /Users/naymapl/supermariohd/source/Blocks.cpp:4:
/Users/naymapl/supermariohd/source/Enemies.h:18:7: warning: 'update' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
void update(int delta_time);
^
/Users/naymapl/supermariohd/source/GameEngine.h:149:15: note: overridden virtual function is here
virtual void update(int delta_time);
^
In file included from /Users/naymapl/supermariohd/source/Blocks.cpp:4:
/Users/naymapl/supermariohd/source/Enemies.h:103:8: warning: 'draw' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
void draw(sf::RenderWindow* render_window);
^
/Users/naymapl/supermariohd/source/GameEngine.h:159:15: note: overridden virtual function is here
virtual void draw(sf::RenderWindow* window);
^
/Users/naymapl/supermariohd/source/Blocks.cpp:108:25: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
m_sprite_sheet.load(*MarioGame().textureManager().get("Tiles"), Vector(0,0), {32, 32 }, 8, 12);
^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:125:2: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
MarioGame().playSound("bump");
^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:131:23: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
m_sprite_sheet.load(*MarioGame().textureManager().get("Tiles"), { { 32,0,32,32 } });
^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:174:4: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
MarioGame().playSound("breakblock");
^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:183:5: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
MarioGame().playSound("bump");
^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:192:23: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
m_sprite_sheet.load(*MarioGame().textureManager().get("Tiles"), { { 32,0,32,32 }, { 0,32,32,32 } });
^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:234:3: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
MarioGame().playSound("bump");
^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:255:28: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
m_background.setTexture(*MarioGame().textureManager().get(getProperty("Picture").asString()));
^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:275:17: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
auto texture = MarioGame().textureManager().get("AnimTiles");
^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:282:39: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
AbstractBlock::m_kicked_sprite.load(*MarioGame().textureManager().get("Tiles"), { { 0,32,32,32 } });
^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:283:40: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
AbstractBlock::m_bricket_sprite.load(*MarioGame().textureManager().get("Tiles"), { { 32,0,32,32 } });
^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:574:23: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
m_sprite_sheet.load(*MarioGame().textureManager().get("Items"), { { 96,0,16,16 }, { 96,16,16,-16 } });
^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:603:30: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
m_animator.create("twist", *MarioGame().textureManager().get("Items"), Vector(0, 84), Vector(32, 32), 4, 1, 0.01f);
^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:604:30: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
m_animator.create("shine", *MarioGame().textureManager().get("Items"), Vector(0, 116), Vector(40, 32), 5, 1, 0.01f, AnimType::forward);
^~~~~~~~~~~
/Users/naymapl/supermariohd/source/Blocks.cpp:620:3: error: cannot initialize object parameter of type 'CGame' with an expression of type 'CMarioGame'
MarioGame().playSound("coin");
^~~~~~~~~~~
7 warnings and 17 errors generated.
gmake[2]: *** [CMakeFiles/SuperMario.dir/build.make:76: CMakeFiles/SuperMario.dir/source/Blocks.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:140: CMakeFiles/SuperMario.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2
The text was updated successfully, but these errors were encountered:
Hello - I give a try to build on apple silicon and intel base mac and fail all the time on this same thing
Log below.
Thank you so much for any help.
The text was updated successfully, but these errors were encountered: