Hi all:
This is my first e-mail to this list. I have a problem with Suse 9.0 to
compile nvrec. Nvrec uses a v4l2_buffer, but in the headers inside
/usr/include/linux/videodev2.h this definition is inside an if
__KERNEL__, and the compilation give me errors like:
v4l2_core.c:70: error: field `cbuf' has incomplete type
In Debian compiles ok, because the declaration of v4l2_buffer is not
conditionally defined by __KERNEL__.
How I can use this declaration...?
Thanks.
--
Antonio Beamud Montero <antonio.beamud(a)linkend.com>
JID: farruquit0(a)jabber.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
A while back I told people that I find using autotools to be confusing. I've
been looking at the documentation of the latest versions and have concluded
that the reason I don't understand the documentation is because the documents
are inconsistent, at least when used as references. Compare the following
two excerpts:
This is from autoconf.info:
To encourage consistency, here is a suggested order for calling the
Autoconf macros. Generally speaking, the things near the end of this
list are those that could depend on things earlier in it. For example,
library functions could be affected by types and libraries.
Autoconf requirements
`AC_INIT(PACKAGE, VERSION, BUG-REPORT-ADDRESS)'
information on the package
checks for programs
checks for libraries
checks for header files
checks for types
checks for structures
checks for compiler characteristics
checks for library functions
checks for system services
`AC_CONFIG_FILES([FILE...])'
`AC_OUTPUT'
This is from automake.info:
The first step is to update your `configure.ac' to include the
commands that `automake' needs. The way to do this is to add an
`AM_INIT_AUTOMAKE' call just after `AC_INIT':
AC_INIT(zardoz, 1.0)
AM_INIT_AUTOMAKE
This is from a working autoconf.ac
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(src/main.cpp)
AM_INIT_AUTOMAKE(rematrix, 1.0, hattons(a)globalsymmetry.com)
AC_CONFIG_SRCDIR([src])
AC_CONFIG_HEADER([config.h])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
# Checks for library functions.
AC_OUTPUT([Makefile src/Makefile])
The examples found in http://sources.redhat.com/autobook/ did not work (were
out of date?) when I tried to use the book to get started. I'm now to the
point where I can produce a basic gnu gnits build setup for simple programs,
but it's been trial and error (as well as some very helpful guidance from
people on this list).
Other than simply venting my frustrations, my purpose in posting this is to
ask others how they would approach learning how to use these tools. Perhaps
the answer is still the Goat Book. It seems a shame to see the book has not
been maintained.
- --
Regards,
Steven
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQFAtzqqwX61+IL0QsMRAhxYAJ4uX7zoByNhGcDZqD555H4JbedUhgCfVU5V
ZzED9r4iHrUSkM/4mJA2pFA=
=1pvP
-----END PGP SIGNATURE-----
Dear my friends...
I move forward to getting to know more about qt in
database application development.
I tried to make a very simple database application
qith QTable.
I have made the database connection successfully. I
found no error. If I click on "connect" it can connect
successfully because the connection name move to the
left hand column. The documentation in help menu said
it is so.
Compiled successfully.
but if I run the compiled code, i found this error
message as a prompt window comes:
"
An error occurred while accessing the database
".
And the error message on the linux console where I
executed "./book" are under below:
"
patrixlinux@patrix:~/arsip/proyek/qt/book> ./book
QSqlCursor::setName: unable to build record, does
'author' exist?
QSqlRecord::field: index out of range: 0
QSqlRecord::position: unable to find field forename
QSqlRecord::field: index out of range: -1
QSqlRecord::field: index out of range: 1
QSqlRecord::position: unable to find field surname
QSqlRecord::field: index out of range: -1
QSqlCursor::setName: unable to build record, does
'author' exist?
patrixlinux@patrix:~/arsip/proyek/qt/book>
"
the author table really exists. should do choosing the
database name as I do usually on PHP+MySQL (
mysql_select_db("192.168.23.21","patrix", "perjaka");
)?
I have tested to connect to my mysql server with the
same hostname, username and password and it's OK. I
also can do select query. I did testing with
mysql-client (mysql -h 192.168.23.21 -u patrix -p)
Please tell me where my mistake.
Thank you very much in advance.
ps: Here is what I've done underbelow:
patrixlinux@patrix:~/arsip/proyek/qt/book> ls
book.db book.pro depanform.ui depanform.ui~
main.cpp
patrixlinux@patrix:~/arsip/proyek/qt/book> qmake -o
Makefile book.pro
patrixlinux@patrix:~/arsip/proyek/qt/book> make
/usr/lib/qt3/bin/uic depanform.ui -o .ui/depanform.h
g++ -c -pipe -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -Wall -fPIC -Wall -W -O2
-march=i586 -mcpu=i686 -fmessage-length=0 -Wall -fPIC
-DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT
-I/usr/lib/qt3/mkspecs/default -I. -I/usr/include
-I/usr/lib/qt3/include -I.ui/ -I. -I.moc/ -o
.obj/main.o main.cpp
/usr/lib/qt3/bin/uic depanform.ui -i depanform.h -o
.ui/depanform.cpp
g++ -c -pipe -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -Wall -fPIC -Wall -W -O2
-march=i586 -mcpu=i686 -fmessage-length=0 -Wall -fPIC
-DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT
-I/usr/lib/qt3/mkspecs/default -I. -I/usr/include
-I/usr/lib/qt3/include -I.ui/ -I. -I.moc/ -o
.obj/depanform.o .ui/depanform.cpp
/usr/lib/qt3/bin/moc .ui/depanform.h -o
.moc/moc_depanform.cpp
g++ -c -pipe -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -Wall -fPIC -Wall -W -O2
-march=i586 -mcpu=i686 -fmessage-length=0 -Wall -fPIC
-DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT
-I/usr/lib/qt3/mkspecs/default -I. -I/usr/include
-I/usr/lib/qt3/include -I.ui/ -I. -I.moc/ -o
.obj/moc_depanform.o .moc/moc_depanform.cpp
g++ -o book .obj/main.o .obj/depanform.o
.obj/moc_depanform.o -L/usr/lib/ -L/usr/lib/qt3/lib/
-L/usr/X11R6/lib/ -lqt -lXext -lX11 -lm
patrixlinux@patrix:~/arsip/proyek/qt/book> ls
Makefile book book.db book.pro depanform.ui
depanform.ui~ main.cpp
patrixlinux@patrix:~/arsip/proyek/qt/book> ./book
QSqlCursor::setName: unable to build record, does
'author' exist?
QSqlRecord::field: index out of range: 0
QSqlRecord::position: unable to find field forename
QSqlRecord::field: index out of range: -1
QSqlRecord::field: index out of range: 1
QSqlRecord::position: unable to find field surname
QSqlRecord::field: index out of range: -1
patrixlinux@patrix:~/arsip/proyek/qt/book> cat
main.cpp
#include <qapplication.h>
#include "depanform.h"
int main( int argc, char ** argv )
{
QApplication a( argc, argv );
depanForm w;
w.show();
a.connect( &a, SIGNAL( lastWindowClosed() ), &a,
SLOT( quit() ) );
return a.exec();
}
patrixlinux@patrix:~/arsip/proyek/qt/book> cat
book.pro
unix {
UI_DIR = .ui
MOC_DIR = .moc
OBJECTS_DIR = .obj
}
TEMPLATE = app
LANGUAGE = C++
CONFIG += qt warn_on release
SOURCES += main.cpp
FORMS = depanform.ui
DBFILE = book.db
patrixlinux@patrix:~/arsip/proyek/qt/book> cat
depanform.ui
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>depanForm</class>
<widget class="QDialog">
<property name="name">
<cstring>depanForm</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>600</width>
<height>480</height>
</rect>
</property>
<property name="caption">
<string>Halaman depan</string>
</property>
<widget class="QDataTable">
<column>
<property name="text">
<string>Forename</string>
</property>
<property name="field">
<string>forename</string>
</property>
</column>
<column>
<property name="text">
<string>Surname</string>
</property>
<property name="field">
<string>surname</string>
</property>
</column>
<property name="name">
<cstring>dataTable1</cstring>
</property>
<property name="geometry">
<rect>
<x>90</x>
<y>20</y>
<width>390</width>
<height>220</height>
</rect>
</property>
<property name="sorting">
<bool>true</bool>
</property>
<property name="confirmDelete">
<bool>true</bool>
</property>
<property name="database" stdset="0">
<stringlist>
<string>(default)</string>
<string>author</string>
</stringlist>
</property>
</widget>
</widget>
<pixmapinproject/>
<layoutdefaults spacing="6" margin="11"/>
</UI>
patrixlinux@patrix:~/arsip/proyek/qt/book> cat book.db
<!DOCTYPE DB><DB version="1.0">
<connection>
<property name="name">
<string>(default)</string>
</property>
<property name="driver">
<string>QMYSQL3</string>
</property>
<property name="database">
<string>book</string>
</property>
<property name="username">
<string>root</string>
</property>
<property name="hostname">
<string>192.168.23.21</string>
</property>
<property name="port">
<string>-1</string>
</property>
<table>
<property name="name">
<string>author</string>
</property>
<field>
<property name="name">
<string>id</string>
</property>
</field>
<field>
<property name="name">
<string>forename</string>
</property>
</field>
<field>
<property name="name">
<string>surname</string>
</property>
</field>
</table>
<table>
<property name="name">
<string>book</string>
</property>
<field>
<property name="name">
<string>id</string>
</property>
</field>
<field>
<property name="name">
<string>title</string>
</property>
</field>
<field>
<property name="name">
<string>price</string>
</property>
</field>
<field>
<property name="name">
<string>authorid</string>
</property>
</field>
<field>
<property name="name">
<string>notes</string>
</property>
</field>
</table>
<table>
<property name="name">
<string>sequence</string>
</property>
<field>
<property name="name">
<string>tablename</string>
</property>
</field>
<field>
<property name="name">
<string>sequence</string>
</property>
</field>
</table>
</connection>
</DB>
patrixlinux@patrix:~/arsip/proyek/qt/book>
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
Dear my friends...
I want to develop a database application with qt and
MySQL. I begin from a very simple application, only
selecting (query : select * from book) a table.
Compiling succeeded. But if I executed the compiled
program, I found this error message:
"
Error occurred while accessing the database
".
I have made the connection successfully with "Project
<< Database connection". And no problem while I am
trying to "Connect".
Please tell me where my mistake.
Thank you very much in advance.
For detail information, here is what I've done as
below:
prabu@susefujitsu:/usr/lib/qt3/bin> ./qmake -o
/home/prabu/arsip/coba-2x/qt/2/Makefile
/home/prabu/arsip/coba-2x/qt/2/hello.pro
prabu@susefujitsu:~/arsip/coba-2x/qt/2> make
/usr/lib/qt3/bin/uic depan.ui -o .ui/depan.h
g++ -c -pipe -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -fPIC -DNO_DEBUG -Wall -W -O2
-march=i586 -mcpu=i686 -fmessage-length=0 -fPIC
-DNO_DEBUG -DQT_NO_DEBUG
-I/usr/lib/qt3/mkspecs/default -I. -I/usr/include
-I/usr/lib/qt3/include -I.ui/ -I.moc/ -o .obj/main.o
main.cpp
/usr/lib/qt3/bin/uic depan.ui -i depan.h -o
.ui/depan.cpp
g++ -c -pipe -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -fPIC -DNO_DEBUG -Wall -W -O2
-march=i586 -mcpu=i686 -fmessage-length=0 -fPIC
-DNO_DEBUG -DQT_NO_DEBUG
-I/usr/lib/qt3/mkspecs/default -I. -I/usr/include
-I/usr/lib/qt3/include -I.ui/ -I.moc/ -o .obj/depan.o
.ui/depan.cpp
/usr/lib/qt3/bin/moc .ui/depan.h -o .moc/moc_depan.cpp
g++ -c -pipe -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -fPIC -DNO_DEBUG -Wall -W -O2
-march=i586 -mcpu=i686 -fmessage-length=0 -fPIC
-DNO_DEBUG -DQT_NO_DEBUG
-I/usr/lib/qt3/mkspecs/default -I. -I/usr/include
-I/usr/lib/qt3/include -I.ui/ -I.moc/ -o
.obj/moc_depan.o .moc/moc_depan.cpp
g++ -o hello .obj/main.o .obj/depan.o
.obj/moc_depan.o -L/usr/lib/ -L/usr/lib/qt3/lib/
-L/usr/X11R6/lib/ -lqt -lXext -lX11 -lm
prabu@susefujitsu:~/arsip/coba-2x/qt/2> ./hello
QSqlCursor::setName: unable to build record, does
'author' exist?
QSqlRecord::field: index out of range: 0
QSqlRecord::position: unable to find field forename
QSqlRecord::field: index out of range: -1
QSqlRecord::field: index out of range: 1
QSqlRecord::position: unable to find field surname
QSqlRecord::field: index out of range: -1
prabu@susefujitsu:~/arsip/coba-2x/qt/2>
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
Dear my friends...
I tried to develop an application with qt. As the
beginning I try to make a very simple application with
qt. just display a form contain a label "Hello Qt".
But I have problem in compiling as below:
patrixlinux@patrix:~/arsip/proyek/metric> ls
conversionform.ui main.cpp metric.pro
patrixlinux@patrix:~/arsip/proyek/metric> qmake -o
Makefile metric.pro
patrixlinux@patrix:~/arsip/proyek/metric> ls
Makefile conversionform.ui main.cpp metric.pro
patrixlinux@patrix:~/arsip/proyek/metric> make
g++ -c -pipe -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -Wall -fPIC -Wall -W -O2
-march=i586 -mcpu=i686 -fmessage-length=0 -Wall -fPIC
-DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT
-I/usr/lib/qt3/mkspecs/default -I. -I/usr/include
-I/usr/lib/qt3/include -I.ui/ -I. -I.moc/ -o
.obj/main.o main.cpp
main.cpp:2:22: unnamed1.h: No such file or directory
main.cpp: In function `int main(int, char**)':
main.cpp:7: error: `conversionForm' undeclared (first
use this function)
main.cpp:7: error: (Each undeclared identifier is
reported only once for each function it appears in.)
main.cpp:7: error: syntax error before `;' token
main.cpp:8: error: `w' undeclared (first use this
function)
make: *** [.obj/main.o] Error 1
patrixlinux@patrix:~/arsip/proyek/metric>
My program only contents 1 form (conversionForm) with
1 textLabel.
too poor that I have not understood where I should
define the init (of constructor) and destroy (of
destructor).
In project view, I found "conversionform.ui.h" and
thist texts as below :
"
/****************************************************************************
** ui.h extension file, included from the
uic-generated form implementation.
**
** If you wish to add, delete or rename functions or
slots use
** Qt Designer which will update this file, preserving
your code. Create an
** init() function in place of a constructor, and a
destroy() function in
** place of a destructor.
*****************************************************************************/
"
I tried to see the help of qt but I didn't find a
brief explanation about where I can make init() from
qt designer.
Please help me, teach me please..... I am an idiot
computer freak but I strong willing to learn.
Thank you very much for your generousity.
__________________________________
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/
Dear my friends...
I have a new machine for development server.
This machine has SuSE 9.1 and Apache 2.
I want to install PHP4 for Apache 2 on this machine
(apache2-mod_php4).
I have installed the package "apache2-mod_php4) with
YaST2. I restarted the apache2 but I didn't see php
module being loaded.
Here is what on my machine:
"
patrix:/localhome/patrixlinux # rcapache2 restart
Syntax OK
Shutting down httpd2 (waiting for all children to
terminate) done
Starting httpd2 (prefork)
done
patrix:/localhome/patrixlinux #
"
Please tell me what should I do to install php module
on my Apache 2 server.
Thank you very much.
__________________________________
Do you Yahoo!?
Yahoo! Domains � Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer
Hello,
I have just spend the last few hours researching on both the list archives and using google without much success.
I am looking at moving a project from a real-time (sort of) version of Windows NT to run under SuSE Linux 9.1.
>From the OS perspective everything looks good, however one small subject is messing me up. Most of the
code is written in C, compiled under C++ and it is our intention to rewrite to OO type C++. And while this also
is pretty straight forward we are stumbling on a small problem. Most of the time the system runs with little input
from the users, however there are quite a few setup screens that need to be on terminal type screens. We are using
QT for the more complex setup screens but need to use Ncurses for the runtime stuff. Has anyone had an experience using
Ncurses in a C++ class type programming?
I have found quite a few wrappers and such but all seem to have been dropped around late 2000 or in one case 2003.
What are people actually using for this type of development?
Would appreciate any help you could give and if you have a better suggestion would appreciate that as well.
Thanks for your time,
Charley
hi,
Could anybody know the difference between suse
enterprise server 8 and redhat advanced server 3 (or
2.1) in the aspect of glibc/gcc library? Could this
difference made some .so files run smoothly on redhat
but failed on suse? How could we solve such kind of
problem?
Thanks.
Regards,
__________________________________
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/
Dear SuSE Programmers,
I am trying to compile the Bulk Synchronous Parallel lib (BSPlib for
short), which you can download from
http://www.bsp-worldwide.org/implmnts/oxtool/
on SuSE version 9.1, but the compilation aborts with a somewhat strange
error with the MSG_WAITALL declaration on the /usr/include/bits/socket.h
at line 194. Here is the complete error log:
In file included from /usr/include/sys/socket.h:35,
from ../library_now/bsploadfuns.h:31,
from bsploadfuns.c:20:
/usr/include/bits/socket.h:194: error: parse error before numeric constant
bsploadfuns.c: In function `lookup_remote_load_recv':
bsploadfuns.c:124: error: `MSG_WAITALL' undeclared (first use in this
function)
bsploadfuns.c:124: error: (Each undeclared identifier is reported only
once
bsploadfuns.c:124: error: for each function it appears in.)
bsploadfuns.c: In function `bspnow_isin_topp_globalload':
bsploadfuns.c:698: error: `MSG_WAITALL' undeclared (first use in this
function)
I looked at the /usr/include/bits/socket.h on all my Linux boxes (with Red
Hat, SuSE and Debian) and they look the same.
Help will be appreciated.
--
Kennie J. Cruz Gutierrez, System Administrator
Department of Electrical and Computer Engineering
University of Puerto Rico, Mayaguez Campus
Work Phone: (787) 832-4040 x 3798
Email: Kennie.Cruz(a)ece.uprm.edu
Web: http://ece.uprm.edu/~kennie/
[2004-05-14/18:01]
Black holes are created when God divides by zero!
Dear my friends.
I am new in Qt Designer.
Anybody would be so nice to tell me how to launch the
property editor? I close the property editor by
clicking the "x" sign of its window.
Thanks.
__________________________________
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861