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

Qt Issue When Compiling in Windows #37

Open
frankiexile opened this issue May 19, 2018 · 3 comments
Open

Qt Issue When Compiling in Windows #37

frankiexile opened this issue May 19, 2018 · 3 comments

Comments

@frankiexile
Copy link

So I do mkdir build
cd build
cmake -G "Visual Studio 12 2013 Win64" ..

and get

CMake Error at CMakeLists.txt:252 (qt5_use_modules):
Unknown CMake command "qt5_use_modules".

wtf

@frankiexile
Copy link
Author

I should also add that I put in the qt5gui and qt5widgets directories in the cmakelists because I was getting an error with those too. But now I get this

@frankiexile
Copy link
Author

in the cmakelists file I replaced qt5_use_modules with target_link_libraries and got it to work. After opening it in visual studio i clicked build but ran into a bunch more errors:

\cryptonotewallet\src\CommandLineParser.h(7): fatal error C1083: Cannot open include file: 'QCommandLineParser': No such file or directory
1> CryptoNoteWrapper.cpp
1>C:\cryptonotewallet\src\CryptoNoteWrapper.cpp(184): warning C4101: '_err' : unreferenced local variable
1> CurrencyAdapter.cpp
1>c:\cryptonotewallet\src\CurrencyAdapter.h(7): fatal error C1083: Cannot open include file: 'QString': No such file or directory
1> LoggerAdapter.cpp
1>C:\cryptonotewallet\src\LoggerAdapter.cpp(5): fatal error C1083: Cannot open include file: 'QCoreApplication': No such file or directory
1> NodeAdapter.cpp
1>C:\cryptonotewallet\src\NodeAdapter.cpp(5): fatal error C1083: Cannot open include file: 'QCoreApplication': No such file or directory
1> Settings.cpp
1>C:\cryptonotewallet\src\Settings.cpp(5): fatal error C1083: Cannot open include file: 'QApplication': No such file or directory
1> SignalHandler.cpp
1>c:\cryptonotewallet\src\SignalHandler.h(7): fatal error C1083: Cannot open include file: 'QObject': No such file or directory
1> WalletAdapter.cpp
1>C:\cryptonotewallet\src\WalletAdapter.cpp(5): fatal error C1083: Cannot open include file: 'QCoreApplication': No such file or directory
1> AboutDialog.cpp
1>c:\cryptonotewallet\src\gui\AboutDialog.h(7): fatal error C1083: Cannot open include file: 'QDialog': No such file or directory
1> AddressBookDialog.cpp
1>c:\cryptonotewallet\src\gui\AddressBookDialog.h(7): fatal error C1083: Cannot open include file: 'QDialog': No such file or directory
1> AddressBookFrame.cpp
1>C:\cryptonotewallet\src\gui\AddressBookFrame.cpp(5): fatal error C1083: Cannot open include file: 'QApplication': No such file or directory
1> AddressBookModel.cpp
1>C:\cryptonotewallet\src\gui\AddressBookModel.cpp(5): fatal error C1083: Cannot open include file: 'QFile': No such file or directory
1> AnimatedLabel.cpp
1>c:\cryptonotewallet\src\gui\AnimatedLabel.h(7): fatal error C1083: Cannot open include file: 'QLabel': No such file or directory
1> ChangePasswordDialog.cpp
1>c:\cryptonotewallet\src\gui\ChangePasswordDialog.h(7): fatal error C1083: Cannot open include file: 'QDialog': No such file or directory
1> ExitWidget.cpp
1>C:\cryptonotewallet\src\gui\ExitWidget.cpp(5): fatal error C1083: Cannot open include file: 'QMovie': No such file or directory
1> MainWindow.cpp
1>C:\cryptonotewallet\src\gui\MainWindow.cpp(5): fatal error C1083: Cannot open include file: 'QCloseEvent': No such file or directory
1> NewAddressDialog.cpp
1>c:\cryptonotewallet\src\gui\NewAddressDialog.h(7): fatal error C1083: Cannot open include file: 'QDialog': No such file or directory
1> NewPasswordDialog.cpp
1>c:\cryptonotewallet\src\gui\NewPasswordDialog.h(7): fatal error C1083: Cannot open include file: 'QDialog': No such file or directory
1> OverviewFrame.cpp
1>C:\cryptonotewallet\src\CurrencyAdapter.h(7): fatal error C1083: Cannot open include file: 'QString': No such file or directory
1> PasswordDialog.cpp

@luistorrescisneros
Copy link

Hi! did you solve this issue?

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