Results 1 to 7 of 7

Thread: Launching application invalid

  1. #1

    Launching application invalid

    Hey guys,

    I'm trying to compile my engine on linux. Building goes without any problems, but when I try to run it, i get:

    The launching application ""/mnt/dev/n3d/workingdir/demos/mesh_test_fpc/meshtestproj""
    does not exist or is not executable.

    See Run > Run Parameters > Local
    I don't really understand the double quotes around the filename.
    My Run parameters seem ok:

    Hosting application = ""
    CommandLine parameters = ""
    Use Launching application = not checked
    Launching application = "/usr/X11R6/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)"
    use display = not checked
    Display = ":0"
    Working Directory = ""
    Can anyone point me in the right direction? I'm totally lost here.

    Thanks
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  2. #2
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45

    Re: Launching application invalid

    hm, now id be the first to admit im not the first to know much about linux, but I did encounter this problem once on an xp machine so i cant be sure its the same, but when i did get the problem, i found that a recompile with the most basic parameters, no optimization and extra error checking, also try any dlls (or linux equivalent) which could be causing an error...

    although i dont think this is much help, but you never know. check your spellings, because mesh is a common mistake to mesh an h or an s...
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  3. #3
    PGD Community Manager AthenaOfDelphi's Avatar
    Join Date
    Dec 2004
    Location
    South Wales, UK
    Posts
    1,245
    Blog Entries
    2

    Re: Launching application invalid

    Quote Originally Posted by chronozphere
    Hey guys,

    I'm trying to compile my engine on linux. Building goes without any problems, but when I try to run it, i get:

    The launching application ""/mnt/dev/n3d/workingdir/demos/mesh_test_fpc/meshtestproj""
    does not exist or is not executable.

    See Run > Run Parameters > Local
    This could just be a file permissions issue. Certainly when ever I've compiled stuff on linux (admittedly, not with Lazarus), it hasn't been executable immediately. I've always had to give it the X permission with something like:-

    Code:
    chmod ugo=rwx myfile
    This gives myfile read, write and execute permissions for the owning user, the owning group and the public.

    I'm not going to try and explain all the options of chmod, instead, check out this page.
    :: AthenaOfDelphi :: My Blog :: My Software ::

  4. #4

    Re: Launching application invalid

    Thanks for the hints code_glitch and Anthena. I'm going to try them ASAP.
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  5. #5

    Re: Launching application invalid

    I gave it another go and it seems like I cant get any of my projects working in lazarus under linux. I'm running ubuntu 9.10 here.

    They all give the "invalid launching application" error when I try to run them.

    I've stored all my projects on an ntfs partition that is used by windows aswell. I'm auto-mounting the drive at startup. This is the line in /etc/fstab:

    /dev/sdb2 /mnt/dev ntfs-3g auto,exec,rw,user 0 0
    My drive is called "dev" (development) and it's mounted at /mnt/dev. I think something is wrong in this line.

    Can anyone help me?
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  6. #6

    Re: Launching application invalid

    How are you calling your app when you launch it?

    Should be ./<yourappname> <options>

    - Jeremy

  7. #7

    Re: Launching application invalid

    I've figured it out.

    The problem was indeed related to permissions. I'm using an ntfs partition for my development activities. I couldn't run executables stored on that drive.

    So I've changed the fstab entry from:

    /dev/sdb2 /mnt/dev ntfs-3g auto,exec,rw,user 0 0
    to:

    /dev/sdb2 /mnt/dev ntfs auto,uid=1000,fmask=0077,dmask=0077 0 0
    It seemed that the "user" option prevented me from running my files.
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •