Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit]
05-30-2013, 01:55 PM (This post was last modified: 05-30-2013 03:34 PM by Iljalicious.)
Post: #1
Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit]
Hey guys, it's me again.

I update normally both versions of PPSSPP, but since today it's not working
anymore without problems.

I have one command-line for building the SDL-version :

git clone git://github.com/hrydgard/ppsspp.git && cd ppsspp ; git submodule update -i ; ./b.sh && cd build ; ./PPSSPPSDL

But now I got this errors :

/usr/bin/ld: lib/libCore.a(atrac3plus.cpp.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/bin/ld: note: 'dlclose@@GLIBC_2.2.5' is defined in DSO /lib/x86_64-linux-gnu/libdl.so.2 so try adding it to the linker command line
/lib/x86_64-linux-gnu/libdl.so.2: could not read symbols: Ungültiger Vorgang
collect2: Fehler: ld gab 1 als Ende-Status zurück
make[2]: *** [PPSSPPHeadless] Fehler 1
make[1]: *** [CMakeFiles/PPSSPPHeadless.dir/all] Fehler 2
make[1]: *** Warte auf noch nicht beendete Prozesse...
/usr/bin/ld: lib/libCore.a(atrac3plus.cpp.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/bin/ld: note: 'dlclose@@GLIBC_2.2.5' is defined in DSO /lib/x86_64-linux-gnu/libdl.so.2 so try adding it to the linker command line
/lib/x86_64-linux-gnu/libdl.so.2: could not read symbols: Ungültiger Vorgang
collect2: Fehler: ld gab 1 als Ende-Status zurück
make[2]: *** [PPSSPPSDL] Fehler 1
make[1]: *** [CMakeFiles/PPSSPPSDL.dir/all] Fehler 2
make: *** [all] Fehler 2

Do someone, who uses Ubuntu know what's to do? O:
I'm out of my brain x: ..

ThinkPad T420s | 4GB RAM | 160GB SSD
Intel® Core™ i5-2520M CPU @ 2.50GHz | Intel® Sandybridge Mobile
ubuntu 13.04 64Bit | Planning to install Windows 7 Professional 64Bit for dualboot
Find all posts by this user
Quote this message in a reply
05-31-2013, 01:08 AM
Post: #2
RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit]
Maybe try adding -ldl to CMakeLists.txt?

-[Unknown]
Find all posts by this user
Quote this message in a reply
05-31-2013, 03:16 AM (This post was last modified: 05-31-2013 03:51 AM by Iljalicious.)
Post: #3
RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit]
I looked a little bit on the inside of CMakeLists.txt,
and I dont really know what exactly to do or where I have to add -ldl.

Edit*
Now I tried to build the Qt-Version, and this appears :
[Image: qtxreatorcqcheatfaiul.png]

So there's something with the Cwcheat.h.

Edit**
And almost the same for building the SDL-Version, now there's another error going on.
[Image: buildsdlfail.png]

ThinkPad T420s | 4GB RAM | 160GB SSD
Intel® Core™ i5-2520M CPU @ 2.50GHz | Intel® Sandybridge Mobile
ubuntu 13.04 64Bit | Planning to install Windows 7 Professional 64Bit for dualboot
Find all posts by this user
Quote this message in a reply
05-31-2013, 03:43 AM
Post: #4
RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit]
Try replacing:

set(LinkCommon ${CoreLibName} ${CMAKE_THREAD_LIBS_INIT} ${nativeExtraLibs})

With:

set(LinkCommon ${CoreLibName} ${CMAKE_THREAD_LIBS_INIT} ${nativeExtraLibs} dl)

Yeah, CMake's syntax is a bit funny...

-[Unknown]
Find all posts by this user
Quote this message in a reply
05-31-2013, 04:16 AM
Post: #5
RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit]
I replaced that, now thats happening.

[Image: libfailagain.png]

Same coolthing for Qt.

[Image: qtfailimsadomg.png]

ThinkPad T420s | 4GB RAM | 160GB SSD
Intel® Core™ i5-2520M CPU @ 2.50GHz | Intel® Sandybridge Mobile
ubuntu 13.04 64Bit | Planning to install Windows 7 Professional 64Bit for dualboot
Find all posts by this user
Quote this message in a reply
05-31-2013, 04:38 AM
Post: #6
RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit]
Change in CMakeLists.txt - Cwcheat -> CwCheat. It was just added today.

-[Unknown]
Find all posts by this user
Quote this message in a reply
05-31-2013, 04:55 AM (This post was last modified: 05-31-2013 05:09 AM by Iljalicious.)
Post: #7
RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit]
I changed that, it dont want to work.
Then I updated the folder via 'git submodule update -i' and tried that again.
Then I got this :
[Image: itstilldontwantto.png]

ThinkPad T420s | 4GB RAM | 160GB SSD
Intel® Core™ i5-2520M CPU @ 2.50GHz | Intel® Sandybridge Mobile
ubuntu 13.04 64Bit | Planning to install Windows 7 Professional 64Bit for dualboot
Find all posts by this user
Quote this message in a reply
05-31-2013, 06:35 AM
Post: #8
RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit]
Hmm, it still needs -ldl. I'm not sure why it wouldn't work to do what I suggested... you could try adding it here instead:

target_link_libraries(${CoreLibName} Common native kirk cityhash xbrz

target_link_libraries(${CoreLibName} Common native kirk cityhash xbrz dl

-[Unknown]
Find all posts by this user
Quote this message in a reply
05-31-2013, 06:49 AM (This post was last modified: 05-31-2013 08:40 AM by Iljalicious.)
Post: #9
RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit]
Ohgosh thank you!

That worked for me finally.

That can be closed now.

Thank you so much O: !

Edit*
Worked for SDL, but not for Qt >.<

Edit*
Now it dont work for SDL and Qt..I just dont understand whats going on there <.<

ThinkPad T420s | 4GB RAM | 160GB SSD
Intel® Core™ i5-2520M CPU @ 2.50GHz | Intel® Sandybridge Mobile
ubuntu 13.04 64Bit | Planning to install Windows 7 Professional 64Bit for dualboot
Find all posts by this user
Quote this message in a reply
05-31-2013, 08:50 PM
Post: #10
RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit]
Same behavior and failure to build, after suggested changes. Using Qt via PPSSPPQt.pro with Qt Creator:

Code:
./libCore.a(atrac3plus.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
note: 'dlclose@@GLIBC_2.2.5' is defined in DSO /lib64/libsdl.so.2 so try adding it to the linker command line
could not read symbols: Invalid operation                                                     libsdl.so.2
collect2: error: ld returned 1 exit status

openSUSE 12.3
linux 3.4.33-2.24 x86_64
libSDL-1_2-0 1.2.15-2.1.2
libSDL-devel 1.2.15-2.1.2
libqt4 4.8.1-2.16.1
fresh ppsspp clone
Find all posts by this user
Quote this message in a reply
06-02-2013, 08:13 AM
Post: #11
RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit]
I hope there's gonna be a fix someday or something.
I still cannot update my client, I'm still with PPSSPPQt0.7.6.905 and PPSSPPSDL0.7.6.956.

ThinkPad T420s | 4GB RAM | 160GB SSD
Intel® Core™ i5-2520M CPU @ 2.50GHz | Intel® Sandybridge Mobile
ubuntu 13.04 64Bit | Planning to install Windows 7 Professional 64Bit for dualboot
Find all posts by this user
Quote this message in a reply
06-02-2013, 08:15 AM
Post: #12
RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit]
Hmm, I don't even have an idea how to tell Qt to link in libdl. It's the same problem though...

-[Unknown]
Find all posts by this user
Quote this message in a reply
06-02-2013, 02:46 PM
Post: #13
RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit]
Something is going wrong with linking somewhere. I'm not familiar enough with the program to say for sure and sadly I don't have the time to tear it apart. I'm going to fish around a bit for workarounds in the meantime, that might help the devs find the issue. I added to PPSSPP.pro:

Code:
linux {
...
#manually link libdl.so.2
LIBS += -L/lib64 -l:libdl.so.2
...
}

This fixed the issue and the symbol resolves. This has uncovered a new and exciting issue:

Code:
undefined reference to '__CheatInit()'                                                       sceKernel.cpp
undefined reference to '__CheatShutdown()'                                                        sceKernel.cpp
collect2: error: ld returned 1 exit status

This does not seem to be due to the change in the cheat headers (although as I said I'm not familiar enough with this project to tell). I'll play around a bit and see what I can dig up.
Find all posts by this user
Quote this message in a reply
06-03-2013, 02:02 PM (This post was last modified: 06-03-2013 02:08 PM by xsacha.)
Post: #14
RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit]
Hi.
I'm not sure what to do/say. I don't get this issue and never have in my Linux environment.

Current git just builds perfectly without any modifications.

Distro: Ubuntu 12.10 64-bit
Kernel: 3.5.0-17-generic
SDL: 1.2.15
Qt: 4.8.3

On my system, libdl is being linked already (by Qt?).
Find all posts by this user
Quote this message in a reply
06-03-2013, 04:07 PM
Post: #15
RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit]
I already tried to build PPSSPP Qt and SDL with Ubuntu 12.10, 12.04 and elementaryOS Luna - it didnt work on none of the enviroments.

I hope I dont miss any librarys :/

ThinkPad T420s | 4GB RAM | 160GB SSD
Intel® Core™ i5-2520M CPU @ 2.50GHz | Intel® Sandybridge Mobile
ubuntu 13.04 64Bit | Planning to install Windows 7 Professional 64Bit for dualboot
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: