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

How to build on Windows QT Creator? #12

Open
Miracle-doctor opened this issue Apr 22, 2019 · 1 comment
Open

How to build on Windows QT Creator? #12

Miracle-doctor opened this issue Apr 22, 2019 · 1 comment

Comments

@Miracle-doctor
Copy link

No description provided.

@Pysis868
Copy link

Pysis868 commented Mar 10, 2021

Not sure about that, but I at least wanted to build it on Windows using Cygwin/mingw to have a larger nice report GUI for this OS. I got stuck here after some fiddling around:

> apt-cyg install libcurl-devel
...
> apt-cyg install mingw64-x86_64-qt5-base
...
> qmake-qt5
...
> make
g++  -o VirusTotalUploader.exe main.o mainwindow.o scanner_table_widget.o qvtfile.o calc_file_hashes_task.o check_report_task.o settings_dialog.o scan_file_task.o rescan_file_task.o add_dir_task.o tos_dialog.o ioapi.o zip.o create_app_zip_task.o vt_uploader_application.o moc_mainwindow.o moc_scanner_table_widget.o moc_qvtfile.o moc_calc_file_hashes_task.o moc_check_report_task.o moc_settings_dialog.o moc_scan_file_task.o moc_rescan_file_task.o moc_add_dir_task.o moc_tos_dialog.o moc_create_app_zip_task.o moc_vt_uploader_application.o   -L/usr/local/lib -L/home/.../local/lib -lcvtapi -lcurl -ljansson -lz -lQt5Widgets -lQt5Gui -lQt5Network -lQt5Core -lGL -lpthread
/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
make: *** [Makefile:208: VirusTotalUploader.exe] Error 1

> apt-cyg install libGL-devel
...
> make
...

Then I got some error messages I did not save about undefined reference to the functions fopen64, ftello64, and fseeko64.
I looked up some information and this might be related to the ioapi.c file not being directly portable to Windows/Cygwin/mingw environments just like it isn't to BSD, and it may help for this project to use different functional calls.

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