maisonsmd / qnx-better-screenshot

A replacement for QNX's screenshot
2 stars 1 forks source link

screen/screen.h no such file or directory #1

Open AuRoN89 opened 3 months ago

AuRoN89 commented 3 months ago

Hi, i'm trying to compile better screenshot for QNX 6.5 but i have this error. /qnx-better-screenshot/src/screenmanager.h:6:10: fatal error: screen/screen.h: No such file or directory

That file it's not in the QNX 6.5 gcc compiler (i'm using 11.2.0) toolchain, do you have any clue? is it for QNX 7.0 only?

maisonsmd commented 3 months ago

The last time I've compiled the source is on QNX 7.1 if I remember correctly. Unfortunately I don't have access to any QNX version now. I have to check if libscreen is available for 6.5

AuRoN89 commented 1 month ago

i managed to get the screen.h, it compile fine, but as soon as i execute it, this is the output:

Requested rectangle out side the screen ldd:FATAL: Unresolved symbol "_ZdlPvj" called from Executable

I tried several compilation flags, but i cannot find a solution

maisonsmd commented 1 month ago

i managed to get the screen.h, it compile fine

Where did you find the screen.h file? did you find the libscreen as well?
Because the libscreen is the actual implementation of the screen.h header.

From the error, I have 2 assumptions:

  1. Maybe you did not link the libscreen successfully
  2. The libscreen is not compatible with your current QNX version.
AuRoN89 commented 1 month ago

i got it from a QNX 6.5 BSP libscreen.so.1 is the one natively present in the system that i'm using.

maisonsmd commented 1 month ago

That's weird. Can you create an empty project and then link only libscreen to see if it runs?

AuRoN89 commented 1 month ago

i'm using screen.h and available system libscreen for some other custom binaries so it's definetely working fine...

weird indeed

maisonsmd commented 1 month ago

The only culprit I could think of is fpng, try removing it and only keep the bitmap function.