LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-14-2006, 12:26 AM   #31
Micik
Member
 
Registered: Dec 2004
Distribution: Red hat linux 9
Posts: 189

Original Poster
Rep: Reputation: 16

"However, if you are having dependency issues on install, what would make you think the binary would work? "

Well I have some experiencing writing programs in Windows. I remember once I wrote MFC application, compiled and tried to execute on my friend's computer. It didn't run because he didn't have appropriate runtime. When I comipled again, now with option ro include code as static library it worked but file was significantly larger. So because of that I hoped that someone how compiled anjuta included all libs (glib and similar) so that installation would be a piece of cake.
What do you exactly mean by saying "static dependencies" will still be an issue?
 
Old 06-14-2006, 01:33 AM   #32
nhydra
Member
 
Registered: May 2006
Distribution: Fedora Core, FreeSpire, PC-BSD, NetBSD
Posts: 96

Rep: Reputation: 15
Yes i heard about that. There is some versions of MS studio for linux but i am suspecting about the quality of this. Probably they will run but i don't how they will work really. Better take Anjuta. It is the best IDE that i know. Try it.
 
Old 06-14-2006, 02:03 AM   #33
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
The binary will work since URPMI automatically resolves your deps. That's just the whole point of a package manager. If you can, just use binary it will save you time and headaches (on mandriva, with e.g. slack, it's a different matter).
 
Old 06-14-2006, 01:39 PM   #34
elyk1212
Member
 
Registered: Jan 2005
Location: Chandler, AZ USA
Distribution: Mandrake/Mandriva 10.2
Posts: 186

Rep: Reputation: 30
Quote:
Originally Posted by Micik
What do you exactly mean by saying "static dependencies" will still be an issue?
Static dependencies are libraries that are loaded during the linking stage of compiliation, this would apply if you were trying to compile. I should have said dynamic dependencies, in your case, as the static dependencies would not be an issue at the binary stage. But the issue would be needing to dynamicaly load shared libraries, and if you do not have them it will not work.

Quote:
Well I have some experiencing writing programs in Windows. I remember once I wrote MFC application, compiled and tried to execute on my friend's computer. It didn't run because he didn't have appropriate runtime. When I comipled again, now with option ro include code as static library it worked but file was significantly larger. So because of that I hoped that someone how compiled anjuta included all libs (glib and similar) so that installation would be a piece of cake.
You are right, this applies with any system that can use a C compiler. However, if the program contains hard coded references to loading a shared library, there is little you can do (unless you want to modify the code, which is a pain). Perhaps you can have them statically linked into the binary, but this does not always work, unless you have an easy way to modify the code (configure, maybe?).

Code:
//*****************************
// Example of library loading C/C++ code
//*****************************
void* library;
libary = dlopen("/path/to/library", RTLD_LAZY);
if (!library) 
{
    fprintf(stderr, "Error during dlopen(): %s\n", dlerror());
    // Do some error crap here.
}
Anyhow even if you do static link all the needed libraries, you run the risk of a HUGE binary. But space is cheap these days, I guess.

Last edited by elyk1212; 06-14-2006 at 01:45 PM.
 
Old 06-14-2006, 01:49 PM   #35
elyk1212
Member
 
Registered: Jan 2005
Location: Chandler, AZ USA
Distribution: Mandrake/Mandriva 10.2
Posts: 186

Rep: Reputation: 30
Quote:
The binary will work since URPMI automatically resolves your deps.
Yes, however a RPM is a little different concept than only copying the binary, the binary was what I was referring to. Use URPMI or Yum/etc, depending on your setup. Packages will be appropriate to resolve your dependencies. Be forewarned, however, the Mandriva version of Anjuta was NOT WORKING on my setup and many had the same issues. I have posted about this. Anyhow, the display was garbled and highlighting certain parts would show strange text, it was completely unusable. I just decided to compile from scratch.

A trick: Install the Anjuta package using urpmi, then this will give you (hopefully) all the dependencies. Then, compile from scratch, and all the issues *should* be gone

Last edited by elyk1212; 06-14-2006 at 01:51 PM.
 
Old 06-14-2006, 02:15 PM   #36
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
Quote:
Originally Posted by elyk1212
A trick: Install the Anjuta package using urpmi, then this will give you (hopefully) all the dependencies. Then, compile from scratch, and all the issues *should* be gone
lol! As I told him all along... sigh
 
Old 06-14-2006, 02:49 PM   #37
elyk1212
Member
 
Registered: Jan 2005
Location: Chandler, AZ USA
Distribution: Mandrake/Mandriva 10.2
Posts: 186

Rep: Reputation: 30
Yes, exactly. However, I am suggesting to first install the rpm, try it out, then if it does not work install from source (since this will satisfy the dependencies first to allow compilation). I was not aware you were suggesting install from source. Either way, regardless of previous dialog, I was only suggesting, as this was the only way I was able to get this IDE to work correctly (only an account of my own experience).
 
Old 06-15-2006, 01:47 AM   #38
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
Quote:
Originally Posted by elyk1212
Yes, exactly. However, I am suggesting to first install the rpm, try it out, then if it does not work install from source (since this will satisfy the dependencies first to allow compilation)
No that's not true, to compile the program you'll have to install the development packages of all the dependencies. This is important because those contain the header files (e.g. gtk.h). Without those header files, compiling anjuta will not be possible.
The rpm will resolve the dependencies needed for the binaries, which are only the shared libraries. This is only enough for the binaries, not for compiling the source.
 
