Results 1 to 3 of 3

Thread: Compiling a project from linux in windows

  1. #1
    Join Date
    Apr 2010
    Location
    Rzeszów \ Poland
    Posts
    26
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60

    Default Compiling a project from linux in windows

    Hello.
    I have a problem with compiling the same project in linux and in windows.
    I wrote a project in the linux and I want to make a *.exe file to run it on windows.
    I'm install a qt-libs and qt-creator on windows (the same version like in linux) and I'm copy the projekt and try to compile.
    But during a compile I have a error like this:
    Qt Code:
    1. 01:18:01: Running steps for project odplayer...
    2. 01:18:01: Configuration unchanged, skipping qmake step.
    3. 01:18:01: Starting: "C:\MinGW\bin\mingw32-make.exe"
    4. C:/MinGW/bin/mingw32-make -f Makefile.Debug
    5. mingw32-make[1]: Entering directory `C:/Qt/projekt/odplayer-build-Nienazwany-Debug'
    6. g++ -c -pipe -g -frtti -fexceptions -mthreads -Wall -Wextra -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_PHONON_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\4.8.4\include\QtCore" -I"..\..\4.8.4\include\QtGui" -I"..\..\4.8.4\include\phonon" -I"..\..\4.8.4\include" -I"..\..\4.8.4\include\ActiveQt" -I"..\..\4.8.4\include\phonon_compat" -I"debug" -I"." -I"..\odplayer" -I"." -I"..\..\4.8.4\mkspecs\win32-g++" -o debug\odplayer.o ..\odplayer\odplayer.cpp
    7. mingw32-make[1]: Leaving directory `C:/Qt/projekt/odplayer-build-Nienazwany-Debug'
    8. mingw32-make[1]: *** [debug/odplayer.o] Error 1
    9. mingw32-make: *** [debug] Error 2
    10. 01:18:03: The process "C:\MinGW\bin\mingw32-make.exe" exited with code 2.
    11. Error while building/deploying project odplayer (kit: Nienazwany)
    12. When executing step 'Make'
    To copy to clipboard, switch view to plain text mode 

    Someone can help me with resolve this problem?

  2. #2
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Thanks
    75
    Thanked 24 Times in 21 Posts
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: Compiling a project from linux in windows

    delete all make files, debug and release folder and user file in project then try clean/qmake/rebuild. See if it help? and also remove checkmark on shadow build in project settings

  3. #3
    Join Date
    Apr 2010
    Location
    Rzeszów \ Poland
    Posts
    26
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: Compiling a project from linux in windows

    Ok, this was problem with antyvirus in Windows. Problem resolv

Similar Threads

  1. Replies: 5
    Last Post: 28th February 2011, 22:37
  2. Replies: 2
    Last Post: 15th February 2010, 06:42
  3. Compiling from linux to windows
    By walito in forum Qt Programming
    Replies: 1
    Last Post: 28th July 2009, 21:25
  4. Cross-Compiling Linux to Windows
    By xgoan in forum Qt Programming
    Replies: 10
    Last Post: 5th July 2007, 20:44
  5. Compiling Linux project on Mac
    By December in forum Newbie
    Replies: 2
    Last Post: 25th March 2007, 04:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.