[vtkusers] Prob building Koenig vtkqt lib
Erica Sullivan
cardsfan1995 at hotmail.com
Mon Jul 4 14:29:14 EDT 2005
I am having problems w/ building the vtkQt library created by Koenig. I
have tried to specify in the makefile that there is no entry point by using
/NOENTRY in LFLAGS, but I get the error that an entry point needs to be
specified unless I specify a SUBSYSTEM. If I set SUBSYTEM to windows, I get
the error of unresolved external symbol _WinMain at 16. If I set SUBSYSTEM to
console, I get the error of unresolved external symbol _main. I have
included a copy of my makefile. I am using Qt 3.2 w/ nmake to build the
library. Any help will be greately appreciated.
Erica
#############################################################################
# Makefile for building: vtkqt
# Generated by qmake (1.06c) (Qt 3.2.1) on: Mon Jul 04 11:07:28 2005
# Project: vtkqt.pro
# Template: app
# Command: $(QMAKE) -o Makefile vtkqt.pro
#############################################################################
####### Compiler, tools and options
CC = cl
CXX = cl
LEX = flex
YACC = byacc
CFLAGS = -nologo -Zm200 -W3 -MD -O1 -GX -DUNICODE -DQT_DLL
-DQT_THREAD_SUPPORT -DQT_NO_DEBUG
CXXFLAGS = -nologo -Zm200 -W3 -MD -O1 -GX -DUNICODE -DQT_DLL
-DQT_THREAD_SUPPORT -DQT_NO_DEBUG
LEXFLAGS =
YACCFLAGS =-d
INCPATH = -I"." -I"$(QTDIR)\include" -I"C:\VTK\vtkqt"
-I"c:\QT\3.2.1NonCommercial\mkspecs\win32-msvc" -I"c:\vtk\common"
-I"c:\vtk\rendering" -I"c:\vtk\IO" -I"c:\vtk\filtering" -I"C:\vtk\bin"
LINK = link
LFLAGS = /NOLOGO /NOENTRY delayimp.lib /DELAYLOAD:comdlg32.dll
/DELAYLOAD:oleaut32.dll /DELAYLOAD:winmm.dll /DELAYLOAD:wsock32.dll
/DELAYLOAD:winspool.dll /LIBPATH:"$(QTDIR)\lib"
/LIBPATH:"c:\vtk\bin\bin\debug"
LIBS = "qt-mtnc321.lib" "kernel32.lib" "user32.lib" "gdi32.lib"
"comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib"
"uuid.lib" "imm32.lib" "winmm.lib" "wsock32.lib" "winspool.lib"
"opengl32.lib" "glu32.lib" "delayimp.lib" "vtkCommon.lib" "VtkRendering.lib"
MOC = $(QTDIR)\bin\moc.exe
UIC = $(QTDIR)\bin\uic.exe
QMAKE = qmake
IDC = $(QTDIR)\bin\idc.exe
IDL = midl
ZIP = zip -r -9
COPY_FILE = copy
COPY_DIR = copy
DEL_FILE = del
DEL_DIR = rmdir
MOVE = move
CHK_DIR_EXISTS = if not exist
MKDIR = mkdir
####### Files
HEADERS = vtkQtRenderWindow.h \
vtkQtRenderWindowInteractor.h
SOURCES = vtkQtRenderWindow.cpp \
vtkQtRenderWindowInteractor.cpp
OBJECTS = vtkQtRenderWindow.obj \
vtkQtRenderWindowInteractor.obj
FORMS =
UICDECLS =
UICIMPLS =
SRCMOC = moc_vtkQtRenderWindowInteractor.cpp
OBJMOC = moc_vtkQtRenderWindowInteractor.obj
DIST =
TARGET = vtkqt.dll
####### Implicit rules
.SUFFIXES: .c .cpp .cc .cxx .C
{.}.cpp{}.obj::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo @<<
$<
<<
{.}.cc{}.obj::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo @<<
$<
<<
{.}.cxx{}.obj::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo @<<
$<
<<
{.}.C{}.obj::
$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo @<<
$<
<<
{.}.c{}.obj::
$(CC) -c $(CFLAGS) $(INCPATH) -Fo @<<
$<
<<
####### Build rules
all: Makefile $(TARGET)
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC)
$(LINK) $(LFLAGS) /OUT:$(TARGET) @<<
$(OBJECTS) $(OBJMOC) $(LIBS)
<<
mocables: $(SRCMOC)
uicables: $(UICIMPLS) $(UICDECLS)
Makefile: vtkqt.pro c:\QT\3.2.1NonCommercial\mkspecs\win32-msvc\qmake.conf
c:\QT\3.2.1NonCommercial\lib\qtmain.prl
$(QMAKE) -o Makefile vtkqt.pro
qmake:
@$(QMAKE) -o Makefile vtkqt.pro
dist:
$(ZIP) vtkqt.zip $(SOURCES) $(HEADERS) $(DIST) $(FORMS)
C:/VTK/vtkqt/vtkqt.pro c:\QT\3.2.1NonCommercial\lib\qtmain.prl
uiclean:
mocclean:
-$(DEL_FILE) moc_vtkQtRenderWindowInteractor.cpp
-$(DEL_FILE) moc_vtkQtRenderWindowInteractor.obj
clean: uiclean mocclean
-$(DEL_FILE) vtkQtRenderWindow.obj
-$(DEL_FILE) vtkQtRenderWindowInteractor.obj
FORCE:
distclean: clean
-$(DEL_FILE) $(TARGET)
####### Compile
vtkQtRenderWindow.obj: vtkQtRenderWindow.cpp vtkQtRenderWindow.h \
vtkQtRenderWindowInteractor.h
vtkQtRenderWindowInteractor.obj: vtkQtRenderWindowInteractor.cpp
vtkQtRenderWindowInteractor.h \
vtkQtRenderWindow.h
moc_vtkQtRenderWindowInteractor.obj: moc_vtkQtRenderWindowInteractor.cpp
vtkQtRenderWindowInteractor.h vtkQtRenderWindow.h
moc_vtkQtRenderWindowInteractor.cpp: $(MOC) vtkQtRenderWindowInteractor.h
$(MOC) vtkQtRenderWindowInteractor.h -o moc_vtkQtRenderWindowInteractor.cpp
####### Install
install: all
uninstall:
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
More information about the vtkusers
mailing list