May 2, 2012

pmjz pmjz
Lab Rat
89 posts

ubuntu creator can not build

 

looks like including relative file isnot allowable, any ideas

  1. 16:22:01: Running build steps for project units...
  2. 16:22:01: Configuration unchanged, skipping qmake step.
  3. 16:22:01: Configuration unchanged, skipping qmake step.
  4. 16:22:01: Configuration unchanged, skipping qmake step.
  5. 16:22:01: Configuration unchanged, skipping qmake step.
  6. 16:22:01: Configuration unchanged, skipping qmake step.
  7. 16:22:01: Configuration unchanged, skipping qmake step.
  8. 16:22:01: Starting: "/usr/bin/make" -w
  9. 16:22:01: Starting: "/usr/bin/make" -w
  10. 16:22:01: Starting: "/usr/bin/make" -w
  11. 16:22:01: Starting: "/usr/bin/make" -w
  12. 16:22:01: Starting: "/usr/bin/make" -w
  13. 16:22:01: Starting: "/usr/bin/make" -w
  14. make: Entering directory `/home/administrator/QtProjects/Source/Trunk/units-build-desktop'
  15. make: Entering directory `/home/administrator/QtProjects/Source/Trunk/units-build-desktop'
  16. make: Entering directory `/home/administrator/QtProjects/Source/Trunk/units-build-desktop'
  17. make: Entering directory `/home/administrator/QtProjects/Source/Trunk/units-build-desktop'
  18. make: Entering directory `/home/administrator/QtProjects/Source/Trunk/units-build-desktop'
  19. make: Entering directory `/home/administrator/QtProjects/Source/Trunk/units-build-desktop'
  20. g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIC -DUNITS_LIBRARY -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.8.2/mkspecs/linux-g++ -I../units -I/usr/local/Trolltech/Qt-4.8.2/include/QtCore -I/usr/local/Trolltech/Qt-4.8.2/include -I. -I../units -I. -o unit.o ../units/unit.cpp
  21. g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIC -DUNITS_LIBRARY -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.8.2/mkspecs/linux-g++ -I../units -I/usr/local/Trolltech/Qt-4.8.2/include/QtCore -I/usr/local/Trolltech/Qt-4.8.2/include -I. -I../units -I. -o unit.o ../units/unit.cpp
  22. g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIC -DUNITS_LIBRARY -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.8.2/mkspecs/linux-g++ -I../units -I/usr/local/Trolltech/Qt-4.8.2/include/QtCore -I/usr/local/Trolltech/Qt-4.8.2/include -I. -I../units -I. -o unit.o ../units/unit.cpp
  23. g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIC -DUNITS_LIBRARY -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.8.2/mkspecs/linux-g++ -I../units -I/usr/local/Trolltech/Qt-4.8.2/include/QtCore -I/usr/local/Trolltech/Qt-4.8.2/include -I. -I../units -I. -o unit.o ../units/unit.cpp
  24. g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIC -DUNITS_LIBRARY -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.8.2/mkspecs/linux-g++ -I../units -I/usr/local/Trolltech/Qt-4.8.2/include/QtCore -I/usr/local/Trolltech/Qt-4.8.2/include -I. -I../units -I. -o unit.o ../units/unit.cpp
  25. g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIC -DUNITS_LIBRARY -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.8.2/mkspecs/linux-g++ -I../units -I/usr/local/Trolltech/Qt-4.8.2/include/QtCore -I/usr/local/Trolltech/Qt-4.8.2/include -I. -I../units -I. -o unit.o ../units/unit.cpp
  26. In file included from ../units/unitformat.h:37:0,
  27. In file included from ../units/unitformat.h:37:0,
  28. In file included from ../units/unitformat.h:37:0,
  29. In file included from ../units/unitformat.h:37:0,
  30. In file included from ../units/unitformat.h:37:0,
  31. In file included from ../units/unitformat.h:37:0,
  32.                  from ../units/unit.cpp:6:
  33.                  from ../units/unit.cpp:6:
  34.                  from ../units/unit.cpp:6:
  35.                  from ../units/unit.cpp:6:
  36.                  from ../units/unit.cpp:6:
  37.                  from ../units/unit.cpp:6:
  38. ../units/si.h:33:18: fatal error: Vector: No such file or directory
  39. ../units/si.h:33:18: fatal error: Vector: No such file or directory
  40. ../units/si.h:33:18: fatal error: Vector: No such file or directory
  41. ../units/si.h:33:18: fatal error: Vector: No such file or directory
  42. ../units/si.h:33:18: fatal error: Vector: No such file or directory
  43. ../units/si.h:33:18: fatal error: Vector: No such file or directory
  44. compilation terminated.
  45. compilation terminated.
  46. compilation terminated.
  47. compilation terminated.
  48. compilation terminated.
  49. compilation terminated.
  50. make: Leaving directory `/home/administrator/QtProjects/Source/Trunk/units-build-desktop'
  51. make: Leaving directory `/home/administrator/QtProjects/Source/Trunk/units-build-desktop'
  52. make: Leaving directory `/home/administrator/QtProjects/Source/Trunk/units-build-desktop'
  53. make: Leaving directory `/home/administrator/QtProjects/Source/Trunk/units-build-desktop'
  54. make: Leaving directory `/home/administrator/QtProjects/Source/Trunk/units-build-desktop'
  55. make: Leaving directory `/home/administrator/QtProjects/Source/Trunk/units-build-desktop'
  56. make: *** [unit.o] Error 1
  57. make: *** [unit.o] Error 1
  58. make: *** [unit.o] Error 1
  59. make: *** [unit.o] Error 1
  60. make: *** [unit.o] Error 1
  61. make: *** [unit.o] Error 1
  62. 16:22:02: The process "/usr/bin/make" exited with code 2.
  63. 16:22:02: The process "/usr/bin/make" exited with code 2.
  64. 16:22:02: The process "/usr/bin/make" exited with code 2.
  65. 16:22:02: The process "/usr/bin/make" exited with code 2.
  66. 16:22:02: The process "/usr/bin/make" exited with code 2.
  67. 16:22:02: The process "/usr/bin/make" exited with code 2.
  68. Error while building project units (target: Desktop)
  69. When executing build step 'Make'

