Closed sleepingsaint closed 2 years ago
@sleepingsaint it seems to be a cmake build issue. I suggest you can create a simple cmake project to test libcurl.so. You can refer to my sample project: https://github.com/yushulx/cmake-cpp-barcode-qrcode
@yushulx thanks for the suggestion. I did a bit of reading on compilers and standard library implementation in different compilers. The libcurl is compiled using glibc and flutter uses clang compiler. After few trys I got a error which says undefined glibc reference or something of that sort. You think compiling the curl library using clang compiler would resolve the issue?. Can you provide any information you have regarding this compilers and standard library. Thanks in advance :)
@sleepingsaint sorry, I'm not a compiler expert. My suggestion is if linking the pre-built shared library causes some issues, you can try to take the source code of libcurl as a part of your project.
I came across your article of flutter bar code plugin for linux. Following your tutorial I wanted to integrate libcurl into my plugin. But I am facing lot of issues. Hope you could help.
My Directory structure: I copied my libcurl.so from /usr/lib/x86_64-linux-gnu/libcurl.so and placed it in my lib folder.
My CMakeLists.txt file:
Error I am getting:
I also tried different combinations in the cmakeslists.txt file, but nothing seems to work
Atleast if possible could you please point me to some resources, where I can learn more about configuring these libraries and understand how they work in a better way. Any help is appreciated. Thanks in advance :)