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

Problems with png-config and fltk-config #258

Open
rodarima opened this issue Sep 11, 2024 · 2 comments
Open

Problems with png-config and fltk-config #258

rodarima opened this issue Sep 11, 2024 · 2 comments
Labels
bug Something isn't working build Related with the build process

Comments

@rodarima
Copy link
Member

When installing FLTK in a different directory than /usr while keeping another installation there, I cannot link Dillo as it tries to find the libraries from /usr/lib due to a flag inserted by png-config:

g++ \
  -I/usr/include/libpng16 \
  -I/home/ram/dev/dillo/fltk/git/install/include \
  -D_LARGEFILE_SOURCE \
  -D_LARGEFILE64_SOURCE \
  -D_FILE_OFFSET_BITS=64 \
  -D_THREAD_SAFE \
  -D_REENTRANT \
  -g \
  -O2 \
  -Wall \
  -W \
  -Wno-unused-parameter \
  -fno-rtti \
  -fno-exceptions \
  -pedantic \
  -std=c++11 \
  -D_POSIX_C_SOURCE=200112L \
   \
   \
  -o \
  dillo \
  dillo.o \
  paths.o \
  tipwin.o \
  ui.o \
  uicmd.o \
  bw.o \
  cookies.o \
  hsts.o \
  auth.o \
  md5.o \
  digest.o \
  colors.o \
  misc.o \
  history.o \
  prefs.o \
  prefsparser.o \
  keys.o \
  url.o \
  bitvec.o \
  klist.o \
  chain.o \
  utf8.o \
  timeout.o \
  dialog.o \
  web.o \
  nav.o \
  cache.o \
  decode.o \
  dicache.o \
  capi.o \
  domain.o \
  css.o \
  cssparser.o \
  styleengine.o \
  plain.o \
  html.o \
  form.o \
  table.o \
  bookmark.o \
  dns.o \
  gif.o \
  jpeg.o \
  png.o \
  svg.o \
  imgbuf.o \
  image.o \
  menu.o \
  dpiapi.o \
  findbar.o \
  xembed.o \
  ../dlib/libDlib.a \
  ../dpip/libDpip.a \
  IO/libDiof.a \
  ../dw/libDw-widgets.a \
  ../dw/libDw-fltk.a \
  ../dw/libDw-core.a \
  ../lout/liblout.a \
  -ljpeg \
  -L/usr/lib \ <-------- here
  -lpng16 \
  -L/home/ram/dev/dillo/fltk/git/install/lib \
  -lfltk \
  -lm \
  -lpthread \
  -lXinerama \
  -lXfixes \
  -lXcursor \
  -L/usr/lib \
  -lpangoxft-1.0 \
  -lpangoft2-1.0 \
  -lpango-1.0 \
  -lgobject-2.0 \
  -lglib-2.0 \
  -lharfbuzz \
  -lfontconfig \
  -lfreetype \
  -lXft \
  -lpangocairo-1.0 \
  -lcairo \
  -lX11 \
  -lXrender \
  -lwayland-cursor \
  -lwayland-client \
  -lxkbcommon \
  -ldbus-1 \
  -ldecor-0 \
  -ldl \
  -lz \
  -liconv \
  -lpthread \
  -lX11 \
  -lcrypto \
  -lssl

Ideally we should either point to the whole path with -l or discover how to make -L only affect the corresponding -l library.

@rodarima rodarima added bug Something isn't working build Related with the build process labels Sep 11, 2024
@rodarima
Copy link
Member Author

Tried -Wl,--push-state but it doesn't seem to affect -L.

@rodarima
Copy link
Member Author

We should let the users pass the FLTK and other flags manually, so we avoid the problem in which a injected -L from fltk-config or png-config affects the rest of the libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build Related with the build process
Projects
None yet
Development

No branches or pull requests

1 participant