[resolved] problem trying to use Qt as my IDE

User avatar
mzimmers
Posts: 643
Joined: Wed Mar 07, 2018 11:54 pm
Location: USA

[resolved] problem trying to use Qt as my IDE

Postby mzimmers » Thu Mar 22, 2018 8:58 pm

Hi all -

I'm trying to get the mingw toolchain working from Qt, because I really like Qt and don't have an alternative for an IDE (that I know of). Compilations are going OK, but at link time I get a lot of unresolved references.

The first one I encountered was esp_wifi_scan_get_ap_records, which I tracked down to C:\esp-idf-v3.0-rc1\components\esp32\lib\libnet80211.a. I added this to my libs, and it seems that the linker is picking up the library, but I'm still getting the error.

Here's the generated build line:

Code: Select all

g++ -Wl,-subsystem,console -mthreads -o debug\sockets.exe debug/main.o debug/socket.o  C:\esp-idf-v3.0-rc1\components\esp32\lib\libnet80211.a 
There's lots of other undefined references, but I figure once I solve this one, the others will have similar fixes.

Any ideas what I'm doing wrong? Thanks...
Last edited by mzimmers on Thu Jun 11, 2020 3:27 pm, edited 1 time in total.

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: problem trying to use Qt as my IDE

Postby kolban » Thu Mar 22, 2018 10:49 pm

My highest level recommendation would be to get familiar with command line compilation / linking by using the build system supplied with the ESP-IDF to build a "hello world" application. You can then perform the compilation by setting the environment variable "V=1" and you will see all the flags and paths supplied to both the compiler and linker. Armed with that knowledge and knowledge of your IDE of choice, you can then attempt to re-work your story for your IDE.

I had a quick look at QT on-line and it appears to be a licensed product. Most of the folks here are either using the free build system supplied by ESP-IDF with a favorite text editor. Personally, I use the freely available Eclipse framework (IDE) for source editing, compilation and JTAG based debugging.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

User avatar
mzimmers
Posts: 643
Joined: Wed Mar 07, 2018 11:54 pm
Location: USA

Re: problem trying to use Qt as my IDE

Postby mzimmers » Thu Mar 22, 2018 11:01 pm

Hi Mr. Kolban -

Thanks for the quick reply. I'll take your advice and do that with a hello world example, though I'm not sure I know how to set an environment variable in msys2. The set command doesn't seem to work as it does in a DOS shell.
EDIT: I got this to work with:

Code: Select all

$ V=1
$ export V
Regarding Qt: there are commercial and open source options. The open source is available under either GPL or LGPL...they Qt people are pretty easy to get along with in that regard. And Creator is a dynamite IDE...last year, I managed to get it working with the toolchain for a BBB. I could even do remote debugging, which is kind of the Holy Grail for me. IMO it would be a very nice addition to the list of products that can be used with the ESP32. My $0.02...
Last edited by mzimmers on Fri Mar 23, 2018 2:54 pm, edited 1 time in total.

mikemoy
Posts: 599
Joined: Fri Jan 12, 2018 9:10 pm

Re: problem trying to use Qt as my IDE

Postby mikemoy » Fri Mar 23, 2018 1:36 am

I have been using VisualGDB for my ESp32. Its an add on for Visual Studio and works great.
Since you mentioned BBB, I also use it to for that as well, and many other Embedded Linux boards.


https://visualgdb.com/

Tutorials for ESP32
https://visualgdb.com/w/tutorials/categ ... 8266esp32/

User avatar
mzimmers
Posts: 643
Joined: Wed Mar 07, 2018 11:54 pm
Location: USA

Re: problem trying to use Qt as my IDE

Postby mzimmers » Fri Mar 23, 2018 1:40 am

That's good information. What did you use as programming/debugging tools with that?

perimeno
Posts: 2
Joined: Mon Mar 16, 2020 8:14 pm

Re: problem trying to use Qt as my IDE

Postby perimeno » Mon Mar 16, 2020 8:30 pm

Maybe its too late, but I ran into the same problem. I really like QT Creator and I want to use it with ESP devices. I put lots of hours, but finally I can make it work. Please see the how to: http://laszlovitez.eu/2020/03/15/debug- ... t-creator/
Last edited by perimeno on Fri May 13, 2022 11:27 am, edited 1 time in total.

poutila
Posts: 2
Joined: Mon May 03, 2021 1:06 am

Re: [resolved] problem trying to use Qt as my IDE

Postby poutila » Mon Jun 21, 2021 7:53 pm

Any idea how I could cross compile library that is made for win/linux to use in ESP32 project?
I would like to use this https://github.com/CoolProp/CoolProp library in ESP32 project.

Who is online

Users browsing this forum: No registered users and 149 guests