LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-01-2004, 09:02 AM   #1
gnosis
LQ Newbie
 
Registered: Apr 2004
Posts: 2

Rep: Reputation: 0
Moving Glade app to another computer


A friend and I have been developing an application for a university project in Glade 2.0.0, and we're both running Suse 9.0. However, he sent me the entire folder created by Glade, and the app doesn't run properly on my computer: when I open the executable, I can't see the pixmaps on any window. I tried running the autogen.sh again, it runs properly, but when I type make, I got an error saying something saying that it couldn't find "/home/juanes/Proyectos/pd/src/main.c". My guess is that it was trying to find main.c on the directory where it should be on my friend's computer (juanes is his login name). So I opened each and every file in my pd folder and changed every instance of juanes for gesteves (my login name). Now when I type make, I get this:

cd . && /bin/sh /home/gesteves/Proyectos/pd/missing --run autoheader
WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
WARNING: and `config.h.top', to define templates for `config.h.in'
WARNING: is deprecated and discouraged.

WARNING: Using the third argument of `AC_DEFINE' and
WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
WARNING: `acconfig.h':

WARNING: AC_DEFINE([NEED_MAIN], 1,
WARNING: [Define if a function `main' is needed.])

WARNING: More sophisticated templates can also be produced, see the
WARNING: documentation.
touch ./config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make all-recursive
make[1]: Entering directory `/home/gesteves/Proyectos/pd'
Making all in src
make[2]: Entering directory `/home/gesteves/Proyectos/pd/src'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/gesteves/Proyectos/pd/src'
Making all in po
make[2]: Entering directory `/home/gesteves/Proyectos/pd/po'
make[2]: *** No rule to make target `POTFILES.in', needed by `POTFILES'. Stop.
make[2]: Leaving directory `/home/gesteves/Proyectos/pd/po'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/gesteves/Proyectos/pd'
make: *** [all] Error 2

And make install gives me this:

Making install in src
make[1]: Entering directory `/home/gesteves/Proyectos/pd/src'
make[2]: Entering directory `/home/gesteves/Proyectos/pd/src'
/bin/sh ../mkinstalldirs /usr/local/bin
/usr/bin/install -c video-met /usr/local/bin/video-met
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/gesteves/Proyectos/pd/src'
make[1]: Leaving directory `/home/gesteves/Proyectos/pd/src'
Making install in po
make[1]: Entering directory `/home/gesteves/Proyectos/pd/po'
make[1]: *** No rule to make target `POTFILES.in', needed by `POTFILES'. Stop.
make[1]: Leaving directory `/home/gesteves/Proyectos/pd/po'
make: *** [install-recursive] Error 1

It still creates the executable in src, but I still can't see the pixmaps (they show up on my friend's comp). I tried opening the .glade file with my glade and re-saving/re-building it, but it doesn't work either. Any suggestions? I really need help with this.
 
Old 06-03-2004, 11:33 AM   #2
Rajahuroman
Member
 
Registered: May 2004
Location: Romania; Arad
Distribution: Archlinux
Posts: 91

Rep: Reputation: 15
Hello
Try asking your friend to send you the compiled project.
I compile every project at home running Glade 2 on a Slackware machine but when I need to take it elsewhere I take my Knoppix CD and my compiled program. It is true that I can't compile my programs on Knoppix but the compiled files run. And when loading images I don't use Glade's paths but instead I add the line add_pixmap_directory("[dir name]") and load the files from there. If you only say "proj" for example then you must have a proj directory in the directory from where you run the application with all the pixmaps. It is exactly like loading images for html pages.

Good luck, I hope somebody gives you a better answer because I'd be interested too.
 
Old 06-04-2004, 05:29 PM   #3
gnosis
LQ Newbie
 
Registered: Apr 2004
Posts: 2

Original Poster
Rep: Reputation: 0
I solved it his way:

1.- I created a new gtk project in Glade with just one window and saved it, built it, and compiled it. This created all necesary folders and files.

2.- I moved all files from the src folder of my friend's folder to the new project's src folder, except the makefiles. I also moved the pixmaps folder.

3.- Recompiled the project. Worked perfectly.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
failing to compile a simple glade app florg Programming 1 08-06-2005 03:25 AM
Moving a computer macisaint Linux - Hardware 8 06-26-2005 11:57 PM
Moving linux to new computer dohanc SUSE / openSUSE 5 12-10-2004 04:23 PM
Moving data from old computer to new one? pilot1 Linux - General 11 05-10-2003 06:15 PM
moving computer chens_83 Linux - General 1 07-24-2002 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration