yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #03800
Re: General assistance
This is the config file. The size is huge. Sorry.
Boon
----------------------------------------
> From: booncw@xxxxxxxxxxx
> To: yade-dev@xxxxxxxxxxxxxxxxxxx
> Date: Thu, 1 Apr 2010 18:39:46 +0800
> Subject: Re: [Yade-dev] General assistance
>
>
> I did this:
>
> root@engs-018383:/usr/local/lib# ar -x libopt.a
> root@engs-018383:/usr/local/lib# g++ -shared -fPIC *.o -o libopt.so
> /usr/bin/ld: dqrdc.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
> dqrdc.o: could not read symbols: Bad value
>
> May I know which "key words" in the configure file should I look whether I can create a shared library? It's not mentioned in the installation instructions. Thanks, Vaclav, for helping me out.
>
>
> Yours,
>
> Boon
> ----------------------------------------
>> From: eudoxos@xxxxxxxx
>> To: yade-dev@xxxxxxxxxxxxxxxxxxx
>> Date: Thu, 1 Apr 2010 12:20:11 +0200
>> Subject: Re: [Yade-dev] General assistance
>>
>>
>>> Hmm. I reinstalled the external plugin, by changing its ./configure script. Added -fPIC to its CFLAGS, CXXFLAGS and FFFLAGS. It looks something like that:
>>> CFLAGS = -g -O2 -fPIC
>>>
>>> Then it appears in the makefile. I deleted the old libopt.a, and ran 'make install' to create it again. But YADE still gives me the same error. Do you know what I should do? I am really lost.
>> Have a look if there is no way to create shared library (.so) from that
>> program. If it is just a few files, you can do it by hand, too -- using
>> scons separately or just by writing the compilation by hand, something
>> like (not tested):
>>
>> gcc -shared -fPIC -o libopt.so *.c
>>
>> v.
>>
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~yade-dev
>> Post to : yade-dev@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~yade-dev
>> More help : https://help.launchpad.net/ListHelp
>
> _________________________________________________________________
> Hotmail: Free, trusted and rich email service.
> https://signup.live.com/signup.aspx?id=60969
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-dev
> Post to : yade-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-dev
> More help : https://help.launchpad.net/ListHelp
_________________________________________________________________
Hotmail: Free, trusted and rich email service.
https://signup.live.com/signup.aspx?id=60969
Attachment:
configure
Description: Binary data
Follow ups
References
-
General assistance
From: boon chiaweng, 2010-03-31
-
Re: General assistance
From: Václav Šmilauer, 2010-03-31
-
Re: General assistance
From: boon chiaweng, 2010-03-31
-
Re: General assistance
From: Václav Šmilauer, 2010-03-31
-
Re: General assistance
From: boon chiaweng, 2010-03-31
-
Re: General assistance
From: boon chiaweng, 2010-03-31
-
Re: General assistance
From: Václav Šmilauer, 2010-04-01
-
Re: General assistance
From: boon chiaweng, 2010-04-01
-
Re: General assistance
From: Václav Šmilauer, 2010-04-01
-
Re: General assistance
From: boon chiaweng, 2010-04-01