Hi,

I'm trying to compile qjson on my Mac OS X, Version 10.7.2.
During the linking step, I get the following error

Linking CXX shared library ../lib/libqjson.dylib
ld: in /Library/Frameworks/QtCore.framework, can't map file, errno=22
for architecture x86_64

Some random information that might be helpful here:
- file /Library/Frameworks/QtCore.framework/QtCore: Mach-O 64-bit
dynamically linked shared library x86_64
- My macbook boots in 32bit kernel mode, but my processor supports 64 bit.

Below the full output during compilation.

Do you guys know what I need to do, to fix the problem?

Thanks in advance,
Malte Nuhn





cmake -DCMAKE_INSTALL_PREFIX=/Users/mnuhn/software/ ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
m-- Detecting C compiler ABI info - done
a-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
k-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
e
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt-Version 4.8.0 (using /usr/bin/qmake)
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/mnuhn/software/qjson/build
[00:10:36] mnuhn@codebook 0 ~/software/qjson/build
make
[  9%] Generating moc_serializerrunnable.cxx
[ 18%] Generating moc_parserrunnable.cxx
Scanning dependencies of target qjson
[ 27%] Building CXX object src/CMakeFiles/qjson.dir/parser.cpp.o
[ 36%] Building CXX object src/CMakeFiles/qjson.dir/qobjecthelper.cpp.o
[ 45%] Building CXX object src/CMakeFiles/qjson.dir/json_scanner.cpp.o
[ 54%] Building CXX object src/CMakeFiles/qjson.dir/json_parser.cc.o
[ 63%] Building CXX object src/CMakeFiles/qjson.dir/parserrunnable.cpp.o
[ 72%] Building CXX object src/CMakeFiles/qjson.dir/serializer.cpp.o
/Users/mnuhn/software/qjson/src/serializer.cpp: In member function
‘QByteArray QJson::Serializer::SerializerPrivate::serialize(const
QVariant&, int)’:
/Users/mnuhn/software/qjson/src/serializer.cpp:163: warning:
comparison between ‘enum QVariant::Type’ and ‘enum QMetaType::Type’
[ 81%] Building CXX object src/CMakeFiles/qjson.dir/serializerrunnable.cpp.o
[ 90%] Building CXX object src/CMakeFiles/qjson.dir/moc_parserrunnable.cxx.o
[100%] Building CXX object src/CMakeFiles/qjson.dir/moc_serializerrunnable.cxx.o
Linking CXX shared library ../lib/libqjson.dylib
ld: in /Library/Frameworks/QtCore.framework, can't map file, errno=22
for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [lib/libqjson.0.7.1.dylib] Error 1
make[1]: *** [src/CMakeFiles/qjson.dir/all] Error 2
make: *** [all] Error 2
[00:10:46] mnuhn@codebook 0 ~/software/qjson/build

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
QJson-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qjson-devel

Reply via email to