Giter VIP home page Giter VIP logo

qtifw-advanced-setup's Issues

Cannot get the Example project to work on Windows 7 64 bit

I have installed Python3.6.1 and "python" is in PATH. I have also downloaded qpm.exe and is in PATH as well [downloaded today Jun 8, 2017]. And I also cloned this repository and I launch Qt 5.6.2 Qt Creator and tried to build Example. That was OK. However, I went to the command prompt (VS 2015 Developer CMD window) and typed:

C:\git\QtIFW-Advanced-Setup\Example>qpm install de.skycoder42.qtifw-advanced-setup
INFO: Package de.skycoder42.qtifw-advanced-setup has a different license (BSD_3_
CLAUSE) than it's dependant (NONE).
Installing [email protected]
QPM: 2017/06/08 16:30:26 ERROR: GetFileAttributesEx C:\git\QtIFW-Advanced-Setup\
Example\vendor\Skycoder42-QtIFW-Advanced-Setup-406f942\installer\translations\qp
m.json: The system cannot find the file specified.

So, I then I copied the qpm.json into the folder and I ran the command again and worked without error.

Now, what do I do? I tried qmake Example.pro and then nmake but I get error:

C:\git\QtIFW-Advanced-Setup\Example>nmake

Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
Copyright (C) Microsoft Corporation.  All rights reserved.

        "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe" -
f Makefile.Release

Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
Copyright (C) Microsoft Corporation.  All rights reserved.

        link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:WINDOWS "
/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' versio
n='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture
='*'" /MANIFEST:embed /OUT:release\Example.exe @C:\Users\danny\AppData\Local\Tem
p\nm64DF.tmp
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) publ
ic: __thiscall QString::~QString(void)" (__imp_??1QString@@QAE@XZ) referenced in
 function _main
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) publ
ic: static class QString __cdecl QCoreApplication::translate(char const *,char c
onst *,char const *,int)" (__imp_?translate@QCoreApplication@@SA?AVQString@@PBD0
0H@Z) referenced in function _main
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) publ
ic: __thiscall QApplication::QApplication(int &,char * *,int)" (__imp_??0QApplic
ation@@QAE@AAHPAPADH@Z) referenced in function _main
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) publ
ic: virtual __thiscall QApplication::~QApplication(void)" (__imp_??1QApplication
@@UAE@XZ) referenced in function _main
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) publ
ic: static enum QMessageBox::StandardButton __cdecl QMessageBox::information(cla
ss QWidget *,class QString const &,class QString const &,class QFlags<enum QMess
ageBox::StandardButton>,enum QMessageBox::StandardButton)" (__imp_?information@Q
MessageBox@@SA?AW4StandardButton@1@PAVQWidget@@ABVQString@@1V?$QFlags@W4Standard
Button@QMessageBox@@@@W421@@Z) referenced in function _main
MSVCRT.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol _WinMain
@16 referenced in function "int __cdecl __scrt_common_main_seh(void)" (?__scrt_c
ommon_main_seh@@YAHXZ)
C:\Qt\Qt5.6.2\5.6\msvc2015_64\lib\qtmain.lib : warning LNK4272: library machine
type 'x64' conflicts with target machine type 'X86'
C:\Qt\Qt5.6.2\5.6\msvc2015_64\lib\Qt5Widgets.lib : warning LNK4272: library mach
ine type 'x64' conflicts with target machine type 'X86'
C:\Qt\Qt5.6.2\5.6\msvc2015_64\lib\Qt5Gui.lib : warning LNK4272: library machine
type 'x64' conflicts with target machine type 'X86'
C:\Qt\Qt5.6.2\5.6\msvc2015_64\lib\Qt5Core.lib : warning LNK4272: library machine
 type 'x64' conflicts with target machine type 'X86'
release\Example.exe : fatal error LNK1120: 6 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0
\VC\BIN\link.EXE"' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0
\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

C:\git\QtIFW-Advanced-Setup\Example>

When I try to build "nmake installer":

C:\git\QtIFW-Advanced-Setup\Example>nmake installer

Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
Copyright (C) Microsoft Corporation.  All rights reserved.

        python C:\git\QtIFW-Advanced-Setup\deploy\deploy.py win_release C:/Qt/Qt
5.6.2/5.6/msvc2015_64/bin C:/Qt/Qt5.6.2/5.6/msvc2015_64/plugins C:/Qt/Qt5.6.2/5.
6/msvc2015_64/translations C:/git/QtIFW-Advanced-Setup/Example/release/Example.e
xe C:/git/QtIFW-Advanced-Setup/Example/deployed C:/git/QtIFW-Advanced-Setup/Exam
ple/Example.pro
C:/git/QtIFW-Advanced-Setup/Example/release/Example.exe C:/git/QtIFW-Advanced-Se
tup/Example/deployed\Example.exe
Traceback (most recent call last):
  File "C:\git\QtIFW-Advanced-Setup\deploy\deploy.py", line 134, in <module>
    copyany(depsrc, binname)
  File "C:\git\QtIFW-Advanced-Setup\deploy\deploy.py", line 29, in copyany
    shutil.copytree(src, dst)
  File "C:\Users\danny\AppData\Local\Programs\Python\Python36\lib\shutil.py", li
ne 309, in copytree
    names = os.listdir(src)
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:/g
it/QtIFW-Advanced-Setup/Example/release/Example.exe'
NMAKE : fatal error U1077: 'C:\Users\danny\AppData\Local\Programs\Python\Python3
6\python.EXE' : return code '0x1'
Stop.

C:\git\QtIFW-Advanced-Setup\Example>

[I also have the latest QtIFW installed V2.0.5-1]

I have VS2015 installed and Qt 5.6.2. What else am I missing?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.