ClanLib-0.7.5.2 Compilation Problems
Aaron Dalton
aaron at finch.st
Mon Nov 10 08:46:16 PST 2003
The below error occurs when I attempt to compile the ClanLib example,
AdventureScene. I have also posted this error to the ClanLib mailing
list, but they're baffled as well. The error indicates there is a
problem linking against PThreads, but no such error occurred during the
build of ClanLib itself. In fact, no errors whatsoever occurred in the
actual building/installing of ClanLib itself, but I can't get anything
to actually run. pkg-config does indeed return the correct location of
libclanX and the header files. A complete transcript of the build/
install of the port, as well as the subsequent example compilation
attempt can be found at http://aaron.finch.st/clan-compile.txt Any
direction would be greatly appreciated. I have uninstalled/reinstalled
the port a couple of times just to make sure.
Cheers!
Aaron
--BEGIN ERROR--
galan# cd work/ClanLib-0.7.5/Examples/AdventureScene
galan# gmake
g++ `pkg-config --cflags clanApp-0.7 clanDisplay-0.7 clanCore-0.7
clanGL-0.7` -I/usr/X11R6/include -c scene.cpp -o scene.o
g++ `pkg-config --cflags clanApp-0.7 clanDisplay-0.7 clanCore-0.7
clanGL-0.7` -I/usr/X11R6/include -c app.cpp -o app.o
g++ `pkg-config --cflags clanApp-0.7 clanDisplay-0.7 clanCore-0.7
clanGL-0.7` -I/usr/X11R6/include -c player.cpp -o player.o
g++ `pkg-config --cflags clanApp-0.7 clanDisplay-0.7 clanCore-0.7
clanGL-0.7` -I/usr/X11R6/include -c mask_object_extractor.cpp -o
mask_object_extractor.o
mask_object_extractor.cpp: In method `class CL_Rect
MaskObjectExtractor::isolate_mask_object(CL_PixelBuffer &, int)':
mask_object_extractor.cpp:59: warning: initialization of negative value
`-1' to `unsigned int'
mask_object_extractor.cpp:59: warning: initialization of negative value
`-1' to `unsigned int'
mask_object_extractor.cpp: In method `class Object *
MaskObjectExtractor::create_object_from_mask(const CL_Rect &,
CL_PixelBuffer &, CL_PixelBuffer &, int)':
mask_object_extractor.cpp:117: warning: assignment of negative value
`-1' to `unsigned int'
g++ `pkg-config --cflags clanApp-0.7 clanDisplay-0.7 clanCore-0.7
clanGL-0.7` -I/usr/X11R6/include scene.o app.o player.o
mask_object_extractor.o -o adventurescene `pkg-config --libs
clanApp-0.7 clanDisplay-0.7 clanCore-0.7 clanGL-0.7`
scene.o: In function `Scene::Scene(basic_string<char,
string_char_traits<char>, __default_alloc_template<false, 0> > const &,
basic_string<char, string_char_traits<char>,
__default_alloc_template<false, 0> > const &, basic_string<char,
string_char_traits<char>, __default_alloc_template<false, 0> > const
&)':
scene.o(.text+0xd5): undefined reference to
`CL_TargaProvider::CL_TargaProvider(basic_string<char,
string_char_traits<char>, __default_alloc_template<false, 0> > const &,
CL_InputSourceProvider *, bool, bool, unsigned char, unsigned char,
unsigned char)'
scene.o(.text+0x11e): undefined reference to
`CL_TargaProvider::CL_TargaProvider(basic_string<char,
string_char_traits<char>, __default_alloc_template<false, 0> > const &,
CL_InputSourceProvider *, bool, bool, unsigned char, unsigned char,
unsigned char)'
scene.o(.text+0x1b0): undefined reference to
`CL_TargaProvider::CL_TargaProvider(basic_string<char,
string_char_traits<char>, __default_alloc_template<false, 0> > const &,
CL_InputSourceProvider *, bool, bool, unsigned char, unsigned char,
unsigned char)'
app.o: In function `AdventureSceneApp::main(int, char **)':
app.o(.gnu.linkonce.t.main__17AdventureSceneAppiPPc+0x65): undefined
reference to `CL_ConsoleWindow::CL_ConsoleWindow(basic_string<char,
string_char_traits<char>, __default_alloc_template<false, 0> > const &,
int, int)'
app.o(.gnu.linkonce.t.main__17AdventureSceneAppiPPc+0x181): undefined
reference to `CL_DisplayWindow::CL_DisplayWindow(basic_string<char,
string_char_traits<char>, __default_alloc_template<false, 0> > const &,
int, int, bool, bool, int)'
player.o: In function `Player::Player(Scene *)':
player.o(.text+0x12d): undefined reference to
`CL_Surface::CL_Surface(basic_string<char, string_char_traits<char>,
__default_alloc_template<false, 0> > const &, CL_Surface::Hint)'
/usr/local/lib/libclanCore.so: undefined reference to `pthread_create'
/usr/local/lib/libclanCore.so: undefined reference to `pthread_cancel'
/usr/local/lib/libclanCore.so: undefined reference to
`pthread_mutexattr_destroy'
/usr/local/lib/libclanCore.so: undefined reference to
`pthread_mutexattr_setkind_np'
/usr/local/lib/libclanCore.so: undefined reference to
`pthread_setcanceltype'
/usr/local/lib/libclanCore.so: undefined reference to
`pthread_mutexattr_init'
/usr/local/lib/libclanCore.so: undefined reference to `pthread_join'
gmake: *** [adventurescene] Error 1
galan#
--END ERROR--
More information about the freebsd-ports
mailing list