Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 09:00
    ChA0S-f4me opened #628
  • Sep 23 02:02
    lganzzzo commented #626
  • Sep 23 01:59
    lganzzzo closed #627
  • Sep 23 01:59
    lganzzzo commented #627
  • Sep 23 01:59
    lganzzzo labeled #627
  • Sep 23 01:58
    lganzzzo commented #626
  • Sep 22 05:56
    JhonAir opened #627
  • Sep 22 05:55
    JhonAir opened #626
  • Sep 20 00:00
    lganzzzo labeled #625
  • Sep 20 00:00
    lganzzzo commented #625
  • Sep 19 23:58
    lganzzzo commented #625
  • Sep 18 06:30
    kekxv commented #625
  • Sep 18 02:26
    kekxv commented #625
  • Sep 17 23:55
    lganzzzo labeled #599
  • Sep 17 23:54
    lganzzzo commented #599
  • Sep 17 23:31
    lganzzzo labeled #625
  • Sep 17 23:30
    lganzzzo commented #625
  • Sep 17 12:40
    kekxv commented #599
  • Sep 17 06:06
    kekxv opened #625
  • Sep 14 23:24
    lganzzzo labeled #624
mmn
@mmn:matrix.org
[m]
Rebuilt oatpp with enabled CMAKE_POSITION_INDEPENDENT_CODE and now oatpp-sqlite installs.
2 replies
IO-create
@IO-create
Hi @all, can we run oatpp server as a daemon service?
1 reply
mmn
@mmn:matrix.org
[m]
(The OS is Debian Bullseye.)
mmn
@mmn:matrix.org
[m]
:point_up: Edit: (The OS is Debian Bullseye, architecture amd64.)
mmn
@mmn:matrix.org
[m]
:point_up: Edit: (The OS is Debian Bullseye, architecture amd64, cmake 3.18.4.)
mmn
@mmn:matrix.org
[m]
Maybe not, cmake should be backward compatible according to the respective cmake_minimum_required()...
mmn
@mmn:matrix.org
[m]
I blindly tried to modify properties of target module-tests in oatpp-sqlite/test/CMakeLists.txt
set_target_properties(module-tests PROPERTIES
CXX_STANDARD 11
CXX_EXTENSIONS OFF
CXX_STANDARD_REQUIRED ON
POSITION_INDEPENDENT_CODE FALSE
)
but that doesn't work, it still tries to build module-tests with PIE, which again fails to link against the static libraries.
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