FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
159 views 0 comments
by anonymous

Hello,

I have caught two issues in Makefiles when building the RUT9XX_R_GPL_00.06.07.5 SDK, a missing library and a missing LD_LIBRARY_PATH. Compilation completes successfully with the fix below:

diff -ur rut950-org/tools/ucert/Makefile rut950/tools/ucert/Makefile
--- rut950-org/tools/ucert/Makefile	2021-01-28 07:34:48.000000000 +0100
+++ rut950/tools/ucert/Makefile	2021-03-25 20:04:45.578139318 +0100
@@ -23,7 +23,7 @@
 	$(INSTALL_BIN) $(HOST_BUILD_DIR)/$(PKG_NAME) $(STAGING_DIR_HOST)/bin/
 
 	[ -s $(BUILD_KEY) -a -s $(BUILD_KEY).pub ] || \
-		$(STAGING_DIR_HOST)/bin/usign -G -s $(BUILD_KEY) -p $(BUILD_KEY).pub -c "Local build key"
+		LD_LIBRARY_PATH=$(STAGING_DIR_HOST)/lib $(STAGING_DIR_HOST)/bin/usign -G -s $(BUILD_KEY) -p $(BUILD_KEY).pub -c "Local build key"
 
 	[ -s $(BUILD_KEY).ucert ] || \
 		LD_LIBRARY_PATH=$(STAGING_DIR_HOST)/lib $(STAGING_DIR_HOST)/bin/ucert -I -c $(BUILD_KEY).ucert -p $(BUILD_KEY).pub -s $(BUILD_KEY)
diff -ur rut950-org/tools/usign/Makefile rut950/tools/usign/Makefile
--- rut950-org/tools/usign/Makefile	2021-01-28 07:34:48.000000000 +0100
+++ rut950/tools/usign/Makefile	2021-03-25 20:04:27.247550951 +0100
@@ -16,7 +16,7 @@
 endef
 
 define Host/Compile
-	$(HOSTCC) $(HOST_CFLAGS) -I$(STAGING_DIR_HOST)/include -DUSE_LIBUBOX=on $(HOST_LDFLAGS) -o $(HOST_BUILD_DIR)/$(PKG_NAME) $(HOST_BUILD_DIR)/*.c -lubox
+	$(HOSTCC) $(HOST_CFLAGS) -I$(STAGING_DIR_HOST)/include -DUSE_LIBUBOX=on $(HOST_LDFLAGS) -o $(HOST_BUILD_DIR)/$(PKG_NAME) $(HOST_BUILD_DIR)/*.c -lubox -ljson-c
 endef
 
 define Host/Install

Regards,

1 Answer

0 votes
by anonymous
Thank you, flebourse,

I will contact RnD and see if we can somehow implement this change.

EB.
Best answer