-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sqlite on rtthread #203
Sqlite on rtthread #203
Conversation
Thank for your contributions.
|
SConscript在sqlite目录下面
|
SConscript文件我怎么没找到,能给我个链接吗? 函数和变量都改成rtthread吧,使用rtthread是一种比较正规的方式,虽然有的时候口头可以简称RTT。 |
https://github.com/geniusgogo/rt-thread/tree/sqlite_on_rtthread/components/external/sqlite 在 2013年11月24日上午9:35,Bernard Xiong [email protected]写道:
|
是否分散的更好?RT-Thread有scons,所以只要SConscript写好,编译不会成为问题的 |
嗯,分散的文件好跟踪,我还没完全看懂他的Makefile和tcl工具在编译时的依赖关系,所以得看看需要哪些文件,稍后我看看……
|
用分散的文件,那应用程序不知道要包含哪些头文件,因为此时没有sqlite3.c/.h 之类的文件了。 在 2013年11月24日上午10:12,geniuscode [email protected]写道:
|
2013/11/24 geniusgogo [email protected]
Cheers, |
it really too big for rt-thread。。。。。。。。 |
既然我们的目的是为了跟踪上游,那我想不通了,既然上游都没有的东西,我们来造一个,这还叫跟踪吗? 在 2013年11月24日下午11:11,Grissiom.GuRui [email protected]写道:
|
你可以新加入一个sqlite3.h头文件,把一些需要包含的头文件在这个文件中进行include。这样应该是最好的方式。 |
那到没必要加入sqlite3.h这个文件,这个文件是通用的!可以就用现在这个sqlite3.h。 我再想想,到时候再确认! 在 2013年11月26日下午3:39,Bernard Xiong [email protected]写道:
|
类似这样的sqlite3.h: #ifndef SQLITE3_H #include "sqlite_a.h" #endif |
没有必要把sqlite已有的构建系统移植为 |
这个肯定不行啊,就是单文件太大,再一个,工具不是所有人都有安装……我抽空整……
|
说句题外话,C的library似乎没有什么好的包管理工具,以致于所有的代码都集中到了rt-thread里面。 |
所以目前暂时想到的方式就是在RT-Thread中按照一定类别,放置到一个个目录中。每个目录携带一个SConscript文件,当使用Bridge时,可以自动建立关系然后进行编译。 |
Port SQLite version 3.8.1 to rt-thread
components\external\sqlite
components\external\SQLite-3.8.1
detailed description on the two directory README
about the SQLite please read http:https://www.sqlite.org/