ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
"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?
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.
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 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.
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
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
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).
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.
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
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?
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
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
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.