Ubuntu :: Cannot Compile GTK Code After Update To Natty
May 14, 2011
After updating to natty I cannot compile any Gtk+ code, no matter what I do I get linker errors. This is not a problem with the way I'm building it, I'm familiar with the correct usage of pkg-config.
Even this code will fail to link:
Code:
#include <gtk/gtk.h>
int main(int argc, char** argv) {
gkt_init(&argc, &argv);
gtk_main(); }
(Compiled with the standard commands to compile Gtk+ stuff)
I always get the following output:
Code:
/usr/lib/libgtk-x11-2.0.so: undefined reference to `g_source_get_time'
/usr/lib/libgtk-x11-2.0.so: undefined reference to `g_get_monotonic_time'
/usr/lib/libgdk_pixbuf-2.0.so: undefined reference to `g_simple_async_result_take_error'
/usr/lib/libgdk-x11-2.0.so: undefined reference to `g_slist_free_full'
View 2 Replies
ADVERTISEMENT
Jul 24, 2009
I downloaded wine from a windows laptop, but because you have to have a computer running Linux to download it as a .deb package, I had to download the source code as a tar. bz2.
Does anyone know how I compile it and make it executable?
View 6 Replies
View Related
May 7, 2010
I'm trying to compile some code [URL], which uses Glib. I have the libglib2.0-dev package installed, but running ./configure reports that Glib is not installed. Is the autoconfig script wrong or out of date, or do I need something else installed?
View 1 Replies
View Related
Apr 26, 2011
how to compile java code on ubuntu linux? also is it possible to incorporate C code in Java GUI?
View 1 Replies
View Related
Feb 7, 2010
Recently I was trying to use Gentoo, and I was really impressed of how it is faster than Ubuntu in running applications, specially when I build wine and was able to run Oblivion at a reasonable speed. I would like to know if there is a way to compile Ubuntu from source code, to optimize it to my hardware.
View 2 Replies
View Related
Mar 30, 2011
I am trying to install a DR rootkit into ubuntu for an assignment, im using vm ware but can only get as far as extracting the rootkit and not being able to compile the source code.. when i use the ./configure command it says there is no such file or directory and when i use the make command it keeps getting errors.
View 2 Replies
View Related
Jul 14, 2010
I do a lot of programming and I have to compile the code quite often. It's not convenient to move to the directory that contains the source code every time I want to compile it. So is there a way to compile a code from the my current directory (say /home example) without moving to the directory that contains the source. I remember being able to do this but forgotten how.
EDIT: I'm using makefiles to compile. Lets say I'm in the home directory and when I type
make -f /code/make_file
this doesn't seem to work
View 4 Replies
View Related
Jan 26, 2011
i try to compile a c code which uses SSH library,but i get this error
Code:
libssh.h: No such file or directory
i searched and i found that This happens if a library used for linking is not present in the standard library directories used by gcc.
By default, gcc searches the following directories for header files:
/usr/local/include/
/usr/include/
and the following directories for libraries:
/usr/local/lib/
/usr/lib/
i update my libssh from libssh-0.4.2-1.fc13.i686 to libssh-0.4.6-1.fc13.i686, and there are files called libssh.so.4 and libssh.so.4.0.2 in /ur/lib, but i still can't compile it with this command:
gcc test.c
View 3 Replies
View Related
Feb 13, 2011
I am unable to compile C++ program in terminal. Whenever I try to add "#include<iostream.h>" it shows an error and thats why I can not use "cout" and "cin" functions. I installed g++ for this but the problem persists.
View 4 Replies
View Related
Nov 17, 2009
I have legacy fortran 77 code that used to compile seamlessly using g77 on an old machine. I've tried to recompile it on a new machine (old one is dead) using the original makefile, but the linker fails under g77, while there are persisting syntax errors using gfortran. I have two source files readmixed.f and subroutines.f. Under g77 the object files are produced using
Quote:
$ f77 -c readmixed.f -o readmixed.o
$ f77 -c subroutines.f -o subroutines.o
but the linking fails with
Quote:
$ f77 readmixed.o subroutines.o -o readmixed
subroutines.o(.text+0x0): In function `norm1_':
: multiple definition of `norm1_'
readmixed.o(.text+0x3987): first defined here
[code].....
View 2 Replies
View Related
Jan 16, 2010
I'm trying to write a helper for the mount utility (mount.truecrypt) and there are some things in the util-linux-ng package that would be helpful. For example, in fstab.c, there is a lock_mtab() function. I want to be able to do something like:
Code:
#include "fstab.h"
int main(int argc, char *argv[])
{
lock_mtab();
[code]....
But I don't know how to compile it. I was trying (naively) something like:
Code:
$ gcc mount.truecrypt.c fstab.c -o mount.truecrypt
But I guess the problem is fstab needs a whole bunch of other stuff. Should I just build the entire util-linux-ng package and then use the output somehow? If anyone is interested in mount.truecrypt (to be compatible with mount and /etc/fstab) you might be interested in giving me a little bit of guidance. I've got enough code to build the actual truecrypt command thus far. In fact, it's useable, but not robust (ie, doesn't lock the mtab, etc). You can browse the source for util-linux-ng here: [URL] and download a tagged release here:[URL]
View 5 Replies
View Related
Jun 8, 2011
Update Manager is inviting me to update from my Maverick Meerkat to Natty. Is this a good idea?
View 7 Replies
View Related
Feb 2, 2010
Where do I find the linux-source package and the linux-headers package? Are they on the CD that I can copy to /usr/src (is that the right place...)? Or do I need to download them from the old-releases.ubuntu.com site?
The issue now is that the nVidia installer from their website wants the source code to build the right packages for this machine, however, I do not have the src directory with the source code that it is looking for. Is there some way to give this too it now?
I am running Mythbuntu 7.10
View 2 Replies
View Related
Mar 13, 2011
I've created a GUI for my voip software wherein i'm using the source code of linphone 3.3.2 for video and all protcol stuffs . It is like i've got my own gtk GUI instead of the linphone's glade . Hope you get the picture of what i'm doing . I would like to know how to compile the source code since because i do not know about make files and stuffs . Kindly help me solve this .
View 2 Replies
View Related
Jun 28, 2010
I've taken the source code for Zlib1.2.3, built and installed in a 64 Bit linux machine. Then when i downloaded Python 2.5.4 source and tried to build(make), i got the following error
gcc -pthread -shared build/temp.linux-x86_64-2.5/opt/cinecert/Python-2.5.4/Modules/zlibmodule.o -L/usr/local/lib -lz -o build/lib.linux-x86_64-2.5/zlib.so /usr/bin/ld: /usr/local/lib/libz.a(adler32.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libz.a: could not read symbols: Bad value collect2: ld returned 1 exit status
View 3 Replies
View Related
Jun 21, 2010
how to compile assembly code in linux? I am using AMD processor code instructions...is that amd registers inbuilt? with what file extension i should give while writing assembly code program?
View 14 Replies
View Related
Dec 25, 2010
Can anyone tell me what GNUSTep packages do i need to install to compile objective c code ?
Code:
gnustep-back.i686 0.18.0-4.fc14 fedora
gnustep-base.i686 1.20.1-2.fc14 fedora
gnustep-base-devel.i686 1.20.1-2.fc14 fedora
gnustep-base-doc.noarch 1.20.1-2.fc14 fedora
gnustep-examples.i686 1.3.0-3.fc14.1 updates
[Code]...
View 1 Replies
View Related
Mar 4, 2010
I've been trying to work out a way to stop chunks of code being compiled using a variable in my makefile but can't work it out. What I mean is for example in my code I might have.
/****output comms portdata********/
printf("
debug comms port %d",ReadPort("ttys1);
I only wish this code to be compiled when I'm debugging. What I've tried is using #ifdef with
#ifdef COMM_PORT_DEBUG
printf("
debug comms port %d",ReadPort("ttys1);
#endif
Then in my make file I set COMM_PORT_DEBUG to 1 so
DEBUG_DEFS = COMM_PORT_DEBUG=1
I then thought I could put it into my in my link line
all: $(CC) $(CPFLAGS) $(DEBUG_DEFS) $(INC_PATHS) $(SOURCE) -o $(PROGRAM) $(LIB_DIRS) $(GAME_LIBS)
but this gives a
gcc: COMM_PORT_DEBUG=1: No such file or directory
is there a way to do this sort of thing? Or am I barking up the wrong tree?
View 1 Replies
View Related
Apr 17, 2011
I am trying to build the java gnome gtk+ bindings on open suse and ran into a snag. the libcairo2-dev package is not apart of pensuse - how ever it is apart of ubuntu and the debian launchpad. can i install other distros repos to solve this issue? actually no i cant. how to install this package? zypper install libcairo2-dev comes back as not found.
View 9 Replies
View Related
Dec 11, 2010
I actually thought there was something wrong with my programming skills.ut after I compiled the same code using Visual Studio, it worked. So here's the code that doesn't seem to be working right with gcc compilers, but they do compile. Note I'm using the Cygwin 3.4.4 version of gcc and 4.5.1 version of gcc from MinGW.
Code: #include <stdio.h>
#include <math.h>
int main()
[code]...
View 5 Replies
View Related
Jan 27, 2009
I want to Install my Razer Deathadder on Suse 11.1, I allready found a programm: bu3sch.de The problem is, I cant compile the code. I cd into the folder with the source and use make (as root) and get this error:
[Code]....
View 9 Replies
View Related
Dec 13, 2010
I want to use eclipse to compile and debug source code on ns-2 simulator.
1.how can i configure the parameter on eclipse.
2.how can i compile the source code *.cc
View 3 Replies
View Related
Dec 29, 2010
/tmp/cctiuwxL.s: Assembler messages:
/tmp/cctiuwxL.s:3534: Error: unknown opcode
/tmp/cctiuwxL.s:3534: Error: unknown opcode
/tmp/cctiuwxL.s:3602: Error: unknown opcode
[code]....
This is the make step error./tmp/cctiuwxL.s is the make temporary dirictory which is distroyed after the make process finises . The problem is how can I hold the /tmp/cctiuwxL.s dirictory .Then I can check it and find out the proiblem.
View 1 Replies
View Related
May 16, 2011
How do I update Empathy on Natty to it's latest version? I've been having trouble to figure it out.. The version that comes on Ubuntu 11.04 doesn't even have an icon that tells me which contacts are on mobile.
View 8 Replies
View Related
Apr 15, 2011
I recently updated from ubntu 10.10 to 11.04. (64bit). Now my Kdenlive stopped working.
Terminals says:
lars@ubuntu:~$ kdenlive
Qt: Session management error: None of the authentication protocols specified are supported
kdenlive: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.
KCrash: Application 'kdenlive' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/home/lars/.kde/socket-ubuntu/kdeinit4__0
Warning: connect() failed: : No such file or directory
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi directly
Alarm clock
View 1 Replies
View Related
Jul 7, 2011
I accepted the latest Natty update about which I was notified a couple of days ago (I don't remember exactly). I don't remember a new kernel being pushed out, but for the record I'm on 2.6.38-8-generic right now. I'm trying to interact with a USB compact flash reader and I'm getting ridiculously low throughput (less than 1 MB per second). Before this latest upgrade, I don't remember this being a problem.
Better yet, does anybody know what might be wrong and what I might be able to do to fix this?
View 2 Replies
View Related
Jul 26, 2011
I have an 10.10 Maverick Ubuntu, and I've tried to update it to Natty version, but when I try it says to I check my connection with Internet and then close the update app, but my connection is fine, I think this could be something related to the host, since when I try to use sudo or play Frets on Fire it says that they "couldn't resolve the host".
View 2 Replies
View Related
Apr 28, 2011
Since I have updated last night from maverick to the latest beta of natty narwal, I'm having a lot of trouble getting Nautilus (desktop included) to work.
It seems to crash since the very start as when I turn off the computer, the message of "force exit" appears.
View 3 Replies
View Related
Apr 29, 2011
I have to manage a publicly accessible computer, and people know the password and are willing to click just anything, that pops up and has a "yes"/"ok"/"i agree" button on it, just to make the message disappear. (yes, I hate their ignorance ...) As long as they can use the net, that is all they care about...
My question is, can I still get updates for Maverick without being prompted for upgrade to Natty? Also I would like to remove the button from Update Manager. Is there a simple way to do that?
View 7 Replies
View Related
May 5, 2011
I have been trying to apt-get update and it fails :
sudo apt-get update -o Acquire::http::No-Cache=True
Ign http://dl.google.com stable InRelease
Ign http://archive.ubuntu.com natty InRelease
Ign http://extras.ubuntu.com natty InRelease
[Code]....
i am using a 64-bit machine. i have juggled between the us server, main server, and a few other servers also....still it fails.
i tried deleting everything in /var/cache/apt/archives/ ....was of no use.
View 9 Replies
View Related