LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 05-23-2004, 09:22 AM   #1
djadhav
LQ Newbie
 
Registered: Mar 2004
Location: IITKanpur,India
Posts: 24

Rep: Reputation: 15
Unhappy Cross Platform c++ gui programming


HI all,

I am trying to write a program in C++ which implements gui, which will be platformm independent. For that purpose, I downloaded a library named as FoxToolKit

It gives a lot examples. They are precomplied and they run. But when I try to compile it by myself, they give a hell lot of errors .

Please help me..... or atleast give me some info of other platform independent gui library if you know about how to work on it.....HELP!!!
 
Old 05-23-2004, 02:21 PM   #2
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Rep: Reputation: 32
Well, as far as I know the following GUI libraries are OS indepentant:

wxWindows
Gtk-2.0
Qt

I don't know any others, but I am sure there are.

Can't help you any other way because you didn't post any of your errors. Sorry.
 
Old 05-23-2004, 02:24 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,537

Rep: Reputation: 149Reputation: 149
Please show part of the errors. Probably there's an issue with libraries location or another thing that can be quite easily fixed.
 
Old 05-23-2004, 07:17 PM   #4
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Rep: Reputation: 31
www.gtkmm.org
 
Old 05-23-2004, 11:22 PM   #5
djadhav
LQ Newbie
 
Registered: Mar 2004
Location: IITKanpur,India
Posts: 24

Original Poster
Rep: Reputation: 15
hi,
i got the method to compile the thing on a site which says( I have made two file mywindow.cpp and mywindow.h and I am trying to compile them ) :-

" Replace $FOX_PREFIX with the directory you gave as

--prefix

to fox'es ./configure script (usually /usr/local):

g++ -I$FOX_PREFIX/include/fox -o mywindow mywindow.cpp main.cpp -L$FOX_PREFIX/lib -L/usr/X11R6/lib -lFOX -lX11 -lXext -lm "

Can anybody tell me the meaning of the first three lines.........also when I did so ,following error came:-

[devendra@apple mywindow]$ g++ -I$FOX_PREFIX/include/fox -o mywindow mywindow.cpp main.cpp -L$FOX_PREFIX/lib -L/usr/X11R6/lib -lFOX -lX11 -lXext -lm
/usr/bin/ld: cannot find -lFOX
collect2: ld returned 1 exit status

what is -lFOX here??


please help me out as it is very important for my project.....
 
Old 05-24-2004, 04:05 AM   #6
Galik
Member
 
Registered: Mar 2003
Location: UK
Distribution: gentoo
Posts: 67

Rep: Reputation: 15
Okay you need to find the FOX installation on your system. My gues is that FOX_PREFIX is "/usr" but it could also be "/usr/local" you need to literally *replace* the $FOX_PREFIX with that value. Try:
Code:
g++ -I/usr/include/fox -o mywindow mywindow.cpp main.cpp -L/usr/lib -L/usr/X11R6/lib -lFOX -lX11 -lXext -lm "

If that doesn't work try:

Code:
g++ -I/usr/local/include/fox -o mywindow mywindow.cpp main.cpp -L/usr/local/lib -L/usr/X11R6/lib -lFOX -lX11 -lXext -lm "

If you still got problems the try to find where the install put the FOX library. Maybe try this:

Code:
find /usr -name "libFOX*"
The output of that should give you a nclue as to what the --prefix was...

Hope this helps.
 
Old 05-24-2004, 05:30 AM   #7
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,614

Rep: Reputation: 136Reputation: 136
and make sure your FOX path library is in /etc/ld.so.conf, maybe you need to run ldconfig as root also
 
Old 05-25-2004, 01:50 AM   #8
djadhav
LQ Newbie
 
Registered: Mar 2004
Location: IITKanpur,India
Posts: 24

Original Poster
Rep: Reputation: 15
hi,
tried all that but nothing good happened........again the same error.......it doesn't recognise the -lFOX command and gives the same error which i posted before......
 
Old 05-25-2004, 02:15 AM   #9
Galik
Member
 
Registered: Mar 2003
Location: UK
Distribution: gentoo
Posts: 67

Rep: Reputation: 15
Okay can you give some more information.

What Linux distro are you using?
What's the output of the command
Code:
find /usr -name "libFOX*"
?

From your error output it looks like it's failing at the linking stage which means it's compiling okay but can't find the FOX library to build an executable with. We need to find out where that library is on your system.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cross-Platform GUI Frontend for MySQL chandru.in Linux - Software 2 08-10-2005 07:13 AM
Cross Platform GUI development Artik Programming 15 06-29-2005 06:36 PM
Open source interface designer for windows for cross platform programming? dr_zayus69 Programming 1 05-15-2005 07:34 AM
Linux/windows Cross Platform Gui toolkit. mr_segfault Programming 7 10-31-2004 04:57 PM
Cross Platform biggiefatts Linux - Software 4 06-04-2002 03:00 PM


All times are GMT -5. The time now is 07:47 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration