Software :: C++ Compiling Wx2.8.10 On 64-bit Ubuntu?
Mar 7, 2010
I went from mandriva 2009 32-bit to ubuntu 9.10 64-bit and wx begins to act up..
the simple program from the wx hello world tutorial build fine on my old system, but not my new on. I got the packages installed (wx2.8.10-dev, headers and whatnot)
I've looked around a bit and it seems the compiler is not including the files correctly..
Compiler command:
Code:
g++ k.cpp `wx-config --libs` `wx-config --cxxflags` -o morten
Compiler output sample (because most of it is because of first errors):
Code:
k.cpp:9: error: invalid use of incomplete type struct wxFrame
/usr/include/wx-2.8/wx/utils.h:50: error: forward declaration of struct wxFrame
k.cpp:12: error: ISO C++ forbids declaration of wxPoint with no type
k.cpp:12: error: expected , or ... before & token
I have tried several times, but compiling always fails.I want to compile a litte program called dwg2dxf.I think all the needed programs are installed.First I unpack the tar.gz file on my desktop. Open Terminal, enter directory, then type"./configure"Everything fine, some files are created. config.log doesnt show errors (See config.log file)."make"Some errors occurenters some directories without doing anything, thenmain.cpp:39: fatal error: iostream.h: (translation) Doesnt exist.This is the text from the terminal:
familia@familia-laptop:~/Escritorio/dwg2dxf-2.1$ make make all-recursive make[1]: se ingresa al directorio /home/familia/Escritorio/dwg2dxf-2.1
so I am wanting to compile my own kernel to see if i can get my laptop to run a lill better. I found the how too's to do the compile, but what I want to know is.. what is the most complete way to find all the hardware and such that is in my laptop so i can build all the support into the kernel that i need and leave out EVERYTHING i dont need.
i figured lspci is a start but there has to be more info somewhere to find the exact needs of the laptop.
I have a wifi card that has a generic driver through ubuntu that doesn't give it near the capabilities it has with another driver I found at another website. I compiled this driver myself and installed it, but after an update all effects of that driver seem to be gone.
I am fairly new to ubuntu. I have to compile some libraries under ubuntu in a directory other than the default directory and then get the shared object libs (.so) libs for building some custome kernels. I created a directory structure as follows:
/home/username/build-target /home/username/src-<libname> =>here are the source files for the lib. I need to compile
Now I create a directory /home/username/src-openssl and download the source code and untar it under this directory and issue ./configure --prefix=/home/username/build-target --exec-prefix=/home/username/build-target and then make and make install. I was expecting that the shared object libraries created (.so) files should have gone under /home/username/build-target/libs, however I just see only libssl.a and libcrypto.a and not .so files under the build-target/lib directory. For grep also I did the same thing as above however I don't see any lib directory created under build-target directory as I was expecting.
I am trying to compile a simple remote procedure call program. I am getting an error: /tmp/ccy0M5rT.o: In function 'main': rpchighlayer.c.text+0x5c): undefined reference to 'rnusers' collect2: ld returned 1 exit status
I am a beginner and would like to know how do you compile a program in ubuntu 9.10. I would like to compile freeorion but don't know where to start in compiling any sort of program. Any instructions would be most welcome.
Im having problems when compiling abgx360gui. I compiled the abgx360 and it work but I want to compile the gui now, because otherwise it is very difficult to use it.
And when I try to compile it, the following happens.
I would like to try and optimize my kernel a bit. Since I am doing this on a fresh install, I don't really care if the os gets bricked in the process, and I am sure I can bring it back if I can boot into a recovery console from the old kernel. So, I followed thispost. I patched it and copied and edited a config file from /boot/, saved it as .config, I tried it several times with both removing and not removing /debian and /debian.master directories from the source, yet I always get the same error when I run "make oldconfig".
Code: $ make oldconfig scripts/kconfig/conf -o arch/x86/Kconfig *** Error during writing of the kernel configuration. make[1]: *** [oldconfig] Error 1
I'm trying to compile some of the gnu utils (the version on some of the computers I work on are terribly out of date). The issue is that many machines share the same filesystem, and I'd like to not have a different executable for each machine. Anyways, I've read that
I'll try to make this short, esp because I don't know if this is the right place to discuss a 3rd party program like "Avidemux" I'm running the latest version "2.5.4" or so. It started giving me this problem where no matter what settings I give it, the resulting files are so small it results in an error after almost a day of encoding. ( "XYZ" was NOT saved correctly , for example.) One day I noticed the quantisizer was at max, peaking at 48-50...which made the files tiny. So, I can avoid this sort of, by limiting the maximum and minimum quantisizer in the configurations. Problem is, I have no control over target size or bitrate this way..and sometimes the results are still unplayable.
Naturally I've uninstalled and re-installed several times, and recompiled the x264 codecs using this guide: [URL]... So, I downloaded the Tar.gz of the previous version i was using (Avidemux 2.5.3), the last known thing I know that worked for me...but I have no idea how to install it. I've tried running "Make" / "Cmake" In which I was told that an "in-tree-build" was detected. And trying to run the included "bootStrap.sh" results in : "Permission denied" or file/command not found. I don't think their old releases come in the default Ubuntu/Unix package "deb" right?
All these could be small errors on my end, but It urks me. In between reading up, and everything else that needs to be done in a day, I could have been done by now... Does anyone know where i could be going wrong?
I'm following the instructions here, to compile OpenSceneGraph that I got on DVDs purchased from Curtis Olsen. The instruction for this step goes like this.
-- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works
I did fine with Ubuntu 9.04 for a month and then things went wrong and I could no longer compile programs though others on the same distro could so I reinstalled Ubuntu 9.04.First step is to compile wxWidgets. Before this was automatic sudo make install libgtk2.0-dev, download wxGTK from wxWidgets then compile and make wxWidgets.Now I can't even do that, I get make errors every time and as soon as I resolve one. another shows. Widgets version 2-8-10 is the same as before. Does anyone know a current address for a tutorial getting widgets to compile with Ubuntu, I don't know whether to ask you, Ubuntu or Widgets (or understand what went wrong with Ubuntu in the first place.
I want to run the development version of the game Battle for Wesnoth, but I'm having some problems compiling it...I downloaded the latest version (1.9.1) and followed the installation instructions;
cd /usr/src sudo tar -xvjf wesnoth-1.9.1.tar.bz2 cd wesnoth-1.9.1 sudo ./configure --datadir=/usr/share/games/wesnoth/
I managed to get to this point, after some small problems, but 'configure' told me I needed SDL.I installed SDL (libsdl1.2-dev) using the Software Center, but now it sais;
Code:
checking for SDL - version >= 1.2.7 and SDL_ttf - version >= 2.0.8... no configure: error: *** Please upgrade your SDL and/or SDL_ttf version
The version that was installed seems to be 1.2.14 I also looked for sdl-ttf, and that was also already installed (version 2.0.9)
I am running Ubuntu 9.04 and I would like to update the jfstools to 1.1.4. Apt-get tells me that 1.1.2 is the latest available, but there is 1.1.4 code HERE.I am not overly comfortable compiling and installing, although I have done that many times. This time, I am unsure about the installation path:Quote:
Installation Names By default, `make install' installs the package's commands under `/usr/local/bin', include files under `/usr/local/include', etc. You can specify an installation prefix other than `/usr/local' by giving
Its about CFLAGS and -O2, and options like -march=<your architecture>. There are things I am just not sure about eg - this PC has a Intel i7, which has a wealth of powerful instructions developed since 'i386', that the gcc complier might be able to compile for - if we tell it! Where are the default options kept? Even supposing one decides not to mess with Ubuntu defaults, how does one locally compile a program, optimized for the CPU, overriding the defaults? How does one even tell if the 64-bit version got installed? In my case, it was provided by others. clicking System -> About Ubuntu can be surprisingly opaque on this little detail, even though you get the chance to choose at the site.
This is my first time compiling a software, I have successfully downloaded and extracted the "basic256_0.9.6.32.tgz" file,but There is no configure file present in the extracted contents,also make and checkinstall exit with error.What seems to be the problem Here is the output of errors I got during Installation
In regards to other distribution cds: I'd like to learn how to install a 'root' and 'grub' boot loader so that I can cleanly install other distributions. I'm new to the file system. Could I make a bootable usb with simple installers? or command line codes?
so I just installed code blocks after clear installing ubuntu 64 everything went fine but when I try to compile and run my .cpp files code::blocks wont do anything I dont get any messages on the build log so I dont understand whats happening I tried looking on the forums and checking other pages such as the one bellow but no luck at all. [URL]
I tried to compile the latest VLC as the instruction of [URL]... except that giving configure option '--enable-vaapi' when compiling ffmpeg.But, i got below error messages, and don't know what to do. My system is as follows.
I just installed ubuntu 9.10 on my ibook G4 and now i am wondering: how would i compile .java files and run then in xterm? What packages would i have to install? What commands would i use to do the compiling and the running? Would i use the gcj
I'm trying to compile wxsvg-1.0.3 so that I can compile and install the latest version DVDStyler. I was following the older instructions here:[URL]... and I've run into this error. Unfortunately, I can't make sense of the error.
I'm trying to compile a "faster", more optimized kernel. It compiles ok, but can't mount the root filesystem.Here is my kernel configuration for the 2.6.33.4 kernel. My boot partition is ext4 on a two-disk FakeRAID array totaling 1TB.When trying to boot in recovery mode, it says I could mount /dev/sdaX, etc. but can't recognize my dmraid array. BTW,
I had to compile openssh so I could have a version with the HPN-SSH patch applied. The compile seems to have gone fine, but oddly enough I have now have no ssh script in my /etc/init.d directory. So I have no easy way of automatically starting openssh-server.Here are the configure options I used when compiling openssh: