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

VS2019 x64编译器,编译出错,缺乏依赖库,主界面卡死等。。。 #46

Open
libaineu2004 opened this issue May 29, 2022 · 4 comments

Comments

@libaineu2004
Copy link

libaineu2004 commented May 29, 2022

1、Win10+VS2019 x64+Qt5.12.11,RedPanda-CPP源码版本master,v1.0.9,编译出错,缺乏依赖库
那么以下pro文件需要新增依赖库
(1)RedPandaIDE.pro
(2)redpanda-win-git-askpass.pro
win32-msvc {
LIBS+=-ladvapi32
LIBS+=-luser32
}

(3)astyle.pro
win32-msvc {
LIBS+=-lShell32
}

总之,需要自己手动加上依赖库,如此才能正常编译通过。

2、Win10+VS2019 x64+Qt5.12.11,RedPanda-CPP源码版本master,v1.0.9,编译通过了,但是又遇到一个新问题:
源码编译之后,运行RedPandaIDE.exe,主界面会卡死,鼠标点不了,没有反应。

@royqh1979
Copy link
Owner

我在windows下一直用的qt5.15

@royqh1979
Copy link
Owner

之前尝试用vs 2019+从源码静态编译的qt5.15库 编译过,是可以的

@libaineu2004
Copy link
Author

之前尝试用vs 2019+从源码静态编译的qt5.15库 编译过,是可以的

另外还有1个问题。
源码路径/redpanda-win-git-askpass/main.c
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE /hPrevInstance/,
LPTSTR lpCmdLine, int nCmdShow)

LRESULT CALLBACK MainDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM /lParam/)
函数的参数 HINSTANCE /hPrevInstance/和LPARAM /lParam/,不能使用//注释掉,编译会报错。
删除掉/
/,编译就正常了。

@libaineu2004
Copy link
Author

你尝试使用VS2019 x64 + 官方Qt 5.12.x试试编译一下,看看有无问题?

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

2 participants