Я новичок и у меня проблема! Мне приходится работать с кодом на C ++, и я не знаю, как его импортировать и как скомпилировать в затмениях (я скомпилировал его из командной строки). Код имеет особую структуру и организован следующим образом:
repos____lib____configure (execute the configure file inside the libraries folders)
I I___makefile (execute the make file inside the libraries folders,
requires make/make.def)
I I___ib1____.cpp
I I I____.h
I ... I____configure (it requires make/configure_lib and
make/configure_includes
I ... I____makefile (generated by configure)
I I___lib2___....
i I___.......
I I___libn____.cpp
i I____.h
i I____configure
i I____makefile (generated by configure)
I
I___make(folder)__bashrc (are set the some environment variables)
I I__configure_bin
I I__configure_includes
I I__configure_lib
I I__make.def (are set all the include path and library path used
I in the configure file)
I___application__main.cpp
I__configure
I__makefile(generated by the configure file)
для уверенности, что вы понимаете мою проблему ... (конечно ... :))
первый файл конфигурации:
cd lib1; ./configure
cd ../lib2; ./configure
.....
....
cd ../libn; ./configure
cd
и первый make-файл
include /media/Dati/WORKHOME/repos/make/make.def
lib:
make -C lib1
make -C lib2
make -C libn
пример файла конфигурации (тот, который находится внутри lib1):
#!/usr/bin/perl
$INC = '$(OPENCVINC) $(FLTKINC) $(DC1394V2INC)'; ##<-DEFINED IN /make.def
$LIB = '$(OPENCVLIB) $(FLTKLIB) $(DC1394V2LIB)'; #####################
#-------------------------------------------------------------------------------
require '/media/Dati/WORKHOME/repos/make/configure_lib';
print "Created Makefile.\n";
# this will create a include file for the whole directory,
# using the template <dirname>.h.templ
require '/media/Dati/WORKHOME/repos/make/configure_includes';
print "Created $libname.h\n";
скомпилировать его без eclipse просто
у меня вопрос .... в eclipse ??? Я импортировал эти три с помощью импорта / импорта существующего кода как проекта makefile, но теперь я не знаю, как его скомпилировать. не могли бы вы мне помочь? это важно!
большое спасибо gabriele