On Tue, Jul 26, 2011 at 9:51 PM, Alec Taylor <[email protected]> wrote:
> 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) {
use int main
>        WApplication appl(argc, argv);
use WApplication *app(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

Reply via email to