Compiling question
#11
And what did you change in target arch.cmake?

Normally the toolchain file blacklist *lib64* path
Reply

Sponsored links

#12
First I tried regular cmake -DCMAKE_BUILD_TYPE=Release and that's when I got this error

Quote:- Cross compilation is disabled.
CMake Error at cmake/BuildParameters.cmake:92 (message):


The code for x86_64 support is not ready yet.
For now compile with -DCMAKE_TOOLCHAIN_FILE=cmake/linux-compiler-i386-multilib.cmake
or with
--cross-multilib passed to build.sh
Call Stack (most recent call first):
CMakeLists.txt:59 (include)


-- Configuring incomplete, errors occurred!

Then I added that "-DCMAKE_TOOLCHAIN_FILE=cmake/linux-compiler-i386-multilib.cmake" but still got the same error.

Then i went and edited TartgetArch.cmake, in the line before the last one, changed from set(${output_var} "${ARCH}" PARENT_SCOPE) to set(${output_var} "i386" PARENT_SCOPE). After that cmake runs without errors but is looking for 64bit libraries like explained in previous post of mine.
Reply
#13
You fix is bad try this one instead:
Code:
diff --git a/cmake/linux-compiler-i386-multilib.cmake b/cmake/linux-compiler-i386-multilib.cmake
index e3cebcc..f09d68d 100644
--- a/cmake/linux-compiler-i386-multilib.cmake
+++ b/cmake/linux-compiler-i386-multilib.cmake
@@ -4,10 +4,10 @@ set(CMAKE_SYSTEM_PROCESSOR i686)

# It could be i?86-*linux-gnu, x86_64-*linux-gnu, x86_64-*linux-gnux32, etc.
# Leave it generic to only support amd64 or x32 to i386 with any compiler.
-if("$ENV{CC}" STREQUAL "" OR "$ENV{CXX}" STREQUAL "")
+#if("$ENV{CC}" STREQUAL "" OR "$ENV{CXX}" STREQUAL "")
     set(CMAKE_C_COMPILER cc -m32)
     set(CMAKE_CXX_COMPILER c++ -m32)
-endif()
+#endif()

# cmake 2.8.5 correctly sets CMAKE_LIBRARY_ARCHITECTURE for Debian multiarch.
# Be really strict about what gets used.
Reply
#14
That helped, thanks!
Reply




Users browsing this thread: 1 Guest(s)