Menu

#66 AddResource(...) Linux not run

v1.0_(example)
open
nobody
None
1
2023-12-12
2023-12-11
No

Hi!

`@ 020,080 OwnerButton oBtA Size 90,90 TEXT "Sair" COORDINATES 0,70,0,0 BITMAP HBitmap():AddResource( "PACOTE" ) TRANSPARENT ON CLICK {||hwg_EndDialog()}``

See attached image of error.
No erros while compiling my system.

Best regards,
Itamar M. Lins Jr.

1 Attachments

Discussion

  • Alexander S.Kresin

    Is the binary resources container set with the hwg_SetResContainer() ?

     
    • Itamar M. Lins Jr.

      Hi!
      No, is plain text sciwin.rc GCC 13.2 Linux compile without error.

      ICON_1      ICON "../imagens/sciwin.ico" 
      ICON_2      ICON "../imagens/lupa.ico" 
      ICON_3      ICON "../imagens/remote.ico"
      ICON_4      ICON "../imagens/chave.ico"
      ICO_ESTOQUE ICON "../imagens/reload.ico"     
      PACOTE      BITMAP "../imagens/package-48.bmp" 
      
      NOVO        BITMAP "../imagens/novo.bmp" 
      INICIO      BITMAP "../imagens/inicio.bmp"  
      FIM         BITMAP "../imagens/fim.bmp"    
      EXCLAMACAO  BITMAP "../imagens/exclamacao.bmp" 
      FILTRO      BITMAP "../imagens/filtro.bmp"  
      EXIT        BITMAP "../imagens/exit.bmp"      
      RUN         BITMAP "../imagens/run.bmp" 
      BINOCULO    BITMAP "../imagens/binoculo.bmp" 
      LANTERNA    BITMAP "../imagens/lanterna.bmp" 
      

      Best regards,
      Itamar M. Lins Jr.

       
    • Itamar M. Lins Jr.

      Hi!
      I found bincnt utility(old changelog) now go to test windows and linux.

      Best regards,
      Itamar M. Lins Jr.

       
  • Alexander S.Kresin

    No, is plain text sciwin.rc GCC 13.2 Linux compile without error.

    Hm.. I didn't knew that Linux GCC can compile rc files. Bincnt was specially designed to provide crossplatform handling of resources.
    And what kind of output file you get?

     
    • Itamar M. Lins Jr.

      Hi!
      I don't know.
      The .rc file is linked together with the prg and the final binary is generated.
      The same happens in the Windows environment

      My files .hbp(hbmk2) is basic.

      myfile.hbp is:
      ...
      -omyfile
      myprg1.prg
      myprg2.prg
      myfile.rc
      ...
      <end>
      output myfile</end>

      $ ./myfile

      Best regards,
      Itamar M. Lins Jr.

       
  • Alexander S.Kresin

    Hbmk simply ignores the line with rc file on Linux. If you will use the -trace flag to view the full output, you will see that myfile.rc isn't used while building.

    Regards, Alexander.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.