entityx icon indicating copy to clipboard operation
entityx copied to clipboard

ALL_BUILD not generating .lib file

Open Clavotro opened this issue 8 years ago • 8 comments

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

Clavotro avatar Nov 13 '16 22:11 Clavotro

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.

alecthomas avatar Nov 13 '16 22:11 alecthomas

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...)

Clavotro avatar Nov 21 '16 03:11 Clavotro

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.

iamPHEN avatar Nov 21 '16 04:11 iamPHEN

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.

mattiascibien avatar Nov 29 '16 09:11 mattiascibien

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.

roig avatar Jan 16 '17 19:01 roig

Maybe you can make use of #186

asmw avatar Apr 01 '17 13:04 asmw

I am also having the same problem with the latest commit, how do you solve this problem?

BryanTriana avatar Jul 21 '18 01:07 BryanTriana

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?

morphogencc avatar Mar 06 '20 23:03 morphogencc