Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit]
#1
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
Reply
#2
Maybe try adding -ldl to CMakeLists.txt?

-[Unknown]
Reply
#3
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
Reply
#4
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]
Reply
#5
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
Reply
#6
Change in CMakeLists.txt - Cwcheat -> CwCheat. It was just added today.

-[Unknown]
Reply
#7
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
Reply
#8
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]
Reply
#9
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
Reply
#10
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
Reply
#11
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
Reply
#12
Hmm, I don't even have an idea how to tell Qt to link in libdl. It's the same problem though...

-[Unknown]
Reply
#13
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.
Reply
#14
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?).
Reply
#15
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
Reply


Forum Jump: