-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
undefined reference to `system_get_rst_info' in latest builds #176
Comments
When I try to compile the framework itself I get:
|
@piperpilot The system_get_rst_info is related to your SDK version, try updating your SDK to V1.1 or higher to solve this. The C:\DEV thing seems like a red herring, you may have another issue as that shouldn't be related to system_get_rst_info. |
I tried compiling with: esp_iot_sdk_v1.1.0_15_05_26 Both have the same problem when I build Sming. It seems that specific issue has gone away when I just try to run an HttpServer example...I now see this issue which might be masking the other failure because it happens so early in the build.
If I roll back to older builds everything is fine. |
@piperpilot Could you see if e47d5c2 fixes the above error for you? You'll still need to use an SDK at 1.1 or higher in order to resolve the system_get_rst_info issue. |
Both problems still exist. I'm using the 1.1.0 SDK (esp_iot_sdk_v1.1.0_15_05_26) and have moved to HEAD on Master... clean and compile. Building Sming, it doesn't complain about "no member named 'reason'" any more, but it still complains about the missing declaration:
The websocket reference error is the same. |
The message seems to suggest your not using the right SDK or your paths are somehow pointing to an incorrect SDK. Could you give a bit more info about your setup/environment please? |
Sure thing...First off, I'm on OSX 10.10.3. I installed the SDK from the package listed here: https://github.com/anakod/Sming/wiki/MacOS-Quickstart Just to make sure I did everything properly. I then downloaded the 1.1.0 SDK and symlinked it over.
I double checked the code and its looking at ESP_HOME which is set for /opt/esp_open_sdk in my case...inside that its looking for sdk which is what the symlink is set to. I can't see that its using a wrong SDK version but I might be wrong, I'll try removing all old versions of the SDK and see if there is still an issue. I'm building from eclipse and if I roll back about 10-15 commits the websocket error goes away, but I still have the system_get_rst_info error. If anyone has OSX and has something I can check, I'm happy to share the info. I don't really need to build the core Sming...if we can get past the websocket build issue, I'd be happy. I have dug into that and can't see any issues, must be something simple I'm missing. OSX is a case sensitive OS...but it looks like all the includes are proper case. |
@piperpilot how do you set ESP_HOME and SMING_HOME? How do you run your build? |
ESP_HOME and SMING_HOME are set via the plist in eclipse.app per the quick start. I just double checked and re-added them. See the screenshot of my Info.plist file. I also tried overriding SMING_HOME and ESP_HOME in the main Makefile to ensure it was getting picked up properly with the same results. Build is done from the eclipse target. I have tried to confirm it is using the proper SDK by doing the following:
EDIT: I even just now took eclipse out of the picture for building Sming...updated SMING_HOME and ESP_HOME in the makefile and ran "make all" from the command line with same results. |
Let's test it with a command line. Please run On Wed, Jul 15, 2015 at 10:37 AM, Curtis Pope notifications@github.com
|
@kireevco Looks like we were typing at the same time...per my previous EDIT above...I tested from the command line with same results. |
Any more suggestions guys? I'm still having both of the issues above...
I pulled the latest master and the problem is still there. If I roll back to July 10 commit: 266df44 everything compiles fine for the examples, but I still get the same error on SmingFramework. |
I've just looked through the SDK changes...you need to make sure you're using v1.1.1 or higher (i.e. not v.1.1.0). I'm still 99% sure that the system_get_rst_info part is related to that. |
OK...I tried again with a fresh download of 1.2.0, symlinked /opt/esp-open-sdk/esp_iot_sdk_v1.2.0 to /opt/esp-open-sdk/sdk... did a clean of the sdk... made sure all paths were correct and it compiled fine. This also fixed the example projects. I'm not sure what the magic was...the only thing different I did this time was a "make clean" inside the sdk directory. But its working, so I will close the issue. Thanks everyone for the help! |
Hello there, can you please tell me how to compile esp-open-sdk_v1.2.0? or do you have a direct download link for mac version? I cant get its compilation to go through. I am still having the same problem as this topic. |
oh man, thanks. Worked like a charm. |
@lgcpovoas building those packages is a pain. Can't say better. Glad it helped! |
I'm having problems with the latest builds. I have rolled back commits and found it to be related to commit 1c376f5 when I compile anything other than basic_blink I get the following:
I'm on a MAC and obviously there's no C:\DEV so it looks like something got compiled with an absolute path? I look at that commit and see it has a new libsming.a file...probably something wrong with that. I'll try to compile libSming myself, but wanted to call out this problem so it could get fixed...everything worked prior to that commit.
The text was updated successfully, but these errors were encountered: