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

Not compiling on Ubuntu 16.04 #1

Open
varlesh opened this issue Oct 1, 2017 · 1 comment
Open

Not compiling on Ubuntu 16.04 #1

varlesh opened this issue Oct 1, 2017 · 1 comment

Comments

@varlesh
Copy link

varlesh commented Oct 1, 2017

collect2: error: ld returned 1 exit status

@varlesh
Copy link
Author

varlesh commented Oct 1, 2017

full log:

make
cc -g -Wall -pthread -I/usr/include/upnp -c -o wphoto.o wphoto.c
cc -g -Wall -pthread -I/usr/include/upnp -c -o upnp.o upnp.c
cc -g -Wall -pthread -I/usr/include/upnp -c -o xml.o xml.c
cc -g -Wall -pthread -I/usr/include/upnp -c -o web.o web.c
cc -g -Wall -pthread -I/usr/include/upnp -c -o uuid.o uuid.c
cc -pthread -lupnp -lthreadutil -lixml wphoto.o upnp.o xml.o web.o uuid.o -o wphoto
upnp.o: In function `upnp_perror':
/home/alex/Git/tmp/wphoto/upnp.c:37: undefined reference to `UpnpGetErrorMessage'
upnp.o: In function `ping_camera':
/home/alex/Git/tmp/wphoto/upnp.c:159: undefined reference to `UpnpDownloadUrlItem'
upnp.o: In function `wphoto_upnp_handshake':
/home/alex/Git/tmp/wphoto/upnp.c:181: undefined reference to `UpnpInit'
/home/alex/Git/tmp/wphoto/upnp.c:186: undefined reference to `UpnpGetServerIpAddress'
/home/alex/Git/tmp/wphoto/upnp.c:187: undefined reference to `UpnpGetServerPort'
/home/alex/Git/tmp/wphoto/upnp.c:212: undefined reference to `UpnpRegisterRootDevice'
/home/alex/Git/tmp/wphoto/upnp.c:218: undefined reference to `UpnpRegisterClient'
/home/alex/Git/tmp/wphoto/upnp.c:233: undefined reference to `UpnpSendAdvertisement'
/home/alex/Git/tmp/wphoto/upnp.c:262: undefined reference to `UpnpSearchAsync'
/home/alex/Git/tmp/wphoto/upnp.c:278: undefined reference to `UpnpUnRegisterRootDevice'
/home/alex/Git/tmp/wphoto/upnp.c:280: undefined reference to `UpnpFinish'
web.o: In function `upnp_web_getinfo':
/home/alex/Git/tmp/wphoto/web.c:63: undefined reference to `ixmlCloneDOMString'
web.o: In function `web_start':
/home/alex/Git/tmp/wphoto/web.c:130: undefined reference to `UpnpEnableWebserver'
/home/alex/Git/tmp/wphoto/web.c:135: undefined reference to `UpnpAddVirtualDir'
/home/alex/Git/tmp/wphoto/web.c:140: undefined reference to `UpnpVirtualDir_set_GetInfoCallback'
/home/alex/Git/tmp/wphoto/web.c:141: undefined reference to `UpnpVirtualDir_set_OpenCallback'
/home/alex/Git/tmp/wphoto/web.c:142: undefined reference to `UpnpVirtualDir_set_ReadCallback'
/home/alex/Git/tmp/wphoto/web.c:143: undefined reference to `UpnpVirtualDir_set_WriteCallback'
/home/alex/Git/tmp/wphoto/web.c:144: undefined reference to `UpnpVirtualDir_set_CloseCallback'
collect2: error: ld returned 1 exit status
Makefile:6: ошибка выполнения рецепта для цели «wphoto»
make: *** [wphoto] Ошибка 1

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