Hi,
instead of modifying cmake of src folder
you create a folder named main or whatever you application name
copy CMakeLists.txt from hello and modify it for your application
also modify
/path/to/wt-folder/examples/CMakeLists.txt
check for SUBDIRS
eg
SUBDIRS(
..
..
)
add you newly created folder name to the list of SUBDIRS
open terminal and switch to wt folder
make -C examples
now you can see that you folder is being compiled
if you build wt with wthttp (default)
you can go to you application folder and issue this command
./myapp.wt --docroot . --http-address=127.0.0.1 --http-port=1006
point your browser to http://localhost:1006
Hope this helps
On Sun, Mar 13, 2011 at 12:16 PM, Marcel Tella <[email protected]>wrote:
> Hello!!
>
> I'm trying to compile a single application example from outside the source
> codi, for thus, reproduce when I have gone mine.
>
> The steps that I've followed have been.
>
> (From the CMake tutorial of the wt wiki)
>
> I've placed my code in a folder called "main"
>
> inside this, the code is in main ->source. Indeed, there is a
> CMakeLists.txt like the tutorial explains.
>
> Outside source I've got another CMakeLists.txt with the other options.
>
> Well, then, I've created the directory build.
>
> and then I've done.
>
> cmake ..
>
> and then
>
> make
>
> and it has gone perfect until this point.
>
> And now, I don't know exactly what should do to work my application,
> because I tried to follow the same instructions than in the example, and i
> got an error about not possible to share libraries. :S
>
> Could anyone tell me what to do?
>
> thank you
>
>
> --
> Marcel Tella.
>
>
> ------------------------------------------------------------------------------
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>
--
Thanks && Regards
Rashad
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest