problem trying to use Qt as my IDE

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

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

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: 402
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: 402
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: 402
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?

Who is online

Users browsing this forum: Google [Bot], pdemianczuk and 25 guests