View previous topic :: View next topic |
Author |
Message |
crudnick
Joined: 19 Jul 2009 Posts: 2
|
Posted: Mon Jul 20, 2009 1:58 pm Post subject: QtCore not found (qtd, d2) |
|
|
try to build the examples and started with
Code: |
qtd/examples/widgets/analogclock
|
I always get the same error / problem
Code: |
[348][0] :./build.sh
ld: library not found for -lQtCore
collect2: ld returned 1 exit status
--- errorlevel 1
|
This is my build.sh script
Code: |
#! /bin/bash
dmd main.d AnalogClock.d -I/Users/crudnick/dmd2/osx/qtd -I/Users/crudnick/dmd2/osx/qtd/qt/d2 -I/Users/crudnick/dmd2/osx/qtd/myBuild/build -L-L/usr/lib/ -L-L/sw/lib/qt4-mac/lib -L-lQtCore -L-lQtGui -L-lqtdgui -L-lqtdcore -ofanalogclock
|
in /sw/lib/qt4-mac/lib i found QtCore.la
I have no idea what to do here and it makes me crazy. Can anybody help me? |
|
Back to top |
|
|
crudnick
Joined: 19 Jul 2009 Posts: 2
|
Posted: Wed Jul 22, 2009 1:25 am Post subject: Re: QtCore not found (qtd, d2) |
|
|
crudnick wrote: | try to build the examples and started with
Code: |
qtd/examples/widgets/analogclock
|
I always get the same error / problem
Code: |
[348][0] :./build.sh
ld: library not found for -lQtCore
collect2: ld returned 1 exit status
--- errorlevel 1
|
This is my build.sh script
Code: |
#! /bin/bash
dmd main.d AnalogClock.d -I/Users/crudnick/dmd2/osx/qtd -I/Users/crudnick/dmd2/osx/qtd/qt/d2 -I/Users/crudnick/dmd2/osx/qtd/myBuild/build -L-L/usr/lib/ -L-L/sw/lib/qt4-mac/lib -L-lQtCore -L-lQtGui -L-lqtdgui -L-lqtdcore -ofanalogclock
|
in /sw/lib/qt4-mac/lib i found QtCore.la
I have no idea what to do here and it makes me crazy. Can anybody help me? |
wow, no response yet. Is my problem trivial or too curious? |
|
Back to top |
|
|
eldar
Joined: 14 Jun 2008 Posts: 101 Location: Ufa, Russia
|
Posted: Thu Jul 30, 2009 4:38 am Post subject: |
|
|
Sorry for late reply. QtD is not tested on Mac, and to be honest I don't know how it works there. -L-lQtCore links to QtCore C++ dynamic library, look how it is done on mac and change if needed. What you can do make a C++ Qt hello world example and see how it links to the Qt libraries. |
|
Back to top |
|
|
|