8 replies

May 2, 2012

1+1=2 1+1=2
Robot Herder
638 posts

Is

  1. Vector

a header file created by yourself?

May 2, 2012

MuldeR MuldeR
Robot Herder
788 posts

There is a <vector> header file in the C++ standard library.

However that <vector> starts with a lower-case character. On Windows upper or lower case doesn’t matter in file names, but on Linux it does. May this be the problem?

 Signature 

My OpenSource software at: http://muldersoft.com/

Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

Go visit the coop: http://youtu.be/Jay-fG9eaYk

May 2, 2012

pmjz pmjz
Lab Rat
89 posts
1+1=2 wrote:
Is
  1. Vector
a header file created by yourself?

nope, and also I check those header files and its exactly exist there

May 2, 2012

pmjz pmjz
Lab Rat
89 posts

MuldeR wrote:
There is a <vector> header file in the C++ standard library.

However that <vector> starts with a lower-case character. On Windows upper or lower case doesn’t matter in file names, but on Linux it does. May this be the problem?

give me more detail please

May 2, 2012

1+1=2 1+1=2
Robot Herder
638 posts
pmjz wrote:
1+1=2 wrote:
Is
  1. Vector
a header file created by yourself?

nope, and also I check those header files and its exactly exist there

Can you tell us where is the header and which package provide it?

—-
I don’t think a serious tool will provide such a header file.

May 2, 2012

pmjz pmjz
Lab Rat
89 posts

ok,simply, I have a package named units which includes all header files

May 2, 2012

Tobias Hunger Tobias Hunger
Robot Herder
3386 posts

There seems to be no file “Vector” in ../units. Please be aware that case matters on linux: if the file is called “vector”, then ‘#include “Vector”’ will fail. On windows that will work.

May 2, 2012

pmjz pmjz
Lab Rat
89 posts

you guys are right, changing to vector is working very well,thanks

 
  ‹‹ how to set up environmental variables on Ubuntu for Qt creator      How to catch CTRL+C in linux based system ››

You must log in to post a reply. Not a member yet? Register here!