Emulator Issues #5255
closedee09def802f9 does not compile on OS X 10.7.3 via scons or cmake
0%
Description
Since revision ee09def802f9, I've been unable to compile Dolphin.
I'm using scons and Xcode 4.2's llvm-gcc/llvm-g++ (celgilles also reports identical results with Xcode 4.3) on a system running OS X 10.7.3.
/Developer/usr/bin/llvm-g++ -o Build/Darwin-x86_64-release/Source/Core/Common/Src/IniFile.o -c -x objective-c++ -fno-exceptions -fno-strict-aliasing -O3 -fomit-frame-pointer -Wall -Wextra -Wshadow -Wno-unused-parameter -arch x86_64 -arch i386 -mmacosx-version-min=10.5.4 -isysroot /Developer/SDKs/MacOSX10.6.sdk -Xarch_i386 -msse3 -Xarch_x86_64 -mssse3 -march=core2 -mdynamic-no-pic -Wextra-tokens -Wnewline-eof -D__WXOSX_COCOA__ -ISource/Core/Core/Src -IBuild/Darwin-x86_64-release/Source/Core/Common/Src -ISource/Core/Common/Src -ISource/Core/Common/Src -ISource/Core/DiscIO/Src -IExternals -ISource/Core/DolphinWX/Src -ISource/Core/AudioCommon/Src -ISource/Core/InputCommon/Src -ISource/Core/VideoCommon/Src -IExternals/Bochs_disasm -IExternals/GLew/include -IExternals/LZO -IExternals/SOIL -IExternals/SFML/include -IExternals/libpng -IExternals/wxWidgets3 -IExternals/wxWidgets3/include -FExternals/Cg Source/Core/Common/Src/IniFile.cpp
Source/Core/Common/Src/IniFile.cpp: In member function ‘bool IniFile::Save(const char*)’:
Source/Core/Common/Src/IniFile.cpp:466: error: ISO C++ forbids declaration of ‘iter’ with no type
Source/Core/Common/Src/IniFile.cpp:466: error: cannot convert ‘__gnu_cxx::__normal_iterator<IniFile::Section*, std::vector<IniFile::Section, std::allocator<IniFile::Section> > >’ to ‘int’ in initialization
Source/Core/Common/Src/IniFile.cpp:466: error: no match for ‘operator!=’ in ‘iter != ((IniFile*)this)->IniFile::sections. std::vector<_Tp, _Alloc>::end with _Tp = IniFile::Section, _Alloc = std::allocator<IniFile::Section>’
Source/Core/Common/Src/IniFile.cpp:468: error: invalid type argument of ‘unary ’
Source/Core/Common/Src/IniFile.cpp: In member function ‘bool IniFile::Save(const char)’:
Source/Core/Common/Src/IniFile.cpp:466: error: ISO C++ forbids declaration of ‘iter’ with no type
Source/Core/Common/Src/IniFile.cpp:466: error: cannot convert ‘__gnu_cxx::__normal_iterator<IniFile::Section*, std::vector<IniFile::Section, std::allocator<IniFile::Section> > >’ to ‘int’ in initialization
Source/Core/Common/Src/IniFile.cpp:466: error: no match for ‘operator!=’ in ‘iter != ((IniFile*)this)->IniFile::sections. std::vector<_Tp, _Alloc>::end with _Tp = IniFile::Section, _Alloc = std::allocator<IniFile::Section>’
Source/Core/Common/Src/IniFile.cpp:468: error: invalid type argument of ‘unary *’
lipo: can't figure out the architecture type of: /var/folders/6k/m45nskss2fl7st479x83phnr0000gn/T//cczfadpc.out
scons: *** [Build/Darwin-x86_64-release/Source/Core/Common/Src/IniFile.o] Error 1
scons: building terminated because of errors.
cmake 2.8-7 won't build Dolphin either:
-- Could NOT find OpenMP (missing: OpenMP_C_FLAGS OpenMP_CXX_FLAGS)
OpenMP parallelization disabled
-- Could NOT find ALSA (missing: ALSA_LIBRARY ALSA_INCLUDE_DIR)
ALSA NOT found, disabling ALSA sound backend
ao NOT found, disabling ao sound backend
bluez NOT found, disabling bluetooth support
PulseAudio NOT found, disabling PulseAudio sound backend
OpenAL found, enabling OpenAL sound backend
pkg-config is required to check for libav
libav not found, disabling AVI frame dumps
PortAudio not found, disabling mic support
Using static lzo from Externals
Using static SDL from Externals
Using static SFML 1.5 from Externals
Using static SOIL from Externals
Using shared zlib
Using static GLEW from Externals
Using static Cg from Externals
CgGL not found
Using static wxWidgets from Externals
-- Could NOT find Gettext (missing: GETTEXT_MSGMERGE_EXECUTABLE GETTEXT_MSGFMT_EXECUTABLE)
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/Paul/dolphin-emu
I have gettext 0.18.1.1 installed via MacPorts, and it's in my $PATH.