On Mon, May 11, 2009 at 11:20 AM, Wim Dumon <[email protected]> wrote:
> 2009/5/11  <[email protected]>:
>> Hi all,
>>
>> I should evaluate the toolkit for using it on a commercial project on an 
>> embedded system. For testing I try to install it on a linux system. I have 
>> to admit that I'm not very familiar with linux.
>>
>> I followed the instructions for ubuntu on the wt wiki for the prebuilt 
>> packages. When I try to build the examples as described in the wiki and the 
>> readme-file I get the following output. It seems that there is also 
>> something wrong with the boost-lib. I installed boost 1.35 as described and 
>> a test of an example worked well.
>>
>> x...@xx-desktop:~/dev/wtexamples$ cmake 
>> -DWT_SOURCE_DIR=/usr/share/doc/witty-doc/ -DEXAMPLES_CONNECTOR="wt;wthttp" 
>> /usr/share/doc/witty-doc/examples
>
> I'll leave this to Pau (he's the debian specialist), but both the
> values of WT_SOURCE_DIR and EXAMPLES_CONNECTOR seem odd to me (I
> noticed that the wiki mentions them, we may have to correct that). I
> would expect EXAMPLES_CONNECTOR to be simply 'wthttp'. Any comments,
> Pau?

EXAMPLES_CONNECTOR="wt;wthttp" is right. Maybe the name of the
variable is a bit misleading: it's not the connector but the libraries
the examples should be linked to, which are libwt and the connector
library (wthttp or wtfcgi). From the bobsmith example:

TARGET_LINK_LIBRARIES(bobsmith.wt ${EXAMPLES_CONNECTOR})

Given that all examples need to link to libwt, maybe the
CMakeLists.txt could be modified to read like this:

TARGET_LINK_LIBRARIES(bobsmith.wt wt ${EXAMPLES_CONNECTOR})

And now we can have EXAMPLES_CONNECTOR="wthttp" or "wtfcgi", as one
would expect by the variable name.

>> Another question: How do I have to configure an IDE like kdevelop for 
>> developing wt projects?
>>
>
> Wt uses cmake, and from the results of a  quick google search, it
> looks to me that cmake can generate kdevelop projects. Simply add '-G
> KDevelop3'  to the cmake command line. Or, make your own kdevelop
> project, and configure it to link to wt, wthttp (or wtfcgi, depending
> on the connector you want to use), and configure it to search for the
> Wt header files in the right location.

Other options are KDevelop4 and QtCreator, which support
CMakeLists.txt out of the box. KDevelop4 has better support for CMake
(and provides a lot more C++ features, too) but its stability is not
exactly good.

-- 
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to