Hi Pritpal,

My guess for the reason is that you try to
include old central filelist.mk instead of
the new local one.

See this line in Makefile:
   include $(TOP)$(ROOT)contrib/hbqt/filelist.mk
Should be:
   include $(TOP)$(ROOT)contrib/hbqt/hbqtwebkit/filelist.mk

Brgds,
Viktor

On 2009 Oct 22, at 08:41, Pritpal Bedi wrote:


Hello Viktor, All

I am done with separating the source files in respective folders.
contrib/contrib/hbqt/qtwebkit contians these files

filelist.mk
Makefile

QWebFrame.cpp
QWebHistory.cpp
QWebHistoryInterface.cpp
QWebHistoryItem.cpp
QWebHitTestResult.cpp
QWebPage.cpp
QWebPluginFactory.cpp
QWebSecurityOrigin.cpp
QWebSettings.cpp
QWebView.cpp
TQWebFrame.prg
TQWebHistory.prg
TQWebHistoryInterface.prg
TQWebHistoryItem.prg
TQWebHitTestResult.prg
TQWebPage.prg
TQWebPluginFactory.prg
TQWebSecurityOrigin.prg
TQWebSettings.prg
TQWebView.prg

filelist.mk
=======
#
# $Id: hbqtgen.prg 12718 2009-10-16 01:57:48Z vouchcac $
#

# --------------------------------------------------------------------
# WARNING: Automatically generated source file. DO NOT EDIT!
#          Instead, edit corresponding .qth file,
#          or the generator tool itself, and run regenarate.
# --------------------------------------------------------------------

CPP_SOURCES := \
  QWebFrame.cpp \
  QWebHistory.cpp \
  QWebHistoryInterface.cpp \
  QWebHistoryItem.cpp \
  QWebHitTestResult.cpp \
  QWebPage.cpp \
  QWebPluginFactory.cpp \
  QWebSecurityOrigin.cpp \
  QWebSettings.cpp \
  QWebView.cpp \



PRG_SOURCES := \
  TQWebFrame.prg \
  TQWebHistory.prg \
  TQWebHistoryInterface.prg \
  TQWebHistoryItem.prg \
  TQWebHitTestResult.prg \
  TQWebPage.prg \
  TQWebPluginFactory.prg \
  TQWebSecurityOrigin.prg \
  TQWebSettings.prg \
  TQWebView.prg \

# Don't delete this comment, it's here to ensure empty
# line above is kept intact.


Makefile
======
#
# $Id: Makefile 12634 2009-10-01 16:04:11Z vszakats $
#

ROOT := ../../../

include $(TOP)$(ROOT)config/global.mk

LIBNAME := hbqtwebkit

PRG_HEADERS := \
  ../hbqt.ch \

# force redetect. needed for _QT_DARWIN trick
HB_HAS_QT :=

_DET_DSP_NAME := qt
_DET_VAR_INC_ := HB_INC_QT
_DET_VAR_HAS_ := HB_HAS_QT
_DET_FLT_PLAT := !dos !os2
_DET_FLT_COMP := !mingw64 !watcom !bcc !pocc !pocc64 !poccarm ! msvcia64
_DET_INC_DEFP := /usr/include/qt4 /usr/lib/qt4/include /usr/include
/Developer/qt/include
_DET_INC_HEAD := /Qt/qglobal.h
include $(TOP)$(ROOT)config/detfun.mk

_QT_DARWIN :=
ifeq ($(HB_PLATFORM),darwin)
  ifeq ($(HB_HAS_QT),)
     _DET_DSP_NAME := qt
     _DET_VAR_INC_ := HB_INC_QT
     _DET_VAR_HAS_ := HB_HAS_QT
     _DET_INC_DEFP :=
/Library/Frameworks/QtCore.framework/Versions/4/Headers
     _DET_INC_HEAD := /QtCore
     include $(TOP)$(ROOT)config/detfun.mk
     _QT_DARWIN := yes
  endif
endif

ifneq ($(HB_HAS_QT),)

  ifeq ($(_QT_DARWIN),yes)
     HB_CFLAGS += -I/Library/Frameworks/QtCore.framework/Headers
     HB_CFLAGS += -I/Library/Frameworks/QtGui.framework/Headers
     HB_CFLAGS += -I/Library/Frameworks/QtNetwork.framework/Headers
     HB_CFLAGS += -I/Library/Frameworks/QtWebKit.framework/Headers
  else
HB_CFLAGS += $(foreach d,$(HB_HAS_QT),-I$(d) -I$(d)/Qt -I$(d)/ QtCore
-I$(d)/QtGui -I$(d)/QtNetwork -I$(d)/QtWebKit)
  endif

  include $(TOP)$(ROOT)contrib/hbqt/filelist.mk

  include $(TOP)$(ROOT)config/header.mk
  include $(TOP)$(ROOT)config/lib.mk

  ifneq ($(filter $(HB_PLATFORM),win wce),)
     ifneq ($(HB_QT_STATIC),)
        DIRS += hbqts
        include $(TOP)$(ROOT)config/dir.mk
     endif
  endif
else
  HB_SKIP_REASON := $(_DET_RES_TEXT)
  include $(TOP)$(ROOT)config/none.mk
endif



When I initiate "make" while staying in this folder I get
========================================

C:\harbour\contrib\hbqt\qtwebkit>make
! Building Harbour 2.0.0beta3 from source - http://www.harbour-project.org
! MAKE: make 3.81 sh.exe
! HB_USER_PRGFLAGS: -D__HB_WINDEBUG__ -D__HB_OUTDEBUG__
! HB_INSTALL_PREFIX: C:\harbour_dev\harbour\mingw
! HB_BIN_INSTALL: C:\harbour_dev\harbour\mingw\bin
! HB_LIB_INSTALL: C:\harbour_dev\harbour\mingw\lib
! HB_INC_INSTALL: C:\harbour_dev\harbour\mingw\include
! HB_HOST_PLAT: win (x86)  HB_SHELL: nt
! HB_PLATFORM: win (x86) (autodetected)
! HB_COMPILER: mingw
! Component: 'zlib' found in C:/harbour/external/zlib (local)
! Component: 'pcre' found in C:/harbour/external/pcre (local)
! Component: 'openssl' not found
! Component: 'gpm' not supported on win platform
! Component: 'slang' not found
! Component: 'curses' not found
! Component: 'x11' not found
! Component: 'wattcp/watt-32' not supported on win platform
make[1]: *** No rule to make target `moc_slots.o', needed by
`libhbqtwebkit.a'.
Stop.
make: *** [descend] Error 2


I fail to understand why moc_slots is required to build the library.
The same error is reported while in "qtgui" and "qtnetwork" folders.
Only "qtcore" compiles fine.

I do not know how to resolve this issue.
One way could be to distribute "moc_slots.cpp" in every folder,
but this may cause conflicts in the final executable, though I am
not sure of it right now.

If anyone has clues please forward.
In the meantime I continue with my experiments.

Regards
Pritpal Bedi




--
View this message in context: 
http://www.nabble.com/HBQT---Sub-Classification---Makefile%28s%29-tp26004816p26004816.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to