Skip to content
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移植stm32讨论 #222

Closed
qd213618 opened this issue Dec 25, 2013 · 11 comments
Closed

sqlite移植stm32讨论 #222

qd213618 opened this issue Dec 25, 2013 · 11 comments

Comments

@qd213618
Copy link

看到一个sqlite的移植,但是搞不懂到底是怎么移植过去的,我的理解是直接把sqlite3.c文件放在目录里,编译掉,然后再调用finish的命令行,但是实际上编译sqlite3.c的时候遇到很多问题,所以猜想做着不是这么做的,但是又不清楚怎么弄,作者实在搞得太简洁了,初学者根本看不懂的说。。。。。求助个!

@geniusgogo
Copy link
Contributor

没看明白你的疑问是啥,首先你看到的一个sqlite的移植,是在哪里看到的?
RT-Thread已经有SQLite了,你是否已经用起来了?
SQLite这种纯软件组件和平台无关,当然,要考虑资源是否够组件使用。
STM32上对于SQLite来说资源不多,所以建议你多关注裁剪之类的。

在 2013年12月25日 下午8:04,qd213618 notifications@github.com写道:

看到一个sqlite的移植,但是搞不懂到底是怎么移植过去的,我的理解是直接把sqlite3.c文件放在目录里,编译掉,然后再调用finish的命令行,但是实际上编译sqlite3.c的时候遇到很多问题,所以猜想做着不是这么做的,但是又不清楚怎么弄,作者实在搞得太简洁了,初学者根本看不懂的说。。。。。求助个!


Reply to this email directly or view it on GitHubhttps://github.com//issues/222
.

@rogerz
Copy link
Member

rogerz commented Dec 25, 2013

这个难道不应该去邮件列表或者论坛里提吗?

@qd213618
Copy link
Author

就是你的移植啊,大哥,就想找你问问题呢!rtt已经有了?怎么用啊?有没有详细的教程,我想在stm32f103上跑,不晓得应该怎么做,求助

在 2013年12月25日 下午8:10,geniusgogo notifications@github.com写道:

没看明白你的疑问是啥,首先你看到的一个sqlite的移植,是在哪里看到的?
RT-Thread已经有SQLite了,你是否已经用起来了?
SQLite这种纯软件组件和平台无关,当然,要考虑资源是否够组件使用。
STM32上对于SQLite来说资源不多,所以建议你多关注裁剪之类的。

在 2013年12月25日 下午8:04,qd213618 notifications@github.com写道:

看到一个sqlite的移植,但是搞不懂到底是怎么移植过去的,我的理解是直接把sqlite3.c文件放在目录里,编译掉,然后再调用finish的命令行,但是实际上编译sqlite3.c的时候遇到很多问题,所以猜想做着不是这么做的,但是又不清楚怎么弄,作者实在搞得太简洁了,初学者根本看不懂的说。。。。。求助个!


Reply to this email directly or view it on GitHub<
https://github.com/RT-Thread/rt-thread/issues/222>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/222#issuecomment-31198162
.

@qd213618
Copy link
Author

……那么这里是什么,邮件列表还真没怎么用,也不晓得活跃不活跃

2013/12/25 Rogerz Zhang notifications@github.com

这个难道不应该去邮件列表或者论坛里提吗?


Reply to this email directly or view it on GitHubhttps://github.com//issues/222#issuecomment-31198165
.

@qd213618
Copy link
Author

其实还有个问题就是不晓得sqlite内存占用问题如何,驻留内存的话会消耗多少内存?我片内就64k,不晓得够用不够?
此外真心没看明白geniusgogo做的那个移植和那个移植说明是什么情况,是否能提供个工程文件或者是给个源码看看怎么运行这玩意?sqlite3.c和.h不要放进工程么?我现在放进工程以后编译就出错

@aozima
Copy link
Member

aozima commented Dec 25, 2013

103建议放弃。

在 2013年12月25日 下午8:19,qd213618 notifications@github.com写道:

其实还有个问题就是不晓得sqlite内存占用问题如何,驻留内存的话会消耗多少内存?我片内就64k,不晓得够用不够?

此外真心没看明白geniusgogo做的那个移植和那个移植说明是什么情况,是否能提供个工程文件或者是给个源码看看怎么运行这玩意?sqlite3.c和.h不要放进工程么?我现在放进工程以后编译就出错


Reply to this email directly or view it on GitHubhttps://github.com//issues/222#issuecomment-31198280
.

吴洋勇

@geniusgogo
Copy link
Contributor

http://www.rt-thread.org/node/36
http://www.rt-thread.org/phpBB3/topic3196.html
http://www.rt-thread.org/phpBB3/topic3289.html

在 2013年12月25日 下午8:21,aozima notifications@github.com写道:

103建议放弃。

在 2013年12月25日 下午8:19,qd213618 notifications@github.com写道:

其实还有个问题就是不晓得sqlite内存占用问题如何,驻留内存的话会消耗多少内存?我片内就64k,不晓得够用不够?

此外真心没看明白geniusgogo做的那个移植和那个移植说明是什么情况,是否能提供个工程文件或者是给个源码看看怎么运行这玩意?sqlite3.c和.h不要放进工程么?我现在放进工程以后编译就出错


Reply to this email directly or view it on GitHub<
https://github.com/RT-Thread/rt-thread/issues/222#issuecomment-31198280>
.

吴洋勇


Reply to this email directly or view it on GitHubhttps://github.com//issues/222#issuecomment-31198305
.

@qd213618
Copy link
Author

额,,我就想测试一下看看行不行,就是这个移植贴看不太明白……
你这里面没有提供工程文件是吧,最后用的是哪几个文件啊?我需要编译哪几个文件?按我的理解是SQLitelib里面的东西吧?[image:
内嵌图片 1]这几个都要放么?直接加入到工程里?都编译掉?然后改下rtconfig.h,再就是把test10放到工程里,这样finish就能调用test10了?我现在遇到的问题是sqlite3.c编译通不过,貌似有几个EINTR
的错误,还有就是几个函数错误,我想知不是要再包含进几个头啊?这里不是全的代码么?我用的keil,求指导

在 2013年12月25日 下午8:37,geniusgogo notifications@github.com写道:

http://www.rt-thread.org/node/36
http://www.rt-thread.org/phpBB3/topic3196.html
http://www.rt-thread.org/phpBB3/topic3289.html

在 2013年12月25日 下午8:21,aozima notifications@github.com写道:

103建议放弃。

在 2013年12月25日 下午8:19,qd213618 notifications@github.com写道:

其实还有个问题就是不晓得sqlite内存占用问题如何,驻留内存的话会消耗多少内存?我片内就64k,不晓得够用不够?

此外真心没看明白geniusgogo做的那个移植和那个移植说明是什么情况,是否能提供个工程文件或者是给个源码看看怎么运行这玩意?sqlite3.c和.h不要放进工程么?我现在放进工程以后编译就出错


Reply to this email directly or view it on GitHub<
https://github.com/RT-Thread/rt-thread/issues/222#issuecomment-31198280>

.

吴洋勇


Reply to this email directly or view it on GitHub<
https://github.com/RT-Thread/rt-thread/issues/222#issuecomment-31198305>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/222#issuecomment-31198558
.

@geniusgogo
Copy link
Contributor

只要在rtconfig.h定义那个宏就可以了,论坛开贴,或者邮件列表,谢谢……
在 2013-12-25 下午8:45,"qd213618" notifications@github.com写道:

额,,我就想测试一下看看行不行,就是这个移植贴看不太明白……
你这里面没有提供工程文件是吧,最后用的是哪几个文件啊?我需要编译哪几个文件?按我的理解是SQLitelib里面的东西吧?[image:
内嵌图片
1]这几个都要放么?直接加入到工程里?都编译掉?然后改下rtconfig.h,再就是把test10放到工程里,这样finish就能调用test10了?我现在遇到的问题是sqlite3.c编译通不过,貌似有几个EINTR

的错误,还有就是几个函数错误,我想知不是要再包含进几个头啊?这里不是全的代码么?我用的keil,求指导

在 2013年12月25日 下午8:37,geniusgogo notifications@github.com写道:

http://www.rt-thread.org/node/36
http://www.rt-thread.org/phpBB3/topic3196.html
http://www.rt-thread.org/phpBB3/topic3289.html

在 2013年12月25日 下午8:21,aozima notifications@github.com写道:

103建议放弃。

在 2013年12月25日 下午8:19,qd213618 notifications@github.com写道:

其实还有个问题就是不晓得sqlite内存占用问题如何,驻留内存的话会消耗多少内存?我片内就64k,不晓得够用不够?

此外真心没看明白geniusgogo做的那个移植和那个移植说明是什么情况,是否能提供个工程文件或者是给个源码看看怎么运行这玩意?sqlite3.c和.h不要放进工程么?我现在放进工程以后编译就出错


Reply to this email directly or view it on GitHub<

https://github.com/RT-Thread/rt-thread/issues/222#issuecomment-31198280>

.

吴洋勇


Reply to this email directly or view it on GitHub<
https://github.com/RT-Thread/rt-thread/issues/222#issuecomment-31198305>

.


Reply to this email directly or view it on GitHub<
https://github.com/RT-Thread/rt-thread/issues/222#issuecomment-31198558>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/222#issuecomment-31198646
.

@qd213618
Copy link
Author

论坛开贴了。。。。。

在 2013年12月25日 下午8:49,geniusgogo notifications@github.com写道:

只要在rtconfig.h定义那个宏就可以了,论坛开贴,或者邮件列表,谢谢……
在 2013-12-25 下午8:45,"qd213618" notifications@github.com写道:

额,,我就想测试一下看看行不行,就是这个移植贴看不太明白……
你这里面没有提供工程文件是吧,最后用的是哪几个文件啊?我需要编译哪几个文件?按我的理解是SQLitelib里面的东西吧?[image:
内嵌图片

1]这几个都要放么?直接加入到工程里?都编译掉?然后改下rtconfig.h,再就是把test10放到工程里,这样finish就能调用test10了?我现在遇到的问题是sqlite3.c编译通不过,貌似有几个EINTR

的错误,还有就是几个函数错误,我想知不是要再包含进几个头啊?这里不是全的代码么?我用的keil,求指导

在 2013年12月25日 下午8:37,geniusgogo notifications@github.com写道:

http://www.rt-thread.org/node/36
http://www.rt-thread.org/phpBB3/topic3196.html
http://www.rt-thread.org/phpBB3/topic3289.html

在 2013年12月25日 下午8:21,aozima notifications@github.com写道:

103建议放弃。

在 2013年12月25日 下午8:19,qd213618 notifications@github.com写道:

其实还有个问题就是不晓得sqlite内存占用问题如何,驻留内存的话会消耗多少内存?我片内就64k,不晓得够用不够?

此外真心没看明白geniusgogo做的那个移植和那个移植说明是什么情况,是否能提供个工程文件或者是给个源码看看怎么运行这玩意?sqlite3.c和.h不要放进工程么?我现在放进工程以后编译就出错


Reply to this email directly or view it on GitHub<

https://github.com/RT-Thread/rt-thread/issues/222#issuecomment-31198280>

.

吴洋勇


Reply to this email directly or view it on GitHub<

https://github.com/RT-Thread/rt-thread/issues/222#issuecomment-31198305>

.


Reply to this email directly or view it on GitHub<
https://github.com/RT-Thread/rt-thread/issues/222#issuecomment-31198558>

.


Reply to this email directly or view it on GitHub<
https://github.com/RT-Thread/rt-thread/issues/222#issuecomment-31198646>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/222#issuecomment-31198707
.

@grissiom
Copy link
Member

或许可以 close 了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants