lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 20 June 2016 at 18:20, Christophe Jorssen <jorssen.leraincy@free.fr> wrote:
> Thanks Hisham
>
> 2016-06-20 20:48 GMT+02:00 Hisham <h@hisham.hm>:
>>
>> No idea, sorry. I helped out with packaging of the rockspec back in
>> the day, but this may be a problem with the upstream module. One last
>> idea: did you try the versioned rockspec? (5.0.7) Something might be
>> broken between the rockspec and the latest coolprop repository; the
>> versioned rockspec points to a revision that was known to work with
>> the rockspec at some point.
>>
>
> No luck once again...
>
> gcc -O2 -fPIC -shared -std=c99 -g -o lua/coolprop/capi.so
> -I/usr/include/lua5.2 -ICoolProp/wrappers/Lua/coolprop/
> CoolProp/wrappers/Lua/coolprop/capi.c -lstdc++
> CoolProp/build/libCoolProp.a
> /usr/bin/ld: CoolProp/build/libCoolProp.a(CoolPropLib.cpp.o):
> réadressage de R_X86_64_32 en vertu de « .rodata » ne peut être
> utilisé lors de la création d'un objet partagé; recompilez avec -fPIC

Ok, here's another shot:

git clone https://github.com/ipese/LuaCoolProp
cd LuaCoolProp
***
edit Makefile and change line 70 to:
cd CoolProp/build && cmake --build . -- CFLAGS="-DCOOLPROP_LIB $(CFLAGS)"
***
luarocks make ./luacoolprop-5.0.7-1.rockspec

-- Hisham