Comments (10)
I created an related issue to luarocks right now:
from lua-rapidjson.
I have update docs here
Hav it a try~
from lua-rapidjson.
It seems that the option LUA_DIR
did not take effect.
$ cmake -H. -Bbuild -G 'Unix Makefiles' -DLUA_DIR=/usr/local/openresty/luajit
-- The C compiler identification is AppleClang 11.0.0.11000020
-- The CXX compiler identification is AppleClang 11.0.0.11000020
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/local/bin/git (found version "2.17.0")
-- LUA_RAPIDJSON_VERSION: v0.5.1-22-g7c4c6f4-dirty
-- Found Lua: /usr/local/lib/liblua5.1.dylib (found version "5.1.5")
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
LUA_DIR
$ fgrep -r "include" ./build/*.txt
./build/CMakeCache.txt:LUA_INCLUDE_DIR:PATH=/usr/local/include/lua5.1
./build/CMakeCache.txt:FIND_PACKAGE_MESSAGE_DETAILS_Lua:INTERNAL=[/usr/local/lib/liblua5.1.dylib][/usr/local/include/lua5.1][v5.1.5()]
from lua-rapidjson.
from lua-rapidjson.
failed again , here is the log:
$ cmake ../ -DLUA_DIR=/usr/local/openresty/luajit
-- The C compiler identification is AppleClang 11.0.0.11000020
-- The CXX compiler identification is AppleClang 11.0.0.11000020
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/local/bin/git (found version "2.17.0")
-- LUA_RAPIDJSON_VERSION: v0.5.1-22-g7c4c6f4-dirty
-- Found Lua: /usr/local/lib/liblua5.1.dylib (found version "5.1.5")
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
LUA_DIR
-- Build files have been written to: /Users/rain/Downloads/lua-rapidjson/build
from lua-rapidjson.
I mean LUA_DIR=/usr/local/openresty/luajit cmake -H. -Bbuild -G 'Unix Makefiles'
from lua-rapidjson.
it works fine for me: luarocks install --lua-dir=/usr/local/openresty/luajit rapidjson
and it works fine too: LUA_DIR=/usr/local/openresty/luajit cmake -H. -Bbuild -G 'Unix Makefiles'
thx for your help. @xpol
from lua-rapidjson.
we should update the readme doc.
from lua-rapidjson.
Docs is here: https://github.com/xpol/lua-rapidjson#usage-without-luarocks
from lua-rapidjson.
many thx for your great job.
from lua-rapidjson.
Related Issues (20)
- Compile with TDM-GCC 32 on Windows
- rapidjson-0.5.2-1.rockspec not upload to https://luarocks.org HOT 1
- How to get full error list HOT 1
- why need cmake > =3.1? HOT 2
- cmake 2.8 build failed HOT 1
- question: how can I get the new value with default value. HOT 1
- validator occur coredump in centos 7 HOT 4
- Adding data to decoded empty table produce no change when encode again HOT 8
- build failed in RAM server HOT 1
- rapidjson.Document seems to not be freed correctly HOT 4
- decode 会给空的json对象添加元表 ‘json.object’, 导致table.insert(t), encode 产生错误的结果 HOT 1
- Macosx接入XLua的时候报了编译错误 HOT 3
- How to decode "null" as nil Default ! (not as rapidjson.null)
- lua-rapidjson dump 可以往别的路径写入文件么 HOT 1
- `nullref` might be changed unexpectedly while require rapidjson multi times in different lua states. HOT 3
- Compile XLua with lua-rapidjson integrated HOT 4
- Illegal instruction (core dumped) in aws ec2 HOT 2
- 不支持 ios、osx、osx_silicon 系统
- windows mingw64, can not link to lua51.dll
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lua-rapidjson.