librelist archives

« back to archive

Calling Entity::destroy() on MinGW, EntityDestroyedEvent not emitted

Calling Entity::destroy() on MinGW, EntityDestroyedEvent not emitted

From:
Robin Jung
Date:
2015-07-16 @ 17:31
<html><head></head><body><div style="font-family: Verdana;font-size: 
12.0px;"><div>
<div style="font-family: Verdana;font-size: 12.0px;">
<div>Hello,</div>

<div> </div>

<div>I have been using EntityX in my personal project and so far it had 
been working fine. Unfortunatly I have ran into a little trouble and I am 
not sure how to proceed.</div>

<div> </div>

<div>I am trying to destroy an entity by calling its `destroy()` 
method. The call compiles fine, and no error is generated at runtime, yet 
the entity nevers seems to be destroyed(breakpoints on 
`Entity.h:537`), nor are the respective events being emitted. I 
have played around with the debugger it looks like it just skips the code 
on `Entity.cc:26` entirely.</div>

<div> </div>

<div>It seems an aweful lot like issue #28 on GitHub(<a 
href="https://3c-lxa.mail.com/mail/client/dereferrer?redirectUrl=https%3A%2F%2Fgithub.com%2Falecthomas%2Fentityx%2Fissues%2F28"
target="_blank">https://github.com/alecthomas/entityx/issues/28</a>) where
the proposed solution is to turn off 
`-fvisibility-inlines-hidden`. I am building EntityX using the 
"MinGW Makefules" templates in CMake and can't find this 
flag anywhere so I am assuming it is already turned off?</div>

<div> </div>

<div>I have also tried compiling in debug mode and release mode as well as
specifying "-O0" as a flag to turn off optimizations, but to no 
avail.</div>

<div> </div>

<div>In order to eliminate  me just using it wrong I have also 
compiled my code under Fedora Linux using the default options. Everything 
seems to work fine under linux, so it must be something with my EntityX 
compilation under Window, yet I can't seem to be able to find 
what.</div>

<div> </div>

<div>------------------</div>

<div> </div>

<div>I used the following (simplified) steps the build and use EntityX in 
my project:</div>

<div> </div>

<div>1. Generate MinGW Makefiles using CMake</div>

<div>2. $ mingw32-make</div>

<div>3. $ mingw32-make install</div>

<div>4. find_package(EntityX REQUIRED)</div>

<div>5. include_directories(${ENTITYX_INCLUDE_DIR}) (points to 
"C:/Program Files (x86)/EntityX/include")</div>

<div>6. target_link_libraries(client ${ENTITYX_LIBRARY}) (points to 
"C:/Program Files (x86)/EntityX/lib/libentityx.dll.a")</div>

<div>7. Copy "libentity.dll" in cmake build directory to my own 
build directory</div>
</div>
</div></div></body></html>

Re: [entityx] Calling Entity::destroy() on MinGW, EntityDestroyedEvent not emitted

From:
Alec Thomas
Date:
2015-07-16 @ 18:24
Your email came through as HTML and is quite difficult to read. Can you
re-send it?

On Thu, Jul 16, 2015 at 1:31 PM, Robin Jung <robin8@cyber-wizard.com> wrote:

> <html><head></head><body><div style="font-family: Verdana;font-size:
> 12.0px;"><div>
> <div style="font-family: Verdana;font-size: 12.0px;">
> <div>Hello,</div>
>
> <div> </div>
>
> <div>I have been using EntityX in my personal project and so far it had
> been working fine. Unfortunatly I have ran into a little trouble and I am
> not sure how to proceed.</div>
>
> <div> </div>
>
> <div>I am trying to destroy an entity by calling its `destroy()`
> method. The call compiles fine, and no error is generated at runtime, yet
> the entity nevers seems to be destroyed(breakpoints on
> `Entity.h:537`), nor are the respective events being emitted. I
> have played around with the debugger it looks like it just skips the code
> on `Entity.cc:26` entirely.</div>
>
> <div> </div>
>
> <div>It seems an aweful lot like issue #28 on GitHub(<a href="
> 
https://3c-lxa.mail.com/mail/client/dereferrer?redirectUrl=https%3A%2F%2Fgithub.com%2Falecthomas%2Fentityx%2Fissues%2F28"
> target="_blank">https://github.com/alecthomas/entityx/issues/28</a>)
> where the proposed solution is to turn off
> `-fvisibility-inlines-hidden`. I am building EntityX using the
> "MinGW Makefules" templates in CMake and can't find this flag
> anywhere so I am assuming it is already turned off?</div>
>
> <div> </div>
>
> <div>I have also tried compiling in debug mode and release mode as well as
> specifying "-O0" as a flag to turn off optimizations, but to no
> avail.</div>
>
> <div> </div>
>
> <div>In order to eliminate  me just using it wrong I have also
> compiled my code under Fedora Linux using the default options. Everything
> seems to work fine under linux, so it must be something with my EntityX
> compilation under Window, yet I can't seem to be able to find
> what.</div>
>
> <div> </div>
>
> <div>------------------</div>
>
> <div> </div>
>
> <div>I used the following (simplified) steps the build and use EntityX in
> my project:</div>
>
> <div> </div>
>
> <div>1. Generate MinGW Makefiles using CMake</div>
>
> <div>2. $ mingw32-make</div>
>
> <div>3. $ mingw32-make install</div>
>
> <div>4. find_package(EntityX REQUIRED)</div>
>
> <div>5. include_directories(${ENTITYX_INCLUDE_DIR}) (points to
> "C:/Program Files (x86)/EntityX/include")</div>
>
> <div>6. target_link_libraries(client ${ENTITYX_LIBRARY}) (points to
> "C:/Program Files (x86)/EntityX/lib/libentityx.dll.a")</div>
>
> <div>7. Copy "libentity.dll" in cmake build directory to my own
> build directory</div>
> </div>
> </div></div></body></html>
>

Re: [entityx] Calling Entity::destroy() on MinGW, EntityDestroyedEvent not emitted

From:
Robin Jung
Date:
2015-07-16 @ 19:10
<html><head></head><body><div style="font-family: Verdana;font-size: 
12.0px;"><div>Hello,<br/>
 <br/>
I have been using EntityX in my personal project and so far it had been 
working<br/>
fine. Unfortunatly I have ran into a little trouble and I am not sure how to<br/>
proceed.<br/>
 <br/>
I am trying to destroy an entity by calling its `destroy()` 
method. The call<br/>
compiles fine, and no error is generated at runtime, yet the entity never 
seems<br/>
to be destroyed(breakpoints on `Entity.h:537`), nor are the 
respective events<br/>
being emitted. I have played around with the debugger it looks like it just<br/>
skips the code on `Entity.cc:26` entirely.<br/>
 <br/>
It seems an aweful lot like issue #28 on 
GitHub(https://github.com/alecthomas/entityx/issues/28)<br/>
where the proposed solution is to turn off 
`-fvisibility-inlines-hidden`. I am<br/>
building EntityX using the "MinGW Makefules" templates in CMake 
and can't find<br/>
this flag anywhere so I am assuming it is already turned off?<br/>
 <br/>
I have also tried compiling in debug mode and release mode as well as 
specifying<br/>
"-O0" as a flag to turn off optimizations, but to no avail.<br/>
 <br/>
In order to eliminate  me just using it wrong I have also compiled my
code<br/>
under Fedora Linux using the default options. Everything seems to work fine<br/>
under linux, so it must be something with my EntityX compilation under 
Window,<br/>
yet I can't seem to be able to find what.<br/>
 <br/>

-------------------------------------------------------------------------------<br/>
 <br/>
I used the following (simplified) steps the build and use EntityX in my 
project:<br/>
 <br/>
1. Generate MinGW Makefiles using CMake<br/>
2. $ mingw32-make<br/>
3. $ mingw32-make install<br/>
4. find_package(EntityX REQUIRED)<br/>
5. include_directories(${ENTITYX_INCLUDE_DIR}) (points to 
"C:/Program Files (x86)/EntityX/include")<br/>
6. target_link_libraries(client ${ENTITYX_LIBRARY}) (points to 
"C:/Program Files (x86)/EntityX/lib/libentityx.dll.a")<br/>
7. Copy "libentity.dll" in cmake build directory to my own build
directory
<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 
10px; border-left:2px solid #C3D9E5; word-wrap: break-word; 
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Sent:</b> Thursday, July 16, 2015 
at 8:24 PM<br/>
<b>From:</b> "Alec Thomas" <alec@swapoff.org><br/>
<b>To:</b> entityx@librelist.com<br/>
<b>Subject:</b> Re: [entityx] Calling Entity::destroy() on MinGW, 
EntityDestroyedEvent not emitted</div>

<div name="quoted-content">
<div>Your email came through as HTML and is quite difficult to read. Can 
you re-send it?</div>

<div class="gmail_extra"> 
<div class="gmail_quote">On Thu, Jul 16, 2015 at 1:31 PM, Robin Jung 
<span><<a href="robin8@cyber-wizard.com" 
target="_parent">robin8@cyber-wizard.com</a>></span> wrote:

<blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 
1.0px rgb(204,204,204) solid;padding-left: 
1.0ex;"><html><head></head><body><div 
style="font-family: Verdana;font-size: 
12.0px;"><div><br/>
<div style="font-family: Verdana;font-size: 12.0px;"><br/>
<div>Hello,</div><br/>
<br/>
<div>&nbsp;</div><br/>
<br/>
<div>I have been using EntityX in my personal project and so far it 
had been working fine. Unfortunatly I have ran into a little trouble and I
am not sure how to proceed.</div><br/>
<br/>
<div>&nbsp;</div><br/>
<br/>
<div>I am trying to destroy an entity by calling its 
&#96;destroy()&#96; method. The call compiles fine, and no error 
is generated at runtime, yet the entity nevers seems to be 
destroyed(breakpoints on &#96;Entity.h:537&#96;), nor are the 
respective events being emitted. I have played around with the debugger it
looks like it just skips the code on &#96;Entity.cc:26&#96; 
entirely.</div><br/>
<br/>
<div>&nbsp;</div><br/>
<br/>
<div>It seems an aweful lot like issue #28 on GitHub(<a 
href="<a 
href="https://3c-lxa.mail.com/mail/client/dereferrer?redirectUrl=https%3A%2F%2Fgithub.com%2Falecthomas%2Fentityx%2Fissues%2F28"

target="_blank">https://3c-lxa.mail.com/mail/client/dereferrer?redirectUrl=https%3A%2F%2Fgithub.com%2Falecthomas%2Fentityx%2Fissues%2F28</a>"
target="_blank"><a 
href="https://github.com/alecthomas/entityx/issues/28" 
target="_blank">https://github.com/alecthomas/entityx/issues/28</a></a>)
where the proposed solution is to turn off 
&#96;-fvisibility-inlines-hidden&#96;. I am building EntityX using
the &quot;MinGW Makefules&quot; templates in CMake and 
can&#39;t find this flag anywhere so I am assuming it is already 
turned off?</div><br/>
<br/>
<div>&nbsp;</div><br/>
<br/>
<div>I have also tried compiling in debug mode and release mode as 
well as specifying &quot;-O0&quot; as a flag to turn off 
optimizations, but to no avail.</div><br/>
<br/>
<div>&nbsp;</div><br/>
<br/>
<div>In order to eliminate&nbsp; me just using it wrong I have 
also compiled my code under Fedora Linux using the default options. 
Everything seems to work fine under linux, so it must be something with my
EntityX compilation under Window, yet I can&#39;t seem to be able to 
find what.</div><br/>
<br/>
<div>&nbsp;</div><br/>
<br/>
<div>------------------</div><br/>
<br/>
<div>&nbsp;</div><br/>
<br/>
<div>I used the following (simplified) steps the build and use 
EntityX in my project:</div><br/>
<br/>
<div>&nbsp;</div><br/>
<br/>
<div>1. Generate MinGW Makefiles using CMake</div><br/>
<br/>
<div>2. &#36; mingw32-make</div><br/>
<br/>
<div>3. &#36; mingw32-make install</div><br/>
<br/>
<div>4. find_package(EntityX REQUIRED)</div><br/>
<br/>
<div>5. include_directories(&#36;{ENTITYX_INCLUDE_DIR}) (points 
to &quot;C:/Program Files 
(x86)/EntityX/include&quot;)</div><br/>
<br/>
<div>6. target_link_libraries(client &#36;{ENTITYX_LIBRARY}) 
(points to &quot;C:/Program Files 
(x86)/EntityX/lib/libentityx.dll.a&quot;)</div><br/>
<br/>
<div>7. Copy &quot;libentity.dll&quot; in cmake build 
directory to my own build directory</div><br/>
</div><br/>
</div></div></body></html></blockquote>
</div>
</div>
</div>
</div>
</div>
</div></div></body></html>

Re: [entityx] Calling Entity::destroy() on MinGW, EntityDestroyedEvent not emitted

From:
Robin Jung
Date:
2015-07-16 @ 19:12
Sorry, for making such a mess. I'm going to try yet again.

-----

Hello,
 
I have been using EntityX in my personal project and so far it had been working
fine. Unfortunatly I have ran into a little trouble and I am not sure how to
proceed.
 
I am trying to destroy an entity by calling its `destroy()` method. The call
compiles fine, and no error is generated at runtime, yet the entity never seems
to be destroyed(breakpoints on `Entity.h:537`), nor are the respective events
being emitted. I have played around with the debugger it looks like it just
skips the code on `Entity.cc:26` entirely.
 
It seems an aweful lot like issue #28 on 
GitHub(https://github.com/alecthomas/entityx/issues/28)
where the proposed solution is to turn off `-fvisibility-inlines-hidden`. I am
building EntityX using the "MinGW Makefules" templates in CMake and can't find
this flag anywhere so I am assuming it is already turned off?
 
I have also tried compiling in debug mode and release mode as well as specifying
"-O0" as a flag to turn off optimizations, but to no avail.
 
In order to eliminate  me just using it wrong I have also compiled my code
under Fedora Linux using the default options. Everything seems to work fine
under linux, so it must be something with my EntityX compilation under Window,
yet I can't seem to be able to find what.
 
-------------------------------------------------------------------------------
 
I used the following (simplified) steps the build and use EntityX in my project:
 
1. Generate MinGW Makefiles using CMake
2. $ mingw32-make
3. $ mingw32-make install
4. find_package(EntityX REQUIRED)
5. include_directories(${ENTITYX_INCLUDE_DIR}) (points to "C:/Program 
Files (x86)/EntityX/include")
6. target_link_libraries(client ${ENTITYX_LIBRARY}) (points to "C:/Program
Files (x86)/EntityX/lib/libentityx.dll.a")
7. Copy "libentity.dll" in cmake build directory to my own build directory
 
 

Sent: Thursday, July 16, 2015 at 9:10 PM
From: "Robin Jung" <robin8@cyber-wizard.com>
To: entityx@librelist.com
Subject: Re: [entityx] Calling Entity::destroy() on MinGW, 
EntityDestroyedEvent not emitted
<html><head></head><body><div style="font-family: Verdana;font-size: 
12.0px;"><div>Hello,<br/>
 <br/>
I have been using EntityX in my personal project and so far it had been 
working<br/>
fine. Unfortunatly I have ran into a little trouble and I am not sure how to<br/>
proceed.<br/>
 <br/>
I am trying to destroy an entity by calling its `destroy()` 
method. The call<br/>
compiles fine, and no error is generated at runtime, yet the entity never 
seems<br/>
to be destroyed(breakpoints on `Entity.h:537`), nor are the 
respective events<br/>
being emitted. I have played around with the debugger it looks like it just<br/>
skips the code on `Entity.cc:26` entirely.<br/>
 <br/>
It seems an aweful lot like issue #28 on 
GitHub(https://github.com/alecthomas/entityx/issues/28)<br/>
where the proposed solution is to turn off 
`-fvisibility-inlines-hidden`. I am<br/>
building EntityX using the "MinGW Makefules" templates in CMake 
and can't find<br/>
this flag anywhere so I am assuming it is already turned off?<br/>
 <br/>
I have also tried compiling in debug mode and release mode as well as 
specifying<br/>
"-O0" as a flag to turn off optimizations, but to no avail.<br/>
 <br/>
In order to eliminate  me just using it wrong I have also compiled my
code<br/>
under Fedora Linux using the default options. Everything seems to work fine<br/>
under linux, so it must be something with my EntityX compilation under 
Window,<br/>
yet I can't seem to be able to find what.<br/>
 <br/>

-------------------------------------------------------------------------------<br/>
 <br/>
I used the following (simplified) steps the build and use EntityX in my 
project:<br/>
 <br/>
1. Generate MinGW Makefiles using CMake<br/>
2. $ mingw32-make<br/>
3. $ mingw32-make install<br/>
4. find_package(EntityX REQUIRED)<br/>
5. include_directories(${ENTITYX_INCLUDE_DIR}) (points to 
"C:/Program Files (x86)/EntityX/include")<br/>
6. target_link_libraries(client ${ENTITYX_LIBRARY}) (points to 
"C:/Program Files (x86)/EntityX/lib/libentityx.dll.a")<br/>
7. Copy "libentity.dll" in cmake build directory to my own build
directory
<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 
10px; border-left:2px solid #C3D9E5; word-wrap: break-word; 
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Sent:</b> Thursday, July 16, 2015 
at 8:24 PM<br/>
<b>From:</b> "Alec Thomas" <alec@swapoff.org><br/>
<b>To:</b> entityx@librelist.com<br/>
<b>Subject:</b> Re: [entityx] Calling Entity::destroy() on MinGW, 
EntityDestroyedEvent not emitted</div>

<div name="quoted-content">
<div>Your email came through as HTML and is quite difficult to read. Can 
you re-send it?</div>

<div class="gmail_extra"> 
<div class="gmail_quote">On Thu, Jul 16, 2015 at 1:31 PM, Robin Jung 
<span><<a href="robin8@cyber-wizard.com" 
target="_parent">robin8@cyber-wizard.com</a>></span> wrote:

<blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 
1.0px rgb(204,204,204) solid;padding-left: 
1.0ex;"><html><head></head><body><div 
style="font-family: Verdana;font-size: 
12.0px;"><div><br/>
<div style="font-family: Verdana;font-size: 12.0px;"><br/>
<div>Hello,</div><br/>
<br/>
<div>&nbsp;</div><br/>
<br/>
<div>I have been using EntityX in my personal project and so far it 
had been working fine. Unfortunatly I have ran into a little trouble and I
am not sure how to proceed.</div><br/>
<br/>
<div>&nbsp;</div><br/>
<br/>
<div>I am trying to destroy an entity by calling its 
&#96;destroy()&#96; method. The call compiles fine, and no error 
is generated at runtime, yet the entity nevers seems to be 
destroyed(breakpoints on &#96;Entity.h:537&#96;), nor are the 
respective events being emitted. I have played around with the debugger it
looks like it just skips the code on &#96;Entity.cc:26&#96; 
entirely.</div><br/>
<br/>
<div>&nbsp;</div><br/>
<br/>
<div>It seems an aweful lot like issue #28 on GitHub(<a 
href="<a 
href="https://3c-lxa.mail.com/mail/client/dereferrer?redirectUrl=https%3A%2F%2Fgithub.com%2Falecthomas%2Fentityx%2Fissues%2F28"

target="_blank">https://3c-lxa.mail.com/mail/client/dereferrer?redirectUrl=https%3A%2F%2Fgithub.com%2Falecthomas%2Fentityx%2Fissues%2F28[https://3c-lxa.mail.com/mail/client/dereferrer?redirectUrl=https%3A%2F%2Fgithub.com%2Falecthomas%2Fentityx%2Fissues%2F28]</a>"
target="_blank"><a 
href="https://github.com/alecthomas/entityx/issues/28" 
target="_blank">https://github.com/alecthomas/entityx/issues/28[https://github.com/alecthomas/entityx/issues/28]</a></a>)
where the proposed solution is to turn off 
&#96;-fvisibility-inlines-hidden&#96;. I am building EntityX using
the &quot;MinGW Makefules&quot; templates in CMake and 
can&#39;t find this flag anywhere so I am assuming it is already 
turned off?</div><br/>
<br/>
<div>&nbsp;</div><br/>
<br/>
<div>I have also tried compiling in debug mode and release mode as 
well as specifying &quot;-O0&quot; as a flag to turn off 
optimizations, but to no avail.</div><br/>
<br/>
<div>&nbsp;</div><br/>
<br/>
<div>In order to eliminate&nbsp; me just using it wrong I have 
also compiled my code under Fedora Linux using the default options. 
Everything seems to work fine under linux, so it must be something with my
EntityX compilation under Window, yet I can&#39;t seem to be able to 
find what.</div><br/>
<br/>
<div>&nbsp;</div><br/>
<br/>
<div>------------------</div><br/>
<br/>
<div>&nbsp;</div><br/>
<br/>
<div>I used the following (simplified) steps the build and use 
EntityX in my project:</div><br/>
<br/>
<div>&nbsp;</div><br/>
<br/>
<div>1. Generate MinGW Makefiles using CMake</div><br/>
<br/>
<div>2. &#36; mingw32-make</div><br/>
<br/>
<div>3. &#36; mingw32-make install</div><br/>
<br/>
<div>4. find_package(EntityX REQUIRED)</div><br/>
<br/>
<div>5. include_directories(&#36;{ENTITYX_INCLUDE_DIR}) (points 
to &quot;C:/Program Files 
(x86)/EntityX/include&quot;)</div><br/>
<br/>
<div>6. target_link_libraries(client &#36;{ENTITYX_LIBRARY}) 
(points to &quot;C:/Program Files 
(x86)/EntityX/lib/libentityx.dll.a&quot;)</div><br/>
<br/>
<div>7. Copy &quot;libentity.dll&quot; in cmake build 
directory to my own build directory</div><br/>
</div><br/>
</div></div></body></html></blockquote>
</div>
</div>
</div>
</div>
</div>
</div></div></body></html>

Re: [entityx] Calling Entity::destroy() on MinGW, EntityDestroyedEvent not emitted

From:
Alec Thomas
Date:
2015-07-16 @ 19:21


On 16 July 2015 at 3:12:15 pm, Robin Jung (robin8@cyber-wizard.com) wrote:

Sorry, for making such a mess. I'm going to try yet again. 

----- 

Hello, 

I have been using EntityX in my personal project and so far it had been working 
fine. Unfortunatly I have ran into a little trouble and I am not sure how to 
proceed. 

I am trying to destroy an entity by calling its `destroy()` method. The call 
compiles fine, and no error is generated at runtime, yet the entity never seems 
to be destroyed(breakpoints on `Entity.h:537`), nor are the respective events 
being emitted. I have played around with the debugger it looks like it just 
skips the code on `Entity.cc:26` entirely. 

It seems an aweful lot like issue #28 on 
GitHub(https://github.com/alecthomas/entityx/issues/28) 
where the proposed solution is to turn off `-fvisibility-inlines-hidden`. I am 
building EntityX using the "MinGW Makefules" templates in CMake and can't find 
this flag anywhere so I am assuming it is already turned off? 
I’m pretty sure you will need to explicitly disable the optimisation with 
-fno-visibility-inlines-hidden

Try that and let me know if it helps.



I have also tried compiling in debug mode and release mode as well as specifying 
"-O0" as a flag to turn off optimizations, but to no avail. 

In order to eliminate me just using it wrong I have also compiled my code 
under Fedora Linux using the default options. Everything seems to work fine 
under linux, so it must be something with my EntityX compilation under Window, 
yet I can't seem to be able to find what. 

------------------------------------------------------------------------------- 

I used the following (simplified) steps the build and use EntityX in my project: 

1. Generate MinGW Makefiles using CMake 
2. $ mingw32-make 
3. $ mingw32-make install 
4. find_package(EntityX REQUIRED) 
5. include_directories(${ENTITYX_INCLUDE_DIR}) (points to "C:/Program 
Files (x86)/EntityX/include") 
6. target_link_libraries(client ${ENTITYX_LIBRARY}) (points to "C:/Program
Files (x86)/EntityX/lib/libentityx.dll.a") 
7. Copy "libentity.dll" in cmake build directory to my own build directory 
  
  

Sent: Thursday, July 16, 2015 at 9:10 PM 
From: "Robin Jung" <robin8@cyber-wizard.com> 
To: entityx@librelist.com 
Subject: Re: [entityx] Calling Entity::destroy() on MinGW, 
EntityDestroyedEvent not emitted 
<html><head></head><body><div style="font-family: Verdana;font-size: 
12.0px;"><div>Hello,<br/> 
 <br/> 
I have been using EntityX in my personal project and so far it had been 
working<br/> 
fine. Unfortunatly I have ran into a little trouble and I am not sure how to<br/> 
proceed.<br/> 
 <br/> 
I am trying to destroy an entity by calling its `destroy()` 
method. The call<br/> 
compiles fine, and no error is generated at runtime, yet the entity never 
seems<br/> 
to be destroyed(breakpoints on `Entity.h:537`), nor are the 
respective events<br/> 
being emitted. I have played around with the debugger it looks like it just<br/> 
skips the code on `Entity.cc:26` entirely.<br/> 
 <br/> 
It seems an aweful lot like issue #28 on 
GitHub(https://github.com/alecthomas/entityx/issues/28)<br/> 
where the proposed solution is to turn off 
`-fvisibility-inlines-hidden`. I am<br/> 
building EntityX using the "MinGW Makefules" templates in CMake 
and can't find<br/> 
this flag anywhere so I am assuming it is already turned off?<br/> 
 <br/> 
I have also tried compiling in debug mode and release mode as well as 
specifying<br/> 
"-O0" as a flag to turn off optimizations, but to no avail.<br/> 
 <br/> 
In order to eliminate  me just using it wrong I have also compiled my
code<br/> 
under Fedora Linux using the default options. Everything seems to work fine<br/> 
under linux, so it must be something with my EntityX compilation under 
Window,<br/> 
yet I can't seem to be able to find what.<br/> 
 <br/> 

-------------------------------------------------------------------------------<br/> 
 <br/> 
I used the following (simplified) steps the build and use EntityX in my 
project:<br/> 
 <br/> 
1. Generate MinGW Makefiles using CMake<br/> 
2. $ mingw32-make<br/> 
3. $ mingw32-make install<br/> 
4. find_package(EntityX REQUIRED)<br/> 
5. include_directories(${ENTITYX_INCLUDE_DIR}) (points to 
"C:/Program Files (x86)/EntityX/include")<br/> 
6. target_link_libraries(client ${ENTITYX_LIBRARY}) (points to 
"C:/Program Files (x86)/EntityX/lib/libentityx.dll.a")<br/> 
7. Copy "libentity.dll" in cmake build directory to my own build
directory 
<div>  
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 
10px; border-left:2px solid #C3D9E5; word-wrap: break-word; 
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"> 
<div style="margin:0 0 10px 0;"><b>Sent:</b> Thursday, July 16, 2015 
at 8:24 PM<br/> 
<b>From:</b> "Alec Thomas" <alec@swapoff.org><br/> 
<b>To:</b> entityx@librelist.com<br/> 
<b>Subject:</b> Re: [entityx] Calling Entity::destroy() on MinGW, 
EntityDestroyedEvent not emitted</div> 

<div name="quoted-content"> 
<div>Your email came through as HTML and is quite difficult to read. Can 
you re-send it?</div> 

<div class="gmail_extra">  
<div class="gmail_quote">On Thu, Jul 16, 2015 at 1:31 PM, Robin Jung 
<span><<a href="robin8@cyber-wizard.com" 
target="_parent">robin8@cyber-wizard.com</a>></span> wrote: 

<blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 
1.0px rgb(204,204,204) solid;padding-left: 
1.0ex;"><html><head></head><body><div 
style="font-family: Verdana;font-size: 
12.0px;"><div><br/> 
<div style="font-family: Verdana;font-size: 12.0px;"><br/> 
<div>Hello,</div><br/> 
<br/> 
<div>&nbsp;</div><br/> 
<br/> 
<div>I have been using EntityX in my personal project and so far it 
had been working fine. Unfortunatly I have ran into a little trouble and I
am not sure how to proceed.</div><br/> 
<br/> 
<div>&nbsp;</div><br/> 
<br/> 
<div>I am trying to destroy an entity by calling its 
&#96;destroy()&#96; method. The call compiles fine, and no error 
is generated at runtime, yet the entity nevers seems to be 
destroyed(breakpoints on &#96;Entity.h:537&#96;), nor are the 
respective events being emitted. I have played around with the debugger it
looks like it just skips the code on &#96;Entity.cc:26&#96; 
entirely.</div><br/> 
<br/> 
<div>&nbsp;</div><br/> 
<br/> 
<div>It seems an aweful lot like issue #28 on GitHub(<a 
href="<a 
href="https://3c-lxa.mail.com/mail/client/dereferrer?redirectUrl=https%3A%2F%2Fgithub.com%2Falecthomas%2Fentityx%2Fissues%2F28"

target="_blank">https://3c-lxa.mail.com/mail/client/dereferrer?redirectUrl=https%3A%2F%2Fgithub.com%2Falecthomas%2Fentityx%2Fissues%2F28[https://3c-lxa.mail.com/mail/client/dereferrer?redirectUrl=https%3A%2F%2Fgithub.com%2Falecthomas%2Fentityx%2Fissues%2F28]</a>"
target="_blank"><a 
href="https://github.com/alecthomas/entityx/issues/28" 
target="_blank">https://github.com/alecthomas/entityx/issues/28[https://github.com/alecthomas/entityx/issues/28]</a></a>)
where the proposed solution is to turn off 
&#96;-fvisibility-inlines-hidden&#96;. I am building EntityX using
the &quot;MinGW Makefules&quot; templates in CMake and 
can&#39;t find this flag anywhere so I am assuming it is already 
turned off?</div><br/> 
<br/> 
<div>&nbsp;</div><br/> 
<br/> 
<div>I have also tried compiling in debug mode and release mode as 
well as specifying &quot;-O0&quot; as a flag to turn off 
optimizations, but to no avail.</div><br/> 
<br/> 
<div>&nbsp;</div><br/> 
<br/> 
<div>In order to eliminate&nbsp; me just using it wrong I have 
also compiled my code under Fedora Linux using the default options. 
Everything seems to work fine under linux, so it must be something with my
EntityX compilation under Window, yet I can&#39;t seem to be able to 
find what.</div><br/> 
<br/> 
<div>&nbsp;</div><br/> 
<br/> 
<div>------------------</div><br/> 
<br/> 
<div>&nbsp;</div><br/> 
<br/> 
<div>I used the following (simplified) steps the build and use 
EntityX in my project:</div><br/> 
<br/> 
<div>&nbsp;</div><br/> 
<br/> 
<div>1. Generate MinGW Makefiles using CMake</div><br/> 
<br/> 
<div>2. &#36; mingw32-make</div><br/> 
<br/> 
<div>3. &#36; mingw32-make install</div><br/> 
<br/> 
<div>4. find_package(EntityX REQUIRED)</div><br/> 
<br/> 
<div>5. include_directories(&#36;{ENTITYX_INCLUDE_DIR}) (points 
to &quot;C:/Program Files 
(x86)/EntityX/include&quot;)</div><br/> 
<br/> 
<div>6. target_link_libraries(client &#36;{ENTITYX_LIBRARY}) 
(points to &quot;C:/Program Files 
(x86)/EntityX/lib/libentityx.dll.a&quot;)</div><br/> 
<br/> 
<div>7. Copy &quot;libentity.dll&quot; in cmake build 
directory to my own build directory</div><br/> 
</div><br/> 
</div></div></body></html></blockquote> 
</div> 
</div> 
</div> 
</div> 
</div> 
</div></div></body></html>