Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FLTK issue compiling for Ubuntu 17.10 #4

Open
pjbroad opened this issue Jan 28, 2018 · 2 comments
Open

FLTK issue compiling for Ubuntu 17.10 #4

pjbroad opened this issue Jan 28, 2018 · 2 comments

Comments

@pjbroad
Copy link

pjbroad commented Jan 28, 2018

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.

@pjbroad pjbroad changed the title FLTK issue compile for Ubuntu 17.10 FLTK issue compiling for Ubuntu 17.10 Jan 28, 2018
@suopte
Copy link

suopte commented Mar 16, 2018

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
Copy link
Author

pjbroad commented Mar 18, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants