maxgui problem on blitzmax 1.50
Archives Forums/Linux Discussion/maxgui problem on blitzmax 1.50
| ||
when i try to run maxgui program from the samples come with blitz max i get the next error message: Building test Compiling:PNGHeader.bmx flat assembler version 1.68 (1048560 kilobytes memory) 3 passes, 9443 bytes. Compiling:TLauncher.bmx flat assembler version 1.68 (1048560 kilobytes memory) 4 passes, 33909 bytes. Compiling:test.bmx flat assembler version 1.68 (1048560 kilobytes memory) 3 passes, 2343 bytes. Linking:test.debug /usr/bin/ld: /home/yossi/BlitzMax/mod/maxgui.mod/fltkmaxgui.mod/fltkmaxgui.debug.linux.x86.a(fl_set_fonts.cxx.debug.linux.x86.o): undefined reference to symbol 'FcInit' /usr/lib/i386-linux-gnu/libfontconfig.so.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Build Error: Failed to link /home/yossi/BlitzMax/samples/maxgui/guilauncher/test.debug Process complete |
| ||
It says you need the font config package installed, probably "libfontconfig1-dev". |
| ||
i have two packages option with similar name: libfontconfig1-dev (already installed) libfontconfig1-dev:i386 (not installed) i understand that these two packages are alternative. what is the right package to be installed ? |
| ||
as blitzmax isn't 64bit you need "i386" files. My system has this files installed: ronny@RonnyPC ~ $ ls -l /usr/lib/i386-linux-gnu/libfontconfig* lrwxrwxrwx 1 root root 22 Mai 21 2013 /usr/lib/i386-linux-gnu/libfontconfig.so.1 -> libfontconfig.so.1.7.0 -rw-r--r-- 1 root root 235348 Mai 21 2013 /usr/lib/i386-linux-gnu/libfontconfig.so.1.7.0 bye Ron |
| ||
i installed the libfontconfig1-dev:i386 but it didnt solve the problem . |
| ||
Maybe you need to create a symlink :sudo ln -s /usr/lib/i386-linux-gnu/libfontconfig.so.1 /usr/lib/i386-linux-gnu/libfontconfig.so |
| ||
@Brucey he didn't need to install libfontconfig1-dev:i386 or create a system link to libfontconfig1:i386 as it gets install with libfreetype6:i386. He needed to addImport "-lfontconfig"to the the project. DSO missing from command line means the libfontconfig wasn't passed to the linker. It's the same thing with libdl. And even then when he gets it to compile it will segfault. I would look into the reason why but I am in the middle of a project that I have been working on in involving Monkey-X. |
| ||
He needed to add... Oh. Well, I don't use fltk on Linux so I didn't realise it wasn't building properly. Gtk+ is *much* better, and supports system themes :-) |
| ||
Gtk+ and themes are not guaranteed. More so on a 64bit system with an application that requires the 32bit version of Gtk+ and theme engines installed. I think that the segfault has something to do with the window hidden window bug. But it also looks like that the window isn't being refreshed either. |
| ||
i tried: sudo ln -s /usr/lib/i386-linux-gnu/libfontconfig.so.1 /usr/lib/i386-linux-gnu/libfontconfig.so and also tried: Import "-lfontconfig" but the problem didnt solve |
| ||
Been having the same issue myself with Ubuntu 13.10 64 bit and BlitzMax 1.48. I tried the -lfontconfig and it allowed me to compile a couple of small programs, but as dawlane said, it resulted in a crash when trying to compile, then execute MaxIDE. |
| ||
Hmmm, it may be re enabling XFT support was a mistake. In fltkmaxgui.mod/config.h try replacing this #define USE_XFT 1 //#undef USE_XFT with this //#define USE_XFT 1 #undef USE_XFT Are you sure you aren't missing a compile error when you do rebuild all modules? The link error sort of suggests your modules haven't built correctly. |
| ||
hello skidracer, your suggestion helped very much. now after the change i made as you suggested i can run all the maxgui samples except the guilauncher sample. when i try to run the guilauncher sample i get: Building test Compiling:PNGHeader.bmx flat assembler version 1.68 (1048560 kilobytes memory) 3 passes, 9443 bytes. Compiling:TLauncher.bmx flat assembler version 1.68 (1048560 kilobytes memory) 4 passes, 33909 bytes. Compiling:test.bmx flat assembler version 1.68 (1048560 kilobytes memory) 3 passes, 2343 bytes. Linking:test.debug Executing:test.debug libGL error: failed to load driver: i965 libGL error: Try again with LIBGL_DEBUG=verbose for more details. libGL error: failed to load driver: swrast libGL error: Try again with LIBGL_DEBUG=verbose for more details. Segmentation fault Process complete all others maxgui samples run fine. |
| ||
thats a max2d issue, I would expect you will get that with most other non maxgui examples also? |
| ||
i try to run all samples on linux side and all of them run fine except the guilauncher sample and the threads samples. |
| ||
Success! :) Seems that disabling XFT did the trick. Thanks. :) |
| ||
i have been having this issue too, i disabled xft and added the lines?Linux Import MaxGUI.Drivers Import "-lfontconfig" ? to my program and the gui stuff worked fine. |