Kloiahack입니다! ㅋ
이번에는 리눅스용 네이트온 'knateon' 컴파일 설치시 에러 났을때의 대처법을 알려 드리겠습니다.
(물론 제가 겪은 일은 쓴것이니... 저랑 비슷한 일을 겪고 계시는 분에게만 도움이 될것 같습니다.. ㅠㅠ)
우선 컴파일시 에러 입니다.
kloiahack@localhost:~/Desktop/nateon-1.0$ cmake -DCMAKE_INSTALL_PREFIX=/usr
CMake Error at CMakeLists.txt:31 (if):
if had incorrect arguments: ${CMAKE_BUILD_TYPE} STREQUAL "Debug" (Unknown
arguments specified).
CMake Error at CMakeLists.txt:33 (elseif):
elseif An ELSEIF command was found outside of a proper IF ENDIF structure.
CMake Error at CMakeLists.txt:35 (elseif):
elseif An ELSEIF command was found outside of a proper IF ENDIF structure.
CMake Error at CMakeLists.txt:37 (else):
else An ELSE command was found outside of a proper IF ENDIF structure. Or
its arguments did not match the opening IF command.
CMake Error at CMakeLists.txt:39 (endif):
endif An ENDIF command was found outside of a proper IF ENDIF structure.
Or its arguments did not match the opening IF command.
-- Found KDE3 include dir: /usr/include/kde
-- Found KDE3 library dir: /usr/lib
-- Found KDE3 dcopidl preprocessor: /usr/bin/dcopidl
-- Found KDE3 dcopidl2cpp preprocessor: /usr/bin/dcopidl2cpp
-- Found KDE3 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found xdg-utils:/usr/bin/xdg-open
-- Found xdg-utils:/usr/bin/xdg-email
-- Found KDE3 include dir: /usr/include/kde
-- Found KDE3 library dir: /usr/lib
-- Found KDE3 dcopidl preprocessor: /usr/bin/dcopidl
-- Found KDE3 dcopidl2cpp preprocessor: /usr/bin/dcopidl2cpp
-- Found KDE3 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found aRts: /usr/lib/libartsc.so
-- Configuring done
여기서
if had incorrect arguments: ${CMAKE_BUILD_TYPE} STREQUAL "Debug" (Unknown
arguments specified).
CMake Error at CMakeLists.txt:33 (elseif):
elseif An ELSEIF command was found outside of a proper IF ENDIF structure.
CMake Error at CMakeLists.txt:35 (elseif):
elseif An ELSEIF command was found outside of a proper IF ENDIF structure.
CMake Error at CMakeLists.txt:37 (else):
else An ELSE command was found outside of a proper IF ENDIF structure. Or
its arguments did not match the opening IF command.
CMake Error at CMakeLists.txt:39 (endif):
endif An ENDIF command was found outside of a proper IF ENDIF structure.
Or its arguments did not match the opening IF command.
이런 오류를 보신적이 있습니까?
분명 맨 마지막에 "-- Configuring done" 이라고 깔쌈하게 나왔는데 "make"를 때려도 도저히 메이크 파일이
없다면서 컴파일이 안되는 이 현상이요! 이것은 'CMakeLists.txt'파일만 약간 수정을 해주시면 됩니다.
CMakeLists.txt 의 31번째줄에 아마
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
SET(CMAKE_VERBOSE_MAKEFILE ON)
elseif(${CMAKE_BUILD_TYPE} STREQUAL "DEBUG")
SET(CMAKE_VERBOSE_MAKEFILE ON)
elseif(${CMAKE_BUILD_TYPE} STREQUAL "debug")
SET(CMAKE_VERBOSE_MAKEFILE ON)
else(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
SET(CMAKE_VERBOSE_MAKEFILE OFF)
endif(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
라는것들이 있을것입니다.
여기를 모두 '주석'처리를 해 줍니다.
# if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
# SET(CMAKE_VERBOSE_MAKEFILE ON)
# elseif(${CMAKE_BUILD_TYPE} STREQUAL "DEBUG")
# SET(CMAKE_VERBOSE_MAKEFILE ON)
# elseif(${CMAKE_BUILD_TYPE} STREQUAL "debug")
# SET(CMAKE_VERBOSE_MAKEFILE ON)
# else(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
# SET(CMAKE_VERBOSE_MAKEFILE OFF)
# endif(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
이런식으로 수정하시고 저장을 하신다음 다시 'cmake'명령어를 쳐주시면 깔끔하게 메이크파일이 만들어 질것입니다. 그리고 'make'를 하시면 여러개의 warning은 뜨겠지만 컴파일은 잘 될것입니다!
그다음의 문제는 다음과 같이 메세지 박스가 뜨는 것입니다!

/bin, /usr/bin, /usr/local/bin, /opt/kde/bin 라는 위치에요!
이런것들은 단순 합니다!
아래에서 nateongen파일을 다운 받습니다! (32bit이용자와 64bit이용자는 각각 알맞게 다운 받으세요!)
(32bit user)
(64bit User)
받으셨으면 압축을 풉니다!
압축을 푸시면 'README, nateongen, nateongen.o, nateongen.MD5SUM' 이라는 파일 4개가 나올것입니다!
만약 nateongen파일이 실행파일로 퍼미션이 안주어져 있으면 따로 줍시다! (# chmod 777 nateongen)
그리고 nateongen파일을 /bin, /usr/bin, /usr/local/bin, /opt/kde/bin 이 4개의 경로중 한곳에 옮겨 줍시다!
전 '/usr/bin' 폴더에 살포시 넣어 줬어요~ ㅎ
그리고 로그인 하시면 깔끔하게 될것입니다! 짝짝짝!!!
수고 하셨습니다! ㅋㅋ
nateongen_32.zip









