Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALL_BUILD not generating .lib file #160

Open
Clavotro opened this issue Nov 13, 2016 · 8 comments
Open

ALL_BUILD not generating .lib file #160

Clavotro opened this issue Nov 13, 2016 · 8 comments

Comments

@Clavotro
Copy link

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

@alecthomas
Copy link
Owner

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.

@Clavotro
Copy link
Author

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

@iamPHEN
Copy link
Contributor

iamPHEN commented Nov 21, 2016

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.

@mattiascibien
Copy link

I had the same problem with miguelmartin75/anax#78 and it seems to me that it is releated to the fact that there a not dllexports.

@roig
Copy link
Contributor

roig commented Jan 16, 2017

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.

@asmw
Copy link

asmw commented Apr 1, 2017

Maybe you can make use of #186

@BryanTriana
Copy link

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

@morphogencc
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants