New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't find trax lib #1

Closed
andyhx opened this Issue Aug 3, 2016 · 7 comments

Comments

Projects
None yet
4 participants
@andyhx

andyhx commented Aug 3, 2016

hi,I am compiling the code,I rebuild my caffe using Cmake ,but now I am having these linking problems, I download from https://github.com/votchallenge/trax/ get trax to build trax libraries and linking it,but it did not help,Do I have to rebuild trax,linking to project? Has anyone succeeded building it ? Want help ,Thank you !

errors are like followings:

[ 80%] Built target show_imagenet [ 84%] Built target show_tracker_alov [ 88%] Built target show_tracker_vot [ 92%] Built target test_tracker_alov Linking CXX executable test_tracker_vot libGOTURN.a(vot.cpp.o): In functionVOT::vot_initialize()':
vot.cpp:(.text+0x25c): undefined reference to trax_server_setup' vot.cpp:(.text+0x274): undefined reference totrax_server_wait'
vot.cpp:(.text+0x27e): undefined reference to trax_image_get_path' vot.cpp:(.text+0x29a): undefined reference totrax_server_reply'
vot.cpp:(.text+0x2de): undefined reference to trax_region_get_rectangle' vot.cpp:(.text+0x2e8): undefined reference totrax_region_release'
vot.cpp:(.text+0x2f2): undefined reference to trax_image_release' libGOTURN.a(vot.cpp.o): In functionVOT::vot_frame()':
vot.cpp:(.text+0x64d): undefined reference to trax_server_wait' vot.cpp:(.text+0x660): undefined reference totrax_image_get_path'
vot.cpp:(.text+0x675): undefined reference to trax_image_release' libGOTURN.a(vot.cpp.o): In functionVOT::vot_report(vot_region_)':
vot.cpp:(.text+0x6e6): undefined reference to trax_region_create_rectangle' vot.cpp:(.text+0x6f9): undefined reference totrax_server_reply'
vot.cpp:(.text+0x703): undefined reference to trax_region_release' libGOTURN.a(vot.cpp.o): In functionVOT::vot_quit()':
vot.cpp:(.text+0x4cc): undefined reference to trax_cleanup' collect2: error: ld returned 1 exit status CMakeFiles/test_tracker_vot.dir/build.make:175: recipe for target 'test_tracker_vot' failed make[2]: *_\* [test_tracker_vot] Error 1 CMakeFiles/Makefile2:305: recipe for target 'CMakeFiles/test_tracker_vot.dir/all' failed make[1]: **\* [CMakeFiles/test_tracker_vot.dir/all] Error 2 Makefile:75: recipe for target 'all' failed make: **\* [all] Error 2

@andyhx andyhx changed the title from cann't find trax lib to can't find trax lib Aug 3, 2016

@davheld

This comment has been minimized.

Show comment
Hide comment
@davheld

davheld Aug 3, 2016

Owner

I actually did not integrate my tracker into the trax framework; instead I used the approach described here: http://www.votchallenge.net/howto/integration.html
which is integrated in test_tracker_vot.cpp

Owner

davheld commented Aug 3, 2016

I actually did not integrate my tracker into the trax framework; instead I used the approach described here: http://www.votchallenge.net/howto/integration.html
which is integrated in test_tracker_vot.cpp

@andyhx

This comment has been minimized.

Show comment
Hide comment
@andyhx

andyhx Aug 4, 2016

thx,I solved it myself
here is my solution:
download trax https://github.com/votchallenge/trax/ and make it
adding this in the cmakelist
add_executable (test_tracker_vot src/test/test_tracker_vot.cpp)
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS} ${Caffe_LIBRARIES})
#target_link_libraries(${PROJECT_NAME} /home/public/git/vot-toolkit/tracker/examples/native/static_cpp.so)
#LINK_LIBRARIES("/home/public/git/trax/build/libtrax.so")
target_link_libraries(${PROJECT_NAME} /home/public/git/trax/build/libtrax.so)
target_link_libraries (test_tracker_vot ${PROJECT_NAME})

andyhx commented Aug 4, 2016

thx,I solved it myself
here is my solution:
download trax https://github.com/votchallenge/trax/ and make it
adding this in the cmakelist
add_executable (test_tracker_vot src/test/test_tracker_vot.cpp)
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS} ${Caffe_LIBRARIES})
#target_link_libraries(${PROJECT_NAME} /home/public/git/vot-toolkit/tracker/examples/native/static_cpp.so)
#LINK_LIBRARIES("/home/public/git/trax/build/libtrax.so")
target_link_libraries(${PROJECT_NAME} /home/public/git/trax/build/libtrax.so)
target_link_libraries (test_tracker_vot ${PROJECT_NAME})

@davheld

This comment has been minimized.

Show comment
Hide comment
@davheld

davheld Aug 4, 2016

Owner

Nice!

Owner

davheld commented Aug 4, 2016

Nice!

@ujsyehao

This comment has been minimized.

Show comment
Hide comment
@ujsyehao

ujsyehao Mar 14, 2017

@andyhx Can you upload the entire CMakelist, I don't know how to put these in the file?

ujsyehao commented Mar 14, 2017

@andyhx Can you upload the entire CMakelist, I don't know how to put these in the file?

@ujsyehao

This comment has been minimized.

Show comment
Hide comment
@ujsyehao

ujsyehao Mar 14, 2017

@davheld I don't know what andyhx says. #target_link_libraries(${PROJECT_NAME} /home/public/git/vot-toolkit/tracker/examples/native/static_cpp.so). I cannot find toolkit in my computer. So can you solve it ?

ujsyehao commented Mar 14, 2017

@davheld I don't know what andyhx says. #target_link_libraries(${PROJECT_NAME} /home/public/git/vot-toolkit/tracker/examples/native/static_cpp.so). I cannot find toolkit in my computer. So can you solve it ?

@VictoriaW1

This comment has been minimized.

Show comment
Hide comment
@VictoriaW1

VictoriaW1 Mar 14, 2017

@ujsyehao I have just encountered this problem and solved it by following the steps of andyhx:

  • First, download trax. Then from the trax directory, type:
mkdir build
cd build 
cmake ..
make
  • Second, modify CMakeLists.txt of GOTURN around row 84:
# Note: If can't find trax, please download trax and build it, then uncomment the below line and set the path manually
target_link_libraries(${PROJECT_NAME} /home/victoria/open_source/GOTURN/src/native/trax/build/libtrax.so)

You should set your trax path. ^ ^

VictoriaW1 commented Mar 14, 2017

@ujsyehao I have just encountered this problem and solved it by following the steps of andyhx:

  • First, download trax. Then from the trax directory, type:
mkdir build
cd build 
cmake ..
make
  • Second, modify CMakeLists.txt of GOTURN around row 84:
# Note: If can't find trax, please download trax and build it, then uncomment the below line and set the path manually
target_link_libraries(${PROJECT_NAME} /home/victoria/open_source/GOTURN/src/native/trax/build/libtrax.so)

You should set your trax path. ^ ^

@ujsyehao

This comment has been minimized.

Show comment
Hide comment
@ujsyehao

ujsyehao Mar 15, 2017

@VictoriaW1 @andyhx Thank you! we will appreciate you.

ujsyehao commented Mar 15, 2017

@VictoriaW1 @andyhx Thank you! we will appreciate you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment