kydlo / ios-toolchain-based-on-clang-for-linux

Automatically exported from code.google.com/p/ios-toolchain-based-on-clang-for-linux
0 stars 0 forks source link

ios-createProject and ios-xcbuild command not found, but ios-switchsdk is working #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am using ubuntu 12.10, I installed the sdk, clang, and some other tools, but 
the i cant use the these 2 command, i cant find them in /usr/bin, and Terminal 
says these commands are not found.

Original issue reported on code.google.com by Cydi...@gmail.com on 12 May 2013 at 1:34

GoogleCodeExporter commented 8 years ago
iphonne sdk utils output for ./configure --prefix=/usr :

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to 
x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain 
format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared 
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared 
libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared 
libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for int16_t... yes
checking for int32_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint8_t... yes
checking for uid_t in sys/types.h... yes
checking for unistd.h... (cached) yes
checking for working chown... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for memset... yes
checking for strdup... yes
checking for strrchr... yes
checking for strtoul... yes
checking for crc32 in -lz... yes
checking for png_create_read_struct in -lpng... no
checking for pow in -lm... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XML... yes
checking for llvm-config... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libhelper/Makefile
config.status: creating libplutil/Makefile
config.status: creating ldid/Makefile
config.status: creating clangwrapper/Makefile
config.status: creating plutil/Makefile
config.status: creating createProject/Makefile
config.status: creating createProject/templates/Makefile
config.status: creating genLocalization2/Makefile
config.status: creating pngcrush/Makefile
config.status: creating xcbuild/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

Original comment by Cydi...@gmail.com on 12 May 2013 at 4:03

GoogleCodeExporter commented 8 years ago
output for make:

make  all-recursive
make[1]: Entering directory `/home/cydie/Letöltések/iphonesdk-utils-1.8'
Making all in libplutil
make[2]: Entering directory 
`/home/cydie/Letöltések/iphonesdk-utils-1.8/libplutil'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory 
`/home/cydie/Letöltések/iphonesdk-utils-1.8/libplutil'
Making all in libhelper
make[2]: Entering directory 
`/home/cydie/Letöltések/iphonesdk-utils-1.8/libhelper'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory 
`/home/cydie/Letöltések/iphonesdk-utils-1.8/libhelper'
Making all in ldid
make[2]: Entering directory `/home/cydie/Letöltések/iphonesdk-utils-1.8/ldid'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/cydie/Letöltések/iphonesdk-utils-1.8/ldid'
Making all in clangwrapper
make[2]: Entering directory 
`/home/cydie/Letöltések/iphonesdk-utils-1.8/clangwrapper'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory 
`/home/cydie/Letöltések/iphonesdk-utils-1.8/clangwrapper'
Making all in genLocalization2
make[2]: Entering directory 
`/home/cydie/Letöltések/iphonesdk-utils-1.8/genLocalization2'
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include  -D_DEBUG -D_GNU_SOURCE 
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 
-fomit-frame-pointer -fvisibility-inlines-hidden -fno-exceptions -fno-rtti 
-fPIC -Woverloaded-virtual -Wcast-qual -I../libhelper -I../libplutil -fno-rtti  
 -g -O2 -MT ios_genLocalization-getLocalizedStringFromFile.o -MD -MP -MF 
.deps/ios_genLocalization-getLocalizedStringFromFile.Tpo -c -o 
ios_genLocalization-getLocalizedStringFromFile.o `test -f 
'getLocalizedStringFromFile.cpp' || echo './'`getLocalizedStringFromFile.cpp
getLocalizedStringFromFile.cpp: In function 
‘std::vector<std::basic_string<char> > 
getLocalizedStringFromFile(std::string, std::string, 
std::vector<std::basic_string<char> >)’:
getLocalizedStringFromFile.cpp:108:22: error: no matching function for call to 
‘clang::HeaderSearchOptions::AddPath(std::basic_string<char>&, 
clang::frontend::IncludeDirGroup, bool, bool, bool)’
getLocalizedStringFromFile.cpp:108:22: note: candidate is:
In file included from /usr/include/clang/Frontend/CompilerInvocation.h:23:0,
                 from /usr/include/clang/Frontend/CompilerInstance.h:15,
                 from getLocalizedStringFromFile.cpp:21:
/usr/include/clang/Lex/HeaderSearchOptions.h:145:8: note: void 
clang::HeaderSearchOptions::AddPath(llvm::StringRef, 
clang::frontend::IncludeDirGroup, bool, bool)
/usr/include/clang/Lex/HeaderSearchOptions.h:145:8: note:   candidate expects 4 
arguments, 5 provided
make[2]: *** [ios_genLocalization-getLocalizedStringFromFile.o] Error 1
make[2]: Leaving directory 
`/home/cydie/Letöltések/iphonesdk-utils-1.8/genLocalization2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cydie/Letöltések/iphonesdk-utils-1.8'
make: *** [all] Error 2

Original comment by Cydi...@gmail.com on 12 May 2013 at 4:06

GoogleCodeExporter commented 8 years ago
*FIXED*

NEW ERROR when i want to compiling:

root@ubuntu:/home/cydie/HelloWorld# make
ios-clang -c -objc-arc -fblocks -g0 -O2 -I"." HelloWorldApplication.m -o 
HelloWorldApplication.o
ios-clang -c -objc-arc -fblocks -g0 -O2 -I"." main.m -o main.o
ios-clang -c -objc-arc -fblocks -g0 -O2 -I"." RootViewController.m -o 
RootViewController.o
ios-clang -objc-arc -fblocks -g0 -O2 -I"." -framework Foundation  -framework 
UIKit  HelloWorldApplication.o main.o RootViewController.o -o HelloWorld 
/usr/bin/ld: unrecognized option '-dynamic'
/usr/bin/ld: use the --help option for usage information
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [HelloWorld] Error 1

Original comment by Cydi...@gmail.com on 12 May 2013 at 6:35

GoogleCodeExporter commented 8 years ago
HEEEELP PLEASE

Original comment by Cydi...@gmail.com on 12 May 2013 at 6:35

GoogleCodeExporter commented 8 years ago
/usr/bin/ld: unrecognized option '-dynamic'/usr/bin/ld: unrecognized option 
'-dynamic'  << no file called ld in /usr/bin on my ubuntu

Original comment by Cydi...@gmail.com on 12 May 2013 at 6:41

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Please check the version of clang/llvm installed with the system.

The api of libclang had changed between 3.1/3.2/3.3. 

I suggest you just disable genLocalization2 compilination in iphonesdk-utils 
project files.

Original comment by cjac...@gmail.com on 23 Sep 2013 at 7:07