Topic-icon ubuntu-16.04.1-desktop-amd64 compile mingw error

More
21 Sep 2016 10:40 - 21 Sep 2016 10:43 #33953 by sejeong
sejeong created the topic: ubuntu-16.04.1-desktop-amd64 compile mingw error
3. Within /opt/mingw, run
make gcc
make qt5
make boost
make curl
make libgsasl
make sdl_mixer
make tinyxml
make libircclient
make protobuf
(this takes quite some time)

i686-pc-mingw32-qmake-qt5 DEFINES+=BOOST_THREAD_USE_LIB porkerth.pro
To run after an error

* Error Message
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

ofstream
'o' was not declared in this scope

Including many errors to

please Tell us the solution.

Perhaps protobuf, boost....What version of error?

* please help......
The following user(s) said Thank You: Ghost__

Please Log in or Create an account to join the conversation.

More
21 Sep 2016 10:54 - 21 Sep 2016 11:02 #33954 by sejeong
sejeong replied.
*Add a error message

/PokerTH/src/third_party/qtsingleapplication/qtlocalpeer.cpp error: variable 'QDataStream ds' has initializer but incomplete type
QDataStream ds(&socket);

- undefined reference to 'boost::re_detail::raw_storage::resize(unsigned int)'
The following user(s) said Thank You: Ghost__

Please Log in or Create an account to join the conversation.

More
21 Sep 2016 14:28 #33955 by KYFHO
KYFHO replied.
Why are you not using the software center or package manager to install?
The following user(s) said Thank You: Ghost__

Please Log in or Create an account to join the conversation.

More
21 Sep 2016 16:41 - 21 Sep 2016 17:06 #33956 by tahr
tahr replied.

KYFHO wrote: Why are you not using the software center or package manager to install?


I think he/she's trying to compile a version for Windows: https://github.com/pokerth/pokerth/blob/stable/docs/build_mingw_windows.txt

Don't know what's the problem, since I compiled it for Linux, so I didn't need MXE.

@sejeong, can you attach full error list? Sometimes errors are hidden behind other errors.
Just a couple of comments:
  • Make sure Mingw compiler does NOT use c++11 (or c++0x) standard, by default. As far as I know, c++03 (or c++98) is required.
  • Make sure you cloned or downloaded stable version.
Regards,
tahr
The following user(s) said Thank You: KYFHO, Ghost__

Please Log in or Create an account to join the conversation.

More
22 Sep 2016 03:03 #33966 by sejeong
sejeong replied.
Thanks to you. Let's try what you have said.
The following user(s) said Thank You: Ghost__

Please Log in or Create an account to join the conversation.

More
22 Sep 2016 04:33 - 22 Sep 2016 04:37 #33967 by sejeong
sejeong replied.
* 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
ifstreaminputStream;

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 (__)
The following user(s) said Thank You: Ghost__

Please Log in or Create an account to join the conversation.

Champions of

PokerTH - live

The PokerTH spectator tool.

Member Login

 advert
NOTE! This site uses cookies and similar technologies.
Cookies make it easier for us to provide you with our services. With the usage of our services you permit us to use cookies.
More information

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/