- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
I am struggling in using the libraries of C-language in the ARM development studio IDE version 2021.1 (Intel edition). Let me demonstrate the working environment as follow:
1) Hardware: "ARM Cyclone V SoC FPGA development kit".
2) Software: licensed copy of the ARM development studio IDE version 2021.1 (Intel edition).
3) Windows 10 OS.
4) JTAG connection between the FPGA kit and the PC.
5) Coding: "C".
6) Compiler: ARM6.
7) I am trying to utilize the "stb_image.h" library to read an image in the attached project.
After building the project, the error message is prompted in the console view, please refer to the snapshot below.
I am wondering please, why the system didn't find the header file although it is uploaded to the project files? This problem also happened with other types of C-libraries, to read an excel file for example, any idea please?
Enlace copiado
- « Anterior
-
- 1
- 2
- Siguiente »
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi,
It might be an issue with the directories/workspace.
Maybe you could try to test a simple hello world file, is that also not found?
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi @EBERLAZARE_I_Intel , thanks for your response
Other codes with basic libraries are working normally, the problem occurs only with specific libraries.
I need to read a jpg image or an Excel file is fine.
I am wondering if there is an extra requirement to use such libraries as I am using a special compiler and hardware platform? Thanks for your support.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi,
I am unfamiliar with the library itself, could you check out the documentation:
https://github.com/nothings/stb/blob/master/stb_image.h
Regarding the excel, we do not have any examples related that could help, I suggests you try checking and searching in ARM Community support https://community.arm.com/support-forums/ & https://stackoverflow.com/questions/
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi,
Do you have any further questions?
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi, sure as I didn't get a valid answer for my question yet.
Waiting for a person who is familiar with this library.
Thanks for your understanding and support!
Regards
Mohammed Lami
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi,
How did you get the Makefile?
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi, thanks for your response
As I mentioned earlier, I am using the Intel Development Studio version 21.1. In this software, it is possible to generate the Makefile by building the project.
However, I am stuck in building the project, because the software can't identify the libraries I used, and that's why I placed my question here.
Thanks for your support
Regards
Mohammed Lami
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi,
Any update from your side? How did you get the makefile?
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi,
Regarding from the error message, have you tried bringing the files that mentioned in the error message on the same folder as the "include" folder?
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi,
Could you check my previous response?
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi @EBERLAZARE_I_Intel , thanks for your support and sorry for the late reply
Sure, I put the libraries in the directory of the project as I mentioned earlier, please refer to snapshot below.
Regards
Mohammed Lami
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi,
Could you bring the files 1 folder out of the directory to be the same as the other files? And test.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi,
Do you have any update?
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
I put the three "stb_image" files with the other header files inside the "include" folder as you can see in the snapshot below. However, the same error appeared.
Thanks for your support
Regards
Mohammed Lami
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi,
From the files your provided, I did see the issue from my side, and the issue is because of the .h files themselves.
Please replace the .h files with below .h files:
https://github.com/nothings/stb
I did get some issues from your makefile, you might need to refer below if you face the same:
https://developer.arm.com/documentation/dui0474/latest
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Thank you @EBERLAZARE_I_Intel for your response
I downloaded the header files from the link you provided and pasted in the directory of the project as you suggested, but same error was appeared after building the project.
Regarding the two links about "Linker error", I couldn't find a similar case like the issue under consideration. However, they are related to ARM5 compiler while what I am using is ARM6 compiler.
Regards
Mohammed Lami
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi,
In your calendar.c, can you define as below and re-try:
#include <stdio.h>
#include <stdlib.h>
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#define STBI_NO_SIMD
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Dear sir, thanks for your suggestion
However, I am afraid its not the root of the problem, please refer to the snapshot below.
Regards
Mohammed Lami
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi,
I will re-try to do a fresh one and give you the steps once I complete them.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi,
- Please replace the .h files with below .h files:
https://github.com/nothings/stb
- Do make clean.
- Place the 3 files same directory your Makefile.
- Include as below in calendar.c
#include <stdio.h>
#include <stdlib.h>
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#define STBI_NO_SIMD
- Then Build Project
Please refer below if you face the issue mentioned in my previous respond:
https://developer.arm.com/documentation/dui0474/latest

- Suscribirse a un feed RSS
- Marcar tema como nuevo
- Marcar tema como leído
- Flotar este Tema para el usuario actual
- Favorito
- Suscribir
- Página de impresión sencilla
- « Anterior
-
- 1
- 2
- Siguiente »