entityx
entityx copied to clipboard
ALL_BUILD not generating .lib file
Hello,
I used CMake to generate the Visual Studio 2015 EntityX.sln file. I then open the .sln file and build the ALL_BUILD project. At the end of the build process I get 7 Errors of 'cannot open file 'Debug\entityx-d.lib'. The Debug folder contains 'entityx-d.dll, entityx-d.ilk, entityx-d.pdb' only.
I am unsure of how to solve this problem, previously when I used entityx (early 2015) this did not happen.
Any help is appreciated.
Thanks
I don't know either, but I would suggest doing git log CMakeLists.txt
and revert each one until it works. Then we'll at least know which one is breaking your build.
Hi Alec, thanks for your response.
I built it with the commit on Dec 22, 2015 "Organize CMake generated projects into solution folders." and that worked (generated the lib)...
So somewhere between there and the latest one there is no .lib being generated (for me at least...)
I've narrowed it down to PR #142 , which mentions the removal of the .libs.
I'm unsure of suggest a fix though, as we either need to configure entityx to export symbols for tests to link correctly. I'm guessing users using ENTITY_BUILD_SHARED likely were linking with the the statically built .lib, and shipping with a .dll with the same symobls.
Work around is to reconfigure cmake with -DENTITYX_BUILD_SHARED=0.
I had the same problem with https://github.com/miguelmartin75/anax/issues/78 and it seems to me that it is releated to the fact that there a not dllexports.
Setting -DENTITYX_BUILD_SHARED=0 is not a workaround, it simply will build the static library. As I said in my PR #142, -DENTITYX_BUILD_SHARED=1 NEVER WORKED when you are using Windows, because there are not exports.
Maybe you can make use of #186
I am also having the same problem with the latest commit, how do you solve this problem?
Another Windows user here -- I just downloaded the repo and used CMake / VS2015 to compile it, and I'm receiving the same error. @asmw 's repo is 39 commits behind this one, so I'd rather find the solution to fix it... can anyone help summarize what the issue is?