Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 20 Sep 2014, 16:20
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
[2.11] Problem compiling Qcad application
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [22 Posts]   Goto page: 1, 2 Next
Author Message
WhoDo


Joined: 11 Jul 2006
Posts: 4441
Location: Lake Macquarie NSW Australia

PostPosted: Thu 02 Nov 2006, 20:27    Post subject:  [2.11] Problem compiling Qcad application  

After the initial flush of success compiling Planner project management tool, I thought I'd burst into compiling Qcad for Puppy. Of course pride goes before a fall and this program brought me crashing back down to earth.

Here is the error result from my attempt. Any help greatly appreciated.

Back to top
View user's profile Send private message 
jcoder24


Joined: 06 May 2005
Posts: 601
Location: Barbados

PostPosted: Mon 06 Nov 2006, 12:03    Post subject:  

Google so far has only produced one result related to the exact error. However, that result wasn't very useful. Googling for the more general `long long' error indicates that you may need to use -Wno-long-long compiler switch (see here)
Last edited by jcoder24 on Mon 06 Nov 2006, 15:01; edited 1 time in total
Back to top
View user's profile Send private message 
jcoder24


Joined: 06 May 2005
Posts: 601
Location: Barbados

PostPosted: Mon 06 Nov 2006, 15:00    Post subject:  

Additional googling suggests following that you setting the "C Language Dialect" may also help.

Links
http://www.cocoabuilder.com/archive/message/xcode/2005/10/23/465
http://gcc.gnu.org/onlinedocs/gcc-3.3.1/gcc/C-Dialect-Options.html#C%20Dialect%20Options
http://gcc.gnu.org/onlinedocs/gcc-3.3.1/gcc/Warning-Options.html#Warning%20Options

To set the "C Language Dialect" you will need to run gcc with these options -std=gnu99 or std=c99 or -std=iso9899:1999

Hopefully, that's enough to get you started, I'm hoping that this can be easily done via an env variable, config file setting or something similar.
Back to top
View user's profile Send private message 
WhoDo


Joined: 11 Jul 2006
Posts: 4441
Location: Lake Macquarie NSW Australia

PostPosted: Mon 06 Nov 2006, 16:58    Post subject:  

jcoder24 wrote:

Hopefully, that's enough to get you started, I'm hoping that this can be easily done via an env variable, config file setting or something similar.

Thanks, jcoder24. I'll try your suggestions and see how it goes.

Cheers
Back to top
View user's profile Send private message 
WhoDo


Joined: 11 Jul 2006
Posts: 4441
Location: Lake Macquarie NSW Australia

PostPosted: Tue 07 Nov 2006, 09:28    Post subject: Success!  

Qcad has been compiled and uploaded to MU's server ready for inclusion on PSI.

Application requires MU's Gnome-2.14.2 and Qt-3.3.4 installed. Both are available from the PSI repositories. Gnome doesn't have to be running, just installed.

See here for screenshots:
http://www.murga.org/~puppy/viewtopic.php?t=11858&highlight=

Happy CAD drawing, guys!

Cheers
Back to top
View user's profile Send private message 
DoubleDee

Joined: 10 Jul 2007
Posts: 4

PostPosted: Tue 10 Jul 2007, 11:16    Post subject: Re: Success!  

WhoDo wrote:
Qcad has been compiled and uploaded to MU's server ready for inclusion on PSI.

Application requires MU's Gnome-2.14.2 and Qt-3.3.4 installed. Both are available from the PSI repositories. Gnome doesn't have to be running, just installed.

See here for screenshots:
http://www.murga.org/~puppy/viewtopic.php?t=11858&highlight=

Happy CAD drawing, guys!

Cheers


"Old" thread but...

Thanks , from the bottom of my slightly smallest Microsoft heart. I've wanted to try Qcad forever. I'm downloading Teenpup now, simply because it had it. (and I wanted to try puppy anyway)

Now if I can figure out which slot is for my CD I'll be off and linoxing in no time...

ps. I'll find a teenpup thread to comment on the distro/app...

Thanks again..
Back to top
View user's profile Send private message 
WhoDo


Joined: 11 Jul 2006
Posts: 4441
Location: Lake Macquarie NSW Australia

PostPosted: Tue 10 Jul 2007, 18:12    Post subject: Re: Success!  

DoubleDee wrote:
Thanks , from the bottom of my slightly smallest Microsoft heart. I've wanted to try Qcad forever. I'm downloading Teenpup now, simply because it had it. (and I wanted to try puppy anyway)

Ah, so you're the one! Wink You're welcome, DoubleDee.

Cheers

_________________
Actions speak louder than words ... and they usually work when words don't!
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
Back to top
View user's profile Send private message 
NinerSevenTango

Joined: 17 Jun 2007
Posts: 186

PostPosted: Wed 11 Jul 2007, 00:27    Post subject:  

Where are the "PSI repositories"?

Thanks,

--97T--
Back to top
View user's profile Send private message 
WhoDo


Joined: 11 Jul 2006
Posts: 4441
Location: Lake Macquarie NSW Australia

PostPosted: Wed 11 Jul 2007, 01:04    Post subject:  

NinerSevenTango wrote:
Where are the "PSI repositories"?

Thanks,

