Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example restino project not working #4

Open
FaiqueAli opened this issue Jun 25, 2024 · 15 comments
Open

Example restino project not working #4

FaiqueAli opened this issue Jun 25, 2024 · 15 comments

Comments

@FaiqueAli
Copy link

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 ?

@eao197
Copy link
Member

eao197 commented Jun 25, 2024

Hi!

Sorry, I don't know. Conan is evolving to fast for me :(
May be @ngrodzitski can help.

@FaiqueAli
Copy link
Author

@eao197 thanks for the quicker response,
I would like to wait for @ngrodzitski .

@ngrodzitski
Copy link
Member

ngrodzitski commented Jun 25, 2024

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?

@eao197
Copy link
Member

eao197 commented Jun 25, 2024

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.

@FaiqueAli
Copy link
Author

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.

@eao197
Copy link
Member

eao197 commented Jun 26, 2024

@FaiqueAli please correct me if I'm wrong:

  • you're trying to use RESTinio on QNX with GCC via conan;
  • there is only conan-1.6 for QNX;
  • you need a recipe for RESTinio and conan-1.6 for QNX.

Am I right?

@FaiqueAli
Copy link
Author

@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.

@eao197
Copy link
Member

eao197 commented Jun 26, 2024

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?

@FaiqueAli
Copy link
Author

FaiqueAli commented Jun 26, 2024

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 :)

@eao197
Copy link
Member

eao197 commented Jun 26, 2024

There is a ongoing conan-io/conan#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).

@eao197
Copy link
Member

eao197 commented Jun 26, 2024

@FaiqueAli
Copy link
Author

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?

@eao197
Copy link
Member

eao197 commented Jun 26, 2024

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.

@FaiqueAli
Copy link
Author

Great, ok let me try in this way :)

@FaiqueAli
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants