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

Compile problem #153

Open
onuralparslan opened this issue Jun 13, 2020 · 1 comment
Open

Compile problem #153

onuralparslan opened this issue Jun 13, 2020 · 1 comment

Comments

@onuralparslan
Copy link

I tried to compile quickviewer by Qt Creator in Windows 10 and I got a problem. I am not much experienced in Qt Creator, so it may not be a real problem, but I wanted to report it to fixed in case it is due to a bug.

As written in "How to build" documentation, I added "jom install" as a build step after "jom". The first jom completed without giving errors. However, "jom install" gave the error:

"....\QuickViewer-portable-1.1.7-x64\QuickViewer.exe" does not exist.

I saw that QuickViewer.exe was created under the folder "build-QVproject-Desktop_Qt_5_15_0_MSVC2015_64bit-Release\bin", but it was not created under "....\QuickViewer-portable-1.1.7-x64", so windeployqt could not find the QuickViewer.exe file and gave that error.

I copied the QuickViewer.exe file from "build-QVproject-Desktop_Qt_5_15_0_MSVC2015_64bit-Release\bin" folder to "....\QuickViewer-portable-1.1.7-x64" folder manually. The I rerun the Qt Creator builder. This solved the problem and Qt Creator created the working application without any errors.

Shouldn't the QuickViewer.exe file be created automatically under "....\QuickViewer-portable-1.1.7-x64" folder? Should we manually copy it from "build-QVproject-Desktop_Qt_5_15_0_MSVC2015_64bit-Release\bin" folder to "....\QuickViewer-portable-1.1.7-x64" and rerun the compiler?

I attached the compilation logs of Qt Creator. The "initial.txt" shows the compilation log of the first trial, which failed with "QuickViewer.exe does not exist." error. The "second.txt" file shows the compilation log after I copied the file to "....\QuickViewer-portable-1.1.7-x64" folder and rerun the builder. It finished without any problems.

initial.txt
second.txt

@kanryu
Copy link
Owner

kanryu commented Jun 15, 2020

Sorry for the late reply.

qmake offers us an indirect build method for developers. qmake does not provide a direct way to build a project. Instead, create a Makefile for nmake.exe that comes with MSVC.

In QuickViewer's qmake, qmake is written so that both GNU make and nmake.exe work properly, but in some cases it does not work. If you find a way to improve, please report to us.

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