--97T--

Download Puppy Software Installer and you will have access to heaps of applications only 2 clicks away.

_________________
Actions speak louder than words ... and they usually work when words don't!
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
Back to top
View user's profile Send private message 
NinerSevenTango

Joined: 17 Jun 2007
Posts: 186

PostPosted: Wed 11 Jul 2007, 07:38    Post subject:  

Thanks, WhoDo!

I installed the nice Puppy Software Installer tool, and used it to install Gnome-2.14.2 and Qt-3.3.4. Then I used it to install QCad.

There were some complaints from the tool about missing dependencies. One that confused me (I know, it's easy) was when I installed QCad it mentioned one, but said it was found in QT-3.3.4. Why would it be listed in the missing dependencies dialog if it found it? There's a link in the dialog box to a message on this forum, but like many, it's broken.

Anyway, QCad won't start. Doesn't appear to do anything, in fact.

Here's hoping you have an idea for what to do next.

Thanks again,

--97T--
Back to top
View user's profile Send private message 
WhoDo


Joined: 11 Jul 2006
Posts: 4441
Location: Lake Macquarie NSW Australia

PostPosted: Wed 11 Jul 2007, 07:46    Post subject:  

NinerSevenTango wrote:
Here's hoping you have an idea for what to do next.

Try to run QCad from a console (terminal) and report any resulting messages here. We'll see what we can do to get it up and running for you.

Cheers.

_________________
Actions speak louder than words ... and they usually work when words don't!
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
Back to top
View user's profile Send private message 
NinerSevenTango

Joined: 17 Jun 2007
Posts: 186

PostPosted: Wed 11 Jul 2007, 08:15    Post subject:  

Thanks for your help;

"qcad: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory"

libqt-mt.so.3 exists as a symlink to libqt-mt.so.3.3.4, both of them reside at /usr/local/QT-3.3.4-in-usr-local/lib.

Is QCad expecting this file to be in some other directory?

--97T--

Edit: So I tried installing Qt-3.3.4 from the tar.gz that the software installer found. It gave instructions for uninstalling that sounded non-standard, and which of course I didn't save to a text file before restarting, so ... The dependency check said that libqt-mt.so.3 was not in the library path or list or something, but that it was part of the package, so should not be a problem. QCad still can't find it. So for some reason it didn't make the list for telling QCad where it is.

Thanks for any help you can suggest.
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6687
Location: lisbon

PostPosted: Wed 11 Jul 2007, 08:50    Post subject:  

i'm not sure i've understood your post, but the default location for library files, with puppy, is /usr/lib, so if libqt-mt.so.3 is in /usr/local/lib, just symlink libqt-mt.so.3 to /usr/lib. if it's in /usr/lib & qcad wants it in /usr/local/lib, do the reverse. if you're in the same directory as the qcad executable, (i'll assume it's called qcad), and you do ldd qcad, this will let you know what library files are missing.
Back to top
View user's profile Send private message 
NinerSevenTango

Joined: 17 Jun 2007
Posts: 186

PostPosted: Wed 11 Jul 2007, 09:32    Post subject:  

Muggins,

Thanks for your information.

libqt-mt.so.3 is not in /usr/lib or /usr/local/lib. It's at;

/usr/local/Qt-3.3.4-in-usr-local/lib/libqt-mt.so.3,
/usr/lib/qt/lib/libqt-mt.so.3,
/initrd/pup_rw/usr/local/Qt-3.3.4-in-usr-local/lib/libqt-mt.so.3, and
/initrd/pup_rw/usr/lib/qt/lib/libqt-mt.so.3

I would like to find out where Qcad expects the library to be at, but I don't know how to find the executable, and not for lack of trying to find it. If I could find it, then I assume I can do 'ldd qcad', then figure out how to make a symlink.

I did find a shell script named Qcad in /usr/local/Qcad. Here's what I got in a terminal session:

sh-3.00# cd /usr/local/Qcad
sh-3.00# ldd Qcad
/usr/bin/ldd: line 102: lddlibc4: command not found
not a dynamic executable

So obviously that's not the executable. I can't figure out how to find it.

Along the way I looked up how programs find libraries, and examined the contents of ld.so.conf in the two places I found it. The one in initrd is different from the other, but neither of them mention the paths where the library appears to be located at.

So, I've been stumped again, for now.

Thanks again,

--97T--
Back to top
View user's profile Send private message 
WhoDo


Joined: 11 Jul 2006
Posts: 4441
Location: Lake Macquarie NSW Australia

PostPosted: Wed 11 Jul 2007, 09:38    Post subject:  

NinerSevenTango wrote:
Thanks for your help;

"qcad: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory"

libqt-mt.so.3 exists as a symlink to libqt-mt.so.3.3.4, both of them reside at /usr/local/QT-3.3.4-in-usr-local/lib.

Is QCad expecting this file to be in some other directory?

Copy both libqt-mt.so.3 symlink and libqt-mt.so.3.3.4 to /usr/local/lib and see what happens. That should put the libraries in the path where the program can locate them.

Hope that helps.

_________________
Actions speak louder than words ... and they usually work when words don't!
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [22 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0831s ][ Queries: 12 (0.0078s) ][ GZIP on ]