Thanks a heap, looking forward to a better link (tutorial); in the
meantime I'm going to clean-install Ubuntu 11.04 on a different VM
(also have it dual-booting) and reinstall Wt from scratch, maybe using
the latest git version.

I will continue using the latest boost (1.47) with a manual b2 --prefix load.

The main reason for this is my bbb installation caused all the MySQL
problems, so it's probably best to start from scratch.

Also, could you please recommend a library for displaying PDFs,
dealing with Cookies (if Wt needs to go down to that low a level) and
a db-stored commenting widget?

Thanks once again,

Alec Taylor

On Wed, Jul 27, 2011 at 3:26 AM, Wim Dumon <[email protected]> wrote:
> wmain is very very old (probably wt 1.x?). Please base your
> application on the hello world application as distributed in the
> version of Wt that you're using - you'll find that its comments
> explain itself.
>
> BR,
> Wim.
>
> 2011/7/26 Alec Taylor <[email protected]>:
>> Good Morning,
>>
>> Unfortunately it seems I'm unable to compile, even the simplest of Wt 
>> projects.
>>
>> I'm able to compile all the examples fine (Ubuntu 11.04), however when
>> I create my own custom-project I run into some problems.
>>
>> I'm following a tutorial, and here is the very-basic hello_world.C
>> file catalogue:
>> #include <WApplication>
>> #include <WText>
>> #include <WPushButton>
>>
>> int wmain(int argc, char **argv) {
>>        WApplication appl(argc, argv);
>>        // Widgets can be added to a parent
>>        // by calling addWidget() ...
>>        appl.root()->addWidget(new Wtext("<h1>Hello, World!</h1>"));
>>        // ... or by specifying a parent at
>>        // construction time
>>        WPushButton *Button = new WPushButton("Quit", appl.root());
>>        Button->clicked.connect(SLOT(&appl, Wapplication::quit));
>>        return appl.exec();
>> }
>>
>> My CMakeLists.txt is as follows:
>> ADD_EXECUTABLE(hello_world.wt hello_world.C)
>> TARGET_LINK_LIBRARIES(hello_world.wt /usr/include/Wt)
>> INCLUDE_DIRECTORIES(/usr/include/Wt)
>>
>> To compile, I run:
>> ~/Wt/examples/hello_world$ g++ -L/usr/lib -lwt -lwthttp hello_world.C
>> -o hello_world.wt
>> hello_world.C:1:24: fatal error: WApplication: No such file or directory
>> compilation terminated
>> ___
>>
>> (am I meant to run the cmake program first?)
>> ___
>>
>> Please tell me what I need to do in order to get my custom projects running.
>>
>> Thank you for all suggestions,
>>
>> Alec Taylor
>>
>> PS: I'm also having trouble running the database-backed examples, such
>> as wt-homepage. Log: http://pastebin.com/5ER5vZBa Error within
>> Firefox: "??template??"
>>
>> ------------------------------------------------------------------------------
>> Magic Quadrant for Content-Aware Data Loss Prevention
>> Research study explores the data loss prevention market. Includes in-depth
>> analysis on the changes within the DLP market, and the criteria used to
>> evaluate the strengths and weaknesses of these DLP solutions.
>> http://www.accelacomm.com/jaw/sfnl/114/51385063/
>> _______________________________________________
>> witty-interest mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/witty-interest
>>
>
> ------------------------------------------------------------------------------
> Magic Quadrant for Content-Aware Data Loss Prevention
> Research study explores the data loss prevention market. Includes in-depth
> analysis on the changes within the DLP market, and the criteria used to
> evaluate the strengths and weaknesses of these DLP solutions.
> http://www.accelacomm.com/jaw/sfnl/114/51385063/
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>

------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to