×

Discussion Board

Results 1 to 13 of 13
  1. #1
    Registered User
    Join Date
    Nov 2010
    Location
    Finland
    Posts
    91

    Creating package failed, file name or path too long

    Since I updated to QtSdk 1.2 I'm getting this when building my project

    Code:
    /sysroots/harmattan_sysroot_10.2011.34-1_slim/sysroots/harmattan_sysroot_10.2011.34-1_slim/sysroots/harmattan_sysroot_10.2011.34-1_slim/sysroots/harmattan_sysroot_10.2011.34-1_slim/sysroots/harmattan_sysroot_10.2011.34-1_slim/sysroots/harmattan_sysroot_10.2011.34-1_slim/var/lib/dpkg/status: File or path name too long
    dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
    dpkg-buildpackage: warning: (Use -d flag to override.)
    Packaging Error: Command 'c:/qtsdk/madde/bin/mad dpkg-buildpackage -nc -uc -us' failed.Exit code: 3
    Error while building project Project(target: Harmattan)
    When executing build step 'Create Debian Package'
    for some reason /sysroots/harmattan_sysroot_10.2011.34-1_slim/sysroots/harmattan_sysroot_10.2011.34-1_slim is there three times in the path, how should I fix that?

  2. #2
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Creating package failed, file name or path too long

    If cleaning the project doesn't help (qmake distclean), try to remove .pro.user file from your project directory.
    If you create a new apps, are you able to build them?

  3. #3
    Registered User
    Join Date
    Nov 2010
    Location
    Finland
    Posts
    91

    Re: Creating package failed, file name or path too long

    Quote Originally Posted by gnuton View Post
    If cleaning the project doesn't help (qmake distclean), try to remove .pro.user file from your project directory.
    If you create a new apps, are you able to build them?

    No, it says the same if I try with new project:
    Code:
    18:12:47: The process "C:\qtsdk\madde\bin\make.exe" exited normally.
    18:12:47: Creating package file ...
    18:12:47: Package Creation: Running command 'c:/qtsdk/madde/bin/mad dpkg-buildpackage -nc -uc -us'.
    dpkg-buildpackage: set CFLAGS to default value: -g -O2
    dpkg-buildpackage: set CPPFLAGS to default value: 
    dpkg-buildpackage: set LDFLAGS to default value: 
    dpkg-buildpackage: set FFLAGS to default value: -g -O2
    dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
    dpkg-buildpackage: source package untitled1
    dpkg-buildpackage: source version 0.0.1
    dpkg-buildpackage: source changed by unknown <>
    which: pgp: unknown command
    dpkg-buildpackage: host architecture armel
    /sysroots/harmattan-nokia-meego-arm-sysroot-1122-slim/sysroots/harmattan-nokia-meego-arm-sysroot-1122-slim/sysroots/harmattan-nokia-meego-arm-sysroot-1122-slim/sysroots/harmattan-nokia-meego-arm-sysroot-1122-slim/sysroots/harmattan-nokia-meego-arm-sysroot-1122-slim/sysroots/harmattan-nokia-meego-arm-sysroot-1122-slim/var/lib/dpkg/status: File or path name too long
    dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
    dpkg-buildpackage: warning: (Use -d flag to override.)
    Packaging Error: Command 'c:/qtsdk/madde/bin/mad dpkg-buildpackage -nc -uc -us' failed.Exit code: 3
    Error while building project untitled1 (target: Harmattan)
    When executing build step 'Create Debian Package'
    and removing pro.user didn't help either

  4. #4
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,086

    Re: Creating package failed, file name or path too long

    if going by this post, then solution is to re-install the SDk : http://forum.meego.com/showthread.php?t=4510

  5. #5
    Registered User
    Join Date
    Nov 2010
    Location
    Finland
    Posts
    91

    Re: Creating package failed, file name or path too long

    Quote Originally Posted by vineet.jain View Post
    if going by this post, then solution is to re-install the SDk : http://forum.meego.com/showthread.php?t=4510
    Already installed 1.2 twice, now I try to go back 1.1.4

  6. #6
    Registered User
    Join Date
    Nov 2010
    Location
    Finland
    Posts
    91

    Re: Creating package failed, file name or path too long

    Now I'm getting with 1.1.4

    /sysroots/harmattan_sysroot_10.2011.34-1_slim/sysroots/harmattan_sysroot_10.2011.34-1_slim/var/lib/dpkg/status: No such file or directory
    dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
    dpkg-buildpackage: warning: (Use -d flag to override.)
    Packaging Error: Command 'c:/qtsdk/madde/bin/mad dpkg-buildpackage -nc -uc -us' failed.Exit code: 3

    argh, any ideas how to fix this?

  7. #7
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Creating package failed, file name or path too long

    Then the problem is in the SDK. I googled and I've seen this is a common issue on Windows.
    I took a look at the script shipped with the SDK but to be honest SYSROOT could come from many parts.
    You can use directly madde to build or just try to reinstall the SDK.
    On linux the configuration file is located in $HOME/.config/Nokia. No idea where it's on windows. Maybe removing it helps.

  8. #8
    Registered User
    Join Date
    Mar 2003
    Posts
    10

    Re: Creating package failed, file name or path too long

    Try to remove 1.1.4 before installing 1.2. And make sure "clean settings .. " options is checked before installing 1.2

  9. #9
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,086

    Re: Creating package failed, file name or path too long

    Quote Originally Posted by altunero View Post
    Try to remove 1.1.4 before installing 1.2. And make sure "clean settings .. " options is checked before installing 1.2
    ah.. 1st post in 9 years

  10. #10
    Registered User
    Join Date
    Nov 2010
    Location
    Finland
    Posts
    91

    Re: Creating package failed, file name or path too long

    I'm going from one error to another.

    debian/rules build
    debian/rules:18: *** missing separator (did you mean TAB instead of 8 spaces?). Stop.
    dpkg-buildpackage: failure: debian/rules build gave error exit status 2
    Packaging Error: Command 'c:/qtsdk/madde/bin/mad dpkg-buildpackage -nc -uc -us' failed.Exit code: 2

    Edit:

    I removed qtc_packaging folder and it started finally to work.
    Last edited by jkosonen; 2012-02-08 at 19:46. Reason: fix found

  11. #11
    Registered User
    Join Date
    Mar 2003
    Posts
    10

    Re: Creating package failed, file name or path too long

    1st but not last

  12. #12
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Creating package failed, file name or path too long

    Makefile was corrupted. Removing qtc_packaging, Qt creator has created a new debian/rules file for you.
    The problem is well explained in the error message you pasted. Basically any line in the debian/rules file have to start with a TAB.

  13. #13
    Registered User
    Join Date
    Nov 2011
    Posts
    2

    Re: Creating package failed, file name or path too long

    madlib/perl5/Dpkg.pmur $admindir = "$ENV{SYSROOT_DIR}$ENV{SYSROOT_DIR}$ENV{SYSROOT_DIR}$ENV{SYSROOT_DIR}$ENV{SYSROOT_DIR}/var/lib/dpkg";

    When I removed the extra sysroot dir entries from Dpkg.pm, then things started to work again.

Similar Threads

  1. File or path name too long....
    By pornima in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2009-04-06, 16:36
  2. Carbide bug: Aif Compiler: File or path name too long
    By alexbirkett in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2008-05-10, 18:30
  3. abld -> File or path name too long
    By glr in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2005-01-26, 10:36
  4. GCC - file or path name too long
    By mharries in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2003-07-28, 10:41
  5. Path or file name too long
    By aptuovinen in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2002-07-03, 10:34

Posting Permissions

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