problemas ao compilar com o cmake

1. problemas ao compilar com o cmake

erich8
erich8

(usa Ubuntu)

Enviado em 10/09/2015 - 19:15h

para compilar instalei todos estes aplicativos;
sudo apt-get install cmake pkg-config git gcc-4.9 g++-4.9 libao-dev libasound2-dev libavcodec-dev libavformat-dev libbluetooth-dev libgtk2.0-dev liblzo2-dev libopenal-dev libpulse-dev libreadline-dev libsfml-dev libsoil-dev libswscale-dev libusb-1.0-0-dev libxext-dev libxrandr-dev portaudio19-dev zlib1g-dev libudev-dev libevdev-dev

eseto o g++-4.9 que nao encontrei.

depois entrei na pasta e digitei estes comandos;
mkdir Build
cd Build
cmake ..

neste ponto o tutorial do site mostra esta
If you are using a different gcc version (4.9 on Ubuntu 14.04 for example), you'll need to overwrite some flags:

CC=gcc-4.9 CXX=g++-4.9 cmake ..

mas estou usando o gcc 4:4.8.2-1ubuntu6

sera isto que esta dando problema?

make
sudo make install

no terminal ele da este erro;

erro no termilal;
[ 53%] Building CXX object Externals/wxWidgets3/CMakeFiles/wx.dir/src/unix/mimetype.cpp.o
[ 53%] Building CXX object Externals/wxWidgets3/CMakeFiles/wx.dir/src/unix/sound.cpp.o
[ 53%] Building CXX object Externals/wxWidgets3/CMakeFiles/wx.dir/src/unix/uiactionx11.cpp.o
[ 53%] Building CXX object Externals/wxWidgets3/CMakeFiles/wx.dir/src/unix/utilsx11.cpp.o
Linking CXX static library libwx.a
[ 53%] Built target wx
Scanning dependencies of target pch
[ 53%] Building CXX object Source/CMakeFiles/pch.dir/PCH/pch.h.o
Linking FAKELANG static library libpch.a
[ 53%] Built target pch
Scanning dependencies of target audiocommon
[ 53%] Building CXX object Source/Core/AudioCommon/CMakeFiles/audiocommon.dir/AudioCommon.cpp.o
In file included from /home/erich/jogos/gamecube/dois/dolphin-emu/Externals/soundtouch/SoundTouch.h:75:0,
from /home/erich/jogos/gamecube/dois/dolphin-emu/Source/Core/AudioCommon/OpenALStream.h:35,
from /home/erich/jogos/gamecube/dois/dolphin-emu/Source/Core/AudioCommon/AudioCommon.cpp:12:
/home/erich/jogos/gamecube/dois/dolphin-emu/Externals/soundtouch/FIFOSamplePipe.h: In member function ‘virtual uint soundtouch::FIFOProcessor::adjustAmountOfSamples(uint)’:
/home/erich/jogos/gamecube/dois/dolphin-emu/Externals/soundtouch/FIFOSamplePipe.h:226:5: warning: declaration of ‘numSamples’ shadows a member of 'this' [-Wshadow]
{
^
[ 53%] Building CXX object Source/Core/AudioCommon/CMakeFiles/audiocommon.dir/DPL2Decoder.cpp.o
[ 53%] Building CXX object Source/Core/AudioCommon/CMakeFiles/audiocommon.dir/Mixer.cpp.o
[ 53%] Building CXX object Source/Core/AudioCommon/CMakeFiles/audiocommon.dir/WaveFile.cpp.o
[ 53%] Building CXX object Source/Core/AudioCommon/CMakeFiles/audiocommon.dir/NullSoundStream.cpp.o
[ 53%] Building CXX object Source/Core/AudioCommon/CMakeFiles/audiocommon.dir/AlsaSoundStream.cpp.o
[ 53%] Building CXX object Source/Core/AudioCommon/CMakeFiles/audiocommon.dir/AOSoundStream.cpp.o
[ 53%] Building CXX object Source/Core/AudioCommon/CMakeFiles/audiocommon.dir/OpenALStream.cpp.o
In file included from /home/erich/jogos/gamecube/dois/dolphin-emu/Externals/soundtouch/SoundTouch.h:75:0,
from /home/erich/jogos/gamecube/dois/dolphin-emu/Source/Core/AudioCommon/OpenALStream.h:35,
from /home/erich/jogos/gamecube/dois/dolphin-emu/Source/Core/AudioCommon/OpenALStream.cpp:9:
/home/erich/jogos/gamecube/dois/dolphin-emu/Externals/soundtouch/FIFOSamplePipe.h: In member function ‘virtual uint soundtouch::FIFOProcessor::adjustAmountOfSamples(uint)’:
/home/erich/jogos/gamecube/dois/dolphin-emu/Externals/soundtouch/FIFOSamplePipe.h:226:5: warning: declaration of ‘numSamples’ shadows a member of 'this' [-Wshadow]
{
^
[ 54%] Building CXX object Source/Core/AudioCommon/CMakeFiles/audiocommon.dir/aldlist.cpp.o
[ 54%] Building CXX object Source/Core/AudioCommon/CMakeFiles/audiocommon.dir/PulseAudioStream.cpp.o
Linking CXX static library libaudiocommon.a
[ 54%] Built target audiocommon
Scanning dependencies of target common
[ 54%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/BreakPoints.cpp.o
[ 54%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/CDUtils.cpp.o
[ 54%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/ColorUtil.cpp.o
[ 54%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/ENetUtil.cpp.o
[ 55%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/FileSearch.cpp.o
/home/erich/jogos/gamecube/dois/dolphin-emu/Source/Core/Common/FileSearch.cpp:6:2: error: #error <regex> is broken in GCC < 4.9; please upgrade
#error <regex> is broken in GCC < 4.9; please upgrade
^
/home/erich/jogos/gamecube/dois/dolphin-emu/Source/Core/Common/FileSearch.cpp: In function ‘std::vector<std::basic_string<char> > DoFileSearch(const std::vector<std::basic_string<char> >&, const std::vector<std::basic_string<char> >&, bool)’:
/home/erich/jogos/gamecube/dois/dolphin-emu/Source/Core/Common/FileSearch.cpp:48:83: error: no matching function for call to ‘regex_replace(const std::basic_string<char>&, std::regex, const char [3])’
regex_str += std::regex_replace(std::regex_replace(str, std::regex("\\."), "\\."), std::regex("\\*"), ".*");
^
/home/erich/jogos/gamecube/dois/dolphin-emu/Source/Core/Common/FileSearch.cpp:48:83: note: candidates are:
In file included from /usr/include/c++/4.8/regex:62:0,
from /home/erich/jogos/gamecube/dois/dolphin-emu/Source/Core/Common/FileSearch.cpp:11:
/usr/include/c++/4.8/bits/regex.h:2162:5: note: template<class _Out_iter, class _Bi_iter, class _Rx_traits, class _Ch_type> _Out_iter std::regex_replace(_Out_iter, _Bi_iter, _Bi_iter, const std::basic_regex<_Ch_type, _Rx_traits>&, const std::basic_string<_Ch_type>&, std::regex_constants::match_flag_type)
regex_replace(_Out_iter __out, _Bi_iter __first, _Bi_iter __last,
^
/usr/include/c++/4.8/bits/regex.h:2162:5: note: template argument deduction/substitution failed:
/home/erich/jogos/gamecube/dois/dolphin-emu/Source/Core/Common/FileSearch.cpp:48:83: note: deduced conflicting types for parameter ‘_Bi_iter’ (‘std::basic_regex<char>’ and ‘const char*’)
regex_str += std::regex_replace(std::regex_replace(str, std::regex("\\."), "\\."), std::regex("\\*"), ".*");
^
In file included from /usr/include/c++/4.8/regex:62:0,
from /home/erich/jogos/gamecube/dois/dolphin-emu/Source/Core/Common/FileSearch.cpp:11:
/usr/include/c++/4.8/bits/regex.h:2182:5: note: template<class _Rx_traits, class _Ch_type> std::basic_string<_Ch_type> std::regex_replace(const std::basic_string<_Ch_type>&, const std::basic_regex<_Ch_type, _Rx_traits>&, const std::basic_string<_Ch_type>&, std::regex_constants::match_flag_type)
regex_replace(const basic_string<_Ch_type>& __s,
^
/usr/include/c++/4.8/bits/regex.h:2182:5: note: template argument deduction/substitution failed:
/home/erich/jogos/gamecube/dois/dolphin-emu/Source/Core/Common/FileSearch.cpp:48:83: note: mismatched types ‘const std::basic_string<_Ch_type>’ and ‘const char [3]’
regex_str += std::regex_replace(std::regex_replace(str, std::regex("\\."), "\\."), std::regex("\\*"), ".*");
^
make[2]: ** [Source/Core/Common/CMakeFiles/common.dir/FileSearch.cpp.o] Erro 1
make[1]: ** [Source/Core/Common/CMakeFiles/common.dir/all] Erro 2
make: ** [all] Erro 2
erich@erich-MW-G31T-M7:~/jogos/gamecube/dois/dolphin-emu/Build$



  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts