nmoehrle / uavmvs

UAV capture planning for MVS reconstructions
Other
55 stars 19 forks source link

build problems #8

Open psycoder-sup opened 5 years ago

psycoder-sup commented 5 years ago

i tried to build this project but this error keeps coming

`==== Building fmt (debug) ==== Creating debug Creating obj/debug/fmt format.cc ostream.cc posix.cc Linking fmt ==== Building sim (debug) ==== Creating obj/debug/sim model.cpp window.cpp In file included from ../libs/sim/model.cpp:18:0: ../libs/sim/shader_type.h:19:21: warning: ‘shader_names’ defined but not used [-Wunused-variable] static const char * shader_names[] = {"vcolor", "surface", "texture", "lines"}; ^~~~ Linking sim ==== Building utp (debug) ==== Creating obj/debug/utp trajectory.cpp trajectory_io.cpp Linking utp ==== Building eval (debug) ==== Creating obj/debug/eval bvh_tree.cu kd_tree.cu kernels.cu nvcc warning : Resource usage is not shown as the final resource allocation is not done. nvcc warning : Resource usage is not shown as the final resource allocation is not done. nvcc warning : Resource usage is not shown as the final resource allocation is not done. ../libs/acc/primitives.h(60): error: namespace "std" has no member "vector"

../libs/acc/primitives.h(60): error: expected a ")"

../libs/acc/bvh_tree.h(66): error: qualified name is not allowed

../libs/acc/bvh_tree.h(66): error: this declaration has no storage class or type specifier

../libs/acc/bvh_tree.h(66): error: expected a ";"

../libs/acc/bvh_tree.h(67): error: qualified name is not allowed

../libs/acc/bvh_tree.h(67): error: this declaration has no storage class or type specifier

../libs/acc/bvh_tree.h(67): error: expected a ";"

../libs/acc/bvh_tree.h(70): error: qualified name is not allowed

../libs/acc/bvh_tree.h(70): error: this declaration has no storage class or type specifier

../libs/acc/bvh_tree.h(70): error: expected a ";"

../libs/acc/bvh_tree.h(84): error: namespace "std" has no member "vector"

../libs/acc/bvh_tree.h(84): error: expected a ")"

../libs/acc/bvh_tree.h(86): error: namespace "std" has no member "vector"

../libs/acc/bvh_tree.h(86): error: expected a ")"

../libs/acc/bvh_tree.h(88): error: namespace "std" has no member "vector"

../libs/acc/bvh_tree.h(88): error: expected a ")"

../libs/acc/bvh_tree.h(89): error: namespace "std" has no member "vector"

../libs/acc/bvh_tree.h(89): error: expected a ")"

../libs/acc/bvh_tree.h(98): error: namespace "std" has no member "vector"

../libs/acc/bvh_tree.h(98): error: expected a ")"

../libs/acc/bvh_tree.h(114): error: qualified name is not allowed

../libs/acc/bvh_tree.h(114): error: expected a ")"

../libs/acc/bvh_tree.h(115): error: qualified name is not allowed

../libs/acc/bvh_tree.h(115): error: expected a ";"

../libs/acc/bvh_tree.h(132): error: namespace "std" has no member "vector"

../libs/acc/bvh_tree.h(132): error: expected a ")"

../libs/acc/bvh_tree.h(161): error: namespace "std" has no member "vector"

../libs/acc/bvh_tree.h(161): error: expected a ")"

../libs/acc/bvh_tree.h(179): error: namespace "std" has no member "vector"

../libs/acc/bvh_tree.h(179): error: expected a ")"

../libs/acc/bvh_tree.h(277): error: namespace "std" has no member "vector"

../libs/acc/bvh_tree.h(277): error: expected a ")"

../libs/acc/bvh_tree.h(334): error: class template "acc::BVHTree<IdxType, Vec3fType>" has no member "BVHTree"

../libs/acc/bvh_tree.h(356): warning: parsing restarts here after previous syntax error

../libs/acc/bvh_tree.h(358): error: identifier "max_threads" is undefined

../libs/acc/bvh_tree.h(359): error: this declaration has no storage class or type specifier

../libs/acc/bvh_tree.h(359): error: expected a ")"

../libs/acc/bvh_tree.h(361): error: this declaration has no storage class or type specifier

../libs/acc/bvh_tree.h(361): error: expected a ";"

../libs/acc/bvh_tree.h(364): error: a class or namespace qualified name is required

../libs/acc/bvh_tree.h(364): error: the global scope has no "ID"

../libs/acc/bvh_tree.h(364): error: expected a ";"

../libs/acc/bvh_tree.h(365): error: a class or namespace qualified name is required

../libs/acc/bvh_tree.h(365): error: the global scope has no "ID"

../libs/acc/bvh_tree.h(365): error: expected a ";"

../libs/acc/bvh_tree.h(367): error: identifier "IdxType" is undefined

../libs/acc/bvh_tree.h(369): error: namespace "std" has no member "vector"

../libs/acc/bvh_tree.h(369): error: expected a ";"

../libs/acc/bvh_tree.h(370): error: this declaration has no storage class or type specifier

../libs/acc/bvh_tree.h(370): error: expected a ";"

../libs/acc/bvh_tree.h(371): error: namespace "std" has no member "vector"

../libs/acc/bvh_tree.h(371): error: expected a ";"

../libs/acc/bvh_tree.h(373): error: identifier "idx" is undefined

../libs/acc/bvh_tree.h(373): error: identifier "node_id" is undefined

../libs/acc/bvh_tree.h(374): error: expected a declaration

../libs/acc/bvh_tree.h(390): warning: parsing restarts here after previous syntax error

../libs/acc/bvh_tree.h(391): error: this declaration has no storage class or type specifier

../libs/acc/bvh_tree.h(391): error: overloaded function "std::swap" cannot be defined in the current scope

../libs/acc/bvh_tree.h(391): error: expected a ")"

../libs/acc/bvh_tree.h(393): error: this declaration has no storage class or type specifier

../libs/acc/bvh_tree.h(393): error: expected a ";"

../libs/acc/bvh_tree.h(394): error: expected a declaration

../libs/acc/bvh_tree.h(397): warning: parsing restarts here after previous syntax error

../libs/acc/bvh_tree.h(400): error: BVHTree is not a template

../libs/acc/bvh_tree.h(400): error: identifier "Ray" is undefined

../libs/acc/bvh_tree.h(400): error: a class or namespace qualified name is required

../libs/acc/bvh_tree.h(400): error: global-scope qualifier (leading "::") is not allowed

../libs/acc/bvh_tree.h(400): error: expected a ")"

../libs/acc/bvh_tree.h(400): error: a type qualifier is not allowed on a nonmember function

../libs/acc/bvh_tree.h(418): error: BVHTree is not a template

../libs/acc/bvh_tree.h(418): error: identifier "Ray" is undefined

../libs/acc/bvh_tree.h(418): error: identifier "Hit" is undefined

../libs/acc/bvh_tree.h(418): error: a type qualifier is not allowed on a nonmember function

../libs/acc/bvh_tree.h(469): error: BVHTree is not a template

../libs/acc/bvh_tree.h(470): error: a class or namespace qualified name is required

../libs/acc/bvh_tree.h(470): error: global-scope qualifier (leading "::") is not allowed

../libs/acc/bvh_tree.h(470): error: expected a ")"

../libs/acc/bvh_tree.h(470): error: a type qualifier is not allowed on a nonmember function

../libs/acc/bvh_tree.h(492): error: BVHTree is not a template

../libs/acc/bvh_tree.h(493): error: a type qualifier is not allowed on a nonmember function

../libs/acc/bvh_tree.h(554): error: BVHTree is not a template

../libs/acc/bvh_tree.h(560): error: expected a declaration

/usr/include/c++/6/bits/locale_classes.h(86): error: invalid specifier outside a class declaration

/usr/include/c++/6/bits/locale_classes.h(98): error: identifier "category" is undefined

/usr/include/c++/6/bits/locale_classes.h(99): error: identifier "category" is undefined

/usr/include/c++/6/bits/locale_classes.h(100): error: identifier "category" is undefined

/usr/include/c++/6/bits/locale_classes.h(101): error: identifier "category" is undefined

/usr/include/c++/6/bits/locale_classes.h(102): error: identifier "category" is undefined

/usr/include/c++/6/bits/locale_classes.h(102): error: declaration is incompatible with "time_t time(time_t *)" /usr/include/time.h(75): here

/usr/include/c++/6/bits/locale_classes.h(103): error: identifier "category" is undefined

/usr/include/c++/6/bits/locale_classes.h(104): error: identifier "category" is undefined

/usr/include/c++/6/bits/locale_classes.h(105): error: identifier "category" is undefined

/usr/include/c++/6/bits/locale_classes.h(105): error: declaration is incompatible with "__nv_bool all(__nv_bool)" /usr/include/device_atomic_functions.hpp(216): here

/usr/include/c++/6/bits/locale_classes.h(126): error: function "locale" is not a type name

/usr/include/c++/6/bits/locale_classes.h(136): error: "explicit" is not allowed

/usr/include/c++/6/bits/locale_classes.h(151): error: overloaded function "locale" is not a type name

/usr/include/c++/6/bits/locale_classes.h(151): error: identifier "category" is undefined

/usr/include/c++/6/bits/locale_classes.h(162): error: "explicit" is not allowed

/usr/include/c++/6/bits/locale_classes.h(163): error: expected a "{"

/usr/include/c++/6/bits/locale_classes.h(177): error: overloaded function "locale" is not a type name

/usr/include/c++/6/bits/locale_classes.h(177): error: identifier "category" is undefined

/usr/include/c++/6/bits/locale_classes.h(178): error: expected a "{"

Error limit reached. 100 errors detected in the compilation of "/tmp/tmpxft_000038af_00000000-6_bvh_tree.cpp1.ii". Compilation terminated. eval.make:160: recipe for target 'obj/debug/eval/bvh_tree.o' failed make[1]: [obj/debug/eval/bvh_tree.o] Error 1 make[1]: Waiting for unfinished jobs.... ../libs/acc/primitives.h(60): error: namespace "std" has no member "vector"

../libs/acc/primitives.h(60): error: expected a ")"

../libs/acc/bvh_tree.h(66): error: qualified name is not allowed

../libs/acc/bvh_tree.h(66): error: this declaration has no storage class or type specifier

../libs/acc/bvh_tree.h(66): error: expected a ";"

../libs/acc/bvh_tree.h(67): error: qualified name is not allowed

../libs/acc/bvh_tree.h(67): error: this declaration has no storage class or type specifier

../libs/acc/bvh_tree.h(67): error: expected a ";"

../libs/acc/bvh_tree.h(70): error: qualified name is not allowed

../libs/acc/bvh_tree.h(70): error: this declaration has no storage class or type specifier

../libs/acc/bvh_tree.h(70): error: expected a ";"

../libs/acc/bvh_tree.h(84): error: namespace "std" has no member "vector"

../libs/acc/bvh_tree.h(84): error: expected a ")"

../libs/acc/bvh_tree.h(86): error: namespace "std" has no member "vector"

../libs/acc/bvh_tree.h(86): error: expected a ")"

../libs/acc/bvh_tree.h(88): error: namespace "std" has no member "vector"

../libs/acc/bvh_tree.h(88): error: expected a ")"

../libs/acc/bvh_tree.h(89): error: namespace "std" has no member "vector"

../libs/acc/bvh_tree.h(89): error: expected a ")"

../libs/acc/bvh_tree.h(98): error: namespace "std" has no member "vector"

../libs/acc/bvh_tree.h(98): error: expected a ")"

../libs/acc/bvh_tree.h(114): error: qualified name is not allowed

../libs/acc/bvh_tree.h(114): error: expected a ")"

../libs/acc/bvh_tree.h(115): error: qualified name is not allowed

../libs/acc/bvh_tree.h(115): error: expected a ";"

../libs/acc/bvh_tree.h(132): error: namespace "std" has no member "vector"

../libs/acc/bvh_tree.h(132): error: expected a ")"

../libs/acc/bvh_tree.h(161): error: namespace "std" has no member "vector"

../libs/acc/bvh_tree.h(161): error: expected a ")"

../libs/acc/bvh_tree.h(179): error: namespace "std" has no member "vector"

../libs/acc/bvh_tree.h(179): error: expected a ")"

../libs/acc/bvh_tree.h(277): error: namespace "std" has no member "vector"

../libs/acc/bvh_tree.h(277): error: expected a ")"

../libs/acc/bvh_tree.h(334): error: class template "acc::BVHTree<IdxType, Vec3fType>" has no member "BVHTree"

../libs/acc/bvh_tree.h(356): warning: parsing restarts here after previous syntax error

../libs/acc/bvh_tree.h(358): error: identifier "max_threads" is undefined

../libs/acc/bvh_tree.h(359): error: this declaration has no storage class or type specifier

../libs/acc/bvh_tree.h(359): error: expected a ")"

../libs/acc/bvh_tree.h(361): error: this declaration has no storage class or type specifier

../libs/acc/bvh_tree.h(361): error: expected a ";"

../libs/acc/bvh_tree.h(364): error: a class or namespace qualified name is required

../libs/acc/bvh_tree.h(364): error: the global scope has no "ID"

../libs/acc/bvh_tree.h(364): error: expected a ";"

../libs/acc/bvh_tree.h(365): error: a class or namespace qualified name is required

../libs/acc/bvh_tree.h(365): error: the global scope has no "ID"

../libs/acc/bvh_tree.h(365): error: expected a ";"

../libs/acc/bvh_tree.h(367): error: identifier "IdxType" is undefined

../libs/acc/bvh_tree.h(369): error: namespace "std" has no member "vector"

../libs/acc/bvh_tree.h(369): error: expected a ";"

../libs/acc/bvh_tree.h(370): error: this declaration has no storage class or type specifier

../libs/acc/bvh_tree.h(370): error: expected a ";"

../libs/acc/bvh_tree.h(371): error: namespace "std" has no member "vector"

../libs/acc/bvh_tree.h(371): error: expected a ";"

../libs/acc/bvh_tree.h(373): error: identifier "idx" is undefined

../libs/acc/bvh_tree.h(373): error: identifier "node_id" is undefined

../libs/acc/bvh_tree.h(374): error: expected a declaration

../libs/acc/bvh_tree.h(390): warning: parsing restarts here after previous syntax error

../libs/acc/bvh_tree.h(391): error: this declaration has no storage class or type specifier

../libs/acc/bvh_tree.h(391): error: overloaded function "std::swap" cannot be defined in the current scope

../libs/acc/bvh_tree.h(391): error: expected a ")"

../libs/acc/bvh_tree.h(393): error: this declaration has no storage class or type specifier

../libs/acc/bvh_tree.h(393): error: expected a ";"

../libs/acc/bvh_tree.h(394): error: expected a declaration

../libs/acc/bvh_tree.h(397): warning: parsing restarts here after previous syntax error

../libs/acc/bvh_tree.h(400): error: BVHTree is not a template

../libs/acc/bvh_tree.h(400): error: identifier "Ray" is undefined

../libs/acc/bvh_tree.h(400): error: a class or namespace qualified name is required

../libs/acc/bvh_tree.h(400): error: global-scope qualifier (leading "::") is not allowed

../libs/acc/bvh_tree.h(400): error: expected a ")"

../libs/acc/bvh_tree.h(400): error: a type qualifier is not allowed on a nonmember function

../libs/acc/bvh_tree.h(418): error: BVHTree is not a template

../libs/acc/bvh_tree.h(418): error: identifier "Ray" is undefined

../libs/acc/bvh_tree.h(418): error: identifier "Hit" is undefined

../libs/acc/bvh_tree.h(418): error: a type qualifier is not allowed on a nonmember function

../libs/acc/bvh_tree.h(469): error: BVHTree is not a template

../libs/acc/bvh_tree.h(470): error: a class or namespace qualified name is required

../libs/acc/bvh_tree.h(470): error: global-scope qualifier (leading "::") is not allowed

../libs/acc/bvh_tree.h(470): error: expected a ")"

../libs/acc/bvh_tree.h(470): error: a type qualifier is not allowed on a nonmember function

../libs/acc/bvh_tree.h(492): error: BVHTree is not a template

../libs/acc/bvh_tree.h(493): error: a type qualifier is not allowed on a nonmember function

../libs/acc/bvh_tree.h(554): error: BVHTree is not a template

../libs/acc/bvh_tree.h(560): error: expected a declaration

../libs/cacc/float.h(23): warning: parsing restarts here after previous syntax error

../libs/cacc/float.h(24): error: expected a declaration

../libs/cacc/float.h(25): error: expected a declaration

../libs/cacc/float.h(26): error: expected a declaration

../libs/cacc/float.h(38): warning: parsing restarts here after previous syntax error

../libs/cacc/float.h(54): error: expected a declaration

../libs/cacc/vector.h(32): warning: this pragma must immediately precede a statement

../libs/cacc/vector.h(61): warning: this pragma must immediately precede a statement

../libs/cacc/vector.h(91): warning: this pragma must immediately precede a statement

../libs/cacc/vector.h(101): warning: this pragma must immediately precede a statement

../libs/cacc/vector.h(111): warning: this pragma must immediately precede a statement

../libs/cacc/vector.h(120): warning: this pragma must immediately precede a statement

../libs/cacc/vector.h(130): warning: this pragma must immediately precede a statement

../libs/cacc/vector.h(139): warning: this pragma must immediately precede a statement

../libs/cacc/vector.h(149): warning: this pragma must immediately precede a statement

../libs/cacc/vector.h(160): warning: parsing restarts here after previous syntax error

../libs/cacc/vector.h(162): error: Vector is not a template

../libs/cacc/vector.h(162): error: identifier "Float4" is undefined

../libs/cacc/vector.h(163): error: Vector is not a template

../libs/cacc/vector.h(164): error: Vector is not a template

../libs/cacc/vector.h(169): error: Vector is not a template

../libs/cacc/vector.h(169): error: Vector is not a template

../libs/cacc/vector.h(169): error: nonmember operator requires a parameter with class or enum type

../libs/cacc/vector.h(180): error: Vector is not a template

../libs/cacc/vector.h(180): error: Vector is not a template

../libs/cacc/vector.h(180): error: nonmember operator requires a parameter with class or enum type

../libs/cacc/vector.h(191): error: Vector is not a template

../libs/cacc/vector.h(191): error: Vector is not a template

../libs/cacc/vector.h(202): error: Vector is not a template

../libs/cacc/vector.h(213): error: Vector is not a template

../libs/cacc/vector.h(226): error: expected a declaration

../libs/cacc/primitives.h(18): warning: parsing restarts here after previous syntax error

../libs/cacc/primitives.h(23): error: namespace "cacc" has no member "Vec3f"

Error limit reached. 100 errors detected in the compilation of "/tmp/tmpxft_000038bb_00000000-6_kernels.cpp1.ii". Compilation terminated. eval.make:168: recipe for target 'obj/debug/eval/kernels.o' failed make[1]: [obj/debug/eval/kernels.o] Error 1 ptxas info : 0 bytes gmem Makefile:190: recipe for target 'eval' failed make: [eval] Error 2 `

