Comments (37)
With the latest Arduino IDE it should compile without any errors. I think c++11 was supported from version 1.6.8, but I am not 100% sure. 1.8+ should definitely work.
If you download the latest version of the code form Github then renaming the folder is not necessary anymore. The LiveOV7670.ino is already inside folder named "LiveOV7670"
Before compiling you have to copy "LiveOV7670Library" and "Adafruit_GFX_Library" from ./src/lib/ to Arduino "libraries" folder (It should be in your home folder: ~/Documents/Arduino/libraries)
If you already have "Adafruit_GFX_Library" in your "libraries" folder then you don't have to copy that.
from liveov7670.
What exactly did you do? Did you use Arduino IDE or platformIO?
It works with my platformIO + CLion project and I tried it with Arduino IDE (downloded the zip file from github and renamed "src" folder to "LiveOV7670") and it compiled without any errors.
from liveov7670.
from liveov7670.
It seems that you downloaded only the .ino file. You need all the files.
After extracting the zip file you get folder "LiveOV7670-master". You need "LiveOV7670-master/arduino/src" folder. Rename the "src"->"LiveOV7670"
Additionally you need to copy "LiveOV7670-master/arduino/lib/Adafruit_GFX_Library" to your arduino libraries folder (in you computer's home folder "Documents/Arduino/libraries") - If you have done anything with Adafruit graphics libraries before then you may already have this.
Then you should be able to open the .ino file and it should compile without errors
from liveov7670.
from liveov7670.
What exactly are the errors? I can't see any attachment images here. Could you upload the example images directly to here in github?
from liveov7670.
that is the image for my error
C:\Users\Gabri\AppData\Local\Temp\cccv5yFi.ltrans0.ltrans.o: In function `main':
cccv5yFi.ltrans0.o:(.text.startup+0x8a): undefined reference to `CameraOV7670::init()'
cccv5yFi.ltrans0.o:(.text.startup+0x94): undefined reference to `Adafruit_ST7735_mod::initR(unsigned char)'
cccv5yFi.ltrans0.o:(.text.startup+0xa0): undefined reference to `Adafruit_ST7735_mod::fillScreen(unsigned int)'
cccv5yFi.ltrans0.o:(.text.startup+0x14d8): undefined reference to `Adafruit_ST7735_mod::startAddrWindow(unsigned char, unsigned char, unsigned char, unsigned char)'
cccv5yFi.ltrans0.o:(.text.startup+0x1508): undefined reference to `Adafruit_ST7735_mod::endAddrWindow()'
C:\Users\Gabri\AppData\Local\Temp\cccv5yFi.ltrans3.ltrans.o: In function `global constructors keyed to 65535_0_ExampleTftBufferedCameraFrame.cpp.o.2004':
cccv5yFi.ltrans3.o:(.text.startup+0x3c): undefined reference to `CameraOV7670Registers::CameraOV7670Registers(unsigned char)'
cccv5yFi.ltrans3.o:(.text.startup+0x52): undefined reference to `Adafruit_ST7735_mod::Adafruit_ST7735_mod(signed char, signed char, signed char)'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Uno.
this is the error message, please help? thanks:)
from liveov7670.
I upgraded my Arduino IDE from 1.6 to 1.8 and got a similar error.
I will fix it this weekend and report back to here when you should try again.
from liveov7670.
It seems that Arduino IDE does not support cpp files in sub-folders anymore. Version 1.6.7 worked fine.
I will think of something I probably have to move them to the main folder to make it Arduino IDE compatible.
from liveov7670.
from liveov7670.
I moved the the camera code to a library. Please try downloading the project again. But now you also have to copy LiveOV7670Library from the "lib" folder to your Arduino "libraries" folder. I tried with Arduino IDE 1.8 and it worked
from liveov7670.
from liveov7670.
What is the error message? Did you copy "LiveOV7670Library" to the "libraries" folder?
from liveov7670.
from liveov7670.
It seems that you opened the .ino with Arduino IDE and it automatically created sub-folder named "LiveOV7670". The problem is that all the other files are still inside in "src" folder and Arduino IDE does not see them.
You have to rename the "src" folder to "LiveOV7670" (or move all the fils from "src" to the automatically created "LiveOV7670" folder)
from liveov7670.
from liveov7670.
This is strange. It seems that Arduino IDE can't find cpp files in the library folder.
Does the content of the "LiveOV7670Library" look like this?
Did you re-download the whole project? Project folder should now look like this:
from liveov7670.
from liveov7670.
i found this error on my 1.8 TFT LCD
how to fix it?
please
from liveov7670.
from liveov7670.
Does the example project included with the Adafruit library work?
This video:
https://www.youtube.com/watch?v=boagCpb6DgY&t=150s
from liveov7670.
from liveov7670.
I updated to project so that at the beginning it will either flash entire screen to green if i2c connection to camera was successful or red if it failed.
Could you please re-download the project and check if you see green or red screen after start-up.
Then we know if the camera setup was successful or failed.
from liveov7670.
from liveov7670.
In file included from C:\Users\sb\Documents\Arduino\libraries\LiveOV7670Library/BufferedCameraOV7670_QQVGA_10hz.h:8:0,
from C:\Users\sb\AppData\Local\Temp\build8092868746636873910.tmp\ExampleTftBufferedCameraFrame.cpp:13:
C:\Users\sb\Documents\Arduino\libraries\LiveOV7670Library/BufferedCameraOV7670.h:46:17: error: 'constexpr' does not name a type
inline static constexpr Tx getLineLength() attribute((always_inline));
Facing this error.....please suggest me some solution.
thank you.
from liveov7670.
What version of Arduino IDE are you using?
"constexpr" is c++11 feature.
c++11 should be enabled for Arduino IDE for some time now.
from liveov7670.
i am using arduino ide version 1.6.5 ..
i replace" constexpr "to "cont" and resolved this problem..
the next error is "Resolution:: does not found a class or namespace"....for that i just erase "Resolution"..and got resolved ..
now ide is asking to add some header file like ; "queue.h","twi.h","wire.h".
So does it have to be happen or I'm doing something wrong?
Thanks for your support
from liveov7670.
please suggest me proper ide and full procedure...,like the changing "src" to "Live7670".
Thanks in advance. I am looking forward to your answer..
from liveov7670.
The code has been compiled successfully. How to show output of OV7670 camera on the screen using java. Please suggest something.
from liveov7670.
Did you get both projects compiling?
- LiveOV7670 - https://github.com/indrekluuk/LiveOV7670
- Java project ArduinoImageCapture - https://github.com/indrekluuk/ArduinoImageCapture
from liveov7670.
from liveov7670.
Does Visual Studio support java?
I personally use IntelliJ for Java. Community eddition is free.
Did you manage to compile and run the java application? A window should open where you can select com port and baudrate.
from liveov7670.
i do not know whether visual studio support java .
how to use intelliJ?
no java window is opening. It is getting complicated please tell me some solution.
from liveov7670.
Install and run IntelliJ Community edition.
import project->Select folder "ArduinoImageCapture"->(Create project from existing source) Next->Next->Next->Next->Next-> (Select your Java version. For me it was "C:\Program Files\Java\jdk1.8.0_131") Next -> Finish
Now you have to add run configuration.
-
In the upper right corner click on the small arrow and then "Edit Configurations.."
-
Now if you have copied these files to correct location in JAVA folder
Copy RXTXcomm.jar ---> <JAVA_HOME>/jre/lib/ext
Copy librxtxSerial.so ---> <JAVA_HOME>/jre/lib/i386/
Copy librxtxParallel.so ---> <JAVA_HOME>/jre/lib/i386/
You should be able to run the application by clicking the green arrow in the upper right corner.
And application window should open
from liveov7670.
how is it works on arduino mega 2560?
i've already compile using Arduino Uno it's working but in Arduino/Genuino Mega or Mega 2560 board and Processor ATmega 2560(mega2560). But the message shows :
Help me Please...
from liveov7670.
I have modified the library so it will now compile for Arduino Mega (you have to re-download "LiveOV7670Library").
But I don't know if it actually works with Mega. I have not tested it.
from liveov7670.
it's not working yet, but can be compiled
I've change the pin before for TFT LCD, because it's not working (TFT only). So, i change it to
SPI clock/SCL - PIN 13 (5V -> 3.3V) --> change to 52
SPI data/SDA - PIN 11 (5V -> 3.3V) --> change to 51
should i change the connection pin on OV7670?
from liveov7670.
Related Issues (20)
- WAVGAT boards support? HOT 2
- Energia CC1350 Version HOT 3
- Led and button HOT 6
- No issue: This is amazing.
- Problem with installing "ArduImageCapture" Plug-In HOT 5
- How can I make VSYNC pulse when I need to capture frame? HOT 1
- TFT image Mirrored. Please Help
- CameraOV7670.h: No such file or directory HOT 3
- I have issues getting it to output a clear image HOT 2
- Camera OV7670 on SAMD51
- Camera output turned red after showing image HOT 1
- Command checksum failed HOT 1
- How to use on LCD TFT 3,5" ILI9488
- Can't compile for Nano Every HOT 1
- ov7670 library HOT 1
- Is this code compatible with the TFT ST7735S Display?
- Pin Definitions, ESP32-Applicability and Image Classification
- green square and no Vsync no matter what I do HOT 3
- Cannot upload the code. Error: ".... was not declared in this scope"
- can't compile while trying to compile to arduino uno
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from liveov7670.