Compiling as library on linux

  • powderpowder1000
    23rd Nov 2017 Member 0 Permalink

    Whenever I try to compile TPT it works just fine but it is not an executable file. I can run it just fine if i run it though the command line, but that gets tedious and I would prefer to be able to just click on it for convenience.

     

    I tried looking at all the scons options but none of them said anything about it. I also looked at the sconstruct and the sconscript files and I couldn't find anything to help me either.

  • jacob1
    23rd Nov 2017 Developer 1 Permalink
    Do you get an output file named "powder" or "powder64"? What command are you using to run the output?

    powder/powder64 is the executable. You should already be able to double click to run it.
  • powderpowder1000
    23rd Nov 2017 Member 0 Permalink

    @jacob1 (View Post)

     

    im simply running scons to compile it. To run the output i just do ./powder64

     

    It is executable but when I try to double click on it just opens a window that says

     

    Open powder64 and other files of type "shared library" with:

     

  • jacob1
    23rd Nov 2017 Developer 0 Permalink
    @powderpowder1000 (View Post)
    Try right clicking it -> properties -> permissions and see if "Allow executing file as a program" is checked. If it isn't, check it (you could also just do "chmod +x powder64")

    Although it should already be set.

    I don't know why it would think it is a shared library, something strange is going on there. What does it say when you type "file powder64"? I get "powder64: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=7d8fe637e93861014598ab3467c84127f01af025, stripped"

    You could also just open it and press ctrl+i, this will install menu shortcuts for you and you can start opening powder toy from there.
    Edited once by jacob1. Last: 23rd Nov 2017
  • powderpowder1000
    23rd Nov 2017 Member 0 Permalink

    @jacob1 (View Post)

     

    "powder64: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=635484ce390fe195b8a11556e28141fd3800c875, stripped"

     

    Im thinking it might have somthing to do with xfce.

  • jacob1
    23rd Nov 2017 Developer 0 Permalink
    Yes, it probably does. That still shouldn't happen ever though. I would do ctrl+i and have TPT install the menu shortcuts for you, then you don't have to worry about double clicking it
  • cell-core
    29th Jun 2018 Member 0 Permalink

    @powderpowder1000                                                                                                                                        look at the code for tpt 

Locked by jacob1: necro