Old 06-15-2006, 04:17 AM   #39
Micik
Member
 
Registered: Dec 2004
Distribution: Red hat linux 9
Posts: 189

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by elluva
The binary will work since URPMI automatically resolves your deps. That's just the whole point of a package manager. If you can, just use binary it will save you time and headaches (on mandriva, with e.g. slack, it's a different matter).
What should I do with URPMI? Where to find it?
On linux machine I don't have internet connection, so I would like to find all package to download on windows machine for anjuta for mandrake linux 10.1 but it seems that thing simply don't exist
Thanks
 
Old 06-15-2006, 08:02 AM   #40
akademik
LQ Newbie
 
Registered: Nov 2005
Location: Moscow, Russia
Distribution: slackware 10
Posts: 3

Rep: Reputation: 0
I'm newbie in Linux programming and I ask you for help with Emacs ECB. I found that is an appropriate IDE for me, but learning of it is more harder than other IDEs (such as Eclipse, XWPE, etc.).

Is there any _good_ tutorial about ECB (internal tutorial is like glossary of its terms)? I found some articles about it, but they are _only articles_ and they don't describe the process of making projects in steps (like tutorial).

And one more question: how to debug programs in ECB? Standard Emacs functions (as I understand) only let to use gdb in buffer (like if i open gdb in command line). I need to go through my code with highlighting of current step and to watch variables. Is it possible with ECB? Is there any plug-in for ECB to enable it?
 
Old 06-15-2006, 09:29 AM   #41
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
Quote:
Originally Posted by Micik
What should I do with URPMI? Where to find it?
On linux machine I don't have internet connection, so I would like to find all package to download on windows machine for anjuta for mandrake linux 10.1 but it seems that thing simply don't exist
Thanks
Ok, then urpmi is not ideal. Just take a look at the anjuta dependancies and make sure you have them on your system. You can check by using the normal mandrake package manager (you can find it in your startmenu). Try installing the things you need with it from your mandrake cd-roms, with a bit of luck everything is in there.

If your package manager lacks some dependancy, look for the package on rpmfind. Make sure you have the version for the right mandrake release. I think it is possible of installing an rpm in mandrake by just double clicking on it, but I am not sure. If that doesn't work go into a terminal and use the rpm -i <rpmfilename> command.

The anjuta rpm itself that works for mandrake you can find here.

This should give you enough info to get the thing installed,
good luck,
elluva
 
Old 06-16-2006, 05:16 AM   #42
Micik
Member
 
Registered: Dec 2004
Distribution: Red hat linux 9
Posts: 189

Original Poster
Rep: Reputation: 16
Well i have checked and download all depend. for anjuta 2x version. However it didn't work because when i tried to install gnome-bulid for example i got error message glib is not up to date, and i'm not able to install new glib because I don't have appropriate gettext and so on and so on. I have ordered new version of ubuntu and hope in 4 weeks I'll be able to install anjuta (if I have will to do it)
Thank you all for your efforts
 
Old 06-16-2006, 09:17 AM   #43
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Rep: Reputation: 30
hi,

i am using Ubuntu 5.10. What is the IDE that i can use for C++ Programming.
Also, if i have to do Graphics Programming in C++, what shud i be using??
 
Old 06-17-2006, 09:32 AM   #44
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
Quote:
Originally Posted by Micik
Well i have checked and download all depend. for anjuta 2x version...
Sigh... if you had only listened and installed the 1x for which I gave you the link, you didn't have all these problems. Apart from that, 2x are still alpha versions, so they are very unstable.

I like helping people, that's what great on lq, it really makes me feel good. What I hate is when people are just ignorant and refuse to listen to all your posts and good advice. I spend some of my very precious time, I quickly answer to posts, I do some research on the net (e.g. for links) and then when I just solved it, the guy with the problem decides to do it his own way (which ofcourse didn't work). You even have the nerve to post about it afterwards, I really think this shows of a lack of respect and it is very demotivating.

If you weren't going to listen to the advice that was given here, why did you post here in the first place? Why did you wasted my time and effort?
 
Old 06-17-2006, 09:52 AM   #45
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
Quote:
Originally Posted by crash_override_me
hi,

i am using Ubuntu 5.10. What is the IDE that i can use for C++ Programming.
Also, if i have to do Graphics Programming in C++, what shud i be using??
If you like gtk+ style programs (GNOME), go with anjuta. If you like qt style programs (KDE), take kdevelop. Actually kdevelop is great for both, but when developing under gnome qt-based apps usually look awful .

Somewhere earlier I read someone that suggested openldev, I was quite amazed, it's a very nice and simple IDE that works great. For development of GTK based apps, glade is also a must. Also remember that gtk has c++ bindings, it's called GTKMM.
 
  


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
Best IDE to learn IDE to leran on Linux alix123 Programming 4 01-07-2005 04:22 AM
RH9 &9.0 Benq CDRW 4012a IDE + IDE CDROM - Install - how to cgtueno Linux - Hardware 6 05-30-2004 02:43 PM
hpt372 ide controller and on-the-fly ide removeing captgoodnight Linux - Hardware 0 01-25-2004 12:38 AM
bad dmesg output when using ide-scsi boot parameter for IDE CD/DVD-ROM Locura Slackware 7 09-29-2003 02:36 AM
how2 make the kernel scan both PCI IDE and Mboard IDE channels? carboncopy Slackware 1 07-23-2003 03:26 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:21 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