From: Martha L. C. <mc...@la...> - 2006-03-23 12:55:30
|
Thank you Ian. It was that. I solved the problem! Martha > The files it can't find are auto-generated and put in the binary output > tree. > > It looks like you are building your program outside the VXL tree. This > is a good idea, but you need to tell CMake where to find lots of bits of > VXL. See > http://paine.wiau.man.ac.uk/pub/doc_vxl/books/core/book_14.html#SEC144 > > Ian. > > Martha Lucia CANO wrote: >> Hello, >> >> I Install VXL 1.4.0 under linux, and i'm just trying to build a >> helloworld >> project: >> >> ##### >> #include <vcl_iostream.h> >> >> int main() >> { >> vcl_cout << "Hello world\n"; >> >> return 0; >> } >> ########## >> >> my cmakelists.txt is: >> >> ########### >> INCLUDE_DIRECTORIES( >> /home/mcano/VXL/vxl-1.4.0/vcl >> ) >> >> LINK_DIRECTORIES( /home/mcano/VXL/bin/lib ) >> >> ADD_EXECUTABLE( helloworld >> helloworld.cpp >> ) >> >> TARGET_LINK_LIBRARIES( >> helloworld vcl >> ) >> ######### >> >> I do the 'cmake -i' command, and i don't get any problem. >> but once i do the 'make' I get a lot of errors, i paste here just the >> begining: >> >> ### >> >> Building CXX object CMakeFiles/clasify_test.dir/clasify_test.o >> In file included from /home/mcano/VXL/vxl-1.4.0/vcl/vcl_string.h:5, >> from >> /home/mcano/VXL/vxl-1.4.0/contrib/mul/clsfy/clsfy_adaboost_trainer.h:19, >> from >> /home/mcano/VXL/programasVXL/clasify/clasify_test.cpp:1: >> /home/mcano/VXL/vxl-1.4.0/vcl/vcl_compiler.h:149:31: >> vcl_config_manual.h: >> No such file or directory >> /home/mcano/VXL/vxl-1.4.0/vcl/vcl_compiler.h:150:33: >> vcl_config_compiler.h: No such file or directory >> /home/mcano/VXL/vxl-1.4.0/vcl/vcl_compiler.h:151:32: >> vcl_config_headers.h: >> No such file or directory >> In file included from /home/mcano/VXL/vxl-1.4.0/vcl/vcl_functional.h:8, >> from /home/mcano/VXL/vxl-1.4.0/vcl/vcl_map.h:8, >> from >> /home/mcano/VXL/vxl-1.4.0/core/vsl/vsl_binary_io.h:19, >> from >> /home/mcano/VXL/vxl-1.4.0/contrib/mul/clsfy/clsfy_adaboost_trainer.h:20, >> from >> /home/mcano/VXL/programasVXL/clasify/clasify_test.cpp:1: >> /home/mcano/VXL/vxl-1.4.0/vcl/emulation/vcl_functional.h:205: error: >> expected `,' or `...' before '&' token >> /home/mcano/VXL/vxl-1.4.0/vcl/emulation/vcl_functional.h:205: error: ISO >> C++ forbids declaration of `argument_ty pe' with no type >> /home/mcano/VXL/vxl-1.4.0/vcl/emulation/vcl_functional.h: In member >> function `bool vcl_unary_negate<Predicate>:: operator()(int) const': >> /home/mcano/VXL/vxl-1.4.0/vcl/emulation/vcl_functional.h:205: error: `x' >> undeclared (first use this function) >> /home/mcano/VXL/vxl-1.4.0/vcl/emulation/vcl_functional.h:205: error: >> (Each >> undeclared identifier is reported onl y once for each function it >> appears >> in.) >> /home/mcano/VXL/vxl-1.4.0/vcl/emulation/vcl_functional.h: At global >> scope: >> /home/mcano/VXL/vxl-1.4.0/vcl/emulation/vcl_functional.h:224: error: >> expected `,' or `...' before '&' token >> /home/mcano/VXL/vxl-1.4.0/vcl/emulation/vcl_functional.h:225: error: ISO >> C++ forbids declaration of `first_argum ent_type' with no type >> /home/mcano/VXL/vxl-1.4.0/vcl/emulation/vcl_functional.h: In member >> function `bool vcl_binary_negate<Predicate>: :operator()(int) const': >> /home/mcano/VXL/vxl-1.4.0/vcl/emulation/vcl_functional.h:225: error: `x' >> undeclared (first use this function) >> /home/mcano/VXL/vxl-1.4.0/vcl/emulation/vcl_functional.h:225: error: `y' >> undeclared (first use this function) >> /home/mcano/VXL/vxl-1.4.0/vcl/emulation/vcl_functional.h: At global >> scope: >> /home/mcano/VXL/vxl-1.4.0/vcl/emulation/vcl_functional.h:246: error: >> expected nested-name-specifier before "resu lt_type" >> /home/mcano/VXL/vxl-1.4.0/vcl/emulation/vcl_functional.h:246: error: ISO >> C++ forbids declaration of `result_type ' with no type >> >> At the begining it says that it doesn't found 'vcl_config_manual.h', >> 'vcl_config_compiler.h', vcl_config_headers.h. I found those headers in: >> >> /home/mcano/VXL/vxl-1.4.0/vcl/config.win32 AND >> /home/mcano/VXL/vxl-1.4.0/vcl/config.stlport.win32-vc60 >> >> but i don't know if i have to give it too those paths..... >> I've read all the documentation but i haven't found what the problem >> could >> be. >> >> thanks, >> Martha >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by xPML, a groundbreaking scripting >> language >> that extends applications into web and mobile media. Attend the live >> webcast >> and join the prime developer group breaking into this new coding >> territory! >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >> _______________________________________________ >> Vxl-users mailing list >> Vxl...@li... >> https://lists.sourceforge.net/lists/listinfo/vxl-users > > |