Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 03 13:02
    Ivansete opened #640
  • Oct 03 12:14
    Deoxys0 commented #638
  • Oct 03 07:21
    erenkeskin commented #632
  • Oct 02 23:23
    corner4world commented #636
  • Oct 02 22:51
    lganzzzo commented #632
  • Oct 02 22:41
    lganzzzo commented #636
  • Oct 02 22:39
    lganzzzo commented #636
  • Oct 01 08:47
    Nhavilla opened #639
  • Oct 01 01:50
    corner4world commented #636
  • Sep 30 22:38
    erenkeskin commented #638
  • Sep 30 14:38
    Deoxys0 opened #638
  • Sep 29 23:46
    lganzzzo commented #636
  • Sep 29 20:00
    lganzzzo labeled #637
  • Sep 29 19:59
    lganzzzo commented #637
  • Sep 29 13:52
    patlecat opened #637
  • Sep 29 13:00
    corner4world edited #636
  • Sep 29 12:59
    corner4world opened #636
  • Sep 29 02:28
    chengpengvb closed #635
  • Sep 29 02:28
    chengpengvb commented #635
  • Sep 29 02:16
    chengpengvb opened #635
oat++
@oatpp_io_twitter

Hi , how to run oatpp server 24/7

Hello @IO-create , you. can use the nohup command. Ex.: nohup ./my-app > /dev/null 2>&1&

3 replies
oat++
@oatpp_io_twitter

Hey @shijiantouzouyiqie ,

I mainly want to add and delete functions to the "sequencer_list" list object. The following is an example of implementing a single increase; continue to add functions, and I don't know the specific solution!!

I don't understand what you want to do. Please post an example of JSON that you want to get.

1 reply
Hey @mmn:matrix.org ,
Thanks for the issue report.
Please file an issue on github (in main oatpp repo) - not to lose it here.
José María Martín
@jose-martin-m
Hi! How do I get a PostgreSQL date as a String? Putting the value as a String in the DTO does not seem to make the conversion, Oat++ complains about Unknown OID. I'm using Oat++ 1.2.5
oat++
@oatpp_io_twitter
Hello @jose-martin-m , just use postgresql type cast in the SQL
Should be something like select date_c:text from ...
Also put date_c:text in clean section so thet it wont be confused with the request variable
José María Martín
@jose-martin-m
ohh I see
thank you!
Albert Stack
@MrStack
hi, I'm getting trouble about migration from 1.2.5 to 1.3.0
App.cpp:15:20: error: ‘using element_type = class Controller’ {aka ‘class Controller’} has no member named ‘addEndpointsToRouter’
15 | insController->addEndpointsToRouter(router);
the source is :
auto insController = std::make_shared<Controller>();
insController->addEndpointsToRouter(router);    
oat++
@oatpp_io_twitter

Hello @MrStack ,

Now, in 1.3.0, you can just do the following:

router->addController(std::make_shared<Controller>());
You can check how it's done in examples - https://github.com/oatpp/example-crud/blob/master/src/App.cpp#L24
Albert Stack
@MrStack
@oatpp_io_twitter Thanks a lot! It works fine!
AlexandreHURDYK
@AlexandreHURDYK
Hello. I'm trying to compile oat++ libraries for Linux ARM 32 bits but I can't seem to make it work. Is there an easy way to do that ?
1 reply
mmn
@mmn:matrix.org
[m]
What OS exactly?
AlexandreHURDYK
@AlexandreHURDYK
It's not a specific distribution : it's something specifically made by my company. It's just a 32 bits ARM Linux at core.
mmn
@mmn:matrix.org
[m]
And with what exactly in the process 1) install the dependencies (cmake, compiler etc.) 2) run cmake 3) run make are you having issues?
AlexandreHURDYK
@AlexandreHURDYK

Well first we tried to run the following commands :

$ git clone https://github.com/oatpp/oatpp.git
$ cd oatpp/
$ unset LD_LIBRARY_PATH
$ source /opt/phytec-yogurt/BSP-Yocto-i.MX6-PD18.1.1/environment-setup-cortexa9hf-neon-phytec-linux-gnueabi
$ mkdir build && cd build
$ cmake .. 
$ make install

Cmake build worked, but linux compilation in our program failed. We discovered that it was because these libraries were in 64 bits instead of 32 bits. So we tried this :

$ git clone https://github.com/oatpp/oatpp.git
$ cd oatpp/
$ unset LD_LIBRARY_PATH
$ source /opt/phytec-yogurt/BSP-Yocto-i.MX6-PD18.1.1/environment-setup-cortexa9hf-neon-phytec-linux-gnueabi
$ mkdir build && cd build
$ cmake .. -DCMAKE_CXX_FLAGS=-m32
$ make install

Cmake build worked as well. Libraries seemed to be 32 bits . I try to put the libraries in my actual application but now the libraries are actually ignored by our linker because they're "incompatible".

We're having trouble to make something that can be compiled on a Linux 32 bits ARM distribution through Yocto basically.
mmn
@mmn:matrix.org
[m]
Oat++ is quite small, I'd try first to compile it directly on some armhf distro instead of cross-compiling.
What arch is the machine you are compiling it on?
AlexandreHURDYK
@AlexandreHURDYK
So basically compiling it directly on our small Linux embarked system ?
We're compiling on kubuntu.
2 replies
mmn
@mmn:matrix.org
[m]
Yeah, even an old raspberry pi should work, or just run a minimal system in qemu.
If you succeed there, you can then play around with cross-compiling.
BTW, what error (about the incompatibility) you get from the linker?
AlexandreHURDYK
@AlexandreHURDYK
It just says "skipping incompatible ../ext/oatpp-1.3.0/lib/cortexa9hf_neon_Release/liboatpp.a when searching for -l:liboatpp.a" as an information message
And then we get "collect2: error: ld returned 1 exit status" probably because the linker couldn't find the skipped libraries.
1 reply
mmn
@mmn:matrix.org
[m]
So you actually succeeded to build oat++, but couldn't link to it, right?
AlexandreHURDYK
@AlexandreHURDYK
Pretty much.
Probably we didn't build it right for our embarked platform.
mmn
@mmn:matrix.org
[m]
The machine on which you compiled it wasn't arm, that's what I meant.
And of course there is ubuntu for arm.
AlexandreHURDYK
@AlexandreHURDYK
Yeah I don't think that kubuntu distribution was arm either.
Is there a way to check and be sure about my kubuntu version ?
mmn
@mmn:matrix.org
[m]
uname -a
Will tell you the arch for sure.
AlexandreHURDYK
@AlexandreHURDYK
Linux LX379-agurdyk 5.4.0-90-generic #101~18.04.1-Ubuntu SMP Fri Oct 22 09:25:04 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
mmn
@mmn:matrix.org
[m]
OK, so you are trying to cross-compile it from an x86_64 machine.
AlexandreHURDYK
@AlexandreHURDYK
Yeah. Target machine is 32 bits (so technically x86 right ?).
mmn
@mmn:matrix.org
[m]
No.
There is a ton of 32bit architectures.
x86 being only one of them, armhf (your target) another.
AlexandreHURDYK
@AlexandreHURDYK
Ouch
To things weren't even really compatible to begin with.
mmn
@mmn:matrix.org
[m]
So, if you have access to an old raspberry pi, that would be the easiest way to build it for your target (armhf) architecture.
Another option is to use qemu virtualisation.