Buildroot error - fakeroot: preload library not found, aborting. 

Never ever move your buildroot directory because it does not like it.
[ hozzászólás ] ( 27 megtekintés ) [ 0 trackbackek ] permalink ( 3 / 230 )
A few things what I setup when I create a new Qt Widget project 

1.Add the folowing to pro file:


OBJECTS_DIR = build
MOC_DIR = build
UI_DIR = build
RCC_DIR=build

DESTDIR = bin

and the binaries won't mess up your sorce code directory

2. Make the following modifications in the main.cpp:


#include <QtGui/QApplication>
#include <QtCore/QTextCodec>
#include "mainwindow.h"

int main(int argc, char *argv[])
{
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8";));
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8";));

QCoreApplication::setOrganizationName("MM";);
QCoreApplication::setApplicationName("Mikrotik data miner";);
QCoreApplication::setApplicationVersion("0.1";);

QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}


Why?
The QTextCodec trick is neccessary because the sourcecode is UTF-8 encoded, and if I want to put a string from the code to somewhere I would need to use QString::fromUtf8(). If you do not believe check a generated ui_*.h file.

Always give set the name to your application and the application domain. This is useful when you are using QSettings, you do not need to give constructor arguments when creating a settings object. The settings object constructed in this way always use a separate data area specified by the platform. (.config/QCodeApplication::applicationDomain/QCoreApplication:applicationName.ini on Linux and registry on Windows)


[ hozzászólás ] ( 15 megtekintés ) [ 0 trackbackek ] permalink ( 2.9 / 227 )
I/O error while opening /de/ttyS0 on Dell D630 

I have recently tried to breathe life to the serial port of my DELL D630 notebook under Ubuntu Natty, but the opening always failed with I/O error.

I have tried the relevant acpi=off, pnpacpi=off kernel parameters, updated the BIOS, but these thigns did not lead to succes. As final trying I have switched the port from COM1 to COM2 int the BIOS and finally it became available as /dev/ttyS1


[ hozzászólás ] ( 3 megtekintés ) [ 0 trackbackek ] permalink ( 3 / 175 )
Lattice ispVM under Ubuntu 11.04 with USB download cable 

I have tried to use the Lattice ispVM under Ubuntu 11.04, with the Lattice USB download cable, but I have to run it as root, even after adding the udev rules mentioned in the FAQ.

After some strace analyzing I have figured out that it is trying to open the /dev/bus/usb/{roothub}/{devide} nodes. Since then the download cable's node was read only it failed.

I have written the following udev rule to the /etc/udev/rules.d/51-lattice.rules file inspired by my AVR doper's rule:


SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="1134", ATTR{idProduct}=="8001", MODE="0666"

[ hozzászólás ] ( 10 megtekintés ) [ 0 trackbackek ] permalink ( 3.1 / 300 )
Debugging UrJTAG with GDB 

The UrJTAG uses a libtool wrapper for starting, so debugging with GDB is a bit tricky.

You should debug the src/apps/jtag/.libs/lt-jtag binary.
But it does not appears right after building it, the wrapper script creates it if not exists.
So ran ./src/apps/jtag/jtag first.

Figuring out taken me some time, I hope it will helps someone.

So execute

gdb ./src/apps/jtag/.libs/lt-jtag

in the trunk and enjoy debugging ;).
[ hozzászólás ] ( 16 megtekintés ) [ 0 trackbackek ] permalink ( 2.9 / 208 )

<< <Előző | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | Következő> >>

 
számláló