Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make: *** No rule to make target ../src/libnecpp.la', needed by nec2++'. Stop. #70

Open
lhxone opened this issue Apr 21, 2022 · 0 comments

Comments

@lhxone
Copy link

lhxone commented Apr 21, 2022

@tmolteno Hello tmolteno, I got some errors while compiling the program, I think it might be a bug of the configure or Makefile.git.

After execute command as INSTALL.md said

make -f Makefile.git'
./configure --without-lapack
make 

it complains

make: *** No rule to make target `../src/libnecpp.la', needed by `nec2++'.  Stop.

this is caused by src/Makefile, please note nec2___DEPENDENCIES. There has NO target nec2___DEPENDENCIES in src/Makefile.

002668A4

nec2___DEPENDENCIES = $(top_builddir)/src/libnecpp.la

libnecpp.la: $(libnecpp_la_OBJECTS) $(libnecpp_la_DEPENDENCIES) $(EXTRA_libnecpp_la_DEPENDENCIES) 
	$(AM_V_CXXLD)$(libnecpp_la_LINK) -rpath $(libdir) $(libnecpp_la_OBJECTS) $(libnecpp_la_LIBADD) $(LIBS)

nec2++$(EXEEXT): $(nec2___OBJECTS) $(nec2___DEPENDENCIES) $(EXTRA_nec2___DEPENDENCIES) 
	@rm -f nec2++$(EXEEXT)
	$(AM_V_CXXLD)$(nec2___LINK) $(nec2___OBJECTS) $(nec2___LDADD) $(LIBS)

But when I change nec2++$(EXEEXT): $(nec2___OBJECTS) $(nec2___DEPENDENCIES) $(EXTRA_nec2___DEPENDENCIES) into nec2++$(EXEEXT): $(nec2___OBJECTS) libnecpp.la $(EXTRA_nec2___DEPENDENCIES) , it compile succefully.

nec2___DEPENDENCIES = $(top_builddir)/src/libnecpp.la

libnecpp.la: $(libnecpp_la_OBJECTS) $(libnecpp_la_DEPENDENCIES) $(EXTRA_libnecpp_la_DEPENDENCIES) 
	$(AM_V_CXXLD)$(libnecpp_la_LINK) -rpath $(libdir) $(libnecpp_la_OBJECTS) $(libnecpp_la_LIBADD) $(LIBS)

nec2++$(EXEEXT): $(nec2___OBJECTS) libnecpp.la $(EXTRA_nec2___DEPENDENCIES) 
	@rm -f nec2++$(EXEEXT)
	$(AM_V_CXXLD)$(nec2___LINK) $(nec2___OBJECTS) $(nec2___LDADD) $(LIBS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant