Opened 14 years ago

Closed 14 years ago

#2399 closed bug (fixed)

Build fails for r12842.

Reported by: strk Owned by: nobody
Priority: major: does not work as expected Milestone: Version 1.5.0
Component: Build/Install Version: Trunk
Keywords: Cc:
Must Fix for Release: No Platform: SuSE
Platform Version: Awaiting user input: no

Description

In file included from /net/lafont/home/santisa/src/qgis/qgis/src/core/symbology-ng/qgssymbolv2.cpp:5: /net/lafont/home/santisa/src/qgis/qgis/src/core/symbology-ng/qgslinesymbollayerv2.h:70: error: field ‘mCustomDashVector’ has incomplete type /net/lafont/home/santisa/src/qgis/qgis/src/core/symbology-ng/qgslinesymbollayerv2.h: In member function ‘QVector<double> QgsSimpleLineSymbolLayerV2::customDashVector() const’: /net/lafont/home/santisa/src/qgis/qgis/src/core/symbology-ng/qgslinesymbollayerv2.h:58: error: return type ‘struct QVector<double>’ is incomplete /net/lafont/home/santisa/src/qgis/qgis/src/core/symbology-ng/qgslinesymbollayerv2.h:58: error: ‘mCustomDashVector’ was not declared in this scope /net/lafont/home/santisa/src/qgis/qgis/src/core/symbology-ng/qgslinesymbollayerv2.h: In member function ‘void QgsSimpleLineSymbolLayerV2::setCustomDashVector(const QVector<double>&)’: /net/lafont/home/santisa/src/qgis/qgis/src/core/symbology-ng/qgslinesymbollayerv2.h:59: error: ‘mCustomDashVector’ was not declared in this scope

Change History (11)

comment:1 by mhugent, 14 years ago

Hm, probably it was a problem only with certain compiler versions. Try r12844, I hope it will fix the problem.

comment:2 by strk, 14 years ago

As of r12844 that problem is gone, now another is exposed:

src/core/symbology-ng/qgssymbolv2.h:104: error: non-static reference member ‘QgsRenderContext& QgsSymbolV2RenderContext::mRenderContext’, can't use default assignment operator sipcorepart0.cpp: In function ‘void assign_QgsSymbolV2RenderContext(void*, const void*)’: sipcorepart0.cpp:13644: note: synthesized method ‘QgsSymbolV2RenderContext& QgsSymbolV2RenderContext::operator=(const QgsSymbolV2RenderContext&)’ first required here make[2]: * [python/CMakeFiles/python_module_qgis_core.dir/core/sipcorepart0.cpp.o] Error 1 make[1]: * [python/CMakeFiles/python_module_qgis_core.dir/all] Error 2 make: * [all] Error 2

(could be already reported as I think I've read something about SIP being broked on the mailing list)

comment:3 by pcav, 14 years ago

Still valid?

comment:4 by strk, 14 years ago

Yes, still as of r12919

src/qgis/build/src/helpviewer/ui_qgshelpviewerbase.h:20:29: error: QtWebKit /QWebView: No such file or directory

I configured using: cmake -D WITH_QWT=FALSE Anything else I should add to the cmake call to disable QtWebKit or is that it ? If that's all, it is still a bug.

comment:5 by wonder, 14 years ago

What Qt version do you use? At least Qt4.4 is necessary due QtWebKit component.

WITH_QWT cmake variable has other meaning: it says whether compile also parts that depend on Qwt toolkit (currently only GPS tracking widget).

comment:6 by strk, 14 years ago

libQtCore.so.4.4.3 qglobal.h:#define QT_VERSION_STR "4.4.3"

I guess I could do w/out QtWebKit, if there's a way to specify that at configure/cmake time.

comment:7 by wonder, 14 years ago

QtWebKit is a required part for the help viewer.

Any chance the qtwebkit include files are not present on your system? (search e.g. for qwebview.h)

comment:8 by strk, 14 years ago

Indeed no qwebview.h I belive that part is in a package called libQtWebKit-devel. Qgis should check for qwebview.h existance and warn/error at configure time if it's mandatory

comment:9 by wonder, 14 years ago

The check has been added in svn trunk, r12991.

Can we close the ticket?

comment:10 by strk, 14 years ago

Unfortunately I installed libQtWebKit-devel so can't check it. Feel free to close if you did test yourself.

comment:11 by wonder, 14 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.