forums.PPSSPP.org
Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit] - Printable Version

+- forums.PPSSPP.org (https://forums.ppsspp.org)
+-- Forum: PPSSPP - Playstation Portable Simulator Suitable for Playing Portably (/forumdisplay.php?fid=1)
+--- Forum: Builds, releases and ports (/forumdisplay.php?fid=4)
+--- Thread: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit] (/showthread.php?tid=3723)

Pages: 1 2


Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit] - Iljalicious - 05-30-2013 01:55 PM

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 '[email protected]@GLIBC_2.2.5'
/usr/bin/ld: note: '[email protected]@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 '[email protected]@GLIBC_2.2.5'
/usr/bin/ld: note: '[email protected]@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: ..


RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit] - [Unknown] - 05-31-2013 01:08 AM

Maybe try adding -ldl to CMakeLists.txt?

-[Unknown]


RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit] - Iljalicious - 05-31-2013 03:16 AM

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]


RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit] - [Unknown] - 05-31-2013 03:43 AM

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]


RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit] - Iljalicious - 05-31-2013 04:16 AM

I replaced that, now thats happening.

[Image: libfailagain.png]

Same coolthing for Qt.

[Image: qtfailimsadomg.png]


RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit] - [Unknown] - 05-31-2013 04:38 AM

Change in CMakeLists.txt - Cwcheat -> CwCheat. It was just added today.

-[Unknown]


RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit] - Iljalicious - 05-31-2013 04:55 AM

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]


RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit] - [Unknown] - 05-31-2013 06:35 AM

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]


RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit] - Iljalicious - 05-31-2013 06:49 AM

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 <.<


RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit] - Fnorbenden - 05-31-2013 08:50 PM

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 '[email protected]@GLIBC_2.2.5'
note: '[email protected]@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


RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit] - Iljalicious - 06-02-2013 08:13 AM

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.


RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit] - [Unknown] - 06-02-2013 08:15 AM

Hmm, I don't even have an idea how to tell Qt to link in libdl. It's the same problem though...

-[Unknown]


RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit] - Fnorbenden - 06-02-2013 02:46 PM

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.


RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit] - xsacha - 06-03-2013 02:02 PM

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?).


RE: Building SDL & Qt Versions doesnt work since today [Ubuntu 13.04 64bit] - Iljalicious - 06-03-2013 04:07 PM

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 :/