jetpacapp / DeepBeliefSDK

The SDK for Jetpac's iOS Deep Belief image recognition framework
Other
2.86k stars 437 forks source link

Errors on Android.mk #45

Open simonztran opened 9 years ago

simonztran commented 9 years ago

Hi, I was trying to recompile the sources file on Windows 7 but I ran into a few errors.

First the command: LIBSRCS:=$(shell find src/lib -name '*.cpp')

doesn't work on windows 7 so I used the following to locate all the files: LIBSRCS:=$(shell find src/lib -name '*.cpp')

And the following directories doesn't exist on my computer so I changed to match my path. ../eigen \ /Users/petewarden/android_ndk/sources/cxx-stl/gnu-libstdc++/4.6/include \ /Users/petewarden/android_ndk/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/include

But I'm also getting compiler errors such as: qpu_gemm.cpp: error: 'class Buffer' has no member named _gpuMemoryBase

davidtian02 commented 9 years ago

i got similar errors. fortunately the library will work with a few tweaks.

for that specific error, go to Buffer.h and notice that _gpuMemoryBase is accidentally blocked out with a preprocessor macro. comment it out so that it reads:

//#if defined(TARGET_PI)
  uint32_t _gpuMemoryHandle;
  uint32_t _gpuMemoryBase;
//#endif // USE_QPU_GEMM
davidtian02 commented 9 years ago

i think TARGET_PI might refer to raspberry pi or something

simonztran commented 9 years ago

Yeah, i came to the same conclusion after googling _gpuMemoryBase. I will try to disable it now.