ok, i tried again and i still get the error about 'test' not being recognized as a command. i can't find anything in the qmake documentation about this. any ideas.?
ok, i tried again and i still get the error about 'test' not being recognized as a command. i can't find anything in the qmake documentation about this. any ideas.?
For windows it should be:
Are you sure you used the right QMAKESPEC?CHK_DIR_EXISTS= if not exist
Anyway, it was weird from the beginning because there is no test command(by default). Maybe there is one that comes bundled with mingw, in which case you must have the path to the mingw binaries in PATH.
Regards
it's using win32-g++
is that correct?
there is a sample app called test, but i placed it in the bin directory and when it runs vista gets an error that says test.exe crashes every time i run make.
on windows xp my makefiles are correct, that's strange. that is the only test.exe on my entire hard drive so i don't know where it is getting that from. it says
CHK_DIR_EXISTS = test -d
Well, it's Vista...
Try running test.exe as Adminstrator.
Or, better yet, just disable UAC for 10 minutes and see if it works ( but remember to run it manually - something like test c:\windows ).
Regards
it just keeps crashing. but even still. test.exe is in the sample programs directory for mingw, so it wouldn't make sense that it would do anything important. i disabled UAC and tried it again as well.
i don't understand how no one else has had this problem yet. i just installed qt 4.3.0 from the trolltech website with mingw. maybe i should just delete everything and try again.
I am now 100% sure that test.exe comes with mingw. And it is normal, because test can be found only on Linux( and other Unix flavors ). It is used mainly for shell scripting.
Regards
ok, thanks for your help, i will try some other things.
Well, I am almost sure this is a compatibility issue( permissions, etc ).
When you run make, it will look at the exit code of test.exe. This is how it knows a dir exists or not.
Maybe you can find something relevant on other sites.
Regards
i deleted absolutely everything related to qt and mingw, and redownloaded it from trolltech, and it seems to be working now. for some reason i have a knack for finding ways to make qt break on all my os's. i always have weird problems on os x as well.
anyways, thank you so much for your help.
dave
Anyway, this is pretty much how it should look like:
Qt Code:
first: release install: release-install uninstall: release-uninstall MAKEFILE = Makefile QMAKE = qmake DEL_FILE = del CHK_DIR_EXISTS= if not exist MKDIR = mkdir COPY = copy /y COPY_FILE = $(COPY) COPY_DIR = xcopy /s /q /y /i INSTALL_FILE = $(COPY_FILE) INSTALL_PROGRAM = INSTALL_DIR = $(COPY_DIR) DEL_FILE = del SYMLINK = DEL_DIR = rmdir MOVE = move CHK_DIR_EXISTS= if not exist MKDIR = mkdir SUBTARGETS = \ release \ debugTo copy to clipboard, switch view to plain text mode
Bookmarks