sasq64 / chipmachine

Demoscene/Retro Music Player
201 stars 12 forks source link

got a build error with ninja #67

Open Newk77 opened 5 years ago

Newk77 commented 5 years ago

First, i want to thank you for making this!! <3 After i got it on raspberry pi i want it on my desktop too.. i'm on Lubuntu 16.04 (with some ppa to update gcc cmake and c++)

i am allmost there but it fails at the end (whole thing for reference):

newk@lubu64:~/build$ cmake ../chipmachine -GNinja -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is GNU 6.4.0
-- The CXX compiler identification is GNU 6.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Lua: /usr/lib/x86_64-linux-gnu/liblua5.3.so;/usr/lib/x86_64-linux-gnu/libm.so (found version "5.3.1") 
-- CMake version: 3.12.0
CMake Deprecation Warning at /home/newk/apone/mods/coreutils/fmt/CMakeLists.txt:6 (cmake_policy):
  The OLD behavior for policy CMP0048 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.

-- Version: 4.1.0
-- Build type: Release
-- Performing Test HAVE_STD_CPP11_FLAG
-- Performing Test HAVE_STD_CPP11_FLAG - Success
-- Performing Test FMT_CPP11_CMATH
-- Performing Test FMT_CPP11_CMATH - Success
-- Performing Test FMT_CPP11_UNISTD_H
-- Performing Test FMT_CPP11_UNISTD_H - Success
-- Performing Test FMT_CPP11_SNPRINTF
-- Performing Test FMT_CPP11_SNPRINTF - Success
-- Performing Test SUPPORTS_VARIADIC_TEMPLATES
-- Performing Test SUPPORTS_VARIADIC_TEMPLATES - Success
-- Performing Test SUPPORTS_INITIALIZER_LIST
-- Performing Test SUPPORTS_INITIALIZER_LIST - Success
-- Performing Test SUPPORTS_ENUM_BASE
-- Performing Test SUPPORTS_ENUM_BASE - Success
-- Performing Test SUPPORTS_TYPE_TRAITS
-- Performing Test SUPPORTS_TYPE_TRAITS - Success
-- Performing Test SUPPORTS_USER_DEFINED_LITERALS
-- Performing Test SUPPORTS_USER_DEFINED_LITERALS - Success
-- Looking for open
-- Looking for open - found
-- Creating directory, /home/newk/build/ap1mods/grappix/freetype/freetype-2.5.5/include/freetype2.
-- Creating /home/newk/build/ap1mods/grappix/freetype/freetype-2.5.5/include/freetype2/ftconfig.h.
FREETYPE 
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so   
GLFW is dynamic
/home/newk/apone/mods/grappix/grappix/shaders/font_f.glsl
/home/newk/apone/mods/grappix/grappix/shaders/font_v.glsl
/home/newk/apone/mods/grappix/grappix/shaders/fontdf_f.glsl
/home/newk/apone/mods/grappix/grappix/shaders/plain_f.glsl
/home/newk/apone/mods/grappix/grappix/shaders/plain_v.glsl
/home/newk/apone/mods/grappix/grappix/shaders/texture_f.glsl
/home/newk/apone/mods/grappix/grappix/shaders/texture_v.glsl
/home/newk/musicplayer/plugins
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") 
PLUGIN XFILES:/home/newk/musicplayer/plugins/openmptplugin/openmptplugin_register.cpp/home/newk/musicplayer/plugins/htplugin/htplugin_register.cpp/home/newk/musicplayer/plugins/heplugin/heplugin_register.cpp/home/newk/musicplayer/plugins/ndsplugin/ndsplugin_register.cpp/home/newk/musicplayer/plugins/gmeplugin/gmeplugin_register.cpp/home/newk/musicplayer/plugins/sc68plugin/sc68plugin_register.cpp/home/newk/musicplayer/plugins/usfplugin/usfplugin_register.cpp/home/newk/musicplayer/plugins/stsoundplugin/stsoundplugin_register.cpp/home/newk/musicplayer/plugins/adplugin/adplugin_register.cpp/home/newk/musicplayer/plugins/mp3plugin/mp3plugin_register.cpp/home/newk/musicplayer/plugins/viceplugin/viceplugin_register.cpp/home/newk/musicplayer/plugins/hivelyplugin/hivelyplugin_register.cpp/home/newk/musicplayer/plugins/rsnplugin/rsnplugin_register.cpp/home/newk/musicplayer/plugins/ayflyplugin/ayflyplugin_register.cpp/home/newk/musicplayer/plugins/mdxplugin/mdxplugin_register.cpp/home/newk/musicplayer/plugins/s98plugin/s98plugin_register.cpp/home/newk/musicplayer/plugins/aoplugin/aoplugin_register.cpp/home/newk/musicplayer/plugins/gsfplugin/gsfplugin_register.cpp/home/newk/musicplayer/plugins/uadeplugin/uadeplugin_register.cpp/home/newk/musicplayer/plugins/tedplugin/tedplugin_register.cpp/home/newk/musicplayer/plugins/ffmpegplugin/ffmpegplugin_register.cpp/home/newk/musicplayer/plugins/v2plugin/v2plugin_register.cpp
-- Configuring done
-- Generating done
-- Build files have been written to: /home/newk/build
newk@lubu64:~/build$ ninja
[4/911] Building CXX object CMakeFiles/mksonglist.dir/src/SongFileIdentifier.cpp.o
FAILED: /usr/bin/c++  -DAPP_NAME=chipmachine -I/home/newk/chipmachine/../apone/mods -I/home/newk/chipmachine/.. -I/usr/local/include -I/usr/include/lua5.3 -I/home/newk/chipmachine/../apone/mods/grappix -I/home/newk/chipmachine/../musicplayer/plugins -I/home/newk/apone/mods/coreutils/fmt -g -funsigned-char -std=c++17  -g -funsigned-char -O2 -MD -MT CMakeFiles/mksonglist.dir/src/SongFileIdentifier.cpp.o -MF CMakeFiles/mksonglist.dir/src/SongFileIdentifier.cpp.o.d -o CMakeFiles/mksonglist.dir/src/SongFileIdentifier.cpp.o -c /home/newk/chipmachine/src/SongFileIdentifier.cpp
In file included from /home/newk/chipmachine/../apone/mods/coreutils/environment.h:21:0,
                 from /home/newk/chipmachine/src/SongFileIdentifier.cpp:5:
/home/newk/chipmachine/../apone/mods/coreutils/path.h:26:46: error: ‘empty_string’ declared as an ‘inline’ field
     inline static std::string empty_string = "";
                                              ^~
/home/newk/chipmachine/../apone/mods/coreutils/path.h:26:46: error: in-class initialization of static data member ‘std::__cxx11::string utils::path::empty_string’ of non-literal type
/home/newk/chipmachine/../apone/mods/coreutils/path.h:26:46: error: call to non-constexpr function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
In file included from /home/newk/chipmachine/src/SongFileIdentifier.cpp:5:0:
/home/newk/chipmachine/../apone/mods/coreutils/environment.h:120:28: error: ‘homeDir’ declared as an ‘inline’ field
  inline static utils::path homeDir;
                            ^~~~~~~
/home/newk/chipmachine/../apone/mods/coreutils/environment.h:121:31: error: ‘exeDir’ declared as an ‘inline’ field
     inline static utils::path exeDir;
                               ^~~~~~
/home/newk/chipmachine/../apone/mods/coreutils/environment.h:122:31: error: ‘configDir’ declared as an ‘inline’ field
     inline static utils::path configDir;
                               ^~~~~~~~~
/home/newk/chipmachine/../apone/mods/coreutils/environment.h:123:31: error: ‘cacheDir’ declared as an ‘inline’ field
     inline static utils::path cacheDir;
                               ^~~~~~~~
/home/newk/chipmachine/../apone/mods/coreutils/environment.h:124:31: error: ‘appDir’ declared as an ‘inline’ field
     inline static utils::path appDir;
                               ^~~~~~
/home/newk/chipmachine/../apone/mods/coreutils/environment.h:126:31: error: ‘appName’ declared as an ‘inline’ field
     inline static std::string appName;
                               ^~~~~~~
/home/newk/chipmachine/../apone/mods/coreutils/environment.h:127:30: error: ‘m’ declared as an ‘inline’ field
     inline static std::mutex m;
                              ^
[4/911] Building CXX object CMakeFiles/cm.dir/home/newk/musicplayer/plugins/stsoundplugin/stsoundplugin_register.cpp.o
ninja: build stopped: subcommand failed.

and a note on the build instructions: liblua6 in the dependencies? is that out allread? :p

Newk77 commented 5 years ago

still does not build... :'( ...does it really need liblua6.3?

Newk77 commented 5 years ago
newk@lubu64:~/chipmachine build/build$ cmake ../chipmachine -GNinja -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is GNU 6.5.0
-- The CXX compiler identification is GNU 6.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Creating directory, /home/newk/chipmachine build/build/ap1mods/grappix/freetype/freetype-2.5.5/include/freetype2.
-- Creating /home/newk/chipmachine build/build/ap1mods/grappix/freetype/freetype-2.5.5/include/freetype2/ftconfig.h.
FREETYPE 
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so   
GLFW is dynamic
/home/newk/chipmachine build/apone/mods/grappix/grappix/shaders/font_f.glsl
/home/newk/chipmachine build/apone/mods/grappix/grappix/shaders/font_v.glsl
/home/newk/chipmachine build/apone/mods/grappix/grappix/shaders/fontdf_f.glsl
/home/newk/chipmachine build/apone/mods/grappix/grappix/shaders/plain_f.glsl
/home/newk/chipmachine build/apone/mods/grappix/grappix/shaders/plain_v.glsl
/home/newk/chipmachine build/apone/mods/grappix/grappix/shaders/texture_f.glsl
/home/newk/chipmachine build/apone/mods/grappix/grappix/shaders/texture_v.glsl
-- Configuring done
-- Generating done
-- Build files have been written to: /home/newk/chipmachine build/build
newk@lubu64:~/chipmachine build/build$ ninja
[0/2] Re-checking globbed directories...
[6/954] Building CXX object CMakeFiles/mksonglist.dir/src/SongFileIdentifier.cpp.o
FAILED: CMakeFiles/mksonglist.dir/src/SongFileIdentifier.cpp.o 
/usr/bin/c++   -I/usr/local/include -I"/home/newk/chipmachine build/chipmachine/../apone/mods/grappix" -I"/home/newk/chipmachine build/chipmachine/../musicplayer/plugins" -I"/home/newk/chipmachine build/apone/mods/coreutils/.." -I"/home/newk/chipmachine build/apone/mods/coreutils" -g -funsigned-char  -g -funsigned-char -O2   -std=gnu++1z -MD -MT CMakeFiles/mksonglist.dir/src/SongFileIdentifier.cpp.o -MF CMakeFiles/mksonglist.dir/src/SongFileIdentifier.cpp.o.d -o CMakeFiles/mksonglist.dir/src/SongFileIdentifier.cpp.o -c '/home/newk/chipmachine build/chipmachine/src/SongFileIdentifier.cpp'
In file included from /home/newk/chipmachine build/apone/mods/coreutils/../coreutils/environment.h:21:0,
                 from /home/newk/chipmachine build/chipmachine/src/SongFileIdentifier.cpp:5:
/home/newk/chipmachine build/apone/mods/coreutils/../coreutils/path.h:26:46: error: ‘empty_string’ declared as an ‘inline’ field
     inline static std::string empty_string = "";
                                              ^~
/home/newk/chipmachine build/apone/mods/coreutils/../coreutils/path.h:26:46: error: in-class initialization of static data member ‘std::__cxx11::string utils::path::empty_string’ of non-literal type
/home/newk/chipmachine build/apone/mods/coreutils/../coreutils/path.h:26:46: error: call to non-constexpr function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
In file included from /home/newk/chipmachine build/chipmachine/src/SongFileIdentifier.cpp:5:0:
/home/newk/chipmachine build/apone/mods/coreutils/../coreutils/environment.h:120:28: error: ‘homeDir’ declared as an ‘inline’ field
  inline static utils::path homeDir;
                            ^~~~~~~
/home/newk/chipmachine build/apone/mods/coreutils/../coreutils/environment.h:121:31: error: ‘exeDir’ declared as an ‘inline’ field
     inline static utils::path exeDir;
                               ^~~~~~
/home/newk/chipmachine build/apone/mods/coreutils/../coreutils/environment.h:122:31: error: ‘configDir’ declared as an ‘inline’ field
     inline static utils::path configDir;
                               ^~~~~~~~~
/home/newk/chipmachine build/apone/mods/coreutils/../coreutils/environment.h:123:31: error: ‘cacheDir’ declared as an ‘inline’ field
     inline static utils::path cacheDir;
                               ^~~~~~~~
