Quote:
Originally Posted by kodomo
Actually, I don't think this is my problem:
rake -f Rakefile.imx508 build:x86:static <- ran fine
make <- there's no Makefile in the SDK top directory - so it naturally failed
rake -f Rakefile.imx508 build:arm:static <- produced exactly the same error
|
Sorry, I think I misunderstood you. You are right, rake calls make, so make is not necessary. After rake -f Rakefile.imx508 build:x86:static, the static x86 libraries should be in build/x86/libs. Copy them to /usr/local/lib and you can compile and run applications on your x86 computer.
It worked for me with this patch (I'll also send it to onyx):
diff --git a/code/src/dictionary/CMakeLists.txt b/code/src/dictionary/CMakeLists.txt
index ad2398a..326c928 100644
--- a/code/src/dictionary/CMakeLists.txt
+++ b/code/src/dictionary/CMakeLists.txt
@@ -32,7 +32,7 @@ QT4_ADD_RESOURCES(dictionary_ui_res ${resource_srcs})
ADD_LIBRARY(dictionary ${SRCS} ${MOC_SRCS} ${dictionary_ui_res})
-TARGET_LINK_LIBRARIES(dictionary onyx_ui ${ADD_LIB})
+TARGET_LINK_LIBRARIES(dictionary onyx_ui ${ADD_LIB} z)
########### Unit Tests #####################
INCLUDE_DIRECTORIES(.)
@@ -40,6 +40,6 @@ ADD_EXECUTABLE(dictionary_test unittests/libdict_test.cpp ${SRCS} ${MOC_SRCS})
TARGET_LINK_LIBRARIES(dictionary_test onyx_sys onyx_screen
onyx_ui dictionary tts sound
${QT_LIBRARIES}
- ${ADD_LIB})
+ ${ADD_LIB} z)
SET_TARGET_PROPERTIES(dictionary_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${TEST_OUTPUT_PATH})