Hi Lorenzo,

>> Rather hbmk2 should be modified if possible to load
>> it without requiring such links.
> 
> hbmk2 -traceonly demoqt
> gcc demoqt.o hbmk_gvsy4s.o   -lhbqt -lhbqtcore -lhbqtgui -lhbqtnetwork
> -lsupc++ -lhbcplr -lhbdebug -lharbour
> /Library/Frameworks/QtCore.framework/QtCore
> /Library/Frameworks/QtGui.framework/QtGui
> /Library/Frameworks/QtNetwork.framework/QtNetwork -bind_at_load -o
> demoqt -L/opt/harbour/lib/harbour
> 
> I see a difference: I have a -lharbour you have
> /Users/vszakats/harbour/lib/darwin/gcc/libharbour.dylib
> I've tried to add -shared but it doesn't change.

This difference is due to the fact that Harbour is installed 
to system location on your system and not on mine. hbmk2 will 
adapt and use full dirspec to link against dylib. Anyhow the 
problem is present in both cases apparently.

What I don't understand is how come hbmk2 links against 
libharbour.dylib, yet when running it, it's looking for 
harbour.dylib ? (I also have the impression this is a 
regression)

---
silver:hbide vszakats$ ../../bin/hbmk2 hbide -shared -trace
[...]
hbmk2: Linker command:                                                         
/Developer/usr/bin/clang hbide.o hbmk_oeG2NQ.o   -lhbxbp -lhbqt -lhbqtcore 
-lhbqtgui -lhbqtnetwork -lsupc++ -lhbcplr -lhbdebug 
/Library/Frameworks/QtCore.framework/QtCore 
/Library/Frameworks/QtGui.framework/QtGui 
/Library/Frameworks/QtNetwork.framework/QtNetwork 
/Users/vszakats/harbour/lib/darwin/clang/libharbour.dylib -o hbide 
-L/Users/vszakats/harbour/lib/darwin/clang

silver:hbide vszakats$ ./hbide
dyld: Library not loaded: harbour.dylib
  Referenced from: /Users/vszakats/harbour/contrib/hbide/./hbide
  Reason: image not found
Trace/BPT trap
---

Brgds,
Viktor

_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to