qt-virustotal-uploader icon indicating copy to clipboard operation
qt-virustotal-uploader copied to clipboard

How to build on Windows QT Creator?

Open Miracle-doctor opened this issue 6 years ago • 1 comments

Miracle-doctor avatar Apr 22 '19 08:04 Miracle-doctor

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.

Pysis868 avatar Mar 10 '21 01:03 Pysis868