as you can see "../libs/acc/primitives.h(60): error: namespace "std" has no member "vector"" error comes out and maybe it's because of the header issues, i think.

psycoder-sup commented 5 years ago

I think there are some header problems in this branch

Sun2018421 commented 4 years ago

it appears that i have the same error as yours , have you solved it?

psycoder-sup commented 4 years ago

Unfortunately, No...

Sun2018421 commented 4 years ago

: <

Sun2018421 commented 4 years ago

i have added and to .h file. then i have some new errors.

petergerten commented 3 years ago

I am stuck at the same place now as well :-( Did anyone solve this in the last 2,5 years?

petergerten commented 3 years ago

seem that this fork/PR https://github.com/laurelkeys/uavmvs.git fixes the above mentioned build issues. I still have some problems but got much further :)

nmoehrle commented 3 years ago

The acc dependency has now been updated, it should work again.

Tao-11-chen commented 2 years ago

Hello,but i still meet this problem now, i' ll post my error below: ==== Building fmt (debug) ==== Creating debug Creating obj/debug/fmt format.cc ostream.cc posix.cc Linking fmt ==== Building sim (debug) ==== Creating obj/debug/sim model.cpp window.cpp In file included from ../libs/sim/model.cpp:18: ../libs/sim/shader_type.h:19:21: warning: ‘shader_names’ defined but not used [-Wunused-variable] 19 | static const char * shader_names[] = {"vcolor", "surface", "texture", "lines"}; | ^~~~ Linking sim ==== Building utp (debug) ==== Creating obj/debug/utp trajectory.cpp trajectory_io.cpp Linking utp ==== Building eval (debug) ==== Creating obj/debug/eval bvh_tree.cu kd_tree.cu kernels.cu nvcc warning : Resource usage is not shown as the final resource allocation is not done. nvcc warning : Resource usage is not shown as the final resource allocation is not done. nvcc warning : Resource usage is not shown as the final resource allocation is not done. ../libs/acc/bvh_tree.h(35): error: qualified name is not allowed

../libs/acc/bvh_tree.h(35): error: explicit type is missing ("int" assumed)

../libs/acc/bvh_tree.h(35): error: expected a ";"

../libs/acc/bvh_tree.h(36): error: qualified name is not allowed

../libs/acc/bvh_tree.h(36): error: explicit type is missing ("int" assumed)

../libs/acc/bvh_tree.h(36): error: expected a ";"

../libs/acc/bvh_tree.h(100): error: identifier "Ptr" is undefined

../libs/acc/bvh_tree.h(35): error: qualified name is not allowed

../libs/acc/bvh_tree.h(35): error: explicit type is missing ("int" assumed)

../libs/acc/bvh_tree.h(35): error: expected a ";"

../libs/acc/bvh_tree.h(36): error: qualified name is not allowed

../libs/acc/bvh_tree.h(36): error: explicit type is missing ("int" assumed)

../libs/acc/bvh_tree.h(36): error: expected a ";"

../libs/acc/bvh_tree.h(100): error: identifier "Ptr" is undefined

../libs/cacc/bvh_tree.h(25): error: qualified name is not allowed

../libs/cacc/bvh_tree.h(25): error: explicit type is missing ("int" assumed)

../libs/acc/kd_tree.h(30): error: qualified name is not allowed

../libs/cacc/bvh_tree.h(25): error: expected a ";"

../libs/acc/kd_tree.h(30): error: explicit type is missing ("int" assumed)

../libs/acc/kd_tree.h(30): error: expected a ";"

../libs/acc/kd_tree.h(31): error: qualified name is not allowed

../libs/acc/kd_tree.h(31): error: explicit type is missing ("int" assumed)

../libs/cacc/bvh_tree.h(192): error: identifier "Ptr" is undefined

../libs/acc/kd_tree.h(31): error: expected a ";"

../libs/acc/kd_tree.h(71): error: identifier "Ptr" is undefined

../libs/cacc/bvh_tree.h(25): error: qualified name is not allowed

../libs/cacc/bvh_tree.h(25): error: explicit type is missing ("int" assumed)

../libs/cacc/bvh_tree.h(25): error: expected a ";"

../libs/cacc/bvh_tree.h(192): error: identifier "Ptr" is undefined

../libs/cacc/kd_tree.h(30): error: qualified name is not allowed

../libs/cacc/kd_tree.h(30): error: explicit type is missing ("int" assumed)

../libs/cacc/kd_tree.h(30): error: expected a ";"

../libs/cacc/kd_tree.h(152): error: identifier "Ptr" is undefined

../libs/acc/kd_tree.h(30): error: qualified name is not allowed

../libs/acc/kd_tree.h(30): error: explicit type is missing ("int" assumed)

../libs/acc/kd_tree.h(30): error: expected a ";"

../libs/acc/kd_tree.h(31): error: qualified name is not allowed

../libs/acc/kd_tree.h(31): error: explicit type is missing ("int" assumed)

../libs/acc/kd_tree.h(31): error: expected a ";"

../libs/acc/kd_tree.h(71): error: identifier "Ptr" is undefined

../libs/cacc/kd_tree.h(30): error: qualified name is not allowed

../libs/cacc/kd_tree.h(30): error: explicit type is missing ("int" assumed)

../libs/cacc/kd_tree.h(30): error: expected a ";"

../libs/cacc/kd_tree.h(152): error: identifier "Ptr" is undefined

../libs/eval/kernels.cu(240): warning #1444-D: function "__shfl_xor(float, int, int)"

Tao-11-chen commented 1 year ago

Solved. Should include memory before using smart ptr. I'll make a PR latter.