Qtopia 설치 중 오류 질문입니다

hoseungc의 이미지

/root/qt/qtopia-free-2.1.1//lib/libqtopia.so: undefined reference to `uuid_generate'
collect2: ld returned 1 exit status
make[5]: *** [fifteen] 오류 1
make[5]: Leaving directory `/root/qt/qtopia-free-2.1.1/src/games/fifteen'
make[4]: *** [all] 오류 2
make[4]: Leaving directory `/root/qt/qtopia-free-2.1.1/src/games/fifteen'
make[3]: *** [sub-games-fifteen] 오류 2
make[3]: Leaving directory `/root/qt/qtopia-free-2.1.1/src'
make[2]: *** [sub-src-components_pro] 오류 2
make[2]: Leaving directory `/root/qt/qtopia-free-2.1.1/src'
make[1]: *** [all] 오류 2
make[1]: Leaving directory `/root/qt/qtopia-free-2.1.1/src'
make: *** [all] 오류 2

위와 같은 오류에서 헤어나오질 못하고 있는데요...

온갖 구글을 다 뒤져봤지만 해결을 하지 못해서 막막합니다..

부디 여러분들의 성의있는 답변이 있길 바랍니다..

bushi의 이미지

man uuid_generate

UUID_GENERATE(3)                                              UUID_GENERATE(3)
 
NAME
       uuid_generate,  uuid_generate_random, uuid_generate_time - create a new
       unique UUID value
 
SYNOPSIS
       #include <uuid/uuid.h>
 
       void uuid_generate(uuid_t out);
       void uuid_generate_random(uuid_t out);
       void uuid_generate_time(uuid_t out);

rpm -qf /usr/include/uuid/uuid.h

e2fsprogs-devel-1.38-12

rpm -ql e2fsprogs-devel |grep uuid|grep lib

/usr/lib/libuuid.a
/usr/lib/libuuid.so
/usr/lib/pkgconfig/uuid.pc

pkg-config --libs uuid

-luuid

크로스컴파일 때는 어떻게 해야하나요 라는 성의 없는 질문이 올라오지 않기를 바랍니다.

hoseungc의 이미지

친절히 댓글 달아주신대로 확인해 봤는데요

e2fsprogs 버젼이 1.37인거 빼고는 다 똑같이 나옵니다..

uuid 라이브러리도 컴파일해서 복사했고, uuid.h 파일도 복사했는데 계속 위에 부분에서 에러가 납니다..ㅠㅠ

성의 없는 질문일지 모르지만 해결과정을 좀더 상세히 설명해주시면 감사하겠습니다..

bushi의 이미지

이전 답변 맨 끝 항목인

-luuid

밖에는 더 드릴 말씀도 없고 성의를 표할 방법도 없는 것이 애석할 뿐입니다.
hoseungc의 이미지

-luuid 를 어떻게 이용해서 문제를 해결해야 하는지 모르겠습니다..

좀더 자세히 설명해 주실순 없으신지요..ㅠㅠ

hoseungc의 이미지

-luuid 를 어떻게 이용해서 문제를 해결해야 하는지 모르겠습니다..

좀더 자세히 설명해 주실순 없으신지요..ㅠㅠ

bushi의 이미지

gcc -o test test.c -luuid
처럼 링커에게 알려줘야 합니다. libuuid 를 사용하라고.
본래는
gcc -o test test.c -L /usr/lib -luuid
로 해야겠지만, host 에서는 /usr/lib 을 기본적으로 뒤지므로 생략합니다.

e2fsprogs-devel 을 이용하는 패키지들은 보통 pkg-config 명령을 통해서 컴파일/링크 플래그를 알아냅니다.
크로스 컴파일 할 땐 무리죠. 환경이 어지간히 잘 세팅되어 있지 않는한.

qtopia 에서 사용하는 uuid_generate() 가 libuuid 의 것이 맞는지부터 확인하고 작업하세요.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.