Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling error when build on macOS #192

Open
drwjf opened this issue Feb 18, 2023 · 0 comments
Open

Compiling error when build on macOS #192

drwjf opened this issue Feb 18, 2023 · 0 comments

Comments

@drwjf
Copy link

drwjf commented Feb 18, 2023

cmake output attached as the following:

% cmake -DWITH_GEOJSON=OFF -DCMAKE_BUILD_TYPE=Release ..
-- The C compiler identification is AppleClang 13.1.6.13160021
-- The CXX compiler identification is AppleClang 13.1.6.13160021
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode_13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode_13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Boost: /usr/local/lib/cmake/Boost-1.81.0/BoostConfig.cmake (found suitable version "1.81.0", minimum required is "1.69.0")  
-- Found Lua51: /usr/local/lib/liblua5.1.dylib (found version "5.1.5") 
-- sdl2 found: includes in /usr/local/include/SDL2, library in /usr/local/lib/libSDL2.dylib;-framework Cocoa
-- Found SDL2_mixer: /usr/local/lib/libSDL2_mixer.dylib (found version "2.6.3") 
-- Found library tolua++: /opt/local/lib/libtoluapp.dylib
-- Found program tolua++: /opt/local/bin/toluapp
-- Found ZLIB: /Applications/Xcode_13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd (found version "1.2.11") 
-- Found X11: /usr/local/include   
-- Looking for XOpenDisplay in /usr/local/lib/libX11.dylib;/usr/local/lib/libXext.dylib
-- Looking for XOpenDisplay in /usr/local/lib/libX11.dylib;/usr/local/lib/libXext.dylib - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Found OpenGL: /Applications/Xcode_13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/OpenGL.framework   
-- Could not find OpenGL ES 1.1 libraries
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2") 
-- Checking for module 'sqlite3'
--   Found sqlite3, version 3.32.3
-- Found Sqlite: /Applications/Xcode_13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include  
-- Found Doxygen: /usr/local/bin/doxygen (found version "1.9.6") found components: doxygen dot 
-- Using OpenGL
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of errno_t
-- Check size of errno_t - done
-- Looking for strcpy_s
-- Looking for strcpy_s - not found
-- Looking for strncpy_s
-- Looking for strncpy_s - not found
-- Looking for strcasestr
-- Looking for strcasestr - found
-- Looking for strnlen
-- Looking for strnlen - found
-- Looking for getopt
-- Looking for getopt - found
-- Looking for strcat_s
-- Looking for strcat_s - not found
==================================
Debug mode: No (Enable by param -DCMAKE_BUILD_TYPE=Debug)
Strip executables: No (Enable by param -DENABLE_STRIP=ON)
Static linking: No (Enable by param -DENABLE_STATIC=ON)
Place game files in: game directory (Place in user directory with -DENABLE_USEGAMEDIR=OFF)
Parallel building in MSVC: Yes (Disable by param -DENABLE_MULTIBUILD=OFF)
Platform: Mac
Touchscreen input: No (Enable by param -DENABLE_TOUCHSCREEN=ON)
Metaserver: No (Enable by param -DENABLE_METASERVER=ON)
Doxygen documentation: No (Enable by param -DENABLE_DOC=ON)
Game development files: No (Enable by param -DENABLE_DEV=ON)
Upx packer: No (Enable by param -DENABLE_UPX=ON)
X11: Found and enabled (Disable by param -DWITH_X11=OFF)
==================================
-- Configuring done
-- Generating done

make output attached too:

[  1%] Automatic MOC for target archimedes
[  1%] Built target archimedes_autogen
[  3%] Building CXX object archimedes/CMakeFiles/archimedes.dir/cmake_pch.hxx.pch
[  4%] Building CXX object archimedes/CMakeFiles/archimedes.dir/archimedes_autogen/mocs_compilation.cpp.o
[  6%] Building CXX object archimedes/CMakeFiles/archimedes.dir/Unity/unity_database_cxx.cxx.o
[  7%] Building CXX object archimedes/CMakeFiles/archimedes.dir/Unity/unity_language_cxx.cxx.o
In file included from Wyrmgus/build/archimedes/CMakeFiles/archimedes.dir/Unity/unity_language_cxx.cxx:5:
Wyrmgus/archimedes/src/language/grammatical_gender.cpp:10:55: error: explicit specialization of 'property_class_identifier' after instantiation
const std::string enum_converter<grammatical_gender>::property_class_identifier = "archimedes::grammatical_gender";
                                                      ^
Wyrmgus/archimedes/src/language/grammatical_gender.h:14:23: note: explicit instantiation first required here
extern template class enum_converter<grammatical_gender>;
                      ^
In file included from Wyrmgus/build/archimedes/CMakeFiles/archimedes.dir/Unity/unity_language_cxx.cxx:5:
Wyrmgus/archimedes/src/language/grammatical_gender.cpp:13:85: error: explicit specialization of 'string_to_enum_map' after instantiation
const std::map<std::string, grammatical_gender> enum_converter<grammatical_gender>::string_to_enum_map = {
                                                                                    ^
Wyrmgus/archimedes/src/language/grammatical_gender.h:14:23: note: explicit instantiation first required here
extern template class enum_converter<grammatical_gender>;
                      ^
In file included from Wyrmgus/build/archimedes/CMakeFiles/archimedes.dir/Unity/unity_language_cxx.cxx:5:
Wyrmgus/archimedes/src/language/grammatical_gender.cpp:21:48: error: explicit specialization of 'initialized' after instantiation
const bool enum_converter<grammatical_gender>::initialized = enum_converter::initialize();
                                               ^
Wyrmgus/archimedes/src/language/grammatical_gender.h:14:23: note: explicit instantiation first required here
extern template class enum_converter<grammatical_gender>;
                      ^
In file included from Wyrmgus/build/archimedes/CMakeFiles/archimedes.dir/Unity/unity_language_cxx.cxx:5:
Wyrmgus/archimedes/src/language/grammatical_gender.cpp:21:62: error: 'enum_converter' is not a class, namespace, or enumeration
const bool enum_converter<grammatical_gender>::initialized = enum_converter::initialize();
                                                             ^
Wyrmgus/archimedes/src/util/enum_converter.h:12:7: note: 'enum_converter' declared here
class enum_converter final : public enum_converter_base
      ^
In file included from Wyrmgus/build/archimedes/CMakeFiles/archimedes.dir/Unity/unity_language_cxx.cxx:15:
Wyrmgus/archimedes/src/language/word_type.cpp:10:46: error: explicit specialization of 'property_class_identifier' after instantiation
const std::string enum_converter<word_type>::property_class_identifier = "archimedes::word_type";
                                             ^
Wyrmgus/archimedes/src/language/word_type.h:21:23: note: explicit instantiation first required here
extern template class enum_converter<word_type>;
                      ^
In file included from Wyrmgus/build/archimedes/CMakeFiles/archimedes.dir/Unity/unity_language_cxx.cxx:15:
Wyrmgus/archimedes/src/language/word_type.cpp:13:67: error: explicit specialization of 'string_to_enum_map' after instantiation
const std::map<std::string, word_type> enum_converter<word_type>::string_to_enum_map = {
                                                                  ^
Wyrmgus/archimedes/src/language/word_type.h:21:23: note: explicit instantiation first required here
extern template class enum_converter<word_type>;
                      ^
In file included from Wyrmgus/build/archimedes/CMakeFiles/archimedes.dir/Unity/unity_language_cxx.cxx:15:
Wyrmgus/archimedes/src/language/word_type.cpp:28:39: error: explicit specialization of 'initialized' after instantiation
const bool enum_converter<word_type>::initialized = enum_converter::initialize();
                                      ^
Wyrmgus/archimedes/src/language/word_type.h:21:23: note: explicit instantiation first required here
extern template class enum_converter<word_type>;
                      ^
In file included from Wyrmgus/build/archimedes/CMakeFiles/archimedes.dir/Unity/unity_language_cxx.cxx:15:
Wyrmgus/archimedes/src/language/word_type.cpp:28:53: error: 'enum_converter' is not a class, namespace, or enumeration
const bool enum_converter<word_type>::initialized = enum_converter::initialize();
                                                    ^
Wyrmgus/archimedes/src/util/enum_converter.h:12:7: note: 'enum_converter' declared here
class enum_converter final : public enum_converter_base
      ^
8 errors generated.
make[2]: *** [archimedes/CMakeFiles/archimedes.dir/Unity/unity_language_cxx.cxx.o] Error 1
make[1]: *** [archimedes/CMakeFiles/archimedes.dir/all] Error 2
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant