Ok I'll take a look at why its not working for me and submit a patch
Unfortunately I do not have it checked in anywhere, the one kev is working with is the latest copy. I've been on travel for work a lot and have a couple other projects so I haven't had much time to work on it.
RevFE - Super fast, modular frontend. Most powerful skinning engine in existence. Strong enough for an i7 made for a fitpc.Originally Posted by mitchjs
Just a shame I can't justify a carpc to use it on anymore.
Ok I'll take a look at why its not working for me and submit a patch
In trying to build the fusion brain files on ARM linux, I get the following errors:
Any ideas on how to quickly fix this? I don't want to start mucking around in the source if I don't have to.root@debian:~/FB# qmake && make
WARNING: Found potential symbol conflict of FBTest.cpp (FBTest.cpp) in SOURCES
WARNING: Found potential symbol conflict of FBTest.h (FBTest.h) in HEADERS
Makefile:160: warning: overriding commands for target `moc_FBTest.cpp'
Makefile:157: warning: ignoring old commands for target `moc_FBTest.cpp'
g++ -c -pipe -g -Wall -W -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I. -I/usr/local/include/libusb-1.0 -I/usr/include/qt3 -o fblib.o fblib.cpp
In file included from fblib.cpp:1:
fblib.h:3:20: error: libusb.h: No such file or directory
In file included from fblib.cpp:1:
fblib.h:16: error: ISO C++ forbids declaration of 'libusb_device' with no type
fblib.h:16: error: expected ';' before '*' token
fblib.h:17: error: ISO C++ forbids declaration of 'libusb_device_handle' with no type
fblib.h:17: error: expected ';' before '*' token
fblib.h:18: error: ISO C++ forbids declaration of 'libusb_device' with no type
fblib.h:18: error: expected ';' before '*' token
fblib.h:19: error: ISO C++ forbids declaration of 'libusb_context' with no type
fblib.h:19: error: expected ';' before '*' token
fblib.cpp: In constructor 'fblib::fblib()':
fblib.cpp:5: error: 'context' was not declared in this scope
fblib.cpp:5: error: 'libusb_init' was not declared in this scope
fblib.cpp:6: error: 'libusb_set_debug' was not declared in this scope
fblib.cpp: In destructor 'fblib::~fblib()':
fblib.cpp:10: error: 'fusionBrainHandle' was not declared in this scope
fblib.cpp:10: error: 'libusb_close' was not declared in this scope
fblib.cpp:11: error: 'devs' was not declared in this scope
fblib.cpp:11: error: 'libusb_free_device_list' was not declared in this scope
fblib.cpp:12: error: 'context' was not declared in this scope
fblib.cpp:12: error: 'libusb_exit' was not declared in this scope
fblib.cpp: In member function 'void fblib::init()':
fblib.cpp:16: error: 'libusb_device' was not declared in this scope
fblib.cpp:16: error: 'dev' was not declared in this scope
fblib.cpp:17: error: 'devs' was not declared in this scope
fblib.cpp:17: error: 'libusb_get_device_list' was not declared in this scope
fblib.cpp:21: error: aggregate 'libusb_device_descriptor desc' has incomplete type and cannot be defined
fblib.cpp:22: error: 'libusb_get_device_descriptor' was not declared in this scope
fblib.cpp:26: error: 'fusionBrain' was not declared in this scope
fblib.cpp: In member function 'void fblib::connect()':
fblib.cpp:35: error: 'fusionBrain' was not declared in this scope
fblib.cpp:35: error: 'fusionBrainHandle' was not declared in this scope
fblib.cpp:35: error: 'libusb_open' was not declared in this scope
fblib.cpp:41: error: 'fusionBrainHandle' was not declared in this scope
fblib.cpp:41: error: 'libusb_claim_interface' was not declared in this scope
fblib.cpp: In member function 'void fblib::setSingleOutput(int, bool)':
fblib.cpp:77: error: 'fusionBrainHandle' was not declared in this scope
fblib.cpp:77: error: 'libusb_bulk_transfer' was not declared in this scope
fblib.cpp: In member function 'void fblib::setAllOutput(unsigned char, unsigned char)':
fblib.cpp:128: error: 'fusionBrainHandle' was not declared in this scope
fblib.cpp:128: error: 'libusb_bulk_transfer' was not declared in this scope
fblib.cpp:142: warning: suggest parentheses around comparison in operand of &
fblib.cpp:142: warning: suggest parentheses around comparison in operand of &
fblib.cpp:110: warning: unused variable 'data_send'
fblib.cpp: In member function 'int fblib::getAllOutputStatus()':
fblib.cpp:167: error: 'fusionBrainHandle' was not declared in this scope
fblib.cpp:167: error: 'libusb_bulk_transfer' was not declared in this scope
fblib.cpp:151: warning: unused variable 'data_send'
fblib.cpp:152: warning: unused variable 'actualSent'
fblib.cpp:153: warning: unused variable 'EP_OUT'
fblib.cpp:162: warning: unused variable 'dataSendResult'
fblib.cpp:166: warning: unused variable 'stop'
make: *** [fblib.o] Error 1
My Nearly Complete Car:
http://www.mp3car.com/vbulletin/show...ed-car-pc.html
Micro Control Center... Control Your Car Across the Internet
http://www.mp3car.com/fusion-brain/1...-internet.html
Website: (It's a work in progress, really. All my projects have taken me from ever really developing it.)
http://paulfurtado.com/
First, you should grab fbd from the linuxice repo as that has the latest code. I also checked in a small fix today.
When I built this I needed to install libusb-0.1-4 and libusb-dev so make sure you have those. You may need libusb-1.0-0 , libusb-1.0-0-dev , libqt4-dev but I think at least the libusb's were for an older version.
hth
charles
Well it build successfully but now I have a new problem:
root@debian:~/fbsvn# ./fbd
Failed to register service: 'org.openice.fbd' on the system bus
My Nearly Complete Car:
http://www.mp3car.com/vbulletin/show...ed-car-pc.html
Micro Control Center... Control Your Car Across the Internet
http://www.mp3car.com/fusion-brain/1...-internet.html
Website: (It's a work in progress, really. All my projects have taken me from ever really developing it.)
http://paulfurtado.com/
Yeah the install/setup for fbd needs to be added to a README and/or the makefile. You can race me to find it, but tripzero mentions what to do in the post where he announced fbd
Duh, that would be this thread
Also you may find this useful for testing with dbus:To install, run qmake, make. Copy FusionBrain.conf to /etc/dbus-1/system.d/. Run as root.
See fbddbus.xml for information on the DBus methods and signals available.
Monitor a temperature sensor on input port 1 taking 10 samples (averaged)
watch dbus-send --system --print-reply --dest="org.openice.fbd" /org/openice/fbd org.openice.fbd.fusionbrain.GetAnalogValue int32:1 int32:10
Turn on a relay plugged into output port 0
dbus-send --system --print-reply --dest="org.openice.fbd" /org/openice/fbd org.openice.fbd.fusionbrain.SetSingleOutput int32:0 boolean:true
I really need to read up on dbus some time.
But right now, I have a new issue:
Now that the FBD works, when I have fbd running and I try to query it through dbus, I get a segmentation fault. No fusion brain is actually plugged in, I admit. Do you think this is the problem or is it something else?
My Nearly Complete Car:
http://www.mp3car.com/vbulletin/show...ed-car-pc.html
Micro Control Center... Control Your Car Across the Internet
http://www.mp3car.com/fusion-brain/1...-internet.html
Website: (It's a work in progress, really. All my projects have taken me from ever really developing it.)
http://paulfurtado.com/
Some lurkers probably already know what I'm going to do with this, but for now I don't want to announce it on the FB forum just yet.
Tripzero, is there any chance you could create a dummy program, something that does exactly what fbd does from the perspective of dbus, but doesn't require an FB to do it? Just generate random numbers for a couple of analog inputs, and signal them on the bus that you use. Is that possible?
Thanks,
Gary (-;
OBDGPSLogger, for logging OBDII and/or GPS data
OBDSim, an OBDII/ELM327 software simulator
mp3car forums: obdgpslogger, obdsim
Bookmarks