PDA

View Full Version : application not executing in windows, in linux its working



sujan.dasmahapatra
17th January 2012, 12:39
Dear All
My application is running fine inlinux, and in windows its compiling but not executing the exe.
Error : The application failed to initialize properly(0xc0000005).

I have put all the necessary dlls in PATH. I am using Qwt whose PATH is mentioned in the .pro file….Please check my .pro file


QWT_ROOT = C:/Qt/4.8.0_nonsql/src/3rdparty/qwt-5.2.1
TEMPLATE = app
TARGET = bin/AirfoilOptGUI
win32 {
DEPENDPATH += lib source C:/Qt/4.8.0_nonsql/src/3rdparty/qwt-5.2.1/lib
INCLUDEPATH += inc C:/Qt/4.8.0_nonsql/src/3rdparty/qwt-5.2.1/src
}
unix {
DEPENDPATH += lib source
INCLUDEPATH += inc
}
CONFIG += assistant \
qt
QT += opengl \
network
MOC_DIR = moc
OBJECTS_DIR = obj
HEADERS += inc/*.h
SOURCES += source/*.cpp
RESOURCES += ./rc/airfoiloptgui.qrc
RC_FILE = airfoiloptgui.rc
# install
sources.files = $$SOURCES $$HEADERS $$RESOURCES documentation images/* *.pro
win32{
LIBS += -LC:/Qt/4.8.0_nonsql/src/3rdparty/qwt-5.2.1/lib -lqwt5
}
unix {
LIBS += -L./lib -lQtCore -lQtGui -lQtAssistantClient -lQtXml \
./lib/libqwt.so.5
}


Any help would be highly appreciated. Thanks Sujan

amleto
17th January 2012, 13:53
use depends or dependency walker to find missing libs.

just because you add paths to .pro file doesnt mean o/s can find them when trying to run the binary

Spitfire
19th January 2012, 10:11
Or copy qt and qwt libraries to the place where your binary is.