/home/newk/chipmachine build/apone/mods/coreutils/../coreutils/environment.h:124:31: error: ‘appDir’ declared as an ‘inline’ field
     inline static utils::path appDir;
                               ^~~~~~
/home/newk/chipmachine build/apone/mods/coreutils/../coreutils/environment.h:126:31: error: ‘appName’ declared as an ‘inline’ field
     inline static std::string appName;
                               ^~~~~~~
/home/newk/chipmachine build/apone/mods/coreutils/../coreutils/environment.h:127:30: error: ‘m’ declared as an ‘inline’ field
     inline static std::mutex m;
                              ^
[8/954] Building CXX object CMakeFiles/mksonglist.dir/mksonglist/mksonglist.cpp.o
ninja: build stopped: subcommand failed.
Newk77 commented 5 years ago

so i thought a space in the path might be a problem so i did a fresh download and tried again:

newk@lubu64:~/chipmachine_build/build$ cmake ../chipmachine -GNinja -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is GNU 6.5.0
-- The CXX compiler identification is GNU 6.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Creating directory, /home/newk/chipmachine_build/build/ap1mods/grappix/freetype/freetype-2.5.5/include/freetype2.
-- Creating /home/newk/chipmachine_build/build/ap1mods/grappix/freetype/freetype-2.5.5/include/freetype2/ftconfig.h.
FREETYPE 
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so   
GLFW is dynamic
/home/newk/chipmachine_build/apone/mods/grappix/grappix/shaders/font_f.glsl
/home/newk/chipmachine_build/apone/mods/grappix/grappix/shaders/font_v.glsl
/home/newk/chipmachine_build/apone/mods/grappix/grappix/shaders/fontdf_f.glsl
/home/newk/chipmachine_build/apone/mods/grappix/grappix/shaders/plain_f.glsl
/home/newk/chipmachine_build/apone/mods/grappix/grappix/shaders/plain_v.glsl
/home/newk/chipmachine_build/apone/mods/grappix/grappix/shaders/texture_f.glsl
/home/newk/chipmachine_build/apone/mods/grappix/grappix/shaders/texture_v.glsl
-- Configuring done
-- Generating done
-- Build files have been written to: /home/newk/chipmachine_build/build
newk@lubu64:~/chipmachine_build/build$ ninja
[0/2] Re-checking globbed directories...
[6/954] Building CXX object CMakeFiles/mksonglist.dir/src/SongFileIdentifier.cpp.o
FAILED: CMakeFiles/mksonglist.dir/src/SongFileIdentifier.cpp.o 
/usr/bin/c++   -I/usr/local/include -I/home/newk/chipmachine_build/chipmachine/../apone/mods/grappix -I/home/newk/chipmachine_build/chipmachine/../musicplayer/plugins -I/home/newk/chipmachine_build/apone/mods/coreutils/.. -I/home/newk/chipmachine_build/apone/mods/coreutils -g -funsigned-char  -g -funsigned-char -O2   -std=gnu++1z -MD -MT CMakeFiles/mksonglist.dir/src/SongFileIdentifier.cpp.o -MF CMakeFiles/mksonglist.dir/src/SongFileIdentifier.cpp.o.d -o CMakeFiles/mksonglist.dir/src/SongFileIdentifier.cpp.o -c /home/newk/chipmachine_build/chipmachine/src/SongFileIdentifier.cpp
In file included from /home/newk/chipmachine_build/apone/mods/coreutils/../coreutils/environment.h:21:0,
                 from /home/newk/chipmachine_build/chipmachine/src/SongFileIdentifier.cpp:5:
/home/newk/chipmachine_build/apone/mods/coreutils/../coreutils/path.h:26:46: error: ‘empty_string’ declared as an ‘inline’ field
     inline static std::string empty_string = "";
                                              ^~
/home/newk/chipmachine_build/apone/mods/coreutils/../coreutils/path.h:26:46: error: in-class initialization of static data member ‘std::__cxx11::string utils::path::empty_string’ of non-literal type
/home/newk/chipmachine_build/apone/mods/coreutils/../coreutils/path.h:26:46: error: call to non-constexpr function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
In file included from /home/newk/chipmachine_build/chipmachine/src/SongFileIdentifier.cpp:5:0:
/home/newk/chipmachine_build/apone/mods/coreutils/../coreutils/environment.h:120:28: error: ‘homeDir’ declared as an ‘inline’ field
  inline static utils::path homeDir;
                            ^~~~~~~
