Forum Replies Created
-
AuthorPosts
-
GimqParticipant
Created a workaround for the last problem. The problem was indeed the forward slash, so I created a script to replace the forward slash with a backward slash, created the script SysGCCraspberrybindelcmd.bat
@echo off set filepath=%1 set delcommand=del %filepath:/=% %delcommand%
Then set the QMake del command to the script in SysGCCraspberryarm-linux-gnueabihfsysrootusrshareqt4mkspecsarm-linux-gnueabihfqmake.conf
QMAKE_DEL_FILE = delcmd
Now getting this output:
1> Build started: Project: test1, Configuration: Debug Win32 1>Build started 2-12-2013 21:03:07.
1>Build:
1> VisualGDB: Attempting inline build...
1> VisualGDB: Executing prebuild actions
1> VisualGDB: Run "C:SysGCCraspberryQtv4qmake.exe test1.pro CONFIGNAME=Debug" in directory "G:Projectstmptest2test1" on local computer
1> VisualGDB: Run "cmd.exe /c "C:SysGCCraspberrybinmake.exe"" in directory "G:Projectstmptest2test1" on local computer
1> C:/SysGCC/raspberry/bin/arm-linux-gnueabihf-g++.exe -c -pipe -Wno-psabi -g -Wall -W -D_REENTRANT -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -Ic:/sysgcc/raspberry/arm-linux-gnueabihf/sysroot/usr/share/qt4/mkspecs/arm-linux-gnueabihf -I. -Ic:/sysgcc/raspberry/arm-linux-gnueabihf/sysroot/usr/include/qt4/QtCore -Ic:/sysgcc/raspberry/arm-linux-gnueabihf/sysroot/usr/include/qt4/QtGui -Ic:/sysgcc/raspberry/arm-linux-gnueabihf/sysroot/usr/include/qt4 -IDebug -IDebug -o Debug/MainWindow.o MainWindow.cpp
1> delcmd libtest1.so.1.0.0 libtest1.so libtest1.so.1 libtest1.so.1.0
1> Could Not Find G:Projectstmptest2test1libtest1.so.1.0.0
1> C:/SysGCC/raspberry/bin/arm-linux-gnueabihf-g++.exe -shared -Wl,-soname,libtest1.so.1 -o libtest1.so.1.0.0 Debug/MainWindow.o Debug/test1.o Debug/moc_MainWindow.o -LE:Qt4.8.5lib -lQtGui -lQtCore -lpthread
1> ln -s libtest1.so.1.0.0 libtest1.so
1> 1 file(s) copied.
1> ln -s libtest1.so.1.0.0 libtest1.so.1
1> 1 file(s) copied.
1> ln -s libtest1.so.1.0.0 libtest1.so.1.0
1> 1 file(s) copied.
1> delcmd Debug/libtest1.so.1.0.0
1> delcmd Debug/libtest1.so
1> delcmd Debug/libtest1.so.1
1> delcmd Debug/libtest1.so.1.0
1> mv libtest1.so.1.0.0 libtest1.so libtest1.so.1 libtest1.so.1.0 Debug/
1> VisualGDB: Executing postbuild actions
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:02.25
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
the script is not entirely correct, since the command
delcmd libtest1.so.1.0.0 libtest1.so libtest1.so.1 libtest1.so.1.0
will not delete all files as it processes only 1 argument. I think this is enough for me right now though, but I will fix the script soon to correctly delete all files.
GimqParticipantThanks, that did the trick, except that the ln.bat needs to be in SysGCCRaspberrybin.
A clean build is running ok now. The incremental build is not, I’m getting the following output:
1> Build started: Project: test1, Configuration: Debug Win32 1>Build started 2-12-2013 20:18:16.
1>Build:
1> VisualGDB: Attempting inline build...
1> VisualGDB: Executing prebuild actions
1> VisualGDB: Run "C:SysGCCraspberryQtv4qmake.exe test1.pro CONFIGNAME=Debug" in directory "G:Projectstmptest2test1" on local computer
1> VisualGDB: Run "cmd.exe /c "C:SysGCCraspberrybinmake.exe"" in directory "G:Projectstmptest2test1" on local computer
1> C:/SysGCC/raspberry/bin/arm-linux-gnueabihf-g++.exe -c -pipe -Wno-psabi -g -Wall -W -D_REENTRANT -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -Ic:/sysgcc/raspberry/arm-linux-gnueabihf/sysroot/usr/share/qt4/mkspecs/arm-linux-gnueabihf -I. -Ic:/sysgcc/raspberry/arm-linux-gnueabihf/sysroot/usr/include/qt4/QtCore -Ic:/sysgcc/raspberry/arm-linux-gnueabihf/sysroot/usr/include/qt4/QtGui -Ic:/sysgcc/raspberry/arm-linux-gnueabihf/sysroot/usr/include/qt4 -IDebug -IDebug -o Debug/MainWindow.o MainWindow.cpp
1> del libtest1.so.1.0.0 libtest1.so libtest1.so.1 libtest1.so.1.0
1> Could Not Find G:Projectstmptest2test1libtest1.so.1.0.0
1> C:/SysGCC/raspberry/bin/arm-linux-gnueabihf-g++.exe -shared -Wl,-soname,libtest1.so.1 -o libtest1.so.1.0.0 Debug/MainWindow.o Debug/test1.o Debug/moc_MainWindow.o -LE:Qt4.8.5lib -lQtGui -lQtCore -lpthread
1> ln -s libtest1.so.1.0.0 libtest1.so
1>
1> G:Projectstmptest2test1>copy /y libtest1.so.1.0.0 libtest1.so
1> 1 file(s) copied.
1> ln -s libtest1.so.1.0.0 libtest1.so.1
1>
1> G:Projectstmptest2test1>copy /y libtest1.so.1.0.0 libtest1.so.1
1> 1 file(s) copied.
1> ln -s libtest1.so.1.0.0 libtest1.so.1.0
1>
1> G:Projectstmptest2test1>copy /y libtest1.so.1.0.0 libtest1.so.1.0
1> 1 file(s) copied.
1> del Debug/libtest1.so.1.0.0
1> del Debug/libtest1.so
1> Invalid switch - "libtest1.so.1.0.0".
1> make: [Debug/libtest1.so.1.0.0] Error 1 (ignored)
1> Invalid switch - "libtest1.so".
1> make: [Debug/libtest1.so.1.0.0] Error 1 (ignored)
1> del Debug/libtest1.so.1
1> Invalid switch - "libtest1.so.1".
1> make: [Debug/libtest1.so.1.0.0] Error 1 (ignored)
1> del Debug/libtest1.so.1.0
1> Invalid switch - "libtest1.so.1.0".
1> make: [Debug/libtest1.so.1.0.0] Error 1 (ignored)
1> mv libtest1.so.1.0.0 libtest1.so libtest1.so.1 libtest1.so.1.0 Debug/
1> mv: 'libtest1.so.1.0.0' and 'Debug/libtest1.so.1.0.0' are the same file
1> mv: 'libtest1.so' and 'Debug/libtest1.so' are the same file
1> mv: 'libtest1.so.1' and 'Debug/libtest1.so.1' are the same file
1> mv: 'libtest1.so.1.0' and 'Debug/libtest1.so.1.0' are the same file
1> make: [Debug/libtest1.so.1.0.0] Error 1 (ignored)
1> VisualGDB: Executing postbuild actions
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:02.20
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Maybe the problem is that the del command should get a backslash in the path and not a forward slah?
-
AuthorPosts