cppcms-users Mailing List for CppCMS C++ Web Framework (Page 129)
Brought to you by:
artyom-beilis
You can subscribe to this list here.
2009 |
Jan
|
Feb
(22) |
Mar
|
Apr
(3) |
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
(16) |
Dec
(13) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(4) |
Feb
|
Mar
(8) |
Apr
(8) |
May
(8) |
Jun
(36) |
Jul
(63) |
Aug
(126) |
Sep
(47) |
Oct
(66) |
Nov
(46) |
Dec
(42) |
2011 |
Jan
(87) |
Feb
(24) |
Mar
(54) |
Apr
(21) |
May
(22) |
Jun
(18) |
Jul
(22) |
Aug
(101) |
Sep
(57) |
Oct
(33) |
Nov
(34) |
Dec
(66) |
2012 |
Jan
(64) |
Feb
(76) |
Mar
(73) |
Apr
(105) |
May
(93) |
Jun
(83) |
Jul
(84) |
Aug
(88) |
Sep
(57) |
Oct
(59) |
Nov
(35) |
Dec
(49) |
2013 |
Jan
(67) |
Feb
(17) |
Mar
(49) |
Apr
(64) |
May
(87) |
Jun
(64) |
Jul
(93) |
Aug
(23) |
Sep
(15) |
Oct
(16) |
Nov
(62) |
Dec
(73) |
2014 |
Jan
(5) |
Feb
(23) |
Mar
(21) |
Apr
(11) |
May
(1) |
Jun
(19) |
Jul
(27) |
Aug
(16) |
Sep
(5) |
Oct
(37) |
Nov
(12) |
Dec
(9) |
2015 |
Jan
(7) |
Feb
(7) |
Mar
(44) |
Apr
(28) |
May
(5) |
Jun
(12) |
Jul
(8) |
Aug
|
Sep
(39) |
Oct
(34) |
Nov
(30) |
Dec
(34) |
2016 |
Jan
(66) |
Feb
(23) |
Mar
(33) |
Apr
(15) |
May
(11) |
Jun
(15) |
Jul
(26) |
Aug
(4) |
Sep
(1) |
Oct
(30) |
Nov
(10) |
Dec
|
2017 |
Jan
(52) |
Feb
(9) |
Mar
(24) |
Apr
(16) |
May
(9) |
Jun
(12) |
Jul
(33) |
Aug
(8) |
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(6) |
2018 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
(14) |
Jun
(1) |
Jul
(9) |
Aug
(1) |
Sep
(13) |
Oct
(8) |
Nov
(2) |
Dec
(2) |
2019 |
Jan
(1) |
Feb
(1) |
Mar
(3) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2020 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(9) |
Jul
(6) |
Aug
(25) |
Sep
(10) |
Oct
(10) |
Nov
(6) |
Dec
|
2021 |
Jan
|
Feb
|
Mar
(7) |
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(9) |
Oct
(1) |
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Aris S. <ari...@gm...> - 2010-09-07 06:48:16
|
I have the same error and same environment with yours. I remove my "build" directory and re-"build" it. If still won't work, try to upgrade all your ubuntu package via "application->package manager" menu. then remove your "build" directory and re-"build" it. |
From: Daniel V. <chi...@gm...> - 2010-09-07 06:34:14
|
Try with this commands: # cd cppcms # tar -xjf cppcms_boost.tar.bz2 # mkdir build # cd build # cmake .. # make On Mon, 2010-09-06 at 16:06 +0200, Geert Van de Velde wrote: > Hi, > > I am trying to build the cppcms library in a different directory to keep > it nice and clean but it seems to fail. > > #cd cppcms > #tar -xjf cppcms_boost.tar.bz2 > #mkdir build > #cmake build > #cd build > #make > .... > /home/kboyadzh/workspace/cppcms/third-party/booster/lib/locale/src/formatter.cpp: In member function ‘virtual std::basic_string<_CharT, std::char_traits<_CharT>, std::allocator<_CharT> > booster::locale::impl::number_format<CharType>::format(booster::int64_t, size_t&) const’: > /home/kboyadzh/workspace/cppcms/third-party/booster/lib/locale/src/formatter.cpp:65: error: call of overloaded ‘format(booster::int64_t&, icu_4_2::UnicodeString&)’ is ambiguous > /usr/include/unicode/numfmt.h:286: note: candidates are: > icu_4_2::UnicodeString& icu_4_2::NumberFormat::format(double, > icu_4_2::UnicodeString&) const > /usr/include/unicode/numfmt.h:299: note: > icu_4_2::UnicodeString& icu_4_2::NumberFormat::format(int32_t, > icu_4_2::UnicodeString&) const > /usr/include/unicode/numfmt.h:312: note: > icu_4_2::UnicodeString& icu_4_2::NumberFormat::format(int64_t, > icu_4_2::UnicodeString&) const > /home/kboyadzh/workspace/cppcms/third-party/booster/lib/locale/src/formatter.cpp: In member function ‘virtual std::basic_string<_CharT, std::char_traits<_CharT>, std::allocator<_CharT> > booster::locale::impl::number_format<CharType>::format(booster::uint64_t, size_t&) const’: > /home/kboyadzh/workspace/cppcms/third-party/booster/lib/locale/src/formatter.cpp:73: error: call of overloaded ‘format(booster::int64_t&, icu_4_2::UnicodeString&)’ is ambiguous > /usr/include/unicode/numfmt.h:286: note: candidates are: > icu_4_2::UnicodeString& icu_4_2::NumberFormat::format(double, > icu_4_2::UnicodeString&) const > /usr/include/unicode/numfmt.h:299: note: > icu_4_2::UnicodeString& icu_4_2::NumberFormat::format(int32_t, > icu_4_2::UnicodeString&) const > /usr/include/unicode/numfmt.h:312: note: > icu_4_2::UnicodeString& icu_4_2::NumberFormat::format(int64_t, > icu_4_2::UnicodeString&) const > /home/kboyadzh/workspace/cppcms/third-party/booster/lib/locale/src/formatter.cpp: In member function ‘virtual std::basic_string<_CharT, std::char_traits<_CharT>, std::allocator<_CharT> > booster::locale::impl::number_format<CharType>::format(booster::uint32_t, size_t&) const’: > /home/kboyadzh/workspace/cppcms/third-party/booster/lib/locale/src/formatter.cpp:91: error: call of overloaded ‘format(booster::int64_t&, icu_4_2::UnicodeString&)’ is ambiguous > /usr/include/unicode/numfmt.h:286: note: candidates are: > icu_4_2::UnicodeString& icu_4_2::NumberFormat::format(double, > icu_4_2::UnicodeString&) const > /usr/include/unicode/numfmt.h:299: note: > icu_4_2::UnicodeString& icu_4_2::NumberFormat::format(int32_t, > icu_4_2::UnicodeString&) const > /usr/include/unicode/numfmt.h:312: note: > icu_4_2::UnicodeString& icu_4_2::NumberFormat::format(int64_t, > icu_4_2::UnicodeString&) const > make[2]: *** > [booster/CMakeFiles/booster.dir/lib/locale/src/formatter.cpp.o] Error 1 > make[1]: *** [booster/CMakeFiles/booster.dir/all] Error 2 > make: *** [all] Error 2 > > Using ubuntu 10.04 64bit > #uname -a > Linux kibo 2.6.32-24-generic #42-Ubuntu SMP Fri Aug 20 14:21:58 UTC 2010 > x86_64 GNU/Linux > #cmake --version > cmake version 2.8.0 > #gcc --version > gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3 > > libICU version 4.2.1 > > > Building it in the root directory works. Any idea what is going wrong? > > Greetings > > > > DISCLAIMER: > Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you. > > ------------------------------------------------------------------------------ > This SF.net Dev2Dev email is sponsored by: > > Show off your parallel programming skills. > Enter the Intel(R) Threading Challenge 2010. > http://p.sf.net/sfu/intel-thread-sfd > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Julian P. <ju...@wh...> - 2010-09-06 21:16:14
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hallo, is there a way to remove a mounted application (factory) from the pool again? Something like a reversed mount? Maybe, unmount by the mount_point that was used to mount the application (factory)? I need this for my plugin system where it should be possible to swap a plugin at runtime. If this possibility does not exist, is there a chance, that a feature like this will hit the trunk sooner or later? Thanks, Julian -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJMhVoTAAoJENidYKvYQHlQKdAQAM4fSo6RiVdwtMlQHb3OaTNd 44p4aTPeswELeEKmvyi+kQCClGZ6PED/Smb1qGL2czxNdlWagAQv7S1+c1bhVD4u JhiqDOlXlwA0Jou808LSAy72q3ThwyXbgFGjMVQbP6qUnHYCV16Iux4HN9AqsAaM AItm+2bHg9TpqcxZiEgbaKf8jVC8hb6ldbLP41EH2N2lTHNdTH6XDNF/0VJsn++J 2Y0Lj96xA1M0DwOMuY/y10+PSI2ZMRUe6nNELy4Qb98I8OtYxGf3ILJO9yGvxonh f03aRclFKlJMhz/4dneR5OYKAY/QFpJfQMbfdWdjcTA5BLlfiuPBO1Fi/02WySQM nhFsvIQqcxJFLAgkrTl5YVvE0IRW/YPNuX5QPAgN0cSjGKkEcOXLKDOA0LeQkDIq kdEzLON7gcSX5MkK/jwUnyWvctYy7Mqqw+EOSpXwPwa6+5zdtcGhLnefEkFiCJQu wM314h9taC5Vht5ziFb9Yp5RGM8E0FsUrSZZzw3gRCCPy6ac18Ak+pvLRj/jiU++ iuvitnxtlYEsUPIoWNHB8dpha6avdtOSwjxwJg0O3vXauop6PUU7x41JUiCC6p2s X1MlZmffI2rjRtBlEOtUzqPcMdYPcz6ASfvTFPW4KZcCGENJROHJLYF8I7dOJO8E Nq8ljLqnlny0AyWSac0f =j54m -----END PGP SIGNATURE----- |
From: Geert V. de V. <gee...@ba...> - 2010-09-06 14:07:05
|
Hi, I am trying to build the cppcms library in a different directory to keep it nice and clean but it seems to fail. #cd cppcms #tar -xjf cppcms_boost.tar.bz2 #mkdir build #cmake build #cd build #make .... /home/kboyadzh/workspace/cppcms/third-party/booster/lib/locale/src/formatter.cpp: In member function ‘virtual std::basic_string<_CharT, std::char_traits<_CharT>, std::allocator<_CharT> > booster::locale::impl::number_format<CharType>::format(booster::int64_t, size_t&) const’: /home/kboyadzh/workspace/cppcms/third-party/booster/lib/locale/src/formatter.cpp:65: error: call of overloaded ‘format(booster::int64_t&, icu_4_2::UnicodeString&)’ is ambiguous /usr/include/unicode/numfmt.h:286: note: candidates are: icu_4_2::UnicodeString& icu_4_2::NumberFormat::format(double, icu_4_2::UnicodeString&) const /usr/include/unicode/numfmt.h:299: note: icu_4_2::UnicodeString& icu_4_2::NumberFormat::format(int32_t, icu_4_2::UnicodeString&) const /usr/include/unicode/numfmt.h:312: note: icu_4_2::UnicodeString& icu_4_2::NumberFormat::format(int64_t, icu_4_2::UnicodeString&) const /home/kboyadzh/workspace/cppcms/third-party/booster/lib/locale/src/formatter.cpp: In member function ‘virtual std::basic_string<_CharT, std::char_traits<_CharT>, std::allocator<_CharT> > booster::locale::impl::number_format<CharType>::format(booster::uint64_t, size_t&) const’: /home/kboyadzh/workspace/cppcms/third-party/booster/lib/locale/src/formatter.cpp:73: error: call of overloaded ‘format(booster::int64_t&, icu_4_2::UnicodeString&)’ is ambiguous /usr/include/unicode/numfmt.h:286: note: candidates are: icu_4_2::UnicodeString& icu_4_2::NumberFormat::format(double, icu_4_2::UnicodeString&) const /usr/include/unicode/numfmt.h:299: note: icu_4_2::UnicodeString& icu_4_2::NumberFormat::format(int32_t, icu_4_2::UnicodeString&) const /usr/include/unicode/numfmt.h:312: note: icu_4_2::UnicodeString& icu_4_2::NumberFormat::format(int64_t, icu_4_2::UnicodeString&) const /home/kboyadzh/workspace/cppcms/third-party/booster/lib/locale/src/formatter.cpp: In member function ‘virtual std::basic_string<_CharT, std::char_traits<_CharT>, std::allocator<_CharT> > booster::locale::impl::number_format<CharType>::format(booster::uint32_t, size_t&) const’: /home/kboyadzh/workspace/cppcms/third-party/booster/lib/locale/src/formatter.cpp:91: error: call of overloaded ‘format(booster::int64_t&, icu_4_2::UnicodeString&)’ is ambiguous /usr/include/unicode/numfmt.h:286: note: candidates are: icu_4_2::UnicodeString& icu_4_2::NumberFormat::format(double, icu_4_2::UnicodeString&) const /usr/include/unicode/numfmt.h:299: note: icu_4_2::UnicodeString& icu_4_2::NumberFormat::format(int32_t, icu_4_2::UnicodeString&) const /usr/include/unicode/numfmt.h:312: note: icu_4_2::UnicodeString& icu_4_2::NumberFormat::format(int64_t, icu_4_2::UnicodeString&) const make[2]: *** [booster/CMakeFiles/booster.dir/lib/locale/src/formatter.cpp.o] Error 1 make[1]: *** [booster/CMakeFiles/booster.dir/all] Error 2 make: *** [all] Error 2 Using ubuntu 10.04 64bit #uname -a Linux kibo 2.6.32-24-generic #42-Ubuntu SMP Fri Aug 20 14:21:58 UTC 2010 x86_64 GNU/Linux #cmake --version cmake version 2.8.0 #gcc --version gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3 libICU version 4.2.1 Building it in the root directory works. Any idea what is going wrong? Greetings DISCLAIMER: Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you. |
From: Artyom <art...@ya...> - 2010-09-04 18:09:35
|
To make it more clear: when you call render("view_name",some_content) What happens that `base_content::render()` is called, you need to override it in your view (class) in order to make your view useful. Of course you can have many templates, that may be rendered using <% include template_name() %> but all should begin render(). Artyom >Hi! Artyom, > > >Thank you for pointing me to that documentation! > > >I am confused. Does the following excerpt indicate that the template name >"render()" is mandatory? > > >"Each skin should implement render() virtual member function, unless it is >already implemented in its parent." > > >Regards, > |
From: <cn...@gr...> - 2010-09-04 17:23:20
|
Hi! Artyom, Thank you for pointing me to that documentation! I am confused. Does the following excerpt indicate that the template name "render()" is mandatory? "Each skin should implement render() virtual member function, unless it is already implemented in its parent." Regards, CN -----Original Message----- From: Artyom <art...@ya...> To: cpp...@li... Sent: Sun, Sep 5, 2010 12:36 am Subject: Re: [Cppcms-users] Template name "render()" This is not mandatory name, this is default template that is rendered when rendering specific view. Read this: http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_templates_gen Artyom From: "cn...@gr..." <cn...@gr...> To: cpp...@li... Sent: Sat, September 4, 2010 6:11:03 PM Subject: [Cppcms-users] Template name "render()" Hi! The compiled program "hello-tmpl" stops working if I change <% template render() %> to <% template output() %> in file "first.tmpl" under "~/examples/templates/" extracted from cppcms source tarball. I suspect this is because the template system demands that the exact member function virtual void render(){ ... } exist in order to be able to write out stuff. If I am right, it would be nice to see this mandatory template name "render()" be documented (preferably in page "Templates: Top Level Blocks (v 1.x)"). Regards, CN |
From: Artyom <art...@ya...> - 2010-09-04 16:36:53
|
This is not mandatory name, this is default template that is rendered when rendering specific view. Read this: http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_templates_gen Artyom > >From: "cn...@gr..." <cn...@gr...> >To: cpp...@li... >Sent: Sat, September 4, 2010 6:11:03 PM >Subject: [Cppcms-users] Template name "render()" > >Hi! > > >The compiled program "hello-tmpl" stops working if I change > > > ><% template render() %> > > > >to > > > ><% template output() %> > > > >in file "first.tmpl" under "~/examples/templates/" extracted from cppcms source >tarball. I suspect this is because the template system demands that the exact >member function > > > >virtual void render(){ ... } > > > >exist in order to be able to write out stuff. If I am right, it would be nice to >see this mandatory template name "render()" be documented (preferably in page >"Templates: Top Level Blocks (v 1.x)"). > > > >Regards, > > > >CN |
From: <cn...@gr...> - 2010-09-04 15:11:32
|
Hi! The compiled program "hello-tmpl" stops working if I change <% template render() %> to <% template output() %> in file "first.tmpl" under "~/examples/templates/" extracted from cppcms source tarball. I suspect this is because the template system demands that the exact member function virtual void render(){ ... } exist in order to be able to write out stuff. If I am right, it would be nice to see this mandatory template name "render()" be documented (preferably in page "Templates: Top Level Blocks (v 1.x)"). Regards, CN |
From: Artyom <art...@ya...> - 2010-09-04 12:17:36
|
Thanks, There was indeed a problem in mirroring, now it fixed. Artyom > >From: "cn...@gr..." <cn...@gr...> >To: cpp...@li... >Sent: Sat, September 4, 2010 11:26:36 AM >Subject: [Cppcms-users] Link to sourceforge template system documentation is >broken > >Hi! > > >The link for "Reference - Template System" in page > > >http://cppcms.sourceforge.net/wikipp/en/page/main > > > >points to nowhere: > > > >http://cppcms.sourceforge.net/wikipp/en/page/cppcms_1x_templates > > > >Regards, >CN |
From: augustin <aug...@ov...> - 2010-09-04 09:47:11
|
Hello CN, It's a synchronization problem between the main site and the mirror. Use the main site: http://art-blog.no-ip.info/wikipp/en/page/main You want: http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_templates/ Blessings, Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: augustin <aug...@ov...> - 2010-09-04 09:39:59
|
On Saturday 04 September 2010 03:45:39 pm Aris Setyawan wrote: > My installation is working now. Good! :) Have fun with cppcms! Blessings, Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Ping.Zheng <sho...@gm...> - 2010-09-04 08:27:05
|
Hi, I am a green hand to cppcms, and I have installed the cppcms 0.99.2 in my ubuntu, and I have compiled the hello_world example. but I don't know how to run it. I use: cppcms_run -e hello -c config.js but the console show me that: Web Server Host:127.0.0.1 Web Server Port:8080 Document Root:/home/zhen/build/cppcms-0.99.2.1/examples/hello_world Script:/hello Api:http Service IP:127.0.0.1 Service Port:8080 Can't find sutiable web server (nginx/lighttpd/apache) You may try to change PATH variable. In case of Apache2 You may want to define APACHE_MOD_DIR variable I know I can test the progam without any http proxy. But I don't how to do. and there is a 403 error when I access the page http://cppcms.sourceforge.net/wikipp/en/page/cppcms_1x_tut_hello/ who can help me? thank you. -- with all kind regards |
From: <cn...@gr...> - 2010-09-04 08:26:52
|
Hi! The link for "Reference - Template System" in page http://cppcms.sourceforge.net/wikipp/en/page/main points to nowhere: http://cppcms.sourceforge.net/wikipp/en/page/cppcms_1x_templates Regards, CN |
From: Aris S. <ari...@gm...> - 2010-09-04 07:45:45
|
My installation is working now. I just remove my build folder, then recreate it and rebuild it. And before this, I update all my ubuntu package to the newest version. |
From: Aris S. <ari...@gm...> - 2010-09-04 06:53:58
|
Hi, > Your problem is with ICU again: since you tried to compile it by hand > previously, have you deleted all the libraries you installed then? > Maybe do: > - remove the icu ubuntu package. > - do 'updatedb' > - 'locate icu' > - delete the remaining icu libraries (those you had compiled and installed by > hand). > - reinstall the ubuntu package. > - try make again. I reinstall my ubuntu, :) and install ICU with apt-get. It was the fastest solution, because I think, I had broke my ubuntu with doing all compilation manually, since ubuntu is my secondary operating system, it was okay to reinstall. The result is my PIC error is gone. Thanks for your help. |
From: augustin <aug...@ov...> - 2010-09-04 00:54:23
|
Hello Aris, Artyom would be much more competent than me to reply. I simply tried to recompile everything to test, since we have the same system. I deleted my build directory and recompiled the latest from svn: beside a few minor warnings, everything compiled cleanly. Your problem is with ICU again: since you tried to compile it by hand previously, have you deleted all the libraries you installed then? Maybe do: - remove the icu ubuntu package. - do 'updatedb' - 'locate icu' - delete the remaining icu libraries (those you had compiled and installed by hand). - reinstall the ubuntu package. - try make again. Again, I am not the most competent to help you. Most of this stuff is still above my head. But that's the only thing I can think of. Blessings, Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Aris S. <ari...@gm...> - 2010-09-02 22:52:21
|
Thank's, augustin, artyom; I have passed the "cmake" step using default ubuntu ICU package. But, after running "make" command, I got the following error: ... ... [ 11%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/date_time.cpp.o [ 11%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/format.cpp.o [ 11%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/formatter.cpp.o /opt/cppcms/booster/lib/locale/src/formatter.cpp: In member function ‘virtual std::basic_string<_CharT, std::char_traits<_CharT>, std::allocator<_CharT> > booster::locale::impl::number_format<CharType>::format(booster::int64_t, size_t&) const’: /opt/cppcms/booster/lib/locale/src/formatter.cpp:65: error: call of overloaded ‘format(booster::int64_t&, icu_4_0::UnicodeString&)’ is ambiguous /usr/include/unicode/numfmt.h:247: note: candidates are: icu_4_0::UnicodeString& icu_4_0::NumberFormat::format(double, icu_4_0::UnicodeString&) const /usr/include/unicode/numfmt.h:260: note: icu_4_0::UnicodeString& icu_4_0::NumberFormat::format(int32_t, icu_4_0::UnicodeString&) const /usr/include/unicode/numfmt.h:273: note: icu_4_0::UnicodeString& icu_4_0::NumberFormat::format(int64_t, icu_4_0::UnicodeString&) const /opt/cppcms/booster/lib/locale/src/formatter.cpp: In member function ‘virtual std::basic_string<_CharT, std::char_traits<_CharT>, std::allocator<_CharT> > booster::locale::impl::number_format<CharType>::format(booster::uint64_t, size_t&) const’: /opt/cppcms/booster/lib/locale/src/formatter.cpp:73: error: call of overloaded ‘format(booster::int64_t&, icu_4_0::UnicodeString&)’ is ambiguous /usr/include/unicode/numfmt.h:247: note: candidates are: icu_4_0::UnicodeString& icu_4_0::NumberFormat::format(double, icu_4_0::UnicodeString&) const /usr/include/unicode/numfmt.h:260: note: icu_4_0::UnicodeString& icu_4_0::NumberFormat::format(int32_t, icu_4_0::UnicodeString&) const /usr/include/unicode/numfmt.h:273: note: icu_4_0::UnicodeString& icu_4_0::NumberFormat::format(int64_t, icu_4_0::UnicodeString&) const /opt/cppcms/booster/lib/locale/src/formatter.cpp: In member function ‘virtual std::basic_string<_CharT, std::char_traits<_CharT>, std::allocator<_CharT> > booster::locale::impl::number_format<CharType>::format(booster::uint32_t, size_t&) const’: /opt/cppcms/booster/lib/locale/src/formatter.cpp:91: error: call of overloaded ‘format(booster::int64_t&, icu_4_0::UnicodeString&)’ is ambiguous /usr/include/unicode/numfmt.h:247: note: candidates are: icu_4_0::UnicodeString& icu_4_0::NumberFormat::format(double, icu_4_0::UnicodeString&) const /usr/include/unicode/numfmt.h:260: note: icu_4_0::UnicodeString& icu_4_0::NumberFormat::format(int32_t, icu_4_0::UnicodeString&) const /usr/include/unicode/numfmt.h:273: note: icu_4_0::UnicodeString& icu_4_0::NumberFormat::format(int64_t, icu_4_0::UnicodeString&) const make[2]: *** [booster/CMakeFiles/booster.dir/lib/locale/src/formatter.cpp.o] Error 1 make[1]: *** [booster/CMakeFiles/booster.dir/all] Error 2 make: *** [all] Error 2 I use: . 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:05:01 UTC 2009 x86_64 GNU/Linux . CppCMS version At revision 1395 . Python 2.6.4rc2 . cmake version 2.6-patch 4 . PCRE version 7.8 2008-09-05 . gcc (Ubuntu 4.4.1-4ubuntu9) 4.4.1 I guess, the errors above about booster::locale conflict with icu_4_0 namespace, so "formater.cpp" can't find the right function (format) in the booster::locale. How I can fix this? |
From: Artyom <art...@ya...> - 2010-08-31 10:54:35
|
Hi, Ok, I see, you are right, this does not work as cppcms_tmpl_cc generates: *foo.bar.begin() When it should (*foo.bar).begin() Fixed in svn 1385, take latest revision. Artyom P.S.: Next time generated code sample that fails would be helpful ----- Original Message ---- > From: Julian Pietron <ju...@wh...> > To: cpp...@li... > Sent: Tue, August 31, 2010 1:01:25 PM > Subject: Re: [Cppcms-users] Custom form rendering and dynamic widgets > > > > You can use: > > > > <% foreach w as cppcms::form::iterator in *form %> > > > > BTW `as foo` is required only for MSVC as gcc and intel have > > a construct typeof, so you can just use > > > > <% foreach w in *form %> > > > > I tried that already, but gcc exits with the following errors (not > different of the errors I get when I specify form instead of *form): > > stdconfig.tmpl: In member function virtual void > stdconfig::stdconfig::get_content(): > stdconfig.tmpl:11: error: class > booster::shared_ptr<iweb2::content::StdConfigForm> has no member named > begin > stdconfig.tmpl:12: error: invalid type in declaration before = token > stdconfig.tmpl:12: error: class > booster::shared_ptr<iweb2::content::StdConfigForm> has no member named > begin > stdconfig.tmpl:12: error: class > booster::shared_ptr<iweb2::content::StdConfigForm> has no member named > end > stdconfig.tmpl:11: error: invalid type argument of unary * > stdconfig.tmpl:11: error: invalid type in declaration before = token > stdconfig.tmpl:11: error: invalid type argument of unary * > > Any solution to this? Up to now, the only solution that worked was, to > manually change any appearance of form.begin() and form.end() to > form->begin() and form->end(). > > Thanks, > Julian > > ------------------------------------------------------------------------------ > This SF.net Dev2Dev email is sponsored by: > > Show off your parallel programming skills. > Enter the Intel(R) Threading Challenge 2010. > http://p.sf.net/sfu/intel-thread-sfd > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: <ju...@ne...> - 2010-08-31 10:16:46
|
> You can use: > > <% foreach w as cppcms::form::iterator in *form %> > > BTW `as foo` is required only for MSVC as gcc and intel have > a construct typeof, so you can just use > > <% foreach w in *form %> > I tried that already, but gcc exits with the following errors (not different of the errors I get when I specify form instead of *form): stdconfig.tmpl: In member function virtual void stdconfig::stdconfig::get_content(): stdconfig.tmpl:11: error: class booster::shared_ptr<iweb2::content::StdConfigForm> has no member named begin stdconfig.tmpl:12: error: invalid type in declaration before = token stdconfig.tmpl:12: error: class booster::shared_ptr<iweb2::content::StdConfigForm> has no member named begin stdconfig.tmpl:12: error: class booster::shared_ptr<iweb2::content::StdConfigForm> has no member named end stdconfig.tmpl:11: error: invalid type argument of unary * stdconfig.tmpl:11: error: invalid type in declaration before = token stdconfig.tmpl:11: error: invalid type argument of unary * Any solution to this? Up to now, the only solution that worked was, to manually change any appearance of form.begin() and form.end() to form->begin() and form->end(). Thanks, Julian |
From: Julian P. <ju...@wh...> - 2010-08-31 09:59:36
|
> You can use: > > <% foreach w as cppcms::form::iterator in *form %> > > BTW `as foo` is required only for MSVC as gcc and intel have > a construct typeof, so you can just use > > <% foreach w in *form %> > I tried that already, but gcc exits with the following errors (not different of the errors I get when I specify form instead of *form): stdconfig.tmpl: In member function virtual void stdconfig::stdconfig::get_content(): stdconfig.tmpl:11: error: class booster::shared_ptr<iweb2::content::StdConfigForm> has no member named begin stdconfig.tmpl:12: error: invalid type in declaration before = token stdconfig.tmpl:12: error: class booster::shared_ptr<iweb2::content::StdConfigForm> has no member named begin stdconfig.tmpl:12: error: class booster::shared_ptr<iweb2::content::StdConfigForm> has no member named end stdconfig.tmpl:11: error: invalid type argument of unary * stdconfig.tmpl:11: error: invalid type in declaration before = token stdconfig.tmpl:11: error: invalid type argument of unary * Any solution to this? Up to now, the only solution that worked was, to manually change any appearance of form.begin() and form.end() to form->begin() and form->end(). Thanks, Julian |
From: Artyom <art...@ya...> - 2010-08-31 06:23:13
|
> Hello, > > On the topic of widget rendering, I think the rendering of each type of widget > > should be template-based. > Currently, the default form rendering is hard-coded. > The hard coded options are only for some basic cases, for custom template rendering you can create your own template easily <% template my_form_render(cppcms::form &f) %> <% foreach w in f %> ... Do anything you like ... <% end %> <% end %> and then, instead of calling <% form as_p my_form %> you call <% include my_form_render(my_form) %> Artyom |
From: augustin <aug...@ov...> - 2010-08-31 04:27:54
|
Hello, On the topic of widget rendering, I think the rendering of each type of widget should be template-based. Currently, the default form rendering is hard-coded. I currently use the hack from src/hello_world_view1.tmpl that Artyom kindly indicated twice in recent weeks. I don't know what it would take to make it so that the default rendering for each form item is based on a template that can be overridden at the skin level, as well as at the form level. Maybe it's already possible. I haven't tested much yet. Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Artyom <art...@ya...> - 2010-08-31 04:27:52
|
> > Ok, thanks for this example. But I still have a problem: Because even > the forms on this page are dynamically allocated, they are stored in a > vector, and because they are not copyable, I store a booster::shared_ptr > to them instead. > I loop with > <% foreach form in forms %> > But the problem is, that now the following construct > <% foreach w as cppcms::form::iterator in form %> > does not work, because the template generator expects form to be the > object itself (and therefore generates form.begin() and form.end() > instead of form->begin() and form->end() which would have to be used > here). You can use: <% foreach w as cppcms::form::iterator in *form %> BTW `as foo` is required only for MSVC as gcc and intel have a construct typeof, so you can just use <% foreach w in *form %> Generally in every place where you use variable you can use "->", ".", "*" and single "()" operator. See: <http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_templates_gen#Syntax+Description+Rules> Artyom |
From: augustin <aug...@ov...> - 2010-08-31 04:22:41
|
Hi Aris, http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_build_troubleshooting The section "Linux Debian and Ubuntu and derivatives" has the list of packages you need. (clean completely your manual ICU installation first). In the same page, note also the section: "My sample application does not find the shared object libcppcms.so when I try to run it." As a newbie, this is the only difficulty I encountered. I had to run ldconfig. Other than that, I don't recall I used any configuration flag. As a newbie compiling such software and libraries, I always try with the defaults first, since most of the time I don't know what the flags are for... ;) Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Aris S. <ari...@gm...> - 2010-08-31 03:23:27
|
Hello, I use ubuntu 9.10 64-bit too. Thanks augustin, I plan to work on it this night. -Aris |