Programming :: Kernel GRAPHICS APIs And Code Description?
Feb 17, 2011I have been googling all day looking for APIs exposed by the linux kernel for graphics n i haven found any information anywhere.
View 5 RepliesI have been googling all day looking for APIs exposed by the linux kernel for graphics n i haven found any information anywhere.
View 5 RepliesI am writing a C program which is contains Mysql header files and APIs but it can not compile it and its error is : Quote: undefined reference to
to all of Mysql APIs that I included their headers .In command line I compile my source like this with no problem: Quote: gcc test.c -Wall -o test -lz `mysql_config --cflags --include --libs`
I think code block does not have bold italic part of this command. How can I add this to code block to compile my project or those project that contains Mysql APIs (just my project not all of defined projects that has no relation to mysql APIs)with this gcc flags.
I am writing a C program which is contains Mysql header files and APIs but it can not compile it and its error is :
Quote:
undefined reference to
to all of Mysql APIs that I included their headers .In command line I compile my source like this with no problem:
Quote:
gcc test.c -Wall -o test -lz `mysql_config --cflags --include --libs`
I think code block does not have bold italic part of this command. How can I add this to code block to compile my project or those project that contains Mysql APIs (just my project not all of defined projects that has no relation to mysql APIs)with this gcc flags.
i want to run this code
[code]...
i have error in graphics. i have C++ 2005
I decided, as a project of mine, to create a small computer that could link up to a small display. Because the computer is very low-powered, guess what OS I decided to use? Linux... Ubuntu to be specific.Anyway, I come from using Xcode on OSX (very user-friendly compiler) and some tools for GUI and scripting development. That's where the problem comes in.I know C++, but I do not know how specifically Linux handles programming. I have the GCC compiler installed, and I know the terminal command to compile, but I have a few questions:
1. How do I link to different APIs (like OpenGL)
2. When I compile multiple files, do I compile the main .cpp/.cc file? Or is there a project file I use.
3. Is there a way to make GUIs easily in Linux? I was looking at the 'QT 4' tools.
4. What do the 'QT 4' tools do specifically?
5. Any good IDE? I am using 'Kate' at the moment, but I am not sure how it compares to other programs.
6. Any other tips? Pitfalls to watch out for? Hints to program quicker? Other software I could use?
In particular i'd like to know where is the kernel source code in slackware 13.
View 2 Replies View RelatedI want to edit linux kernel source code in MS Visual Studio. I saw the code and these are c files but there is no project file that i open it and whole project opens up. I can open each individual file but not the whole project.
View 13 Replies View RelatedI am unable to find a description of alsa's programing language, this sort of stuff:
[Code]...
I need to know what, for example, 'ttable' means and what is its syntax. This seems to be a state secret.
How can I know what number descriptor is used by my usb device indicate via libusb_device_handle structure ? I can't find declaration of libusb_device_handle structure. I need this information to use poll() function where I need decripttion number of device.
View 1 Replies View RelatedHow can I know what number descriptor is used by my usb device indicate via libusb_device_handle structure ? I can't find declaration of libusb_device_handle structure. I need this information to use poll() function where I need decripttion number of device.
View 4 Replies View RelatedHow to use execv from kernel space to call a user space program writtenfor socket prog.
I tried to write code for socket in kernel but its not working.
Socket code in kernel is also needed.
I need to rewrite the selenium java code into its equivalent php code.
View 5 Replies View RelatedIt sounds like he's making a difference between the kernel "source code" and the kernel itself(as in the downloaded file/ files) but the way he talks about both is the same.So then, if one had already "installed" the "kernel sources code," why would he need the "tarball with the newest Linux kernel?" He's already "installed" a kernel, right?
View 3 Replies View RelatedCurrently looking C / C++ libraries (or an API or SDK) that will access SMTP, IMAP, POP3 to work under Linux.
Does such an animal exist? I have googled and have seen *many* things for Windows but nothing for Linux.
I have lot of problems installing red5 video server, on my VPS.First things first, here is the specs of my VPS:
OS: CENTOS 5.4 i686 virtuozzo on server
Administration: cPanel 11.25.0-S43473 - WHM 11.25.0 - X 3.9
Mysql: 5.0.89-community
PHP: 5.2.10
Apache 2.2.11
Saying that, I will try to explain my problem as detailed as possible:I try to install red5 video server, following the tutorials and guides to do that, but there are some prerequisites to fulfill before installing the program:
Prerequisite No.1.: Having the latest version of Apache ANT.
Prerequisite No.2: Having the latest Java devel version.
The server already got the Apache ANT 1.6, but red5 asks for 1.8 The server already got java 1.5 but red5 asks for 1.6 So, I try to update to ANT 1.8 and Java 1.6, but refuses to update, so I made a clean installation of both, doing this:[URL]
JAVA:
# yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel
Then I install Apache ANT doing this:
# cd /usr/src
# wget http://opensource.become.com/apache/...8.0-bin.tar.gz
# tar zxvf apache-ant-1.8.0-bin.tar.gz
# mv apache-ant-1.8.0 /usr/local/ant
[code]....
Then, when I execute the command: ant -version to find out which version is running, I get more errors:
root@server [~]# ant -version
/usr/bin/build-classpath: error: Could not find xml-commons-apis Java extension for this JVM
/usr/bin/build-classpath: error: Some specified jars were not found
[code]...
Also, the VPS is not resolving the domains properly, prior to this, the domains were fine, but after that, I need to do a gracefull reboot, and then restart the named service.
1.- How can I undo all the things I did, I mean, is it a way to uninstall the APACHE ANT 1.6.5 and then the 1.8 and Java 1.6, and then start from the beginning?
2.- After uninstalling these 3 apps, I need to reinstall it properly, and make red5 work on the server, so, how can I do it safely?
A mistake I did, was to not to backup the server prior to make the changes, and is a production VPS on a shared server with the vpsnext.com hosting provider.I speak with the technical support, and they are not be able to help me, because is an unmanaged server.
One more strange thing is that, I already install red5, with ANT and JAVA in another server, with the same specs of this VPS, from another hosting provider, and I had no problems at all.
I am looking at the kernel code (just out of interest). What would be the first piece of code the kernel executes when the machine boots?
View 1 Replies View RelatedI was trying to install VPN client for my Ubuntu 9.10 64-bit. During the installation process the terminal reads:
"Directory containing linux kernel source code [/lib/modules/2.6.31-21-generic/build]"
On that I pressed enter for the default option (in bold). After a few more steps I reached the following error:
Making module
sh: Can't open ./driver_build.sh
Failed to make module "cisco_ipsec.ko".
[/lib/modules/2.6.31-21-generic/build] is the location where the installer expects the kernel source to be (I am guessing). So unless I correct the terminal (by providing the location of the kernel source), I think I will keep on getting the same error message.
So to get the kernel source I visited: [URL]From there I copy pasted the command:
sudo apt-get build-dep --no-install-recommends linux-image-$(uname -r)
apt-get source linux-image-$(uname -r)
Everything went fine, but even now I don't know if at all I have a kernel source and where it exists on my machine.
I want to modify the source code of the kernel so that the new compiled kernel should disable USB ports.
View 4 Replies View RelatedI need to download a latest kernel for my fedora ..and reconfigure it with some options.
Where can i download latest fedora kernel source code from ..
Want to know where the source code of Linux is located
View 2 Replies View Relatedwhere can i find linux kernel source code?
View 4 Replies View RelatedWhile travrsing through linux kernel and uboot source code and booting process tutorials...I found some contradictory facts...What I have read is... uboot is responsible for creating an environment where linux can run and it also does some task to up the peripherals...I found the same thing in kernel code...Why is it so? (Say if uboot is already initializing gig port and devices then why does kenel do it again?)
View 1 Replies View RelatedI have recently updated my ubuntu kernel to version 2.6.35-25 and its seems that broke my graphics. On login i cant see anything but some messy graphics. tryed to login with the old kernel and everything seems to work fine and also it works ok with the fglrx. The conflict seems to be beween the ATI open source drivers and the new kernel
View 6 Replies View RelatedWhen 10.10 was released, like so many others, I patiently waited until NVIDIA released a compatible 96 driver. It worked great for a while until I updated to kernel 2.6.35-24. I learned that kernel was messed up in many ways, so I continued to boot in 2.6.35-23 until 2.6.35-25 was released. It promises to be more stable, but I still get no graphics when I boot with 2.6.35-25 - just a text interface.
Are there known incompatibility issues with NVIDIA 96 cards and kernel 2.6.35-25 not addressed by the November 2010 driver release? Or do I just need to re-configure my system in some way?
An error occured when I install my r8101 dirver. I have got the message:
/home/driver/r8101/src/r8101_n.c:1: error: code model 'kernel' not supported in the 32 bit mode
/home/driver/r8101/src/r8101_n.c:1: sorry, unimplemented: 64-bit mode not compiled in
make[3]: *** [/home/driver/r8101/src/r8101_n.o] Error 1
[Code]......
I've been away from computers/Linux for a while so I'm not up on the unix wrangling anymore. So what happened is I started yum extender and it wanted to update. Fine. I let it. I then notice a new kernel is going in so I decide to reboot. I notice different graphics behavior, then I go into my KDE and the graphics are hosed -- as they were when I tried Kubuntu 9.10, which made me come back to my old favorite Fedora. I freak, calm down, reboot (I don't get the old grub? screen offering me kernel boot choices, it just goes into its "ribbon run" at the bottom of the screen) and go into Gnome. Okay, Gnome works -- but no network, i.e., no eth0, i.e., no Internet to come whining to y'all. I then grab the live install disk, get Internet back -- but I don't know how to access the drive or make any changes!
I cry, dry my eyes, try rebooting and banging like a monkey on the keyboard during startup to see if I can get some sort of rescue mode or grub kernel choice list. Yes! After fifth reboot a random pawing of the F keys produces a grub list, I choose 2.6.31.6-145.fc12.i686 and get back to my previous functionality: KDE and Internet work. Culprit is no doubt 2.6.31.6-162.fc12.i686. I would therefore like to know how to boot to the grub manager and get a choice list of kernels to boot
I was reading the latest openSUSE news #140 under the kernel information and I found something I felt anyone interested in the future of Graphics Support in the kernel should read. It was very interesting for me to read and so maybe the same for you.
Kernel Log: Coming in 2.6.36 (Part 1) - Graphics - The H Open Source: News and Features
Thats it in a nutshell. and I don't mean the boot splash graphics, I mean desktop graphics! As in upon boot ubuntu goes in "low-graphics" mode. I have had this issue all the time with Lucid and never really found a good fix. With Karmic this was never an issue.As a final fix I tried to reinstall lucid and updated the live CD doing that too. First it worked fine, but after kernel update I downloaded yesterday (with update manager) I have had this "low graphics" issue again.
With Graphics card, I have nVidia GeForce 220 GT. The drivers are up to date, active, and in use. (according to the "hardware drivers" tool.
How do I force recompilation of the kernel .deb packages. After a small change I make to the sources without having to clean the sources and recompile the whole kernel again?
Code: Select all$ fakeroot make -f debian/rules.gen setup_i386_none_686
$ fakeroot make -f debian/rules.gen binary-arch_i386_none_686 binary-indep
Calling the second command again does not recompile the modified code, just recreates the .deb packages.
If I use:
Code: Select all$ make -f debian/rules clean before the build command, then it will recompile everything which takes ages.
How can I force recompilation of the files/objects I changed (and dependencies)?
I use this guide: [URL] .... ('Building only a single kernel variant' section)
I am a little optimistic now after my problem of wifi was solved by stoat that presisted for about a year, now i am trying to install my vpn client. he asks me to write the path of kernel source code directory : and i answer by:/lib/modules/2.6.26.8-57.fc8/build/
But he answers no such directory or file and i dont know why
The build is covered by a red box when displayed by a terminal so can any body tells me where i can find my kernel source directory or i should install them, how