[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Building lua wrapper for coolprop
- From: Christophe Jorssen <jorssen.leraincy@...>
- Date: Tue, 21 Jun 2016 01:02:53 +0200
Thanks for trying again...
2016-06-21 0:10 GMT+02:00 Hisham <h@hisham.hm>:
>
> 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
>
But no luck again...
[ 90%] Building CXX object
CMakeFiles/CoolProp.dir/src/Backends/REFPROP/REFPROPBackend.cpp.o
[ 93%] Building CXX object CMakeFiles/CoolProp.dir/src/DataStructures.cpp.o
[ 96%] Building CXX object CMakeFiles/CoolProp.dir/src/CoolPropTools.cpp.o
[100%] Building CXX object CMakeFiles/CoolProp.dir/src/CoolPropLib.cpp.o
Linking CXX static library libCoolProp.a
make[3]: Leaving directory '/home/christophe/git/LuaCoolProp/CoolProp/build'
[100%] Built target CoolProp
make[2]: Leaving directory '/home/christophe/git/LuaCoolProp/CoolProp/build'
make[1]: Leaving directory '/home/christophe/git/LuaCoolProp/CoolProp/build'
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
CoolProp/build/libCoolProp.a: error adding symbols: Mauvaise valeur
collect2: error: ld returned 1 exit status
Makefile:61: recipe for target 'lua/coolprop/capi.so' failed
make: *** [lua/coolprop/capi.so] Error 1
Error: Build error: Failed building.
--
Christophe