Menu

Initial Setup errors

Anonymous
2015-10-11
2015-10-14
  • Anonymous

    Anonymous - 2015-10-11

    Hello Stefan,

    I've been trying to build a really powerful serial communication tool and I came across your source code.
    Instead of re-inventing the wheel, I want to use your code to make a simple serial communication GUI and I just can't get started.

    I followed the instruction in README file but i get these errors

    ================================================
    Failure to find: scriptClasses\scriptComboBox.h
    ...scriptLineEdit.h
    ...scriptTableWidget.h
    and so on...and
    D8021: invalid numeric argument '/Wno-int-to-pointer-cast'

    ================================================

    I tried looking through the code for where the errors were occuring, but I have no luck in resolving this issue :(

    I appreciate your work and your help!!

    Thanks in advance!

     
  • Anonymous

    Anonymous - 2015-10-12

    10:32:09: Running steps for project ScriptCommunicator...
    10:32:09: Starting: "C:\Qt\5.4\msvc2013\bin\qmake.exe" C:\QtProjects\scriptcommunicator\ScriptCommunicator.pro -r -spec win32-msvc2013 "CONFIG+=debug"
    WARNING: Failure to find: scriptClasses\scriptComboBox.h
    WARNING: Failure to find: scriptClasses\scriptLineEdit.h
    WARNING: Failure to find: scriptClasses\scriptTableWidget.h
    WARNING: Failure to find: scriptClasses\scriptTextEdit.h
    WARNING: Failure to find: scriptClasses\scriptCheckBox.h
    WARNING: Failure to find: scriptClasses\scriptButton.h
    WARNING: Failure to find: scriptClasses\scriptWidget.h
    WARNING: Failure to find: scriptClasses\scriptDialog.h
    WARNING: Failure to find: scriptClasses\scriptProgressBar.h
    WARNING: Failure to find: scriptClasses\scriptLabel.h
    WARNING: Failure to find: scriptClasses\scriptComboBox.h
    WARNING: Failure to find: scriptClasses\scriptLineEdit.h
    WARNING: Failure to find: scriptClasses\scriptTableWidget.h
    WARNING: Failure to find: scriptClasses\scriptTextEdit.h
    WARNING: Failure to find: scriptClasses\scriptCheckBox.h
    WARNING: Failure to find: scriptClasses\scriptButton.h
    WARNING: Failure to find: scriptClasses\scriptWidget.h
    WARNING: Failure to find: scriptClasses\scriptDialog.h
    WARNING: Failure to find: scriptClasses\scriptProgressBar.h
    WARNING: Failure to find: scriptClasses\scriptLabel.h
    10:32:10: The process "C:\Qt\5.4\msvc2013\bin\qmake.exe" exited normally.
    10:32:10: Elapsed time: 00:01.

     
  • Anonymous

    Anonymous - 2015-10-12

    10:50:05: Running steps for project ScriptCommunicator...
    10:50:05: Configuration unchanged, skipping qmake step.
    10:50:05: Starting: "C:\Qt\Tools\QtCreator\bin\jom.exe"
    C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
    C:\Qt\5.4\msvc2013\bin\uic.exe ..\scriptcommunicator\mainwindow.ui -o ui_mainwindow.h
    C:\Qt\5.4\msvc2013\bin\uic.exe ..\scriptcommunicator\scriptwindow.ui -o ui_scriptwindow.h
    C:\Qt\5.4\msvc2013\bin\uic.exe ..\scriptcommunicator\settingsdialog.ui -o ui_settingsdialog.h
    C:\Qt\5.4\msvc2013\bin\uic.exe ..\scriptcommunicator\sendwindow.ui -o ui_sendwindow.h
    C:\Qt\5.4\msvc2013\bin\uic.exe ..\scriptcommunicator\addmessagedialog.ui -o ui_addmessagedialog.h
    C:\Qt\5.4\msvc2013\bin\uic.exe ..\scriptcommunicator\plotwindow.ui -o ui_plotwindow.h
    cl -c -nologo -Zm200 -Zc:wchar_t -FS -Wno-int-to-pointer-cast -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc /Fddebug\ScriptCommunicator.pdb -DUNICODE -DWIN32 -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SERIALPORT_LIB -DQT_XML_LIB -DQT_SCRIPT_LIB -DQT_UITOOLS_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I"..\scriptcommunicator" -I"." -I"..\scriptcommunicator\scriptClasses" -I"..\scriptcommunicator\scriptClasses\scriptUiClasses" -I"..\scriptcommunicator\cheetahSpi" -I"..\scriptcommunicator\pcan" -I"....\Qt\5.4\msvc2013\include" -I"....\Qt\5.4\msvc2013\include\QtPrintSupport" -I"....\Qt\5.4\msvc2013\include\QtWidgets" -I"....\Qt\5.4\msvc2013\include\QtGui" -I"....\Qt\5.4\msvc2013\include\QtANGLE" -I"....\Qt\5.4\msvc2013\include\QtSerialPort" -I"....\Qt\5.4\msvc2013\include\QtXml" -I"....\Qt\5.4\msvc2013\include\QtScript" -I"....\Qt\5.4\msvc2013\include\QtUiTools" -I"....\Qt\5.4\msvc2013\include\QtNetwork" -I"....\Qt\5.4\msvc2013\include\QtCore" -I"debug" -I"." -I"....\Qt\5.4\msvc2013\mkspecs\win32-msvc2013" -Fodebug\ @C:\Users\junga\AppData\Local\Temp\main.obj.800.124.jom
    cl -c -nologo -Zm200 -Zc:wchar_t -FS -Wno-int-to-pointer-cast -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc /Fddebug\ScriptCommunicator.pdb -DUNICODE -DWIN32 -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SERIALPORT_LIB -DQT_XML_LIB -DQT_SCRIPT_LIB -DQT_UITOOLS_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I"..\scriptcommunicator" -I"." -I"..\scriptcommunicator\scriptClasses" -I"..\scriptcommunicator\scriptClasses\scriptUiClasses" -I"..\scriptcommunicator\cheetahSpi" -I"..\scriptcommunicator\pcan" -I"....\Qt\5.4\msvc2013\include" -I"....\Qt\5.4\msvc2013\include\QtPrintSupport" -I"....\Qt\5.4\msvc2013\include\QtWidgets" -I"....\Qt\5.4\msvc2013\include\QtGui" -I"....\Qt\5.4\msvc2013\include\QtANGLE" -I"....\Qt\5.4\msvc2013\include\QtSerialPort" -I"....\Qt\5.4\msvc2013\include\QtXml" -I"....\Qt\5.4\msvc2013\include\QtScript" -I"....\Qt\5.4\msvc2013\include\QtUiTools" -I"....\Qt\5.4\msvc2013\include\QtNetwork" -I"....\Qt\5.4\msvc2013\include\QtCore" -I"debug" -I"." -I"....\Qt\5.4\msvc2013\mkspecs\win32-msvc2013" -Fodebug\ @C:\Users\junga\AppData\Local\Temp\qcustomplot.obj.800.124.jom
    cl : Command line error D8021 : invalid numeric argument '/Wno-int-to-pointer-cast'
    cl : Command line error D8021 : invalid numeric argument '/Wno-int-to-pointer-cast'
    cl -c -nologo -Zm200 -Zc:wchar_t -FS -Zi -MDd -W3 /Fddebug\ScriptCommunicator.pdb -DUNICODE -DWIN32 -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SERIALPORT_LIB -DQT_XML_LIB -DQT_SCRIPT_LIB -DQT_UITOOLS_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I"..\scriptcommunicator" -I"." -I"..\scriptcommunicator\scriptClasses" -I"..\scriptcommunicator\scriptClasses\scriptUiClasses" -I"..\scriptcommunicator\cheetahSpi" -I"..\scriptcommunicator\pcan" -I"....\Qt\5.4\msvc2013\include" -I"....\Qt\5.4\msvc2013\include\QtPrintSupport" -I"....\Qt\5.4\msvc2013\include\QtWidgets" -I"....\Qt\5.4\msvc2013\include\QtGui" -I"....\Qt\5.4\msvc2013\include\QtANGLE" -I"....\Qt\5.4\msvc2013\include\QtSerialPort" -I"....\Qt\5.4\msvc2013\include\QtXml" -I"....\Qt\5.4\msvc2013\include\QtScript" -I"....\Qt\5.4\msvc2013\include\QtUiTools" -I"....\Qt\5.4\msvc2013\include\QtNetwork" -I"....\Qt\5.4\msvc2013\include\QtCore" -I"debug" -I"." -I"....\Qt\5.4\msvc2013\mkspecs\win32-msvc2013" -Fodebug\ @C:\Users\junga\AppData\Local\Temp\cheetah.obj.800.140.jom
    jom: C:\QtProjects\build-ScriptCommunicator-Desktop_Qt_5_4_2_MSVC2013_32bit2-Debug\Makefile.Debug [debug\main.obj] Error 2
    jom: C:\QtProjects\build-ScriptCommunicator-Desktop_Qt_5_4_2_MSVC2013_32bit2-Debug\Makefile.Debug [debug\qcustomplot.obj] Error 2
    cheetah.c
    jom: C:\QtProjects\build-ScriptCommunicator-Desktop_Qt_5_4_2_MSVC2013_32bit2-Debug\Makefile [debug] Error 2
    10:50:06: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
    Error while building/deploying project ScriptCommunicator (kit: Desktop Qt 5.4.2 MSVC2013 32bit2)
    When executing step "Make"
    10:50:06: Elapsed time: 00:01.

     
  • Stefan Zieker

    Stefan Zieker - 2015-10-12

    Hi,

    on windows I'm using QtCreator with mingw482_32 to build ScriptCommunicator. I think you are using Visual Studio (is that right?).

    • warning Failure to find: scriptClasses\scriptComboBox.h... : I have fixed ScriptCommunicator.pro (attachment)

    • the error D8021: invalid numeric argument '/Wno-int-to-pointer-cast': I think you have to switch off the command line argument -Wno-int-to-pointer-cast (I think this comes from your MVS environment)

    Best regards,
    Stefan

     
  • Anonymous

    Anonymous - 2015-10-12

    Hello Stefan,

    Thank you for your quick reply

    I am using windows 7 32bit and yes you seem to be right on the MVS environment. I was using Visual Studio for other projects and maybe the QT Creator was using VS compliers instead of it's own MinGW g++ complier. I am quite lost because I've been using different IDE's and compliers on this computer.

    So, I reinstalled QT with mingw482 add-on
    I added mingw482_32 g++.exe as a complier as you suggested and I still get this error (D8021)
    Now I am assuming your project's target platform is UNIX and I'm using windows 7 32bit. Maybe this is where the error is occuring? or there must be something wrong with my qmake variables?

    ==============================================================
    qmake.exe C:\QtProjects\scriptcommunicator-code-221-trunk\ScriptCommunicator.pro -r -spec win32-msvc2013

    ==============================================================

    And what do you mean by switch off the command line argument?

    Thanks!

     
  • Anonymous

    Anonymous - 2015-10-12

    Would you mind showing me the system build environment of your project?
    I've added appropriate paths to INCLUDE, LIB, and PATH in the build environment menu in QT Creator and tried building the project but I have no luck so far.

    Thanks a lot for your help!

     
  • Stefan Zieker

    Stefan Zieker - 2015-10-12

    Hi,
    I'm compiling this project under Ubuntu, Window 7 and 10.

    I'm using Qt 5.3 and you 5.4. Maybe this is the reason for your error (I have several pointer to int casts in the code, and maybe your newer compiler dont't like it).

    Best regards,
    Stefan

     
  • Anonymous

    Anonymous - 2015-10-12

    Yes you are absolutely right on the complier issue.

    I think my complier is still set to Microsoft Visual C++ complier 12.0(x86). I'm trying to change this in Build & Run -> Manage Kits but QT Creator does not let me do that.

    Thanks for your help Stefan

     
  • Stefan Zieker

    Stefan Zieker - 2015-10-12

    Hi,

    now I see the problem. It's not the ScriptCommunicator Projekt. The compiler cl (Microsft) does not know the compiler argument -nWno-int-to-pointer-cast. I dont't know how I can help you. Maybe you can install Qt on a clean PC.

    Best regards,
    Stefan

     
  • Anonymous

    Anonymous - 2015-10-12

    Yes, my kits are still set to using the cl complier. I am now trying to get rid of Microsoft Visual C++ complier from system settings from this computer and I have no luck so far but I think i'm getting closer to solving this issue. I'm installing QT on a clean PC too.

    Thanks a lot Stefan, keep up the good work!!

     
  • Anonymous

    Anonymous - 2015-10-13

    Hello Stefan,
    I got everything to work fine and it builds correctly.
    I built it as release and followed this instruction below:


    In addition to this following must be copied to the executable:
    - QtDesigner
    - manual
    - template folder
    - exampleScripts folder
    - cheetah library
    - PCANBasic library (only on windows)


    I moved the necessary files on to my "release" folder, now I get this error. Have you ever encountered this problem before?


    The procedure entry point ZN6QDebug9putStringEPK5QCharj could not be located in the dynamic link library C:\QtProjects\build-ScriptCommunicator-Desktop_Qt_5_5_0_MinGW_32bit-Release\release\ScriptCommunicator.exe


    If you have any suggestions please it will be greatly appreciated!
    Thanks in advance!

     
  • Anonymous

    Anonymous - 2015-10-13

    Never mind, Stefan.

    I think I'm going to try it all over again with Qt5.3

    Best,

     
  • Anonymous

    Anonymous - 2015-10-13

    Hi,

    maybe you did not have the correct dlls. To find out which dlls you need do following:

    • start debug
    • open the module view (here you can see which dlls are loaded)

    In the folder of the used debug dlls you can find the relase builds of them.

    PS: For an example you can download a pre build version for windows.

    Best regards,
    Stefan

     
  • Anonymous

    Anonymous - 2015-10-13

    Hi,

    maybe you did not have the correct dlls. To find out which dlls you need do following:

    • start debug
    • open the module view (here you can see which dlls are loaded)

    In the folder of the used debug dlls you can find the relase builds of them.

    PS: For an example you can download a pre build version for windows.

    Best regards,
    Stefan

     
  • Anonymous

    Anonymous - 2015-10-14

    Thank you Stefan,

    I copied the appropriate dll's from the correct paths that debugger was indicating and it seems to be working. I didn't know module view existed but now I know. Module view is awesome!

    One weird thing is that I didn't actually copy and paste the cheetah library and pcan library because the debugger did not mention them while debugging but scriptcommunicator.exe seems to be working just fine. I still don't know 100% what is going on but I'll keep trying and figure out solutions.

    Thanks again Stefan

     
  • Anonymous

    Anonymous - 2015-10-14

    I'm guessing the reason why I haven't been running into problems with cheetah and pcan is that I'm just using serial port to communicate(Am I right?).

    I'm thinking I'll run into problems once I use cheetah spi and pcan communication.
    So then, I will need to copy cheetah.dll and PCANBasic.dll into the directory where scriptcommunicator.exe is. Just like the pre-build version (downloadable .zip file), right?

    Thank you so much. You are awesome!

     
  • Stefan Zieker

    Stefan Zieker - 2015-10-14

    Hi,

    you are right (the dlls are dynamically loaded if you use these interfaces).

    Best regards,
    Stefan

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.