Thanks,
          When I built CD it gave me the error:
 Tecmake: linking libcdgl.so ...
gcc -shared -o ../lib/Linux41_arm/libcdgl.so ../obj/cdgl/Linux41_arm/cdgl.o
 -L../lib/Linux41_arm -L../../ftgl/lib/Linux41_arm -lcd -lfontconfig -lftgl
-lfreetype -lz -lGLU -lGL -lm
/usr/bin/ld: cannot find -lftgl
collect2: error: ld returned 1 exit status
../tecmake.mak:1533: recipe for target '../lib/Linux41_arm/libcdgl.so'
failed
make[2]: *** [../lib/Linux41_arm/libcdgl.so] Error 1
Makefile:19: recipe for target 'cdgl' failed
make[1]: *** [cdgl] Error 2
Makefile:4: recipe for target 'do_all' failed
make: *** [do_all] Error 2

I thought ftgl would be built by building CD automatically since the
documentation mentioned it is included in CD. When it didn't I downloaded
ftgl sources and extracted them. FTGL does not have a tecmake file so I
could not run make on it.

make[1]: ../tecmake.mak: No such file or directory
make[1]: *** No rule to make target '../tecmake.mak'.  Stop.
Makefile:11: recipe for target 'ftgl' failed
make: *** [ftgl] Error 2

Please help me proceed from here.

Thanks,
Milind


On Sat, Sep 10, 2016 at 7:57 AM, Antonio Scuri <[email protected]>
wrote:

>   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
>
>
------------------------------------------------------------------------------
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to