Skip to content
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

Error when compiling code in xcode #10

Open
Kanzll opened this issue Apr 8, 2018 · 1 comment
Open

Error when compiling code in xcode #10

Kanzll opened this issue Apr 8, 2018 · 1 comment

Comments

@Kanzll
Copy link

Kanzll commented Apr 8, 2018

Hi,
I have this error when I tryed to compile the code

OpenCV Error: Bad argument (Bad image header) in cvCloneImage, file ~/Downloads/opencv-3.4.0/modules/core/src/array.cpp, line 3121
libc++abi.dylib: terminating with uncaught exception of type cv::Exception: ~/Downloads/opencv-3.4.0/modules/core/src/array.cpp:3121: error: (-5) Bad image header in function cvCloneImage

Thank you.

@satvik007
Copy link

This make file works for me fine.

CXX = g++ -Wall -std=c++0x #CXXFLAGS = -g -Wall pkg-config --cflags opencvCXXFLAGS =pkg-config --cflags --libs opencv`
#LDFLAGS = -L/usr/local/opencv-2.4.5/lib -lopencv_world -lboost_filesystem -lboost_filesystem-mt
TARGET = test_slic
SOURCE = $(TARGET).cpp slic.cpp

TARGET:
$(CXX) -o $(TARGET) $(SOURCE) $(CXXFLAGS)

.PHONY: clean
clean:
rm -f *.o *~ $(TARGET)`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants