Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: .so links problem  (Read 6872 times)

0 Members and 1 Guest are viewing this topic.

cleanrock

  • Newbie
  • *
  • Posts: 4
    • View Profile
.so links problem
« on: September 12, 2009, 08:01:16 am »
The create link command for the shared objects result in invalid links in archlinux package building system.
The problem is that the links target is an absolute path which dont work with archlinux package building system (and probably a few other package building systems).
I suggest you change the create link command to :
Code: [Select]
INSTALL = && $(LN) $(LNFLAGS) $(LIB).$(VERSION) $(DESTLIBDIR)/$(LIB)

At the moment it is:
Code: [Select]
INSTALL = && $(LN) $(LNFLAGS) $(DESTLIBDIR)/$(LIB).$(VERSION) $(DESTLIBDIR)/$(LIB)

I.e. remove the first DESTLIBDIR.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
.so links problem
« Reply #1 on: September 12, 2009, 09:52:51 am »
This has been fixed in the sfml2 branch.
Laurent Gomila - SFML developer

cleanrock

  • Newbie
  • *
  • Posts: 4
    • View Profile
.so links problem
« Reply #2 on: September 12, 2009, 10:38:34 am »
so the regular trunk is deprecated ? if not, please fix that too

cleanrock

  • Newbie
  • *
  • Posts: 4
    • View Profile
.so links problem
« Reply #3 on: September 12, 2009, 11:08:47 am »
sfml2 works for me but i think this should be fixed in regular sfml also

btw, i think the makefiles could be improved, e.g. make install copies .svn dirs to include/SFML, perhaps a switch to cmake would be good

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
.so links problem
« Reply #4 on: September 12, 2009, 01:04:26 pm »
Quote
so the regular trunk is deprecated ? if not, please fix that too

I know. Someone gave me a patch for sfml2, and I was too lazy to adapt it to the trunk :D
But I'll do it, don't worry.

Quote
btw, i think the makefiles could be improved, e.g. make install copies .svn dirs to include/SFML

:shock:

Quote
perhaps a switch to cmake would be good

I like CMake, but I'd prefer not to use it for SFML. I think I already mentioned the reasons in 1 or 2 topics on this forum ;)
Laurent Gomila - SFML developer

cleanrock

  • Newbie
  • *
  • Posts: 4
    • View Profile
.so links problem
« Reply #5 on: September 12, 2009, 03:55:26 pm »
the .svn dirs in include/SFML should at least be fixed in my opinion

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
.so links problem
« Reply #6 on: September 28, 2009, 12:06:02 pm »
I applied the fix for symbolic links to the trunk.

However I need some help for this one:
Quote
the .svn dirs in include/SFML should at least be fixed in my opinion

I don't know how to do it :lol:
Laurent Gomila - SFML developer

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
.so links problem
« Reply #7 on: September 28, 2009, 02:15:51 pm »
Code: [Select]
Index: src/SFML/Makefile
===================================================================
--- src/SFML/Makefile (Revision 1223)
+++ src/SFML/Makefile (Arbeitskopie)
@@ -23,6 +23,8 @@
 export LIBPATH    = ../../../lib
 export VERSION    = 2.0
 export CP         = cp
+export SVNEXPORT  = svn export
+export RM         = rm
 export LN         = ln
 export LNFLAGS    = -s -f
 export AR         = ar
@@ -59,4 +61,4 @@
 install:
  @(mkdir -p $(DESTLIBDIR))
  @(mkdir -p $(DESTINCDIR))
- @(cd ./System && $(MAKE) $@ && cd ../Window && $(MAKE) $@ && cd ../Network && $(MAKE) $@ && cd ../Graphics && $(MAKE) $@ && cd ../Audio && $(MAKE) $@ && $(CP) -r ../../../include/SFML/ $(DESTINCDIR)/)
+ @(cd ./System && $(MAKE) $@ && cd ../Window && $(MAKE) $@ && cd ../Network && $(MAKE) $@ && cd ../Graphics && $(MAKE) $@ && cd ../Audio && $(MAKE) $@ && $(RM) -rf $(DESTINCDIR) && $(SVNEXPORT) ../../../include/ $(DESTINCDIR)/)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
.so links problem
« Reply #8 on: September 28, 2009, 02:27:02 pm »
Thanks, but this won't work for the release version, where .svn folders have already been removed. And I don't want people to install subversion just to be able to install SFML ;)
Laurent Gomila - SFML developer

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
.so links problem
« Reply #9 on: September 28, 2009, 05:49:11 pm »
Ah yeah, absolutely true. Then you can copy like before and do this afterwards:

Code: [Select]
find $(DESTINCDIR)/SFML -name .svn -exec rm -rf {} \;

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
.so links problem
« Reply #10 on: November 11, 2009, 11:46:12 am »
Hi

I tried the command above, which seems to work (the .svn folders are gone), but I get an error message for every .svn found:
Quote
"/usr/local/include/SFML/xxx/.svn": No file or directory of this type

(translated from french -- it may not exactly match the english message)
Laurent Gomila - SFML developer