istvan-v / ep128emu

IstvanV's great Enterprise-128 emulator imported to github
https://sourceforge.net/projects/ep128emu/
GNU General Public License v2.0
27 stars 11 forks source link

FLTK issue compiling for Ubuntu 17.10 #4

Open pjbroad opened 6 years ago

pjbroad commented 6 years ago

Hi, I have installed the package libfltk1.3-dev but still get an error during configuration:

Checking for package FLTK... yes no *** error configuring FLTK

If I force though the error, everything compiles and works fine. print packageConfigs[pkgName] shows:

['fltk-config --use-images --cflags --cxxflags --ldflags', [''], '-lfltk -lfltk_images -lfltk_jpeg -lfltk_png -lfltk_z -lXcursor -lXinerama -lXrender -lXext -lXft -lXfixes -lX11 -lfontconfig -ldl', '-lfltk -lfltk_images -lfltk_jpeg -lfltk_png -lz -lcomdlg32 -lcomctl32 -lole32 -luuid -lws2_32 -lwinmm -lgdi32', '', 'FL/Fl.H', 0]

Any ideas to what I'm doing wrong, I'm not familiar enough with scons to debug this further but would be happy to try suggestions out. Thanks.

suopte commented 6 years ago

Hi,

I also had the exact same issue on Ubuntu 17.10, when I installed libfltk1.3 package with apt-get. The solution was to remove the official libfltk package and then to compile FLTK from the sources. After downloading fltk-1.3.4-1-source.tar.gz and uncompressing it, I ran the following commands in the FLTK source folder:

./configure --enable-threads --enable-shared
make
sudo make install

After that I managed to compile and install ep128emu with SCons without any errors. Now the emulator runs perfectly. It is important to note, that without using the --enable-shared option for FLTK, I got linker errors when I was building ep128emu. So it seems that this option is also required for FLTK configuration.

I installed all the other dependencies with apt-get.

pjbroad commented 6 years ago

Thanks for the information. I used the Ubuntu supplied package and ep128emu complied and ran fine with that. For me, I just had for force the config check to pass.