Project

General

Profile

Installation problem

Added by Damon Gogul almost 13 years ago

Hi,

When building Wt from the WT.sln file on Visual C, I am getting the following error:

Error 73 error C2664: 'Wt::WTreeTableNode::WTreeTableNode(const Wt::WString &,Wt::WIconPair ,Wt::WTreeTableNode)' : cannot convert parameter 1 from 'boost::filesystem3::path' to 'const Wt::WString &' C:\wt-3.1.9\examples\filetreetable\FileTreeTableNode.C 33 1 filetreetable.wt

Can someone explain how to fix this error to me?

Thanks.


Replies (4)

RE: Installation problem - Added by con abs almost 13 years ago

As far as I know, boost 1.46 is not compatible with wt 3.1.9. Please try boost 1.45 instead.

RE: Installation problem - Added by Wim Dumon almost 13 years ago

correct. Boost changed their filesystem API in an incompatible way. Wt 3.1.9 was not completely modified to support the new API - the current git version should work.

RE: Installation problem - Added by David Hubbard almost 13 years ago

Damon

So, Wim has provided "proper" fix - I hit this and figured as it was only in examples, rather than base library, I patched my copy of code - faster = dirtier !?

FileTreeTableNode::FileTreeTableNode(const boost::filesystem::path& path)
//  : WTreeTableNode(Wt::widen(path.leaf()), createIcon(path)),
    : WTreeTableNode(WString(path.leaf().c_str()), createIcon(path)),

and in Wt-homepage example: ExampleSourceViewer.C

static std::string filename(const fs::path& p)
{
//  return p.empty() ? std::string() : *--p.end();     
    return p.empty() ? std::string() : filename(p);
}

May get you running a bit quicker from where you are

RE: Installation problem - Added by Damon Gogul almost 13 years ago

Thank you very much!

Someone should update the installation guide; it's a real deterrent to using this program.

Damon Gogul

    (1-4/4)