Image 01
profile-image

tony1tf

Tony Abbey
QSerialDevice

Qt Components by kuzulis 143 comments

Hi Kuzulis
OK, lets take it step by step:
do you agree that the "too many files" error from moc was caused by you having added "<space>2" to the new version you told me load:
http://gitorious.org/qserialdevice/qserialdevice/trees/2.0
Tony - Jan 10 2012
QSerialDevice

Qt Components by kuzulis 143 comments

Hi
I'm sorry - I cannot follow what you do. Please tell me what your setup is. If I try and compile and run I get a whole stack of errors as I have stated before. What environment are you setting up - "Shadow build" etc etc.
Tony - Jan 10 2012
QSerialDevice

Qt Components by kuzulis 143 comments

Hi Kuzulis again

I found the reason for the "too many files" error was because of the space in the file name - you had added <space>2 to the Qserial-device application.
So now I can compile, but cannot get the test apps to run - QT is asking for an executable and run environment, and then I get the error message "Failed to start program. Path or permissions wrong?" or if I tell it to start in a terminal window it cant start xterm. Then from time to time I get another error message in a pop up window in QT "The file serialport.pro.user has changed outside Qt Creator. Do you want to reload it?"
So no success yet.
Tony - Jan 10 2012
QSerialDevice

Qt Components by kuzulis 143 comments

Hi Kuzulis again

I found the reason for the "too many files" error was because of the space in the file name - you had added <space>2 to the Qserial-device application.
So now I can compile, but cannot get the test apps to run - QT is asking for an executable and run environment, and then I get the error message "Failed to start program. Path or permissions wrong?" or if I tell it to start in a terminal window it cant start xterm. Then from time to time I get another error message in a pop up window in QT "The file serialport.pro.user has changed outside Qt Creator. Do you want to reload it?"
So no success yet.
Tony - Jan 09 2012
QSerialDevice

Qt Components by kuzulis 143 comments

Hi kuzulis

Thanks for your fast reply. I downloaded version 2, but it produces a different error - here is the compiler output just before the error:

make[1]: Entering directory `/Users/afa/Documents/Astronomy/serialport-build-desktop/src'
/Developer/Tools/Qt/moc -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.7/mkspecs/macx-g++ -I../../qserialdevice-qserialdevice\ 2/src -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/usr/include -I../../qserialdevice-qserialdevice\ 2/include -I/Users/afa/Documents/Astronomy/serialport-build-desktop/src/. -I../../qserialdevice-qserialdevice\ 2/src -I. -F/Library/Frameworks -D__APPLE__ -D__GNUC__ ../../qserialdevice-qserialdevice 2/include/serialport.h -o moc_serialport.cpp
moc: Too many input files specified

I also had the same "too many files error" when trying to compile another serial port implementation.
Obviously yet another Mac compatibility issue

Tony
- Dec 31 2011
QSerialDevice

Qt Components by kuzulis 143 comments

I have mac os x 10.6.8 and Qt Creator 2.0.1
Based on Qt 4.7.0 (64 bit) Built on Sep 15 2010 at 14:09:02

I am a relative beginner at this and dont have enough knowledge to debug the problem - all I wanted to do was to write a small Qt application to send a few characters to the serial port (prolific usb to serial adaptor) when a button is pressed. I can do this manually from the mac os x terminal with the command "screen -U /dev/tty.usbserial 9600 "

I have had several goes at compiling the QSerialDevice build examples

anymaster app compiles but crashes my mac
anyslave app compiles but hangs
emumerator starts compiling but
stops with this warning:
ld: warning: directory '/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib' following -L not found.
Undefined symbols:
"_CFDictionaryAddValue", referenced from:

SerialDeviceEnumeratorPrivate::SerialDeviceEnumeratorPrivate()in libqserialdevice.a(serialdeviceenumerator_p_mac.o)
SerialDeviceEnumeratorPrivate::SerialDeviceEnumeratorPrivate()in libqserialdevice.a(serialdeviceenumerator_p_mac.o)
"_CFRunLoopGetCurrent", referenced from:
SerialDeviceEnumeratorPrivate::setEnabled(bool) in libqserialdevice.a(serialdeviceenumerator_p_mac.o)
"_CFNumberGetValue", referenced from:
SerialDeviceEnumeratorPrivate::updateInfo() const in libqserialdevice.a(serialdeviceenumerator_p_mac.o)
SerialDeviceEnumeratorPrivate::updateInfo() const in libqserialdevice.a(serialdeviceenumerator_p_mac.o)
"_IORegistryEntryCreateCFProperty", referenced from:
SerialDeviceEnumeratorPrivate::updateInfo() const in libqserialdevice.a(serialdeviceenumerator_p_mac.o)
"_IONotificationPortCreate", referenced from:
SerialDeviceEnumeratorPrivate::setEnabled(bool) in libqserialdevice.a(serialdeviceenumerator_p_mac.o)
"_CFRelease", referenced from:
SerialDeviceEnumeratorPrivate::updateInfo() const in libqserialdevice.a(serialdeviceenumerator_p_mac.o)
and so many similar error messages

The compilation never gets as far as the remainder of the apps

Any help appreciated, thanks
Tony - Dec 31 2011