Open FaiqueAli opened 1 week ago
Hi!
Sorry, I don't know. Conan is evolving to fast for me :( May be @ngrodzitski can help.
@eao197 thanks for the quicker response, I would like to wait for @ngrodzitski .
Hi @FaiqueAli Please, use a conancenter recepie https://conan.io/center/recipes/restinio?version=0.7.2
This example is very outdated.
@eao197 I think we should retire this repo (archive and put a link to conancenter). If it's OK with you then I can do it?
I think we should retire this repo (archive and put a link to conancenter). If it's OK with you then I can do it?
Yes, it seems that it's a reasonable solution.
Thanks for the alternative solution but I am already trying to use that package and having trouble to build that with QNX(qcc) compiler, because that is particularly for conan2.0. As an alternative, I thought this current repo would have some working solution for qcc(with conan1.6), as this is defined in the RESTinio documentation.
@FaiqueAli please correct me if I'm wrong:
Am I right?
@eao197 the link is actually working with conan2. I am trying to use RESTinio for cross compilation from Linux as a build machine and the QNX Nutrinio as a target system. For that I am using QNX qcc compilar.
I'm sorry, but I still can't get the whole picture :(
You've installed RESTinio on a Linux machine via conan2 successfully. Is it correct?
Then you're trying to build an app on Linux machine in cross compilation mode and have some problems. Is it correct?
What are these problems and how they are related to Conan?
You've installed RESTinio on a Linux machine via conan2 successfully. Is it correct?
No its not correct, I am trying to install RESTinio on Linux machine via conan2 but I am not getting success to install the package. the problem is, the compiler(qcc) I am using is generating errors while installing RESTino. there are some RESTinio dependencies like fmt, llhttp, asio etc. so I can download the package but while installing, one of the dependency(fmt) is generating errors, which I did not understand what are these errors. There is a ongoing thread that you could have a look to understand more about the error.
Then you're trying to build an app on Linux machine in cross compilation mode and have some problems. Is it correct?
this will be the next step
I hope it will clear your understanding :)
There is a ongoing https://github.com/conan-io/conan/issues/16513 that you could have a look to understand more about the error.
This message tells me that you have a problem with your QCC compiler. It provides an implementation of C++ standard library that requires presence of PTHREAD_MUTEX_RECURSIVE
macro from POSIX, but this macro is not defined. I don't know how it happens, but maybe your QCC compiler has just C++ standard libraries headers without necessary POSIX headers (like pthread.h
).
Anyway it looks like a problem with cross-compilation process (and maybe it doesn't relate to Conan or RESTinio, or fmtlib).
Try take a look at this: https://developer.qualcomm.com/forum/qdn-forums/software/qualcomm-neural-processing-sdk/67988
Thank you for the understanding and expected identification of the issue, yes I also have feeling that there could be a package compatibility issue with QNX compiler. As per the link I did not understood much about the error but seems like similar and at the end someone told to use -D_XOPEN_SOURCE=700
or may be in l my case -D_XOPEN_SOURCE=710
but where should I put this in Cmake file?
Sorry, I don't use Conan at all, so I can't really help here.
But it seems that you have to define XOPEN_SOURCE
somewhere in your Conan profile file. This way it will be automatically used by Conan during installation and compilation of fmtlib and other dependencies.
Great, ok let me try in this way :)
So, I have ended up with this as I found there is no support for the QNX compiler. I tried to fixed several issues and then it pops up another issue, so it is difficult to continue working on Secondly, It seems this repository has last commit around four years ago that makes me difficult as we could have issues in future, if any how we manage to create an application now. I would like to get suggestions, I want to create a REST API based on C++ qcc compiler and will execute it in QNX OS that can provide support to our existing application which is also based on qcc compiler and running inside QNX OS.
Hi, I am trying to use the RESTino and tried with this example project with all defined settings but I am getting errors by both means using manually way and by Docker. is this example still valid ?