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

project generator error with package #168

Closed
xdray opened this issue Apr 16, 2018 · 5 comments
Closed

project generator error with package #168

xdray opened this issue Apr 16, 2018 · 5 comments
Milestone

Comments

@xdray
Copy link

xdray commented Apr 16, 2018

i complied GLFW by myself. That's right when i complie my project.

PS E:\Projects\Mini> xmake f -p windows -a x64 -m release -o e:\Projects\Mini/build
checking for the Microsoft Visual Studio (x64) version ... 2017
checking for the GLFW ... ok
PS E:\Projects\Mini> xmake -w
[100%]: linking.release Editor.exe
PS E:\Projects\Mini> xmake f -p windows -a x86 -m release -o e:\Projects\Mini/build
checking for the Microsoft Visual Studio (x86) version ... 2017
checking for the GLFW ... ok
PS E:\Projects\Mini> xmake -w
[100%]: linking.release Editor.exe

But, that's error when i generate VS2017 project.

PS E:\Projects\Mini> xmake project -k vs2017 -m "release" -v
configure
{
    arch = x86
,   ld = link.exe
,   ccache = true
,   cxx = cl.exe
,   mode = release
,   plat = windows
,   GLFW = true
,   ar = link.exe -lib
,   kind = static
,   buildir = build
,   vs = 2017
,   host = windows
,   cc = cl.exe
}

checking for the release.x86 ...
checking for the release.x64 ...
checking for the c++ includes GLFW/glfw3.h ... no
checking for the c++ links glfw3, kernel32, user32, gdi32, shell32 ... no
check error: C:\Users\XIANGJ~1\AppData\Local\Temp\.xmake\_53ABA5B88135F343B72F58D5E658797F.o : fatal error LNK1112: 模块计算机类型“x64”与目标计算机类型“x86”冲突

checking for the c++ links glfw3, kernel32, user32, gdi32, shell32 ... no
check error: C:\Users\XIANGJ~1\AppData\Local\Temp\.xmake\_284CF7B041A4A74F923FD84007A158F4.o : fatal error LNK1112: 模块计算机类型“x64”与目标计算机类型“x86”冲突

checking for the GLFW ... no
create ok!

someone can help me?

@waruqi
Copy link
Member

waruqi commented Apr 17, 2018

Please run xmake f -c to clear cache config files firstly and try it again. If fails, you can provide a demo project for me to debug.

@xdray
Copy link
Author

xdray commented Apr 20, 2018

thank you, waruqi.

https://github.com/xdray/xmakedemo

This is my demo project, and it complied correctly in X86 or X64 mode, but it cannot find GLFW library when generate VS2107 project.

Is something wrong with my xmake.lua or xmake.lua of GLFW?

@waruqi
Copy link
Member

waruqi commented Apr 20, 2018

Ok, I will try it in these days. Please wait some times.

Thanks.

@waruqi
Copy link
Member

waruqi commented Apr 20, 2018

You can download the development version xmake-v2.2.1-dev and try it again. I have already fixed this problem.

@waruqi waruqi added this to the 2.2.1 milestone Apr 20, 2018
@xdray
Copy link
Author

xdray commented Apr 22, 2018

thank you. xmake-v2.2.1-dev works

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

No branches or pull requests

2 participants