GOTURN icon indicating copy to clipboard operation
GOTURN copied to clipboard

there is not trax.h

Open peerchen opened this issue 9 years ago • 5 comments

when i build in ubuntu, the problem is shot as "GOTURN-master/src/native/vot.h:50:22: fatal error: trax.h: No such file or directory", how to fix it?

peerchen avatar Aug 11 '16 02:08 peerchen

Have you modified vot.h at all?

Lines 48 and 49 should prevent line 50 from being executed unless you have trax.h:

#ifdef __has_include

if __has_include("trax.h")

Strangely, it seems that trax.h is being found in your include lists but then it is causing a compilation error?

I would try removing trax.h from your include lists.

On Wed, Aug 10, 2016 at 7:12 PM, peerchen [email protected] wrote:

when i build in ubuntu, the problem is shot as "GOTURN-master/src/native/vot.h:50:22: fatal error: trax.h: No such file or directory", how to fix it?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/davheld/GOTURN/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AEHoHJSfMAKPbSupqHRHitdvieKOnPlhks5qeoUggaJpZM4JhvsG .

davheld avatar Aug 14 '16 22:08 davheld

Hi I meet this problem too, how to removing trax.h from my include lists.

WhiteIsClosing avatar Oct 13 '16 08:10 WhiteIsClosing

I solved this bug just modify

include_directories(src)

to

include_directories(src)
include_directories(src/native)

Besides, I have some fixed other errors which may also occur in your compilation.

1. trax.h missing. (ref to #1 )

Just download it and build it. Then add it into your CMakeList.txt target_link_libraries(${PROJECT_NAME} /path_to_trax/build/libtrax.so)

2. Caffe path setting.

Adding the following items into your CMakeList.txt

set(Caffe_DIR /path_to_caffe/build/install)
set(Caffe_INCLUDE_DIRS /path_to_caffe/build/install/include)

3. CUDA setting.

Just modify

if(CUDA_FOUND)

to

find_package(CUDA REQUIRED)

If cuda is still missing, add

set(CUDA_INCLUDE_DIRS /path_to_cuda/include)

charliememory avatar Oct 21 '16 13:10 charliememory

@charliememory - this is great, nice job figuring all of this out! Any chance that you can create a quick pull request with these changes?

davheld avatar Oct 21 '16 16:10 davheld

@charliememory Thank you! This solves my error.

akita1987 avatar Mar 03 '17 04:03 akita1987