04.11.08

Qt Errors and Answers

Posted in XP, Qt, Vista at 11:01 am by philwinder

This is a post containing all the problems I had installing and using Qt. Most of them can be fixed quite simply.

Qt:__________________________________________________________
Error: Qt does not compile certain programs on Windows Vista (In my case this was qwt)
Error Code: “gcc: installation problem, cannot exec `cc1′: No such file or directory”
Solution:

to solve the problem, you have just to add the following line in the Qt\bin\qtvars.bat :
SET PATH=%PATH%;C:\MinGW\libexec\gcc\mingw32\3.4.2
replace the last number with your actual version of gcc.
giminik-Vista Complie Errors

QDevelop:______________________________________________________
Error: Errors whilst compiling anything.
Error Code: Various
Solution:

Make sure that you have all the executables (GDB and ctags not vital to compile) locations (i.e. locations to the respective exe’s) in the Tools->External Tools menu. Note that the make exe is actually mingw32-make in the mingw32 folder.

Qwt Install:_________________________________________________
Note: For the following instructions please alter the file paths for your installation.
Follow the instructions in the install file. I had to cd to the qwt directory then “qmake qwt.pro” then “make”. Note: I could compile the examples, but I could not run them because they required some microsoft Visual C dll. (For the dll’s see later - they do work)

Once installed copy the file “C:\Qt\qwt-5.0.2\designer\plugins\designer\qwt_designer_plugin.dll” to “C:\Qt\4.3.4\plugins\designer”. Now the new widgets will be available in designer. Second add “C:\Qt\qwt-5.0.2\lib\qwt5.dll” to the “C:\Qt\4.3.4\bin” folder. This will enable your programs to compile correctly.

Finally, add a LIB path in whatever IDE you are using (or just the pro file) to the “C:\Qt\qwt-5.0.2\lib\libqwt5.a” file and add the header include path “C:\Qt\qwt-5.0.2\src”.
Note: The instructions said to add the “include” folder, but there was none so I just included the source folder.

Now if your on vista, then it compiles, but then crashes. This is because it cannot find some microsoft visual c dlls. I believe this is another path problem, so it might work for XP (I will test later). All we need to do is locate all of these dll’s and place them in the bin directory of your program. I had to add:
msvcp80.dll
msvcr80.dll
And also include the normal Qt dlls:
QtCore4.dll
qwt5.dll
QtGui.dll

The MS dlls can be downloaded here:Microsoft Visual C dll’.

Hopefully, finally, all is good. I believe most of these problems lie with Vista, so XP users should be ok.

01.30.08

Unattended XP install

Posted in XP at 5:12 pm by philwinder

Once again, for future reference I have found a nice little freeware program that can not only automate a windows installation (xp or vista) you can also change what is installed and what isnt including external drivers and programs, hotfixes and updates. Pretty much everthing you can think of
Nlite

11.12.06

Fixed the SWLPT-54125 Pause doesnt connect Problem

Posted in XP at 10:34 pm by philwinder

Fixed the wireless card problem with the SWLPT-54125.  When it installed, it wouldnt connect even though the network was there, it would “flash” the name of the network, go mad and show nothing again.  In the mean time the processor went to 100% and paused all other processes for a split second.  It was more than annoying.  To get rid of it, I had to either disable the card or remove it completly.

It came to the time when the tech support where no longer responding because they didnt have a clue either, so I just tried it one last time.  Removed the card, uninstalled the software, rebooted, installed the software, clicked restart, and before it did restart, put the card back in.  Install the card automatically and boom.  It worked.
I think it might have had something to do with a possible dodgy PCI slot.  It felt like it wiggled about a bit too much in there.  But hey, what do I care, its working and I dont have to connect to my partners laptop anymore.

11.09.06

XP Installation Problems

Posted in XP at 8:59 pm by philwinder

Had a problem when reinstalling windows, it would BSOD at 34 minutes. I fixed it by pressing Shift+F-10 during install and making a copy of setupapi.log in the windows folder. It described that the last thing to install was some ati inf file, so i deleted the incriminating file (atiixpag.inf inside the windows\inf\ folder) and shazam, worked like a dream.