Embedded printer ( LJ1020 ) develop
Thanks for help.
Our development platform is ADS1.2(An ARM software develop tool) under the windows XP Operating System.
With hpijs-1.7.1 development kit, we have implemented embedded print with D2368, D2468, LJ P2015.
Now we want to add support for printer LaserJet 1020 and LaserJet P1505, and have Several question listed Below:
(1)what is "lj.so" in file ljzjs.cpp, is it necessary to make printer like LaserJet 1020 and LaserJet P1505 to work ?
(2)if we don't define "HAVE_LIBDL", is it OK ?
(3)To add support for printer which belong to LJZJSMono and LJM1005 using ADS1.2 develop tool under the windowsXP Operating System, what we Should do ?
Below is the related code in file ljzjs.cpp:
#ifdef HAVE_LIBDL
#include <dlfcn.h>
#endif
extern "C"
{
int (*HPLJJBGCompress) (int iWidth, int iHeight, unsigned char **pBuff,
int (*HPLJSoInit) (int iFlag);
}
#ifdef HAVE_LIBDL
extern void *LoadPlugin (char *szPluginName);
#endif
#ifdef HAVE_LIBDL
m_hHPLibHandle = LoadPlugin ("lj.so");
if (m_hHPLibHandle)
{
dlerror ();
*(void **) (&HPLJJBGCompress) = dlsym(m_
*(void **) (&HPLJSoInit) = dlsym (m_hHPLibHandle, "hp_init_lib");
if (!HPLJSoInit || (HPLJSoInit && !HPLJSoInit (1)))
{
}
}
#endif
#ifdef HAVE_LIBDL
if (m_hHPLibHandle)
{
dlclose (m_hHPLibHandle);
}
#endif
HPLJJBGCompress (m_dwWidth * 8 * m_iBPP, iHeight, &p, &myBuffer, &se);
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- HPLIP Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask nicholasldf for more information if necessary.