Giter VIP home page Giter VIP logo

Comments (8)

EhsanVahab avatar EhsanVahab commented on May 30, 2024 1

dear @HermanChen
thanks for your great example in mpi_enc_test.c
I finally could make a c++ simple project and take advantage of Opencv.
it may be useful for others who are interested to develop IOT streaming projects with Opencv and rockchip's processors.

https://github.com/EhsanVahab/rockchip-mpp-encoder

from mpp.

HermanChen avatar HermanChen commented on May 30, 2024

The header in directory inc is just enough for common usage.
And you can use header in osal/inc to get more functions.
Document is attached.
The Makefile is also provided if you want to use mpp in linux environment.
There are debian directory for reference.

from mpp.

HermanChen avatar HermanChen commented on May 30, 2024

MPP_Development_Reference.pdf

from mpp.

EhsanVahab avatar EhsanVahab commented on May 30, 2024

MPP_Development_Reference.pdf

Dear @HermanChen, thanks for your quick response.
I wonder is there any detailed document for MppApi and MppCtx and their functions?
for example I have to guess the MppApi::control's function. or spend long time to review the code to deeply understand.

from mpp.

HermanChen avatar HermanChen commented on May 30, 2024

emmm... the document was not updated for a long time. Just check the comment in code for its usage.

from mpp.

EhsanVahab avatar EhsanVahab commented on May 30, 2024

dear @HermanChen
thanks for your comment.
I installed mpp on a virtual machine with ubuntu 18. ==>this is my programming environment.
then I wrote a simple c++ program to take advantage of MPP library. every thing is ok and my code compiled and run successfully with g++.

when I move my code on Firefly AIO-3399ProC , it is built but I face runtime error : undefined symbol: mpp_spinlock_lock

I post my Makefile and I deeply appreciate if you make me write.


CFLAGS=-O3
LDFLAGS=-lrockchip_mpp -lutils -lm -lopencv_core  -lpthread -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_videoio -lopencv_imgcodecs
LIBDIR=-L/home/firefly/Project/mpp/build/lib -L/usr/local/lib 
INCDIR= -I/home/firefly/Project/mpp/inc -I/home/firefly/Project/mpp/utils -I/home/firefly/Project/mpp/osal/inc


default : enc


enc : enc.o 
	g++  -o $@ $^  $(INCDIR) $(LIBDIR) $(LDFLAGS) 


%.o : %.cpp
	g++  -c  $(INCDIR) $(LIBDIR) $(LDFLAGS) $(CFLAGS)  -o $@ $<

clean :
	rm -f *.o enc

from mpp.

EhsanVahab avatar EhsanVahab commented on May 30, 2024

dear @HermanChen thanks for your comment. I installed mpp on a virtual machine with ubuntu 18. ==>this is my programming environment. then I wrote a simple c++ program to take advantage of MPP library. every thing is ok and my code compiled and run successfully with g++.

when I move my code on Firefly AIO-3399ProC , it is built but I face runtime error : undefined symbol: mpp_spinlock_lock

I post my Makefile and I deeply appreciate if you make me write.


CFLAGS=-O3
LDFLAGS=-lrockchip_mpp -lutils -lm -lopencv_core  -lpthread -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_videoio -lopencv_imgcodecs
LIBDIR=-L/home/firefly/Project/mpp/build/lib -L/usr/local/lib 
INCDIR= -I/home/firefly/Project/mpp/inc -I/home/firefly/Project/mpp/utils -I/home/firefly/Project/mpp/osal/inc


default : enc


enc : enc.o 
	g++  -o $@ $^  $(INCDIR) $(LIBDIR) $(LDFLAGS) 


%.o : %.cpp
	g++  -c  $(INCDIR) $(LIBDIR) $(LDFLAGS) $(CFLAGS)  -o $@ $<

clean :
	rm -f *.o enc

solved.
the root cause was the firefly ubuntu version has its own default rockchip's mpp. and it's not compatible with the latest version

from mpp.

HermanChen avatar HermanChen commented on May 30, 2024

Nice work : )

from mpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.