- Posts: 11
- Thank you received: 11
sejeong wrote: * Add Error Message
$ export PATH="/opt/mingw/usr/bin:$PATH"
$ i686-pc-mingw32-qmake-qt5 DEFINES+=BOOST_THREAD_USE_LIB porkerth.pro
$ make release
afert error
/PokerTH-1.1.1-src/src/core/common/avatarmanager.cpp:64:9: error: reference to 'ifstream' is ambiguous
ifstream inputStream;
mingw/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/iosfwd:160:34: note:
typedef class std::basic_ofstream<char> std::ofstream
/PokerTH-1.1.1-src/src/core/common/avatarmanager.cpp:367:38: 'o' wasnot declared in this scope
if(!o.fail()){
please help (__)
Please Log in or Create an account to join the conversation.
sejeong wrote: /PokerTH-1.1.1-src/src/core/common/avatarmanager.cpp:64:9: error: reference to 'ifstream' is ambiguous
ifstreaminputStream;
struct AvatarFileState {
std::ifstream inputStream;
};
std::ofstream o(fileName.c_str(), ios_base::out | ios_base::binary | ios_base::trunc);
Please Log in or Create an account to join the conversation.
Starting with Boost 1.60.0 <boost/filesystem.hpp> includes <boost/filesystem/fstream.hpp>, which declares ifstream and ofstream types that make the unqualified names ifstream and ofstream ambiguous.
The names must be qualified to refer to the std versions.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Hi, sejeongsejeong wrote: - from ../PokerTH-1.1.1-src/src/net/common/chatcleanermanager.cpp:33:
../PokerTH-1.1.1-src/src/third_party/websocketpp/websocketpp/error.hpp:125:18: error: looser throw specifier for 'virtual const char* websocketpp::error::category::name() const'
char const * name() const _WEBSOCKETPP_NOEXCEPT_TOKEN_ {
Please Log in or Create an account to join the conversation.
#Install requirements for MXE... http://mxe.cc/#requirements
#For Debian and derivatives (such as Ubuntu)
sudo apt-get install \
autoconf automake autopoint bash bison bzip2 flex gettext\
git g++ gperf intltool libffi-dev libgdk-pixbuf2.0-dev \
libtool libltdl-dev libssl-dev libxml-parser-perl make \
openssl p7zip-full patch perl pkg-config python ruby scons \
sed unzip wget xz-utils
# On 64-bit Debian
sudo apt-get install g++-multilib libc6-dev-i386
# On Debian 8 or Ubuntu 14.10 (or later)
sudo apt-get install libtool-bin
#Download MXE and build necessary packages
cd /opt
git clone https://github.com/mxe/mxe.git mingw # ./mingw folder created
cd mingw
sudo make gcc
sudo make qt #takes a long time, over 1h
sudo make boost
sudo make curl
sudo make libgsasl
sudo make sdl_mixer
sudo make tinyxml
sudo make tinyxml2
sudo make libircclient
sudo make protobuf
# Download PTH from Github
# Choose any directory you like. I used: ~/git/windows
mkdir -p ~/git/windows
cd ~/git/windows
git clone http://github.com/pokerth/pokerth.git # ./pokerth folder created
cd pokerth
# switch to stable version
git checkout stable
# now command 'git branch' should output '* stable'
cd ~/git/windows/pokerth
export PATH=/opt/mingw/usr/bin:$PATH
# Compile. Command is slightly different from docum
i686-w64-mingw32.static-qmake-qt4 DEFINES+=BOOST_THREAD_USE_LIB pokerth.pro
make release
Please Log in or Create an account to join the conversation.
We use cookies to personalize content and ads to offer features for social media and analyze the number of hits on our website. We also provide information about your use of our website to our partner for social media, advertising and analysis on.
http://www.google.com/intl/de/policies/privacy/partners/