Cmake Serie Posix Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
hook24
Knows some wx things
Knows some wx things
Posts: 29
Joined: Wed May 05, 2010 5:50 pm

Cmake Serie Posix

Post 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?
Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post 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
"Keyboard not detected. Press F1 to continue"
-- Windows
Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post 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
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
hook24
Knows some wx things
Knows some wx things
Posts: 29
Joined: Wed May 05, 2010 5:50 pm

Post by hook24 »

. .
Last edited by hook24 on Mon Sep 27, 2010 4:48 pm, edited 1 time in total.
Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post 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
"Keyboard not detected. Press F1 to continue"
-- Windows
hook24
Knows some wx things
Knows some wx things
Posts: 29
Joined: Wed May 05, 2010 5:50 pm

Post 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);
Post Reply