You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, June 7th 2012, 9:36am

Need to create dll

I am having quite a bit of trouble trying to compile a c++ file with qmake. I have been given a c++ file and a .pro file to work with. The steps I've followed are as follows:
  1. Open cmd
  2. cd C:\nukePlugins\nukePlugins_\monitorSocket
  3. C:\Qt\4.8.1_x64\qmake\qmake.exe
This creates "debug" and "release" folders as well as "Makefile", "Makefile.Debug" and "Makefile.Release" files. But no dll. What is the next step in this process?
If it helps the contents of the .pro file are below:
# -------------------------------------------------
# Project created by QtCreator 2009-11-12T14:20:23
# -------------------------------------------------

#NDKDIR = C:/Program Files/Nuke6.1v3
NDKDIR = C:/Program Files/Nuke6.1v3

#CONFIG += plugin qdbus
CONFIG += plugin

QT += core \
network \
gui

#DESTDIR = ~/.nuke/
TARGET = monitorSocket

#QMAKE_CXX = g++-4.1
QMAKE_RPATHDIR = /usr/lib

TEMPLATE = lib
DEFINES += USE_GLEW
SOURCES += monitorSocket.cpp
#HEADERS += monitorSocket_global.h

INCLUDEPATH += $$NDKDIR/include

#LIBS += -lDDImage -L$$NDKDIR
LIBS += -L$$NDKDIR

QMAKE_CXXFLAGS += -g

macx:QMAKE_LFLAGS_PLUGIN += -undefined suppress -flat_namespace

unix:QMAKE_POST_LINK = cp libmonitorSocket.so ~/.nuke/monitorSocket.so
macx:QMAKE_POST_LINK = cp libmonitorSocket.dylib ~/.nuke/monitorSocket.dylib

Also I notice below there is a section:
macx:QMAKE_LFLAGS_PLUGIN += -undefined suppress -flat_namespace
unix:QMAKE_POST_LINK = cp libmonitorSocket.so ~/.nuke/monitorSocket.so
macx:QMAKE_POST_LINK = cp libmonitorSocket.dylib ~/.nuke/monitorSocket.dylib

do I need to add something for win32?
I.e win32:QMAKE_POST_LINK = cp libmonitorSocket.dll ~/.nuke/monitorSocket.dll