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

QHexView cannot build #51

Closed
neomissing opened this issue Jan 30, 2021 · 4 comments
Closed

QHexView cannot build #51

neomissing opened this issue Jan 30, 2021 · 4 comments

Comments

@neomissing
Copy link

I tried to use QHexView, including qhexview. pri, but found that it could not be compiled at all. Could you please provide a simple test to pass the demo?

@audetto
Copy link
Contributor

audetto commented Jan 30, 2021

How are you using it?
There is no demo in this project, it is a library you can include in your application.

I use cmake, like this

https://github.com/audetto/AppleWin/blob/master/source/frontends/qt/CMakeLists.txt#L11

@neomissing
Copy link
Author

neomissing commented Jan 30, 2021 via email

@audetto
Copy link
Contributor

audetto commented Jan 30, 2021

#52

@audetto
Copy link
Contributor

audetto commented Jan 31, 2021

I suggest you update it, and The header file path is recommended to be changed to INCLUDEPATH += $$PWD \ $$PWD/document \ $$PWD/document/commands \ $$PWD/document/buffer

I am not sure you need to do that.

See here:

#include "document/buffer/qmemorybuffer.h"

Only the root needs to be added to the include list, and in your project you can include as in the above link.

On the other hand, I normally try to include all files from the same standard include root, while here it seems that . is always in the include path, which makes things apparently easier, but IMHO more confused in the long run.
But it might be a Qt standard???

@Dax89 Dax89 closed this as completed May 21, 2021
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

3 participants