LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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-2007, 03:26 AM   #1
Lord_Grave
LQ Newbie
 
Registered: Aug 2005
Posts: 27

Rep: Reputation: 15
Can't compile PCSX2 - please help


I have an annoying problem when trying to build PCSX2 0.9.3 in SUSE 10.0.

All plugins compile successfully when I start build.sh script but pcsx2 reports a great lot of "undefined references" and exits with Error 1. The list of undefined references is too long to post, but most are functions with gtk_ or g_ prefix, and some with gdk_, atk_, sem_ and pthread_.

I have gtk 1.2.10 and 2.8.3, glib 1.2.10, Cg 1.5 and atk 1.10.3. My gcc is version 4.0.2. What am I doing wrong? Here's the last page of reported errors just to give you an idea:

GtkGui.c:(.text+0x75b3): undefined reference to `gtk_box_pack_start'
GtkGui.c:(.text+0x75c1): undefined reference to `gtk_widget_show'
GtkGui.c:(.text+0x75c9): undefined reference to `gtk_hbutton_box_new'
GtkGui.c:(.text+0x75d1): undefined reference to `gtk_box_get_type'
GtkGui.c:(.text+0x75de): undefined reference to `g_type_check_instance_cast'
GtkGui.c:(.text+0x75f3): undefined reference to `gtk_box_pack_start'
GtkGui.c:(.text+0x7601): undefined reference to `gtk_widget_show'
GtkGui.c:(.text+0x7622): undefined reference to `gtk_button_new_with_label'
GtkGui.c:(.text+0x762d): undefined reference to `gtk_object_get_type'
GtkGui.c:(.text+0x763a): undefined reference to `g_type_check_instance_cast'
GtkGui.c:(.text+0x7657): undefined reference to `gtk_signal_connect_full'
GtkGui.c:(.text+0x765f): undefined reference to `gtk_container_get_type'
GtkGui.c:(.text+0x766c): undefined reference to `g_type_check_instance_cast'
GtkGui.c:(.text+0x767b): undefined reference to `gtk_container_add'
GtkGui.c:(.text+0x7683): undefined reference to `gtk_object_get_type'
GtkGui.c:(.text+0x7690): undefined reference to `g_type_check_instance_cast'
GtkGui.c:(.text+0x76a9): undefined reference to `gtk_widget_show'
GtkGui.c:(.text+0x76b7): undefined reference to `gtk_widget_grab_focus'
GtkGui.c:(.text+0x76c8): undefined reference to `gtk_widget_show'
GtkGui.c:(.text+0x76d0): undefined reference to `gtk_main'
GtkGui.o: In function `on_enable_console1_activate':
GtkGui.c:(.text+0x76f1): undefined reference to `gtk_check_menu_item_get_active'
GtkGui.o: In function `on_enable_patches1_activate':
GtkGui.c:(.text+0x7712): undefined reference to `gtk_check_menu_item_get_active'
LnxMain.o: In function `main':
LnxMain.c:(.text+0x4fd): undefined reference to `gtk_init'
LnxMain.c:(.text+0x59a): undefined reference to `g_thread_init'
LnxMain.c:(.text+0x5a2): undefined reference to `gdk_threads_init'
LnxMain.c:(.text+0x5b7): undefined reference to `gtk_init'
LnxMain.o: In function `SysLoadLibrary':
LnxMain.c:(.text+0xe69): undefined reference to `dlopen'
LnxMain.o: In function `SysLoadSym':
LnxMain.c:(.text+0xe82): undefined reference to `dlsym'
LnxMain.o: In function `SysLibError':
LnxMain.c:(.text+0xe92): undefined reference to `dlerror'
LnxMain.o: In function `SysCloseLibrary':
LnxMain.c:(.text+0xea5): undefined reference to `dlclose'
support.o: In function `lookup_widget':
support.c:(.text+0xd): undefined reference to `gtk_menu_get_type'
support.c:(.text+0x42): undefined reference to `g_type_check_instance_is_a'
support.c:(.text+0x54): undefined reference to `gtk_menu_get_type'
support.c:(.text+0x61): undefined reference to `g_type_check_instance_cast'
support.c:(.text+0x6d): undefined reference to `gtk_menu_get_attach_widget'
support.c:(.text+0x92): undefined reference to `g_type_check_instance_cast'
support.c:(.text+0xa3): undefined reference to `g_object_get_data'
support.c:(.text+0xc8): undefined reference to `g_type_check_instance_cast'
support.c:(.text+0xd7): undefined reference to `g_object_get_data'
support.c:(.text+0xf4): undefined reference to `g_log'
support.o: In function `add_pixmap_directory':
support.c:(.text+0x10d): undefined reference to `g_strdup'
support.c:(.text+0x120): undefined reference to `g_list_prepend'
support.o: In function `find_pixmap_file':
support.c:(.text+0x152): undefined reference to `g_strdup_printf'
support.c:(.text+0x165): undefined reference to `g_file_test'
support.c:(.text+0x17f): undefined reference to `g_free'
support.o: In function `create_pixmap':
support.c:(.text+0x1be): undefined reference to `gtk_image_new'
support.c:(.text+0x1fc): undefined reference to `g_log'
support.c:(.text+0x204): undefined reference to `gtk_image_new'
support.c:(.text+0x214): undefined reference to `gtk_image_new_from_file'
support.c:(.text+0x225): undefined reference to `g_free'
support.o: In function `create_pixbuf':
support.c:(.text+0x29b): undefined reference to `g_log'
support.c:(.text+0x2b6): undefined reference to `gdk_pixbuf_new_from_file'
support.c:(.text+0x2ec): undefined reference to `g_error_free'
support.c:(.text+0x2fa): undefined reference to `g_free'
support.o: In function `glade_set_atk_action_description':
support.c:(.text+0x319): undefined reference to `atk_action_get_n_actions'
support.c:(.text+0x336): undefined reference to `atk_action_get_name'
support.c:(.text+0x35d): undefined reference to `atk_action_set_description'
../libpcsx2.a(GS.o): In function `gsInit':
GS.cpp:(.text+0xbe): undefined reference to `sem_init'
../libpcsx2.a(GS.o): In function `gsShutdown':
GS.cpp:(.text+0x188): undefined reference to `sem_post'
GS.cpp:(.text+0x1bb): undefined reference to `pthread_join'
GS.cpp:(.text+0x1cb): undefined reference to `sem_destroy'
../libpcsx2.a(GS.o): In function `GSRingBufCopy':
GS.cpp:(.text+0x237): undefined reference to `sem_post'
GS.cpp:(.text+0x2df): undefined reference to `sem_post'
GS.cpp:(.text+0x33e): undefined reference to `sem_post'
../libpcsx2.a(GS.o): In function `GSRingBufSimplePacket':
GS.cpp:(.text+0x3f5): undefined reference to `sem_post'
GS.cpp:(.text+0x490): undefined reference to `sem_post'
../libpcsx2.a(GS.o):GS.cpp:(.text+0x508): more undefined references to `sem_post' follow
../libpcsx2.a(GS.o): In function `GSThreadProc':
GS.cpp:(.text+0x397d): undefined reference to `pthread_testcancel'
GS.cpp:(.text+0x39ff): undefined reference to `sem_post'
GS.cpp:(.text+0x3a49): undefined reference to `sem_wait'
../libpcsx2.a(Plugins.o): In function `OpenPlugins':
Plugins.c:(.text+0x4d90): undefined reference to `sem_wait'
../libpcsx2.a(VifDma.o): In function `Vif1TransDirectHL':
VifDma.c:(.text+0x3835): undefined reference to `sem_post'
../libpcsx2.a(VifDma.o): In function `_dmaVIF1':
VifDma.c:(.text+0x4f54): undefined reference to `sem_post'
collect2: ld returned 1 exit status
make[1]: *** [pcsx2] Error 1
make[1]: Leaving directory `/home/namelessone/Documents/pcsx2-src/pcsx2/Linux'
make: *** [install-recursive] Error 1
Error with building pcsx2
 
Old 06-01-2007, 06:07 AM   #2
dasy2k1
Member
 
Registered: Oct 2005
Location: 127.0.0.1
Distribution: Ubuntu 12.04 X86_64
Posts: 956

Rep: Reputation: 34
have you got the gtk-devel pakages installed?
you often need the devel pakages of somthing to compile somthing using it
 
Old 06-01-2007, 11:24 AM   #3
Lord_Grave
LQ Newbie
 
Registered: Aug 2005
Posts: 27

Original Poster
Rep: Reputation: 15
I had Novell's gtk2-devel and gtk-devel packages installed but it didn't help. Compiled the latest gtk from source today but still no change. Right now, I'm trying with the latest version of gcc. Already compiled it but found out I also need g++... I'll post later today wether this solved the problem. I just hope it won't leave me unable to compile anything.

Last edited by Lord_Grave; 06-01-2007 at 11:27 AM.
 
Old 06-01-2007, 04:06 PM   #4
Lord_Grave
LQ Newbie
 
Registered: Aug 2005
Posts: 27

Original Poster
Rep: Reputation: 15
Same errors with the latest gcc. Makes me want to cry for hours lost compiling it after several failures because of low disk space. I had over 500mb free and and it couldn't compile only core and c++ libraries even with -bootstrap-lean! To make it even worse, when I managed to build the binaries I didn't have enough space to make a RPM

I guess I'm stuck with windows version unless someone comes up with a miracle solution.
 
Old 06-01-2007, 05:17 PM   #5
cyberfishee
Member
 
Registered: Mar 2005
Distribution: Debian Testing
Posts: 133

Rep: Reputation: 15
did you search the pcsx2 forum?
 
Old 06-02-2007, 02:11 AM   #6
Lord_Grave
LQ Newbie
 
Registered: Aug 2005
Posts: 27

Original Poster
Rep: Reputation: 15
Yeah, but no help there. I'll have to look again though since I can't register so I can't subscribe to topics. I found a lot of people with "undefined references" problem but no two that have the exact same problem.

What occurs to me as a possible problem is that linux version of PCSX2 was developed and tested on Ubuntu. If Ubuntu provides its own branches of software as SUSE does and the developers worked on default versions installed from distro it is possible that PCSX2 can be compiled only on Ubuntu.
 
Old 06-02-2007, 05:20 AM   #7
Lord_Grave
LQ Newbie
 
Registered: Aug 2005
Posts: 27

Original Poster
Rep: Reputation: 15
I think I have a possible cause of this problem. I just found out that SUSE RPMs install gtk .h files into /opt/gnome/include, and when I compiled the latest version 'make install' installed them into /usr/local/include, so I guess gcc is still including old gtk headers. Does anyone know how I can tell gcc to look for .h files in /usr/local/inlcude?
 
  


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
Compile madwifi, ... compile error , how can i do. ERBRMN Linux - Networking 3 03-08-2006 07:56 PM
Why doesn't it ever compile? Murdock1979 Linux - Software 11 01-11-2006 12:55 PM
I can't get this to compile! Xerop Programming 6 02-25-2005 07:19 AM
Can't compile anything simeandrews Mandriva 17 01-13-2005 07:58 PM
ntop compile/post-compile problem? tjb Linux - Software 3 12-28-2004 04:22 PM


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