ethnhe / raster_triangle

A simple renderer with z-buffer for synthesis data generating.
55 stars 22 forks source link

issues of compiling #19

Open hongsukchoi opened 2 years ago

hongsukchoi commented 2 years ago

I couldn't compile due to opencv isseus.

I did following thins

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/include/opencv4
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/include/opencv4/opencv2

change rastertriangle_so.sh bit

g++ rastertriangle_so.cpp -I /usr/include/opencv4 -o rastertriangle_so.so -shared -fPIC -Wall  -I/usr/include -L/usr/lib/x86_64-linux-gnu -lopencv_stitching -lopencv_objdetect -lopencv_superres -lopencv_videostab -lopencv_calib3d -lopencv_features2d -lopencv_highgui -lopencv_video -lopencv_photo -lopencv_ml -lopencv_imgproc -lopencv_flann -lopencv_core
lijunnankman commented 1 year ago

@hongsukchoi Hello,hong.Have you fixed this problem?I meet the same question.

hongsukchoi commented 1 year ago

I think I did. Changing Opencv3 reference to Opencv4 was presumably the solution..

lijunnankman commented 1 year ago

@hongsukchoi Thank you for your reply!I have fixed it!