Re: Phix, IUP issues - FIXED - but not quite there yet!
- Posted by ChrisB (moderator) Feb 02, 2022
- 901 views
Hi,
So I got the some of the CD programs to work, and I sis it a different way (again).
The issue was libcdpdf.so was not linking
it was not linking, because libcdpdf/so was calling a function in libpdflib.so, which it couldn't find (as shown by ldd libcdpdf.so)
so I had to find libpdflib.so
I couldn't. libpdflib.so is part of the pdflib utilities, and is a commercial program, but there is a PDFlib-lite package, which you have to compile from source.
so I got the is from github, did the usual make, configure, make-install
Still didn't work.
It had put libpdf.so in /usr/local so of course libcdpdf couldn't find it.
1. -it's in /usr/local
2. - it's a different name!
Hmm, so I put a symlink to libpdf.so in /usr/lib, so that now /usr/lib/libpdflib.so => /usr/local/libpdf.so
so now libcdpdf.so can open libpdflib.so symlinked to /usr/local/libpdf.so, even if the functions in it aren't the same in libpdflib (it was a guess)
It works! At least with the mandelbrot, no changes in the program
works? issue works now? 3d_text.exw no probably windows only aaline.exw no libcdpdf.so no - p: symbol lookup error: /usr/lib/libcdgl.so: undefined symbol: ftglSetNearestFilter boids3d.exw no libcdpdf.so no - redraw_cb issue boidsc.exw partial no window display, iterating numbers on console buffer.exw no libcdpdf.so no - redraw_cb issue cdtest.exw no libcdpdf.so yes, I think, sometimes white background, sometimes takes nackground as background Chat.exw no though other issues no - phix/builtins/cffi.e:1157 in function open_lib() attempt to divide by 0 getparam.exw yes seg fault no glcanvas_cube.exw yes/no displays then seg faults on mouse click and move no change graph1.exw no libcdpdf.so no - redraw_cb issue graph2.exw no libcdpdf.so no - redraw_cb issue GraphR.exw no libcdpdf.so no - redraw_cb issue imgdisp.exw yes provided image location is Linux freindly IupFlatTabs.exw yes all Iup[prefices] work lesson6.exw yes but won't load bitmap for texturing yes, but no change mandelbrot.exw no libcdpdf.so yes - updates as goes, and semi transparent window matrix.exw no not sure no change - call back issue mglplotdemo.exw no no change - call back issue PhixLogo.exw no libcdpdf yes r3d.exw no yes rubik.exw no libcdpdf.so no - p: symbol lookup error: /usr/lib/libcdgl.so: undefined symbol: ftglSetNearestFilter simple_paint.exw no libcdpdf.so starts, the p: symbol lookup error: /usr/lib/libcdgl.so: undefined symbol: ftglSetNearestFilter when click on 'New' button teselation.exw yes once got a readable filename (png, apparently, not bmp) triangle.exw yes no movement yes - no change then
nm -gD libcdgl.so tells me that that symbol, ftglSetNearestFilter, is there in the library - hmmm,
Cheers
Chris