Page 1 of 1
Cmake Serie Posix
Posted: Mon Sep 20, 2010 10:29 pm
by hook24
hello, I have a project that I work well with the compiler code:: blocks but does not work Library serie with CMake compiler .
I have to link some library in particular to work with Posix serie library? or give any permission?
Posted: Mon Sep 20, 2010 11:10 pm
by Auria
Hi,
I'm not sure I understand. If something doesn't work, please give the steps you took, the error message you get and/or what happens
Posted: Tue Sep 21, 2010 7:00 am
by Jorg
CMake is not a compiler, only a makefile/project generator. You should use the FindWxWidgets.cmake module I am sure on the wiki of CMake there will be examples how to do this.
http://wiki.wxwidgets.org/CMake
I know I wrote the base of this article some revisions have passed in the meantime but it gives a good idea how to use Cmake.
- Jorgen
Posted: Tue Sep 21, 2010 10:10 am
by hook24
. .
Posted: Tue Sep 21, 2010 11:16 pm
by Auria
I don't think it has anything to do with libraries. If fopen fails, probably it cannot find the file.
Without knowing what kind of path it's trying to open, there's little more I can tell
Posted: Wed Sep 22, 2010 11:53 am
by hook24
Auria wrote:I don't think it has anything to do with libraries. If fopen fails, probably it cannot find the file.
Without knowing what kind of path it's trying to open, there's little more I can tell
Puerto = (char *)"/dev/ttyUSB0";
fd = open(PuertoSerie, O_RDWR | O_NOCTTY );//| O_NDELAY);