You can try what the error suggested, to compile with -fPIC.

  You can edit tecmake.mak on the root folder of each library and add:

    ifeq ($(TEC_SYSARCH), arm)
      STDFLAGS += -fPIC
    endif

  Just check if TEC_SYSARCH is really "arm".

Best,
Scuri


On Sat, Sep 10, 2016 at 4:16 AM, Milind Gupta <[email protected]>
wrote:

> Hi,
>       I am trying to compile IM, CD and IUP on Raspberry Pi. When I do
> make for IM I get the following error:
>
> /usr/bin/ld: ../obj/Linux41_arm/im_oldcolor.o: relocation
> R_ARM_THM_MOVW_ABS_NC                            against
> `__stack_chk_guard' can not be used when making a shared object; recompi
>                         le with -fPIC
> ../obj/Linux41_arm/im_oldcolor.o: error adding symbols: Bad value
> collect2: error: ld returned 1 exit status
> ../tecmake.mak:1533: recipe for target '../lib/Linux41_arm/libim.so' failed
> make[1]: *** [../lib/Linux41_arm/libim.so] Error 1
> Makefile:12: recipe for target 'im' failed
> make: *** [im] Error 2
>
>
> Please let me know what can I do make it work? Has someone compiled and
> used IUP on Raspberry Pi. I am using Raspberry Pi 3 (64 bit) running Ubuntu.
>
> Thanks,
> Milind
>
> ------------------------------------------------------------
> ------------------
>
> _______________________________________________
> Iup-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
------------------------------------------------------------------------------
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to