/home/newk/chipmachine_build/apone/mods/coreutils/../coreutils/environment.h:121:31: error: ‘exeDir’ declared as an ‘inline’ field
     inline static utils::path exeDir;
                               ^~~~~~
/home/newk/chipmachine_build/apone/mods/coreutils/../coreutils/environment.h:122:31: error: ‘configDir’ declared as an ‘inline’ field
     inline static utils::path configDir;
                               ^~~~~~~~~
/home/newk/chipmachine_build/apone/mods/coreutils/../coreutils/environment.h:123:31: error: ‘cacheDir’ declared as an ‘inline’ field
     inline static utils::path cacheDir;
                               ^~~~~~~~
/home/newk/chipmachine_build/apone/mods/coreutils/../coreutils/environment.h:124:31: error: ‘appDir’ declared as an ‘inline’ field
     inline static utils::path appDir;
                               ^~~~~~
/home/newk/chipmachine_build/apone/mods/coreutils/../coreutils/environment.h:126:31: error: ‘appName’ declared as an ‘inline’ field
     inline static std::string appName;
                               ^~~~~~~
/home/newk/chipmachine_build/apone/mods/coreutils/../coreutils/environment.h:127:30: error: ‘m’ declared as an ‘inline’ field
     inline static std::mutex m;
                              ^
[8/954] Building CXX object external/lua/CMakeFiles/lua.dir/lapi.c.o
ninja: build stopped: subcommand failed.
Newk77 commented 5 years ago

so i thought a space in the path might be a problem so i did a fresh download and tried again:

newk@lubu64:~/chipmachine_build/build$ cmake ../chipmachine -GNinja -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is GNU 6.5.0
-- The CXX compiler identification is GNU 6.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Creating directory, /home/newk/chipmachine_build/build/ap1mods/grappix/freetype/freetype-2.5.5/include/freetype2.
-- Creating /home/newk/chipmachine_build/build/ap1mods/grappix/freetype/freetype-2.5.5/include/freetype2/ftconfig.h.
FREETYPE 
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so   
GLFW is dynamic
/home/newk/chipmachine_build/apone/mods/grappix/grappix/shaders/font_f.glsl
/home/newk/chipmachine_build/apone/mods/grappix/grappix/shaders/font_v.glsl
/home/newk/chipmachine_build/apone/mods/grappix/grappix/shaders/fontdf_f.glsl
/home/newk/chipmachine_build/apone/mods/grappix/grappix/shaders/plain_f.glsl
/home/newk/chipmachine_build/apone/mods/grappix/grappix/shaders/plain_v.glsl
/home/newk/chipmachine_build/apone/mods/grappix/grappix/shaders/texture_f.glsl
/home/newk/chipmachine_build/apone/mods/grappix/grappix/shaders/texture_v.glsl
-- Configuring done
-- Generating done
-- Build files have been written to: /home/newk/chipmachine_build/build
newk@lubu64:~/chipmachine_build/build$ ninja
[0/2] Re-checking globbed directories...
[6/954] Building CXX object CMakeFiles/mksonglist.dir/src/SongFileIdentifier.cpp.o
FAILED: CMakeFiles/mksonglist.dir/src/SongFileIdentifier.cpp.o 
/usr/bin/c++   -I/usr/local/include -I/home/newk/chipmachine_build/chipmachine/../apone/mods/grappix -I/home/newk/chipmachine_build/chipmachine/../musicplayer/plugins -I/home/newk/chipmachine_build/apone/mods/coreutils/.. -I/home/newk/chipmachine_build/apone/mods/coreutils -g -funsigned-char  -g -funsigned-char -O2   -std=gnu++1z -MD -MT CMakeFiles/mksonglist.dir/src/SongFileIdentifier.cpp.o -MF CMakeFiles/mksonglist.dir/src/SongFileIdentifier.cpp.o.d -o CMakeFiles/mksonglist.dir/src/SongFileIdentifier.cpp.o -c /home/newk/chipmachine_build/chipmachine/src/SongFileIdentifier.cpp
In file included from /home/newk/chipmachine_build/apone/mods/coreutils/../coreutils/environment.h:21:0,
                 from /home/newk/chipmachine_build/chipmachine/src/SongFileIdentifier.cpp:5:
/home/newk/chipmachine_build/apone/mods/coreutils/../coreutils/path.h:26:46: error: ‘empty_string’ declared as an ‘inline’ field
     inline static std::string empty_string = "";
                                              ^~
/home/newk/chipmachine_build/apone/mods/coreutils/../coreutils/path.h:26:46: error: in-class initialization of static data member ‘std::__cxx11::string utils::path::empty_string’ of non-literal type
/home/newk/chipmachine_build/apone/mods/coreutils/../coreutils/path.h:26:46: error: call to non-constexpr function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
In file included from /home/newk/chipmachine_build/chipmachine/src/SongFileIdentifier.cpp:5:0:
/home/newk/chipmachine_build/apone/mods/coreutils/../coreutils/environment.h:120:28: error: ‘homeDir’ declared as an ‘inline’ field
  inline static utils::path homeDir;
                            ^~~~~~~
/home/newk/chipmachine_build/apone/mods/coreutils/../coreutils/environment.h:121:31: error: ‘exeDir’ declared as an ‘inline’ field
     inline static utils::path exeDir;
                               ^~~~~~
/home/newk/chipmachine_build/apone/mods/coreutils/../coreutils/environment.h:122:31: error: ‘configDir’ declared as an ‘inline’ field
     inline static utils::path configDir;
                               ^~~~~~~~~
/home/newk/chipmachine_build/apone/mods/coreutils/../coreutils/environment.h:123:31: error: ‘cacheDir’ declared as an ‘inline’ field
     inline static utils::path cacheDir;
                               ^~~~~~~~
/home/newk/chipmachine_build/apone/mods/coreutils/../coreutils/environment.h:124:31: error: ‘appDir’ declared as an ‘inline’ field
     inline static utils::path appDir;
                               ^~~~~~
/home/newk/chipmachine_build/apone/mods/coreutils/../coreutils/environment.h:126:31: error: ‘appName’ declared as an ‘inline’ field
     inline static std::string appName;
                               ^~~~~~~
/home/newk/chipmachine_build/apone/mods/coreutils/../coreutils/environment.h:127:30: error: ‘m’ declared as an ‘inline’ field
     inline static std::mutex m;
                              ^
[8/954] Building CXX object external/lua/CMakeFiles/lua.dir/lapi.c.o
ninja: build stopped: subcommand failed.
sasq64 commented 5 years ago

You actually need a c++17 compiler now... so I think gcc 6 is too old

Newk77 commented 5 years ago

thank you for pointing that out! installed gcc 9.1 now and got WAY further with compiling.. but it tripped on compiling the Gameboy Advanced plugin:

[848/954] Building CXX object plugins/gsfplugin/CMakeFiles/gsfplugin.dir/playgsf/VBA/GBA.cpp.o
FAILED: plugins/gsfplugin/CMakeFiles/gsfplugin.dir/playgsf/VBA/GBA.cpp.o 
/usr/bin/c++  -DC_CORE -DLINUX -I/usr/local/include -I/home/newk/chipmachine_build/musicplayer/plugins/gsfplugin/playgsf -I/home/newk/chipmachine_build/musicplayer/plugins/gsfplugin/playgsf/libresample-0.1.3/include -I/home/newk/chipmachine_build/musicplayer/plugins/gsfplugin/.. -I/home/newk/chipmachine_build/musicplayer/psf/include -I/home/newk/chipmachine_build/apone/mods/coreutils/.. -I/home/newk/chipmachine_build/apone/mods/coreutils -g -funsigned-char  -g -funsigned-char -O2   -std=gnu++17 -MD -MT plugins/gsfplugin/CMakeFiles/gsfplugin.dir/playgsf/VBA/GBA.cpp.o -MF plugins/gsfplugin/CMakeFiles/gsfplugin.dir/playgsf/VBA/GBA.cpp.o.d -o plugins/gsfplugin/CMakeFiles/gsfplugin.dir/playgsf/VBA/GBA.cpp.o -c /home/newk/chipmachine_build/musicplayer/plugins/gsfplugin/playgsf/VBA/GBA.cpp
c++: fatal error: Terminated signal terminated program cc1plus
compilation terminated.
[850/954] Building CXX object CMakeFiles/cm.dir/src/MusicDatabase.cpp.o
ninja: build stopped: subcommand failed.

full log here on pastebin: https://pastebin.com/pPESJh7r

Getting much closer to run this most awesome chiptune player now! : >