Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Could not compile the simplest example (Read 1529 times)
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Could not compile the simplest example
Sep 3rd, 2018 at 10:23am
Print Post  
I'm trying to solve the problem for a week.

Two PCs home and office.
Absolutelly identical Arduino IDE, VS and VisualMicro setups.
Latest versions of all components.
Example SerialToSerialBT.ino from 
ialBT

Home PC no problems.
Office PC :
Code
Select All
BluetoothSerial.cpp: In function bool _init_bt(const char*)
Error compiling libraries
Build failed for project 'SerialToSerialBT'

BluetoothSerial.cpp: 140:5: error: 'esp_bt_cod_t' was not declared in this scope
   esp_bt_cod_t cod

BluetoothSerial.cpp: 141:5: error: 'cod' was not declared in this scope
   cod.major = 0b00001

BluetoothSerial.cpp: 144:33: error: 'ESP_BT_INIT_COD' was not declared in this scope
   if (esp_bt_gap_set_cod(cod, ESP_BT_INIT_COD) != ESP_OK) {

BluetoothSerial.cpp: 144:48: error: 'esp_bt_gap_set_cod' was not declared in this scope
   if (esp_bt_gap_set_cod(cod, ESP_BT_INIT_COD) != ESP_OK) {
 



As I understand, some libs(esp_gap_bt_api.h) does not included for unknown reasons, but all #defines are right.

All other my projects successfuly compiled on office PC.
PlatformIO on the office PC also successively compiled that example.

PS
arduino IDE on the office PC also could not compile the example, but with the error:
xtensa-esp32-elf-g++: error: unrecognized command line option '-mfix-esp32-psram-cache-issue'
« Last Edit: Sep 3rd, 2018 at 10:38am by Kabron »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Could not compile the simplest example
Reply #1 - Sep 3rd, 2018 at 11:02am
Print Post  
You haven't provided a verbose compiler output with build properties but I can only guess that your esp core in board manager is different between the two pcs

If arduino and visual micro both fail then this is the common point.

If you have installed any libraries yourself they will be in document\arduino\libraries (sketchbook\libraries). It's not clear from your report the location of the library that is failing. The verbose output will show this.

If the library is included with the esp core then make sure you do not have an older or conflicting version in sketchbook\libraries
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint