General :: Compiling 32bit Programs - How To Set Arch Variable
May 21, 2011
I am new to Slackware and I am wondering how you set the ARCH variable. On the multilib wiki page it says:
"Rather than editing the script and change/remove CFLAGS definitions, you can set the ARCH to 'x86_64' and save yourself some time."
So from this I understand that they advise against editing the Slackbuild script. How do I set the ARCH variable on the command line or is it a configuration file I need to edit? I am running Slackware 13.1 64.
I have set up Eclipse + CDT on an Arch 2010.05 install. I set up an eclipse project and added SDL as a dependency (see below):
Project -> Properties * -> GCC C++ Compiler -> Preprocessor -> main=SDL_main * -> GCC C++ Linker -> Libraries -> SDLmain SDL (in that order top to bottom) * -> GCC C++ Linker -> Libraries -> Library Search Path -> /usr/lib/ (I verified that libSDL.a and libSDLmain.a are there)
This is the code I'm compiling. It's designed to just be a hello world style SDL app to see that everything is working.
I'm mainly asking beforehand so I won't have to shoot myself in the head twenty minutes from now. I suppose I'll find/figure out one way or the other anyway . Can I just source the 32dev.sh and then run sbopkg -i if the source for the package I want to create isn't 64bit capable? I might need to change the $ARCH variable to x86_64 too, right?
I am new to C programming and I need a way to compile and run my code. I've made a little research and I found that eclipse is a nice IDE. But I don't know how to configure it and generally. What do I need to download and install to make it work. I've also tried downloading easy eclipse that doesn't need any configuration or extra files but the link on the site was broken. Is there any other C IDE like easy eclipse available?
I am trying to study gtk programming and get stucked before some errors in compiling them. Iam using ubuntu 9.10 and i didnt installed any additional libraries or packages for running these gtk programs assuming gtk is already installed in ubuntu. I am newbie to gtk I tried compiling some example programs from my tutorial and it ended up in errors. So do I need any additional packages to run these programs.when compiling it shows package config cannot find any gtk+-2.0 packages and to try specifying .pc in environment path. I don't know how to set these path stuff.
I'm trying to compile programs under Solaris in my Home directory.
Ive had experience with simple installs which work with just
But with more involved programs, with dependencies on special libraries, how do I have the system look into my home directory for these? and how would I compile them into my home dir?
I am suppose to explain the dependencies that exist and each of the following lines of makefile. Lists orders to be executed as a result of running the make utility on it.
I'm trying to get my head around compiling programs, and need some things clarified. Can anyone confirm or deny my understanding so far:
1) Program is written in high level language, such as C. File(s) of the program are the 'source code'. 2) Program is then 'compiled' to turn it into low-level code that is both hardware - i.e. Intel/AMD/ARM processor specific, and also Linux distribution specific. This resulting files are called the binaries. 3) I can go from source code to installed and usable program by doing these steps: ./configure make make install
I am trying to write modular program but when I try to compile I come to know I don't have any files in /usr/src/linux. I have installed fedora 12 which has 2.6.31.5-127.fc12.i686.PAE. I am including in my code:
linux/kernel.h linux/module.h
Those are not present directory in /usr/src/linux is not present. My goal is to compile modular programs.
I've been trying to compile a small program on my 64bit Centos 5.3 but I need to compile it in 32bit mode. I've tried editing the make file and changing CC=gcc to CC='gcc -m32" and that doesn't work. I have also tried to use "make CC='gcc -m32' and that doesn't work either. It wont compile. Do I need to install something with yum to get 32bit compiler to work?
I am using bitlbee 1.0.3 with ircII for a long time since etch is released. Mainly for MSN, Jabber, Yahoo, Sametime communications. But the old version lacks MSN offline message and sametime protocol support and the yahoo protocol doesn't work at all. Does anyone successful in compiling bitlbee and libpurple in lenny 32bit?
so i've just been sitting here, compiling and running some c++ programs (with g++ from the terminal), I looked away for one minute to open a file that had just been written out (opened it with gedit if that makes a difference), now my terminal says:kbuildsyscoca4 running...so I'm wondering if anyone knows what this is about?hy it suddenly started running and why it has appeared on my terminal. I'm basically just curious as I though bash shells were entirely separate virtualizations of shells, and unrepresentative of other processes. i'm also wondering what kbuildsyscoca4 is/does (i've got gnome going on and generally gnome varieties of programs). I found a post from about a year ago mentioning the same thing, though no replies.
I am doing my project which detects and displays the error message along line number when compiling c programs under Linux. Using gcc command..cc command which we generally use. For which my program must act as a compiler and generate error messages when user program is written and compiled. My idea was to develop a shell script program using name suppose ncc that would be..
$ vi ncc.sh echo "compiling program $1" $cc MyPgm.c $.a/.out <esc> :wq Now user program pgm1.c can be compiled using $ sh ncc.sh pgm1.c
This will invoke my compiler program. But the thing is how to pass user program pgm1.c as input to my compiler program...
When I do #./pdfedit.SlackBuil I get the information in the terminal:
[Code]...
Whether we want to checking PDFedit prepare-core-dev package ... yes Whether we want to checking build PDFedit gui ... yes configure: error: QTDIR environment variable must Be Set
Code: [kuba@Kuba-fedora uget-1.8.0]$ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executable .....
Configure: error: Package requirements (libnotify) were not met: No package 'libnotify' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables LIBNOTIFY_CFLAGS and LIBNOTIFY_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. But I have the newest version of libnotify.
I tried to compile C program that uses Openssl libraries on shell but got this error. I guess libraries are not linked properly. undefined reference to SSL_library_init()
I just did the pacman -Syu command today since i have had limited access to internet i could use with arch lately, (been tethering via droid which is only compatible in ubuntu) The command line works fine, i even reinstalled X to see if that was the problem,whenever i do startx it loads up for a second but before my xfce screen even pops up the screen blinks and blackens.
I am supposed to create an environment variable with the PRINTER variable, which should resolve to the word sales. Would the command be like this?: env PRINTER - NAME=SALES (is this the command to create that variable with resolving the word sales to it?)
can i use the value of one variable to generate a name for another variable? for example i want to use the counter from a "do while" loop to name and define a variable each time the loop executes. for example
objectnames1=`ls -a` objectnames2=`ls -a` etc.
i don't have a script yet but each time through the loop i intend to cd to a particular directory and then define a variable containing a list of each object in that directory as values. for the rest of the script to work, each variable generated has to be unique, and i can't think of a good way to accomplish this.
if using a value from one variable to name another isn't possible, can anyone think of a more elegant solution? i know limited syntax but i'm willing to read up...
I am trying to alter the character position of residue numbers above 999 in a pdb file.The following script is an attempt to:1) Get all unique pdb residue numbers (in column 5) using awk and assign it to a variable i.2) Loop through all the values in $i and if it is greater than 999, shift that number one character to the right using sed.However, the script only manages to alter the final residue numberCould anyone please advise how I can loop through all values in $i and shift it one character to the right?
#!/bin/bash # Script to alter position of residue number in pdb file for resid above 999 i=$(awk '{print $5}' wt-test.pdb | uniq)
I recently moved from ubuntu to arch, upon installing it I realized it was command line based :S How can I get a GUI and make it look nice? I tried following this guide, but I dont even know what im doing.
My Arch Linux can't update for over a few weeks now! It just says that everything is up to date and quits. But I hardly believe there weren't any updates, before there were a few updates a day!
On a new Dell Lattitude e6400, I have installed both arch and Ubuntu. Ubuntu recognized wifi and ethernet right away and connected and is working fine, but in arch, I am having more problems then I usually do when using arch. From the output of lspci the ethernet is a intel device 1502, I have researched this and found it to need the e1000e module as its driver. I modprobed this module sucessfully, but no ethernet. With wlan, i have found that the card is a DW1501 Wireless-N WLAN Half-Mini Card that has a broadcom 4727 chip in it. I downloaded the windows driver for this chip and isntalled it with ndiswrapper but this did not help. What I think is the root of the problem is the error message that restarting networking creates.
Quote:
Dell only supplies drivers for ubuntu, but it should still be possible to get this to work. I have tried booting various live distros that I had drives for and I found that the parted magic boot disk saw the ethernet port and was able to connect to ethernet, and that the ubuntu live disk was able to connect to both wifi and ethernet. Somehow they must be seeing the prescense of the hardware in a way that I have not tried with arch. Please help, I really need to get this computer workign with arch.
I noticed that the clock in the FVWM taskbar displays UTC instead of my local time. And when I execute the date command, it shows the time zone as UTC. I wonder how to set it to display my local time zone?
I'm having problems loading compiz-fusion or the settings with my nvidia driver, or driver itself. Basically, I installed Arch (in vmware) then ran: pacman -Syu, pacman -S libgl xorg mesa xf86-video-vesa hal xf86-input-evdev xf86-input-mouse xf86-input-keyboard compiz-fusion alsa alsa-util nvidia I've also added a user. I'm following the wiki guide but I'm not sure where to go from here. here's the error messages:
[URL]
basically it says that my nvidia driver is incorrect or isn't configured properly. I have an Nvidia 7300gt btw, does anybody know which driver I should be using? [URL] This one should work, I'm not sure what I'm doing incorrectly. it still says $DISPLAY not set when I type startx/ccsm/fusion-icon. And alos when I run pacman -S nvidia, is it downloading version 195.36.24? [URL]
The first problem is that I cannot use the Arch repository. Every time I try to, it brings up a "no address record" error. I have configured my network interface properly and can ping www.google.com and receive a whole load of crap. Definitely working. Whats wrong?
The second problem is that the boot-up process hangs for a very long time at "Starting Network." This make my boot of Arch just as slow as *buntu! WTF? Whats wrong there? Aside from that, I am unhappy that my Ethernet card is not detected but thats another question. The only ting I am pleased with right now is the speed of the system, and the fact that I used 4 different file systems on 7 different partitions without a hitch.
Even if im logged into root I cant edit or view any files. Like if I type /etc/rc.conf in Arch it, says "permission denied" so how do I edit this file cuz I need to put gdm and dbus in my daemons