View unanswered posts | View active topics It is currently Mon Jan 18, 2021 10:39 am



Reply to topic  [ 91 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 10  Next
FreeEMS-Loader 
Author Message
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15376
Location: Home sweet home!
Pushed a change to the .gitignore!

Connect button still behaves weirdly. No other testing done.

Fred.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Wed Dec 08, 2010 3:44 am
Profile WWW
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15376
Location: Home sweet home!
You never pulled in my last commit, so I rebased it on top of your latest two. Please pull it in before proceeding :-)

Just built on deb sid and got these messages building:

Code:
fred@roadeee [19:30:57]:src$ qmake
RCC: Warning: No resources in 'resource-root.qrc'.
fred@roadeee [19:31:05]:src$ make
Makefile:201: warning: overriding commands for target `moc_freeems_loader.cpp'
Makefile:195: warning: ignoring old commands for target `moc_freeems_loader.cpp'
Makefile:207: warning: overriding commands for target `moc_freeems_loader.cpp'
Makefile:201: warning: ignoring old commands for target `moc_freeems_loader.cpp'
Makefile:213: warning: overriding commands for target `moc_freeems_loader.cpp'
Makefile:207: warning: ignoring old commands for target `moc_freeems_loader.cpp'
Makefile:233: warning: overriding commands for target `ui_freeems_loader.h'
Makefile:230: warning: ignoring old commands for target `ui_freeems_loader.h'
Makefile:236: warning: overriding commands for target `ui_freeems_loader.h'
Makefile:233: warning: ignoring old commands for target `ui_freeems_loader.h'
Makefile:239: warning: overriding commands for target `ui_freeems_loader.h'
Makefile:236: warning: ignoring old commands for target `ui_freeems_loader.h'


Code:
FreeEMS_LoaderComms.cpp: In member function ‘void FreeEMS_LoaderComms::read(char*, size_t)’:
FreeEMS_LoaderComms.cpp:135: warning: enumeration value ‘resultInProgress’ not handled in switch
FreeEMS_LoaderComms.cpp: In member function ‘std::string FreeEMS_LoaderComms::readStringUntil(const std::string&)’:
FreeEMS_LoaderComms.cpp:186: warning: enumeration value ‘resultInProgress’ not handled in switch
freeems_loader.cpp: In member function ‘void FreeEMS_Loader::redirectCLI()’:
freeems_loader.cpp:57: warning: unused variable ‘coutRedirector’


And when pressing "connect" it changes to disconnect, but just says "qt slot fired" and doesn't seem to talk to the device. If you hit disconnect it doesn't change back to connect and just outputs qt slot fired again.

I'll try to build on win and mac now and post again when I've got more to say.

Fred.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Fri Dec 10, 2010 7:40 am
Profile WWW
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15376
Location: Home sweet home!
Code:
FreeEMS_LoaderComms.h:15:29: error: boost/utility.hpp: No such file or directory
FreeEMS_LoaderComms.h:16:26: error: boost/asio.hpp: No such file or directory
FreeEMS_LoaderComms.cpp:13:26: error: boost/bind.hpp: No such file or directory

Got that on mac, assume it has something to do with your lib path settings in the .pro? Or maybe my environmental setup? I'm not sure, no more time to work on this today, posting from mac now.

Fred.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Sat Dec 11, 2010 1:58 am
Profile WWW
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15376
Location: Home sweet home!
It wont build for me anymore:

Code:
fred@roadeee [18:36:02]:src$ make
Makefile:203: warning: overriding commands for target `moc_freeems_loader.cpp'
Makefile:197: warning: ignoring old commands for target `moc_freeems_loader.cpp'
Makefile:209: warning: overriding commands for target `moc_freeems_loader.cpp'
Makefile:203: warning: ignoring old commands for target `moc_freeems_loader.cpp'
Makefile:215: warning: overriding commands for target `moc_freeems_loader.cpp'
Makefile:209: warning: ignoring old commands for target `moc_freeems_loader.cpp'
Makefile:235: warning: overriding commands for target `ui_freeems_loader.h'
Makefile:232: warning: ignoring old commands for target `ui_freeems_loader.h'
Makefile:238: warning: overriding commands for target `ui_freeems_loader.h'
Makefile:235: warning: ignoring old commands for target `ui_freeems_loader.h'
Makefile:241: warning: overriding commands for target `ui_freeems_loader.h'
Makefile:238: warning: ignoring old commands for target `ui_freeems_loader.h'
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_XMLPATTERNS_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4 -I/usr/X11R6/include -I. -I. -o FreeEMS_LoaderParsing.o FreeEMS_LoaderParsing.cpp
In file included from FreeEMS_LoaderParsing.cpp:9:
freeems_loader_types.h:38: error: function definition does not declare parameters
freeems_loader_types.h:48: error: function definition does not declare parameters
make: *** [FreeEMS_LoaderParsing.o] Error 1

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Fri Dec 24, 2010 6:38 am
Profile WWW
LQFP144 - On Top Of The Game
User avatar

Joined: Mon Feb 11, 2008 10:52 pm
Posts: 549
Location: Arizona
hmmmm...... builds on my system.
try
make clean
qmake
make all

_________________
You snooze, you lose!


Fri Dec 24, 2010 7:27 pm
Profile YIM
LQFP144 - On Top Of The Game
User avatar

Joined: Mon Feb 11, 2008 10:52 pm
Posts: 549
Location: Arizona
maybe now would be a good time to address this warning :)

freeems_loader_types.h:38: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x
freeems_loader_types.h:46: warning: deprecated conversion from string constant to ‘char*’

_________________
You snooze, you lose!


Fri Dec 24, 2010 7:39 pm
Profile YIM
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15376
Location: Home sweet home!
-Wall -Werror are your friends :-)

I know that it's weird, of course I cleaned etc. I have no idea why it's broken... I'll try again on your next push / my next pull. Otherwise maybe a g++ upgrade.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Fri Dec 24, 2010 11:14 pm
Profile WWW
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15376
Location: Home sweet home!
Sean, I finally got the macports stuff built just a few minutes ago. Now all three of my build environments produce the same errors on those lines. Totally seperate and different environments! The ONLY common factor is ME :-) But they are all broken. I'm filing a bug report, damn it! :-)

Wait, I didn't see this before!!! :

freeems_loader_types.h:38: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x

That's the answer! Clearly you need to reformat those initialisers so that they're not of that newer type for my 3 older compilers, and they are all fairly recent, too, at that.

Fred.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Mon Dec 27, 2010 2:44 pm
Profile WWW
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15376
Location: Home sweet home!
Latest from the mighty mac, this is on macports, haven't tried fink yet, and seemed to need unix:INCLUDEPATH += /opt/local/include in the .pro file to make it work, but that could be my setup issues. In any case, it's back to a code issue again now, which means we're close to having it work on a mac:

Code:
freeems_loader.cpp: In member function ‘void FreeEMS_Loader::redirectCLI()’:
freeems_loader.cpp:65: error: cast from ‘StdRedirector<char, std::char_traits<char> >*’ to ‘int’ loses precision
cc1plus: warnings being treated as errors
/opt/local/include/boost/system/error_code.hpp: At global scope:
/opt/local/include/boost/system/error_code.hpp:214: warning: ‘boost::system::posix_category’ defined but not used
/opt/local/include/boost/system/error_code.hpp:215: warning: ‘boost::system::errno_ecat’ defined but not used
/opt/local/include/boost/system/error_code.hpp:216: warning: ‘boost::system::native_ecat’ defined but not used
/opt/local/include/boost/asio/error.hpp:251: warning: ‘boost::asio::error::system_category’ defined but not used
/opt/local/include/boost/asio/error.hpp:253: warning: ‘boost::asio::error::netdb_category’ defined but not used
/opt/local/include/boost/asio/error.hpp:255: warning: ‘boost::asio::error::addrinfo_category’ defined but not used
/opt/local/include/boost/asio/error.hpp:257: warning: ‘boost::asio::error::misc_category’ defined but not used
/opt/local/include/boost/asio/error.hpp:259: warning: ‘boost::asio::error::ssl_category’ defined but not used
make: *** [freeems_loader.o] Error 1


EEE works, though! :-)

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Tue Dec 28, 2010 11:46 pm
Profile WWW
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15376
Location: Home sweet home!
All fixed, congrats, Sean! Mac users will be happy to note that it builds just fine on the Mac using Macports. It may work with fink too, but that remains to be seen. I built it using the mac version of QT not the X11 version. The other should work the same. Anything else, I don't know about, but here is a screen shot:

http://stuff.fredcooke.com/FreeEMS.Load ... cports.png

Fred.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Wed Dec 29, 2010 6:17 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 91 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 10  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF. ColorizeIt.