zfteam / gmenu2x-sdl2

GNU General Public License v2.0
5 stars 2 forks source link

x86_64 possible? #1

Open parkerlreed opened 8 months ago

parkerlreed commented 8 months ago

Trying to run the makefile on regular Linux on my computer and it is still trying to link against the SDL 1.2 libraries. Was the PC makefile never updated?

parkerlreed commented 8 months ago

Changing sdl-config to sdl2-config gets me to final linking.

Will see if I can change the references and have it compile.

src/FastDelegate.h: In member function ‘void fastdelegate::detail::ClosurePtr<GenericMemFunc, StaticFuncPtr, UnvoidStaticFuncPtr>::bindstaticfunc(DerivedClass*, ParentInvokerSig, StaticFuncPtr)’:
src/FastDelegate.h:781:29: warning: typedef ‘ERROR_CantUseEvilMethod’ locally defined but not used [-Wunused-local-typedefs]
  781 |                 typedef int ERROR_CantUseEvilMetho[sizeof(GenericClass *)==sizeof(function_to_bind) ? 1 : -1];
      |                             ^~~~~~~~~~~~~~~~~~~~~~
src/FastDelegate.h: In member function ‘UnvoidStaticFuncPtr fastdelegate::detail::ClosurePtr<GenericMemFunc, StaticFuncPtr, UnvoidStaticFuncPtr>::GetStaticFunction() const’:    src/FastDelegate.h:796:29: warning: typedef ‘ERROR_CantUseEvilMethod’ locally defined but not used [-Wunused-local-typedefs]                                                       796 |                 typedef int ERROR_CantUseEvilMetho[sizeof(UnvoidStaticFuncPtr)==sizeof(this) ? 1 : -1];
      |                             ^~~~~~~~~~~~~~~~~~~~~~ Linking gmenu2x-debug...
g++ -o objs/pc/gmenu2x-debug -L"/usr/lib" `sdl2-config --libs` -lfreetype -lSDL_image -lSDL_ttf -lSDL_gfx -ljpeg -lpng16 -lz   objs/pc/src/browsedialog.o  objs/pc/src/buttonbox.o  objs/pc/src/button.o  objs/pc/src/dialog.o  objs/pc/src/dirdialog.o  objs/pc/src/filedialog.o  objs/pc/src/filelister.o  objs/pc/src/fonthelper.o  objs/pc/src/gmenu2x.o  objs/pc/src/iconbutton.o  objs/pc/src/imagedialog.o  objs/pc/src/inputdialog.o  objs/pc/src/inputmanager.o  objs/pc/src/linkaction.o  objs/pc/src/linkapp.o  objs/pc/src/link.o  objs/pc/src/listview.o  objs/pc/src/listviewitem.o  objs/pc/src/menu.o  objs/pc/src/menusettingbool.o  objs/pc/src/menusetting.o  objs/pc/src/menusettingdir.o  objs/pc/src/menusettingfile.o  objs/pc/src/menusettingimage.o  objs/pc/src/menusettingint.o  objs/pc/src/menusettingmultistring.o  objs/pc/src/menusettingrgba.o  objs/pc/src/menusettingstringbase.o  objs/pc/src/menusettingstring.o  objs/pc/src/messagebox.o  objs/pc/src/selector.o  objs/pc/src/settingsdialog.o  objs/pc/src/surfacecollection.o  objs/pc/src/surface.o  objs/pc/src/textdialog.o  objs/pc/src/textmanualdialog.o  objs/pc/src/touchscreen.o  objs/pc/src/translator.o  objs/pc/src/utilities.o  objs/pc/src/wallpaperdialog.o                   /usr/bin/ld: cannot find -lSDL_image: No such file or directory
/usr/bin/ld: cannot find -lSDL_ttf: No such file or directory                                                         /usr/bin/ld: cannot find -lSDL_gfx: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [Makefile.pc:29: debug] Error 1
parkerlreed commented 8 months ago

Got it to link

Screenshot_20240114_002614_Termux

I'll have to give this a shot when I have access to it later.

parkerlreed commented 8 months ago

Finally figured out this had to be run from within the assets folder, and it seems to get partially through execution, but just exits without any errors or anything in the log, saying what might be happening.

[parker@rogally assets]$ pwd                  /home/parker/build/gmenu2x-sdl2/objs/pc/assets
[parker@rogally assets]$ ./gmenu2x            
GMenu2X starting: If you read this message in the logs, check http://mtorromeo.github.com/gmenu2x/troubleshooting.html for a solution     
DEBUG: skinconf: 'topBarHeight=40'            
DEBUG: skinconf: 'linkWidth=60'               
DEBUG: skinconf: 'linkHeight=40'              
DEBUG: skinconf: 'topBarBg=#ffffff82'         
DEBUG: skinconf: 'bottomBarBg=#ffffff82'      
DEBUG: skinconf: 'selectionBg=#ffffff82'      
DEBUG: skinconf: 'messageBoxBg=#ffffffff'     
DEBUG: skinconf: 'messageBoxBorder=#505050ff' 
DEBUG: skinconf: 'messageBoxSelection=#a0a0a0ff'                                            DEBUG: skinconf: 'font=#ffffffff'             
DEBUG: skinconf: 'fontOutline=#000000d0'      
DEBUG: skinconf: 'fontSize=8'                 
DEBUG: Adding skin surface: 'imgs/selection.png'                                            
DEBUG: Initializing font