Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | # ../bin/ld: cannot find -lImageProcessor |
| 2 | --- a/Makefile.am |
| 3 | +++ b/Makefile.am |
| 4 | @@ -590,11 +590,10 @@ hpcups_SOURCES = prnt/hpcups/HPCupsFilte |
| 5 | prnt/hpcups/flate_colorspace.h prnt/hpcups/RunLenEncoding.h prnt/hpcups/common_defines.h \ |
| 6 | prnt/hpcups/genPCLm.h \ |
| 7 | common/utils.c common/utils.h prnt/hpcups/Hbpl1_Wrapper.cpp prnt/hpcups/genPCLm.cpp \ |
| 8 | - prnt/hpcups/genJPEGStrips.cpp prnt/hpcups/RunLenEncoding.cpp \ |
| 9 | - prnt/hpcups/ImageProcessor.h |
| 10 | + prnt/hpcups/genJPEGStrips.cpp prnt/hpcups/RunLenEncoding.cpp |
| 11 | |
| 12 | hpcups_CXXFLAGS = $(APDK_ENDIAN_FLAG) $(DBUS_CFLAGS) |
| 13 | -hpcups_LDADD = -L./prnt/hpcups/ -ljpeg -ldl -lImageProcessor -lcups -lcupsimage -lz $(DBUS_LIBS) |
| 14 | +hpcups_LDADD = -L./prnt/hpcups/ -ljpeg -ldl -lcups -lcupsimage -lz $(DBUS_LIBS) |
| 15 | #else |
| 16 | #hpcupsdir = $(cupsfilterdir) |
| 17 | #hpcups_PROGRAMS = hpcups |
| 18 | --- a/prnt/hpcups/HPCupsFilter.cpp |
| 19 | +++ b/prnt/hpcups/HPCupsFilter.cpp |
| 20 | @@ -637,16 +637,10 @@ int HPCupsFilter::processRasterData(cups |
| 21 | |
| 22 | |
| 23 | sprintf(hpPreProcessedRasterFile, "%s/hp_%s_cups_SwapedPagesXXXXXX",CUPS_TMP_DIR, m_JA.user_name); |
| 24 | - image_processor_t* imageProcessor = imageProcessorCreate(); |
| 25 | |
| 26 | while (cupsRasterReadHeader2(cups_raster, &cups_header)) |
| 27 | { |
| 28 | |
| 29 | - IMAGE_PROCESSOR_ERROR result = imageProcessorStartPage(imageProcessor, &cups_header); |
| 30 | - if (result != IPE_SUCCESS){ |
| 31 | - dbglog("DEBUG: imageProcessorStartPage failed result = %d\n", result); |
| 32 | - } |
| 33 | - |
| 34 | current_page_number++; |
| 35 | |
| 36 | if (current_page_number == 1) { |
| 37 | @@ -745,11 +739,6 @@ int HPCupsFilter::processRasterData(cups |
| 38 | color_raster = rgbRaster; |
| 39 | black_raster = kRaster; |
| 40 | |
| 41 | - result = imageProcessorProcessLine(imageProcessor, m_pPrinterBuffer, cups_header.cupsBytesPerLine); |
| 42 | - if (result != IPE_SUCCESS){ |
| 43 | - dbglog("DEBUG: imageProcessorProcessLine failed result = %d\n", result); |
| 44 | - } |
| 45 | - |
| 46 | |
| 47 | if ((y == 0) && !is_ljmono) { |
| 48 | //For ljmono, make sure that first line is not a blankRaster line.Otherwise printer |
| 49 | @@ -780,11 +769,6 @@ int HPCupsFilter::processRasterData(cups |
| 50 | } |
| 51 | } // for() loop end |
| 52 | |
| 53 | - result = imageProcessorEndPage(imageProcessor); |
| 54 | - if (result != IPE_SUCCESS){ |
| 55 | - dbglog("DEBUG: imageProcessorEndPage failed result = %d\n", result); |
| 56 | - } |
| 57 | - |
| 58 | |
| 59 | m_Job.NewPage(); |
| 60 | if (err != NO_ERROR) { |
| 61 | @@ -800,8 +784,6 @@ int HPCupsFilter::processRasterData(cups |
| 62 | rgbRaster = NULL; |
| 63 | } |
| 64 | |
| 65 | - imageProcessorDestroy(imageProcessor); |
| 66 | - |
| 67 | unlink(hpPreProcessedRasterFile); |
| 68 | return ret_status; |
| 69 | } |