Welcome! Log In Create A New Profile

Advanced

utils.dll was not found

Posted by kapako 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
utils.dll was not found
May 12, 2008 11:06AM
Some help needed:

If I try to compile the project using qmake -project, then qmake projectname.pro,
and then make, some files are missing or not found though the libraries are included in the project

See below project:

######################################################################
# Automatically generated by qmake (2.00a) Tue 6. May 15:50:02 2008
######################################################################

TEMPLATE = app
TARGET +=
DEPENDPATH += .
INCLUDEPATH += $$(CPPLIBS)/utils
LIBS += -L$$(CPPLIBS)
LIBS += -lutils

# Input
HEADERS += codevisitor.h
SOURCES += codevisitor-test.cpp codevisitor.cpp
CONFIG += console

However using the IDE, the project compiles. But if I go back and try to run the application from the console, it says:

"This application has failed to start because utils.dll was not found. Re-installing the application may fix this problem"

I am not sure what I do wrong here because I get other applications working using the same logic.
Anonymous User
Re: utils.dll was not found
May 12, 2008 11:27AM
Do this

bini Wrote:
-------------------------------------------------------
> Oops only saw this now and it may be too late to
> help anyone, anyways, if you not using QIDE to
> build your projects, you'll notice that (assuming
> you using windows) there's a little batch file in
> the bin folder of your QT installation called
> qtvars.bat. Just edit this batch file according to
> the instructions given in tut102 (you'll notice
> its identical to the QIDE.bat file mentioned ).
> This should sort out any problems you may have
> with using other IDEs.
Re: utils.dll was not found
May 12, 2008 11:46AM
Do you edit the said file and build a different library (i.e utils.dll etc..) or just edit it and build the project. The latter does not seem to sort the issue.
Re: utils.dll was not found
May 13, 2008 12:22PM
kapako Wrote:
-------------------------------------------------------
> Some help needed:
>
> If I try to compile the project using qmake
> -project, then qmake projectname.pro,
> and then make, some files are missing or not found
> though the libraries are included in the project
>
> See below project:
>
> ##################################################
> ####################
> # Automatically generated by qmake (2.00a) Tue 6.
> May 15:50:02 2008
> ##################################################
> ####################
>
> TEMPLATE = app
> TARGET +=
> DEPENDPATH += .
> INCLUDEPATH += $$(CPPLIBS)/utils
> LIBS += -L$$(CPPLIBS)
> LIBS += -lutils
>
> # Input
> HEADERS += codevisitor.h
> SOURCES += codevisitor-test.cpp codevisitor.cpp
> CONFIG += console
>
> However using the IDE, the project compiles. But
> if I go back and try to run the application from
> the console, it says:
>
> "This application has failed to start because
> utils.dll was not found. Re-installing the
> application may fix this problem"
>
> I am not sure what I do wrong here because I get
> other applications working using the same logic.

The only way I've sorted this problem was setting the path by typing on my working directory set path=%path%;c:\projects\libs
Re: utils.dll was not found
June 18, 2008 08:38AM
I was having the same problem and solved it by copying the utils.dll file to the debug folder of the application. i.e. when you run qmake, debug and release folders are created. I copied the utils.dll file to these folders.

Sanjiv
avatar Re: utils.dll was not found
June 20, 2008 01:42PM
That's a hack. The proper way is to make sure your directories are set up properly.
Re: utils.dll was not found
June 25, 2008 05:00PM
I followed all the instrucions in the tutorials and had the problem on my pc. I then tried it on another pc and I got the same issues. I had to copy the file so that I could at least compile and complete the assignments.

Sanjiv
Re: utils.dll was not found
June 27, 2008 11:28PM
If you want to run in from the command prompt then you need to set up your environmental variables. That should simplify it.
This: "The only way I've sorted this problem was setting the path by typing on my working directory set path=%path%;c:\projects\libs" will then no longer be required.

Here's what to do:

Right click "My Computer" and select "Properties"
Select the "Advanced" tab
Select "Environmental Variables" button
If you do not have a "Path" variable defined in your user variables, then select New (in the user variable section)
Variable name: Path
Variable value: c:\projects\libs
Select Ok, Ok, Ok

That should solve the problem of setting the path everytime before trying to compile from the command line.

Hope it helps.
Sorry, only registered users may post in this forum.

Click here to login